ubuntuusers.de

Bug in postgresql - Vorsicht bei Update - Stillstand DB

Status: Gelöst | Ubuntu-Version: Ubuntu 12.04 (Precise Pangolin)
Antworten |

curly

Anmeldungsdatum:
2. Mai 2010

Beiträge: 268

Hallo,

FYI: nach dem heutigen Update von Ubuntu 12.04. erreichte mich ein Notruf eines Kunden. Ein intensiver Blick in die logs von postgres zeigte, dass das Cluster mit der DB nicht starten konnte. Es gibt wohl einen Bug in postgres 9.1., sehr wahrscheinlich auch in neueren Versionen. Workaround hier:

https://wiki.postgresql.org/wiki/May_2015_Fsync_Permissions_Bug

Folgendes hilft:

–––––––––––––--snip-––––––––––

As a temporary workaround, change the permissions on any symlinked files to being writable by the Postgres user. For example, on Ubuntu, with PostgreSQL 9.1, the following should work: (as root)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# go to PGDATA directory
cd /var/lib/postgresql/9.1/main

# remove symlinks to SSL certs

rm server.crt
rm server.key 

# copy the SSL certs to the local directory

cp /etc/ssl/certs/ssl-cert-snakeoil.pem server.crt
cp /etc/ssl/private/ssl-cert-snakeoil.key server.key

# set permissions on ssl certs
# and postgres ownership on everything else
# just in case

chown postgres *
chmod 640 server.crt server.key

service postgresql start

You will need to adapt the above example to your specific circumstances, but that should give you a general idea of what to do. The requirement is that the postgres user must have write access to everything in PGDATA or symlinked from PGDATA.

–––––––––––––--snap-––––––––––

Gruß

P.S.: weiss nicht, ob das so in Ordnung ist. Wollte nur anderen lästige Sucharbeit sparen. Falls falsches Forum oder sonstwas zu ändern, dann einfach tun ☺

Moderiert von tomtomtom:

Aus dem Supportbereich verschoben, da keine Supportanfrage vorhanden.

Antworten |