Public bug reported:
Binary package hint: postgresql-8.4
I received the following error when attempting to start postgresql-8.4
after installing the recent kernel update:
$ sudo service postgresql-8.4 start
[sudo] password for [username]:
* Starting PostgreSQL 8.4 database server
* The PostgreSQL server failed to start. Please check the log output:
2009-11-24 10:59:05 EST FATAL: could not create shared memory segment: Invalid
argument
2009-11-24 10:59:05 EST DETAIL: Failed system call was shmget(key=5432001,
size=36880384, 03600).
2009-11-24 10:59:05 EST 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 36880384 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.
[fail]
relevant kernel information:
$ uname -a
Linux srosenblum-wks 2.6.31-15-generic-pae #50-Ubuntu SMP Tue Nov 10 16:12:10
UTC 2009 i686 GNU/Linux
$ sysctl kernel.shmmax
kernel.shmmax = 33554432
default configuration of postgresql.conf:
# - Memory -
shared_buffers = 32MB # min 128kB
# (change requires restart)
I assume this is just a kernel change that needs to be accounted for,
but clearly pg should be able to start by default with this kernel.
Thanks all
ProblemType: Bug
Architecture: i386
Date: Tue Nov 24 11:31:27 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
Package: postgresql 8.4.1-1
PackageArchitecture: all
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic-pae
SourcePackage: postgresql-8.4
Uname: Linux 2.6.31-15-generic-pae i686
XsessionErrors:
(gnome-settings-daemon:1717): GLib-CRITICAL **: g_propagate_error: assertion
`src != NULL' failed
(polkit-gnome-authentication-agent-1:1852): GLib-CRITICAL **:
g_once_init_leave: assertion `initialization_value != 0' failed
(nautilus:1814): Eel-CRITICAL **: eel_preferences_get_boolean: assertion
`preferences_is_initialized ()' failed
** Affects: postgresql-8.4 (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386
--
postgrsesql service fails to start with 2.6.31-15-generic-pae
https://bugs.launchpad.net/bugs/487675
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs