Created
April 1, 2016 06:39
-
-
Save GabLeRoux/0c60f9be0c28b6b41f64cb55474b0ccb to your computer and use it in GitHub Desktop.
Fix postgresql error FATAL: could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# > It happened to me and it turned out that I removed erroneously the postgres user from "ssl-cert" group, set it back with | |
gpasswd -a postgres ssl-cert | |
# Fixed ownership and mode | |
sudo chown root:ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key | |
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key | |
# now postgresql starts! (and install command doesn't fail anymore) | |
sudo /etc/init.d/postgresql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
related links
sous-chefs/postgresql#156
http://stackoverflow.com/questions/12087683/postgresql-wont-start-server-key-has-group-or-world-access