Bug#672471: postgresql: apt-get upgrade fails while trying to restart postgres server

May 11th, 2012 - 06:30 am ET by Fernando Fernandez | Report spam
Package: postgresql
Version: 8.4.11-0squeeze1
Severity: critical
Justification: breaks unrelated software


The upgrade process failed on package postgres while restarting the server.
The error message was:
The PostgreSQL server failed to start. Please check the log output:
2012-05-11 11:13:33 WEST FATAL: could not open lock file "/var/run/postgresql/.s.PGSQL.5432.lock": Permission denied

Same error appears whe trying to start the package by hand, running /etc/init.d/postgres start

Tried to chmod 777 /var/run/postgresql but permissions are reset when restarting the server.
Permissions on /var/run/postgresql are:
drwxrwsr-x 2 postgres postgres 4096 May 11 10:21 /var/run/postgresql



Debian Release: 6.0.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages postgresql depends on:
pn postgresql-8.4 <none> (no description available)

postgresql recommends no packages.

postgresql suggests no packages.



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Christoph Berg
May 11th, 2012 - 12:10 pm ET | Report spam
severity 672471 important
tag 672471 unreproducible
thanks

Hi,

Fernando Fernandez schrieb:
chmod 777 /var/run/postgresql but permissions are reset when
restarting the server.
Permissions on /var/run/postgresql are:
drwxrwsr-x 2 postgres postgres 4096 May 11 10:21 /var/run/postgresql



The permissions are correct here. How did the files in the directory look? Were /var and /var/run accessible? Was the passwd file correct for the postgresql user?

Christoph



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics