postgresql not working

Bug #437909 reported by dieterdreist

This bug report was converted into a question: question #84063: postgresql not working.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postgresql-8.3 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: postgresql-8.3

didn't find neither initdb nor postgresql pgsql binaries, but apt-get reports the app to be installed.

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 9.04
ErrorMessage: Unterprozess post-installation script gab den Fehlerwert 1 zurück
NonfreeKernelModules: nvidia
Package: postgresql-8.3 8.3.8-0ubuntu9.04
SourcePackage: postgresql-8.3
Title: package postgresql-8.3 8.3.8-0ubuntu9.04 failed to install/upgrade: Unterprozess post-installation script gab den Fehlerwert 1 zurück
Uname: Linux 2.6.28-15-generic i686

Revision history for this message
dieterdreist (mk-koppenhoefer) wrote :
Revision history for this message
Florian Diesch (diesch) wrote :

Thank you for taking the time to report this issue and helping to make Ubuntu better.

initdb should be in /usr/lib/postgresql/8.3/bin/. There is no pgsql, but maybe you mean psql, which should be in /usr/lib/postgresql/8.3/bin/, too.

According to DpkgTerminalLog.gz you can't start Postgresql because there seems to be a problem with your shared memory configuration:

2009-09-26 16:16:57 CEST LOG: konnte Root-Zertifikat-Datei »root.crt« nicht laden: kein SSL-Fehler berichtet
2009-09-26 16:16:57 CEST DETAIL: Client-Zertifikate werden nicht überprüft werden.
2009-09-26 16:16:57 CEST FATAL: konnte Shared-Memory-Segment nicht erzeugen: Invalid argument
2009-09-26 16:16:57 CEST DETAIL: Fehlgeschlagener Systemaufruf war shmget(key=5432001, größe=140181504, 03600).
2009-09-26 16:16:57 CEST TIPP: Dieser Fehler bedeutet gewöhnlich, dass das von PostgreSQL angeforderte Shared-Memory-Segment den Kernelparameter SHMMAX überschreitet. Sie können entweder die benötigte Shared-Memory-Größe reduzieren oder SHMMAX im Kernel größer konfigurieren. Um die benötigte Shared-Memory-Größe zu reduzieren (aktuell 140181504 Bytes), reduzieren Sie den PostgreSQL-Parameter »shared_buffers« (aktuell 16384) und/oder »max_connections« (aktuell 103).
        Wenn die angeforderte Größe schon klein ist, ist es möglich, dass sie kleiner ist als der Kernelparameter SHMMIN. Dann müssen Sie die benötigte Shared-Memory-Größe erhöhen oder SHMMIN ändern.
        Die PostgreSQL-Dokumentation enthält weitere Informationen über die
        Konfiguration von Shared Memory.
   ...fail!

See http://www.postgresql.org/docs/8.3/static/kernel-resources.html or you locally installed docs for how to fix this.

As this doesn't seem to be a bug I'm are closing it and converting it to a question in the support tracker.

Changed in postgresql-8.3 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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