package postgresql-8.3 8.3.5-0ubuntu8.10 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #296598 reported by mde
40
Affects Status Importance Assigned to Milestone
postgresql-8.3 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: postgresql-8.3

Tryied to start PostgreSQL-8.3 (/etc/init.d/start) right after Hardy->Intrepid upgrade, but got this error:

/etc/init.d/postgresql-8.3 start
 * Starting PostgreSQL 8.3 database server * The PostgreSQL server failed to start. Please check the log output:
2008-11-10 19:20:53 PST LOG: SSL certificate revocation list file "root.crl" not found, skipping: No such file or directory
2008-11-10 19:20:53 PST DETAIL: Certificates will not be checked against revocation list.
2008-11-10 19:20:53 PST FATAL: could not create shared memory segment: Invalid argument
2008-11-10 19:20:53 PST DETAIL: Failed system call was shmget(key=5432001, size=38207488, 03600).
2008-11-10 19:20:53 PST HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 38207488 bytes), reduce PostgreSQL's shared_buffers parameter (currently 4096) and/or its max_connections parameter (currently 103).
 If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
 The PostgreSQL documentation contains more information about shared memory configuration.

Then reinstall shows same problem, but also includes worrisome message:
...
Setting up postgresql-common (90) ...
supported_versions: WARNING: Unknown Ubuntu release: 8.10

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: postgresql-8.3 8.3.5-0ubuntu8.10
SourcePackage: postgresql-8.3
Title: package postgresql-8.3 8.3.5-0ubuntu8.10 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-7-generic i686

Revision history for this message
mde (mde-micahelliott) wrote :
Revision history for this message
Jim Neundorf (jneundorf) wrote :

Had the same problem with shared memory issues. Noticed that postgresql would start from the command line after boot. Couldn't get sleep to work in the init script so fixed it this way instead (as root):

export EDITOR=nano
crontab -e

Added this the end of the file:
@reboot /etc/init.d/postgresql-8.3 start

Worked like a charm.

Revision history for this message
abazuos@gmail.com (abazuos) wrote :

root@abaza:/# /etc/init.d/postgresql-8.3 start
 * Starting PostgreSQL 8.3 database server * The PostgreSQL server failed to start. Please check the log output:
2009-02-16 13:40:45 EET FATAL: unsafe permissions on private key file "server.key"
2009-02-16 13:40:45 EET DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other".
                                                                         [fail]

Revision history for this message
Martin Pitt (pitti) wrote :

abazuous, your problem is entirely unrelated to the originaly reported one here (which is a duplicate of bug 264336).

Unless you have set up custom SSL certificates, it seems that something destroyed the permissions of /etc/ssl/private/ssl-cert-snakeoil.key for you. It should be

  -rw-r----- 1 root ssl-cert 891 2009-02-08 22:09 /etc/ssl/private/ssl-cert-snakeoil.key

(root:ssl-cert 0640)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.