"No such file or directory", "unexpected pageaddr" ...
Das hört sich nach einer kaputten Datenbank oder nach Problemen mit der Festplatte an.
Hab gerade auf meinem frischen Win7 (Professional 64bit) Postgres 8.4.1-1 installiert. Das Setup verläuft ohne Probleme, der Dienst startet und wenn ich dann eine neue leere DB anlegen will, stürtzt das Teil immer ab. Auch eine Neuinstallation (sowohl Win7 als auch Pg) haben nichts geholfen.
Im Logfile steht immer folgendes:
2009-11-03 12:11:35 CETLOG: database system was interrupted; last known up at 2009-11-03 11:27:01 CET
2009-11-03 12:11:35 CETFATAL: the database system is starting up
2009-11-03 12:11:35 CETLOG: database system was not properly shut down; automatic recovery in progress
2009-11-03 12:11:36 CETLOG: redo starts at 0/282974D0
2009-11-03 12:11:36 CETWARNING: could not open directory "base/59037": No such file or directory
2009-11-03 12:11:36 CETCONTEXT: xlog redo drop db: dir 59037/1663
2009-11-03 12:11:36 CETWARNING: some useless files may be left behind in old database directory "base/59037"
2009-11-03 12:11:36 CETCONTEXT: xlog redo drop db: dir 59037/1663
2009-11-03 12:11:36 CETLOG: unexpected pageaddr 0/2029A000 in log file 0, segment 40, offset 2727936
2009-11-03 12:11:36 CETLOG: redo done at 0/28298670
2009-11-03 12:11:36 CETLOG: last completed transaction was at log time 2009-11-03 11:27:02.263+01
2009-11-03 12:11:36 CETFATAL: the database system is starting up
2009-11-03 12:11:37 CETLOG: database system is ready to accept connections
2009-11-03 12:11:37 CETLOG: autovacuum launcher started
2009-11-03 12:13:22 CETPANIC: could not lock semaphore: error code 0
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
2009-11-03 12:13:22 CETLOG: WAL writer process (PID 2932) exited with exit code 3
2009-11-03 12:13:22 CETLOG: terminating any other active server processes
2009-11-03 12:13:22 CETWARNING: terminating connection because of crash of another server process
2009-11-03 12:13:22 CETDETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2009-11-03 12:13:22 CETHINT: In a moment you should be able to reconnect to the database and repeat your command.
2009-11-03 12:13:22 CETWARNING: terminating connection because of crash of another server process
2009-11-03 12:13:22 CETDETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
2009-11-03 12:13:22 CETHINT: In a moment you should be able to reconnect to the database and repeat your command.
2009-11-03 12:13:22 CETLOG: all server processes terminated; reinitializing
2009-11-03 12:13:32 CETFATAL: pre-existing shared memory block is still in use
2009-11-03 12:13:32 CETHINT: Check if there are any old server processes still running, and terminate them.
Kann mir jemand weiter helfen? Bin schön langsam am verzweifeln.
Lg & Danke,
Bernhard
"No such file or directory", "unexpected pageaddr" ...
Das hört sich nach einer kaputten Datenbank oder nach Problemen mit der Festplatte an.
Xandrian: Kurz gesagt: Du hast ein falsches Konzept und willst nicht auf ads hören
Jetzt NEU: PostgreSQL - Datenbankpraxis für Anwender, Administratoren und Entwickler
PostgreSQL Service & Support
Danke für die rasche Antwort. Festplatte ist nicht defekt. Habe daraufhin ein neues leeres Dataverzeichnis mit INITDB auf C:\temp\pgData erstellt. Konnte noch 3 leere Datenbanken anlegen und nach ein paar inserts ist der Server wieder abgestürzt. Diesmal schaut das Log ähnlich aus:
LOG: database system was shut down at 2009-11-03 15:50:14 CET
FATAL: the database system is starting up
LOG: autovacuum launcher started
LOG: database system is ready to accept connections
PANIC: could not lock semaphore: error code 0
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
LOG: WAL writer process (PID 2688) exited with exit code 3
LOG: terminating any other active server processes
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat your command.
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat your command.
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat your command.
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat your command.
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and repeat your command.
LOG: all server processes terminated; reinitializing
FATAL: pre-existing shared memory block is still in use
HINT: Check if there are any old server processes still running, and terminate them.
Lg,
Bernhard
--
Papa-Kind-Kur vom 8. bis 29. September ;-)
PostgreSQL Hosting
http://www.amazon.de/gp/registry/2APKFICAIYMWBads Das hatte dir akretschmer gestern schon gesagt und siehe da sobald du das machst, funktioniert es ;-)
https://www.xing.com/profile/Andreas_Kretschmer7
Windows Firewall ist deaktiviert, Virenscanner (Kaspersky) ist deaktiviert, sonnst läuft auch nichts verdächtiges.
Hab nochmals ein blankes Data Verzeichnis erstellt und nach ein paar inserts wieder den üblichen
PANIC: could not lock semaphore: error code 0
Fehler erhalten.
Deaktiviert bedeutet bei dieser Art von Schadsoftware nicht, daß es keinen Schaden mehr macht.
Andreas
--
Papa-Kind-Kur vom 8. bis 29. September ;-)
PostgreSQL Hosting
http://www.amazon.de/gp/registry/2APKFICAIYMWBads Das hatte dir akretschmer gestern schon gesagt und siehe da sobald du das machst, funktioniert es ;-)
https://www.xing.com/profile/Andreas_Kretschmer7
Danke für die Hilfe. Habe jetzt Kaspersky Anti-Virus 2010 deinstalliert und jetzt funktioniert wieder alles einwandfrei.
Problem gelöst![]()
Xandrian: Kurz gesagt: Du hast ein falsches Konzept und willst nicht auf ads hören
Jetzt NEU: PostgreSQL - Datenbankpraxis für Anwender, Administratoren und Entwickler
PostgreSQL Service & Support
--
Papa-Kind-Kur vom 8. bis 29. September ;-)
PostgreSQL Hosting
http://www.amazon.de/gp/registry/2APKFICAIYMWBads Das hatte dir akretschmer gestern schon gesagt und siehe da sobald du das machst, funktioniert es ;-)
https://www.xing.com/profile/Andreas_Kretschmer7
Xandrian: Kurz gesagt: Du hast ein falsches Konzept und willst nicht auf ads hören
Jetzt NEU: PostgreSQL - Datenbankpraxis für Anwender, Administratoren und Entwickler
PostgreSQL Service & Support
Links: Tobias Bauer - IT- und Funkdienstleistungen - Bilderrahmen-kaufen.de - Der Onlineshop für Bilderrahmen & Fotorahmen - Funkforum
Lesezeichen