PostgreSQL La base de donnees la plus sophistiquee au monde.

Forums PostgreSQL.fr

Le forum officiel de la communauté francophone de PostgreSQL

Vous n'êtes pas identifié(e).

#1 30/09/2011 13:57:37

bibi68
Membre

Demarrage automatique PostgreSQL sur XP SP2

Bonjour,

Je viens d'installer PostgreSQL sur un poste windows XP SP2 et j'ai un soucis au niveau du démarrage automatique de la base de donnée lors du démarrage de l'ordinateur. En effet, en me rendant dans "services.msc" après le démarrage, le service PostgreSQL est configuré sur démarraga automatique et est dans l'état "démarré", mais celui-ci n'est pas utilisable avant d'effectuer un redémarrage du système.
Auriez-vous une idée d'où peut venir ce problème?

Merci de vos réponse

Hors ligne

#2 30/09/2011 14:04:51

Marc Cousin
Membre

Re : Demarrage automatique PostgreSQL sur XP SP2

Aucune, mais il est probable que l'explication doit se trouver dans le fichier de log de postgres (dans le sous répertoire pg_log du répertoire d'installation de l'instance).


Marc.

Hors ligne

#3 14/10/2011 10:59:46

bibi68
Membre

Re : Demarrage automatique PostgreSQL sur XP SP2

Bonjour,

Tout d'abord merci de votre réponse. Je viens de recupérer les fichiers de log sur l'ordinateur en question ( ce n'est pas le mien d'où le temps entre les deux messages) et voici les erreurs qui se répètent régulièrement :

2011-10-03 08:29:54 CEST LOG:  database system was shut down at 2011-10-03 08:29:44 CEST
2011-10-03 08:29:54 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
2011-10-03 08:29:54 CEST FATAL:  the database system is starting up
2011-10-03 08:29:54 CEST LOG:  database system is ready to accept connections
2011-10-03 08:29:55 CEST LOG:  autovacuum launcher started
2011-10-03 08:29:55 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
2011-10-03 08:30:24 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
2011-10-03 08:30:25 CEST ERROR:  unrecognized configuration parameter "ssl_renegotiation_limit"
2011-10-03 08:30:25 CEST STATEMENT:  SET ssl_renegotiation_limit=0
2011-10-03 08:32:06 CEST LOG:  could not receive data from client: Unknown winsock error 10061
2011-10-03 08:32:06 CEST LOG:  unexpected EOF on client connection
2011-10-03 09:10:38 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
2011-10-03 09:10:38 CEST ERROR:  unrecognized configuration parameter "ssl_renegotiation_limit"
2011-10-03 09:10:38 CEST STATEMENT:  SET ssl_renegotiation_limit=0
2011-10-03 09:11:03 CEST LOG:  could not receive data from client: Unknown winsock error 10061
2011-10-03 09:11:03 CEST LOG:  unexpected EOF on client connection
2011-10-03 11:16:49 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
2011-10-03 11:16:50 CEST ERROR:  unrecognized configuration parameter "ssl_renegotiation_limit"
2011-10-03 11:16:50 CEST STATEMENT:  SET ssl_renegotiation_limit=0
2011-10-03 11:41:16 CEST LOG:  could not receive data from client: Unknown winsock error 10061
2011-10-03 11:41:16 CEST LOG:  unexpected EOF on client connection
2011-10-03 11:42:27 CEST LOG:  received fast shutdown request
2011-10-03 11:42:27 CEST LOG:  aborting any active transactions
2011-10-03 11:42:28 CEST LOG:  autovacuum launcher shutting down
2011-10-03 11:42:29 CEST LOG:  shutting down
2011-10-03 11:42:31 CEST LOG:  database system is shut down

et voici une autre erreur que je retrouve regulièrement :

2011-09-30 10:26:40 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
2011-09-30 10:26:40 CEST FATAL:  the database system is starting up
2011-09-30 10:26:40 CEST LOG:  database system was shut down at 2011-09-30 10:25:16 CEST
2011-09-30 10:26:41 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
2011-09-30 10:26:41 CEST FATAL:  the database system is starting up
2011-09-30 10:26:42 CEST LOG:  database system is ready to accept connections
2011-09-30 10:26:42 CEST LOG:  autovacuum launcher started
2011-09-30 10:26:42 CEST LOG:  loaded library "$libdir/plugins/plugin_debugger.dll"
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
2011-09-30 10:28:42 CEST WARNING:  worker took too long to start; cancelled
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
2011-09-30 10:29:42 CEST WARNING:  worker took too long to start; cancelled
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
2011-09-30 10:30:42 CEST WARNING:  worker took too long to start; cancelled
FATAL:  could not reattach to shared memory (key=1800, addr=016C0000): 487
2011-09-30 10:31:21 CEST LOG:  received fast shutdown request
2011-09-30 10:31:21 CEST LOG:  aborting any active transactions
2011-09-30 10:31:21 CEST LOG:  autovacuum launcher shutting down
2011-09-30 10:31:21 CEST LOG:  shutting down
2011-09-30 10:31:21 CEST LOG:  database system is shut down

Avez-vous une idée d'où peut venir ce problème ? La base de donnée ne démarre toujours pas au démarrage de l'ordinateur, mais fonctionne après le redemarrage via le gestionnaire de service windows (services.msc).

Merci de vos réponses.

Hors ligne

#4 14/10/2011 11:25:16

Marc Cousin
Membre

Re : Demarrage automatique PostgreSQL sur XP SP2

La première série de messages montre des erreurs winsock 10061. Celles-ci se produisent régulièrement quand des antivirus ou firewall bloquent PostgreSQL.

La seconde est, je crois, un bug spécifique à la version Windows de PostgreSQL, qui est il me semble corrigé depuis un moment (j'ai très peu de d'installations sous Windows, donc peu de recul), ou pourrait aussi être lié à un problème d'antivirus/firewall.

Pouvez-vous essayer de supprimer les antivirus/firewall le temps de faire un test ? (les désactiver n'est même pas toujours suffisant).

Par ailleurs, quelle version exacte de PostgreSQL est-ce ?


Marc.

Hors ligne

Pied de page des forums