Skip to content

Instantly share code, notes, and snippets.

@ZediWards
Created December 7, 2020 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZediWards/5b8b4902505de948daafa209639efd53 to your computer and use it in GitHub Desktop.
Save ZediWards/5b8b4902505de948daafa209639efd53 to your computer and use it in GitHub Desktop.
ERROR: error checking context: 'can't stat '/home/location/to/pgdata''.
The problem is that the curent user is not the owner of the directory. I got the same problem in Ubuntu, this line solves the issue:
sudo chown -R $USER <path-to-folder>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment