package postgresql-common 129 failed to install/upgrade: private key file "server.key" has group or world access
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-common (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
while upgrading to ubuntu 12
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: postgresql-common 129
ProcVersionSign
Uname: Linux 3.2.0-24-
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
Date: Mon May 7 17:31:21 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitec
SourcePackage: postgresql-common
Title: package postgresql-common 129 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-05-06 (1 days ago)
Setting up postgresql-common (129) ...
* Starting PostgreSQL 9.0 database server [75G [31m*[39;49m The PostgreSQL server failed to start. Please check the log output:
2012-05-07 17:31:20 IST FATAL: private key file "server.key" has group or world access
Please fix the permissions of the certificate. Permissions should be this:
-rw-r----- 1 root ssl-cert 891 Jul 12 10:38 /etc/ssl/ private/ ssl-cert- snakeoil. key
with these commands: private/ ssl-cert- snakeoil. key private/ ssl-cert- snakeoil. key
sudo chgrp ssl-cert /etc/ssl/
sudo chmod 640 /etc/ssl/