Postgresql fails to start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I installed Postgresql 8.3 using Synaptic Package Manager on a fresh install of Ubuntu 8.04 (64-bit version) However, the Postgresql service doesn't appear to start correctly. I receive the following log messages:
2008-05-27 02:32:40 BST LOG: could not load root certificate file "root.crt": no SSL error reported
2008-05-27 02:32:40 BST DETAIL: Will not verify client certificates.
2008-05-27 02:32:40 BST FATAL: could not create shared memory segment: Invalid argument
2008-05-27 02:32:40 BST DETAIL: Failed system call was shmget(key=5432001, size=39288832, 03600).
2008-05-27 02:32:40 BST 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 39288832 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.
2008-05-27 02:38:38 BST LOG: could not load root certificate file "root.crt": no SSL error reported
2008-05-27 02:38:38 BST DETAIL: Will not verify client certificates.
2008-05-27 02:38:38 BST LOG: database system was shut down at 2008-05-18 12:20:18 BST
2008-05-27 02:38:38 BST LOG: incomplete startup packet
2008-05-27 02:38:38 BST LOG: autovacuum launcher started
2008-05-27 02:38:38 BST LOG: database system is ready to accept connections
I can't find anyone else reporting this so I'm not sure what exactly is wrong here.
The exact package names are:
postgresql-8.3
postgresql-
postgresql-autodoc
postgresql-client
postgresql-
postgresql-
postgresql-common
postgresql-contrib
postgresql-
postgresql-doc
postgresql-doc-8.3
Thanks for your report.
This is not a bug but a configuration issue. The error message says it all:
"2008-05-27 02:32:40 BST 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 39288832 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.
"
You need to increase SHMMAX or reduce Postgresql's shared buffers. Check http:// www.google. com/search? q=linux+ SHMMAX or read the Postgresql documentation.
Feel free to submit any future bugs you may find.