Skip to content

Instantly share code, notes, and snippets.

View ZediWards's full-sized avatar
:octocat:
building

Zach Edwards ZediWards

:octocat:
building
View GitHub Profile
@ZediWards
ZediWards / gist:5b8b4902505de948daafa209639efd53
Created December 7, 2020 05:38
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>