pg_autovacuum does not start on system startup - 8.0 Release -

From: "Harald Massa" <ghum(at)gmx(dot)net>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: pg_autovacuum does not start on system startup - 8.0 Release -
Date: 2005-01-24 10:11:40
Message-ID: 25190.1106561500@www19.gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

I installed 8.0 release.

I updated pg_autovacuum to the highest patchlevel provided by dave page.
Installation now goes smooth on one computer, but:

the service fails to start on system startup. When I later start that
service "manually" (control panel, management, services, start service or
net start pg_autovacuum), everything runs fine.

Within service configuration there is a dependency to PostgreSQL Database
Server 8.0 (I only entered the service-id when installing, windows correctly
resolves that ID to a service name)

Within service configuration of PostgreSQL database there is an entry for
PostgreSQL Auto Vacuum within "programms dependand of this service"

(All translations by head of myself from german windows)

But: on computer startup the service fails to start. Eventlog presents:

"""
Die Beschreibung der Ereigniskennung ( 0 ) in ( PostgreSQL Auto Vacuum )
wurde nicht gefunden. Der lokale Computer verfügt nicht über die zum
Anzeigen der Meldungen von einem Remotecomputer erforderlichen
Registrierungsinformationen oder DLL-Meldungsdateien. Möglicherweise müssen
Sie das Flag /AUXSOURCE= zum Ermitteln der Beschreibung verwenden. Weitere
Informationen stehen in Hilfe und Support. Ereignisinformationen: Failed
connection to database template1 with error: konnte nicht mit dem Server
verbinden: Connection refused (0x0000274D/10061)
Läuft der Server auf dem Host »???« und akzeptiert er
TCP/IP-Verbindungen auf Port 5432?
"""

(2 times , 1 second in distance)

and finally:

"""
Die Beschreibung der Ereigniskennung ( 0 ) in ( PostgreSQL Auto Vacuum )
wurde nicht gefunden. Der lokale Computer verfügt nicht über die zum
Anzeigen der Meldungen von einem Remotecomputer erforderlichen
Registrierungsinformationen oder DLL-Meldungsdateien. Möglicherweise müssen
Sie das Flag /AUXSOURCE= zum Ermitteln der Beschreibung verwenden. Weitere
Informationen stehen in Hilfe und Support. Ereignisinformationen: Cannot
connect to template1, exiting..
"""

(the first part is only that there are no ressources for that messages
present.)

It looks as if the pg_autovacuum really waits for the postgresql service to
be startet, BUT that the postgreSQL service is not willing to answer that
quick to connection attempts.

As said... I can start that service manually after Windows starts talking to
me. What can I do to make it run properly?

(acutal workaround will be: .cmd in autostart with "sleep 20 seconds, net
start pg_autocacuum")

Harald

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Dave Page 2005-01-24 10:29:48 Re: pg_autovacuum does not start on system startup - 8.0 Release -
Previous Message Magnus Hagander 2005-01-24 08:42:33 Re: Automatic installs