package postgresql-8.4 8.4.2-1 failed to install/upgrade: FATAL: could not create shared memory segment: Invalid argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgresql-8.4 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: postgresql-8.4
Setting up postgresql-8.4 (8.4.2-1) ...
* Starting PostgreSQL 8.4 database server * The PostgreSQL server failed to start. Please check the log output:
2009-12-15 08:37:18 EET FATAL: could not create shared memory segment: Invalid argument
2009-12-15 08:37:18 EET DETAIL: Failed system call was shmget(key=5432001, size=37879808, 03600).
2009-12-15 08:37:18 EET 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 37879808 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.
invoke-rc.d: initscript postgresql-8.4, action "start" failed.
dpkg: error processing postgresql-8.4 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-8.4; however:
Package postgresql-8.4 is not configured yet.
dpkg: error processing postgresql (--configure):
dependency problems - leaving unconfigured
This is with mainline kernel Linux sentti 2.6.32-999-generic #200912131003 SMP Sun Dec 13 10:09:58 UTC 2009 x86_64 GNU/Linux is that matters.
ProblemType: Package
Architecture: amd64
Date: Tue Dec 15 08:37:19 2009
DistroRelease: Ubuntu 10.04
ErrorMessage: subprocess installed post-installation script returned error exit status 1
Package: postgresql-8.4 8.4.2-1
SourcePackage: postgresql-8.4
Tags: lucid
Title: package postgresql-8.4 8.4.2-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.32-999-generic x86_64
summary: |
- package postgresql-8.4 8.4.2-1 failed to install/upgrade: subprocess - installed post-installation script returned error exit status 1 + package postgresql-8.4 8.4.2-1 failed to install/upgrade: FATAL: could + not create shared memory segment: Invalid argument |
After sudo apt-get remove --purge postgres* and reinstall this disappeared;
The following NEW packages will be installed: client- 8.4 postgresql- client- common postgresql-common archive. ubuntu. com lucid/main postgresql- client- common 102 [50.0kB] archive. ubuntu. com lucid/main postgresql-common 102 [85.8kB] client- common. client- common (from .../postgresql- client- common_ 102_all. deb) ... client- 8.4. client- 8.4 (from .../postgresql- client- 8.4_8.4. 2-1_amd64. deb) ... common_ 102_all. deb) ... 8.4_8.4. 2-1_amd64. deb) ... 8.4.2-1_ all.deb) ... client- common (102) ... client- 8.4 (8.4.2-1) ... alternatives: using /usr/share/ postgresql/ 8.4/man/ man1/psql. 1.gz to provide /usr/share/ man/man1/ psql.1. gz (psql.1.gz) in auto mode.
postgresql postgresql-8.4 postgresql-
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 136kB/5,017kB of archives.
After this operation, 18.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://
Get:2 http://
Fetched 136kB in 0s (413kB/s)
Preconfiguring packages ...
Selecting previously deselected package postgresql-
(Reading database ... 342384 files and directories currently installed.)
Unpacking postgresql-
Selecting previously deselected package postgresql-
Unpacking postgresql-
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-
Selecting previously deselected package postgresql-8.4.
Unpacking postgresql-8.4 (from .../postgresql-
Selecting previously deselected package postgresql.
Unpacking postgresql (from .../postgresql_
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up postgresql-
Setting up postgresql-
update-
Setting up postgresql-common (102) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
en_au
en_gb
en_us
en_za
Setting up postgresql-8.4 (8.4.2-1) ... /8.4/main, data: /var/lib/ postgresql/ 8.4/main) ... postgresql/ 8.4/main/ postgresql. conf to /etc/postgresql /8.4/main. .. postgresql/ 8.4/main/ pg_hba. conf to /etc/postgresql /8.4/main. .. postgresql/ 8.4/main/ pg_ident. conf to /etc/postgresql /8.4/main. .. alternatives: using /usr/share/ postgresql/ 8.4/man/ man1/postmaster .1.gz to provide /usr/share/ man/man1/ postmaster. 1.gz (postmaster.1.gz) in auto mode.
Creating new cluster (configuration: /etc/postgresql
Moving configuration file /var/lib/
Moving configuration file /var/lib/
Moving configuration file /var/lib/
Configuring postgresql.conf to use port 5432...
update-
* Starting PostgreSQL 8.4 database server [ OK ]
Setting up postgresql (8.4.2-1) ...
jarkko@sentti:/etc$