pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Auto Vacuum not starting unless postgres is restarted
5+ messages / 3 participants
[nested] [flat]

* Auto Vacuum not starting unless postgres is restarted
@ 2006-09-15 12:11 Nick Howden <n.howden@eris.qinetiq.com>
  2006-09-15 14:01 ` Re: Auto Vacuum not starting unless postgres is restarted Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Nick Howden @ 2006-09-15 12:11 UTC (permalink / raw)
  To: pgsql-admin

Hi, 

On startup we get an error in the postgres log that the Autovacuum process has 
failed to start -- "autovacuum not started because of misconfiguration". 
However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the  
autovacuum starts fine.

Does anybody have any idea what the problem might be?

Postgres Version: 8.1
OS: Ubuntu Linux 6.0.6

-- 
Nick Howden -  Senior IT Analyst
QinetiQ Trusted Information Management
Woodward Building, Room B009
Malvern Technology Park, WR14 3PS
Telephone 01684 895566, Fax 896660

The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution, 
or any action taken or omitted to be taken in reliance on such information is
prohibited and may be unlawful




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Auto Vacuum not starting unless postgres is restarted
  2006-09-15 12:11 Auto Vacuum not starting unless postgres is restarted Nick Howden <n.howden@eris.qinetiq.com>
@ 2006-09-15 14:01 ` Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Alvaro Herrera @ 2006-09-15 14:01 UTC (permalink / raw)
  To: Nick Howden <n.howden@eris.qinetiq.com>; +Cc: pgsql-admin

Nick Howden wrote:
> Hi, 
> 
> On startup we get an error in the postgres log that the Autovacuum process has 
> failed to start -- "autovacuum not started because of misconfiguration". 
> However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the  
> autovacuum starts fine.
> 
> Does anybody have any idea what the problem might be?

Do you have a message about failure to start the statistics collector as
well (on the first try), which is missing on the reattempt?

It may be that the startup firewall policy (at the time the PostgreSQL
is first started) is restrictive, and is relaxed later on the boot
process.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Auto Vacuum not starting unless postgres is restarted
@ 2006-09-15 13:08 Nick Howden <n.howden@eris.qinetiq.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Nick Howden @ 2006-09-15 13:08 UTC (permalink / raw)
  To: pgsql-admin

Hi, 

On startup we get an error in the postgres log that the Autovacuum process has 
failed to start -- "autovacuum not started because of misconfiguration". 
However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the  
autovacuum starts fine.

Does anybody have any idea what the problem might be?

Postgres Version: 8.1.4
OS: Ubuntu Linux 6.0.6

Thanks

Nick
-- 
Nick Howden -  Senior IT Analyst
QinetiQ Trusted Information Management
Woodward Building, Room B009
Malvern Technology Park, WR14 3PS
Telephone 01684 895566, Fax 896660

The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution, 
or any action taken or omitted to be taken in reliance on such information is
prohibited and may be unlawful




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Auto Vacuum not starting unless postgres is restarted
@ 2006-09-15 15:57 Nick Howden <n.howden@eris.qinetiq.com>
  2006-09-15 16:27 ` Re: Auto Vacuum not starting unless postgres is restarted Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Nick Howden @ 2006-09-15 15:57 UTC (permalink / raw)
  To: pgsql-admin

>> Hi, 
>> 
>> On startup we get an error in the postgres log that the Autovacuum process 
has 
>> failed to start -- "autovacuum not started because of misconfiguration". 
>> However, if we do a restart (/etc/init/d/postgresql8.1 restart) then the  
>> autovacuum starts fine.
>> 
>> Does anybody have any idea what the problem might be?

> Do you have a message about failure to start the statistics collector as
> well (on the first try), which is missing on the reattempt?
>
>It may be that the startup firewall policy (at the time the PostgreSQL
>is first started) is restrictive, and is relaxed later on the boot
>process.

Yes, I do have the message about the failure to start the statistics 
collector.

The firewall rules I have are :
# Postgres Statistics Collector
iptables -A INPUT -p udp \
         -i lo --sport 32779 --dport 32779 \
         -j ACCEPT

iptables -A OUTPUT -p udp \
         -o lo --sport 32779 --dport 32779 \
         -j ACCEPT
###

iptables -A INPUT -p tcp \
         --sport 1024:65535 \
         --dport 5432 \
         -m state --state NEW,ESTABLISHED,RELATED \
         -j ACCEPT


iptables -A OUTPUT -p tcp  \
         --dport 1024:65535 \
         --sport 5432 \
         -m state --state ESTABLISHED,RELATED  \
         -j ACCEPT

but these should be the same both during boot and after the boot process has 
finished

Nick
-- 
Nick Howden -  Senior IT Analyst
QinetiQ Trusted Information Management
Woodward Building, Room B009
Malvern Technology Park, WR14 3PS
Telephone 01684 895566, Fax 896660

The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution, 
or any action taken or omitted to be taken in reliance on such information is
prohibited and may be unlawful




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Auto Vacuum not starting unless postgres is restarted
  2006-09-15 15:57 Re: Auto Vacuum not starting unless postgres is restarted Nick Howden <n.howden@eris.qinetiq.com>
@ 2006-09-15 16:27 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2006-09-15 16:27 UTC (permalink / raw)
  To: n.howden@eris.qinetiq.com; +Cc: pgsql-admin

Nick Howden <n.howden@eris.qinetiq.com> writes:
> The firewall rules I have are :
> # Postgres Statistics Collector
> iptables -A INPUT -p udp \
>          -i lo --sport 32779 --dport 32779 \
>          -j ACCEPT

> iptables -A OUTPUT -p udp \
>          -o lo --sport 32779 --dport 32779 \
>          -j ACCEPT
> ###

Apparently somebody fired up postgres, noted the UDP port number it
happened to have bound to that particular time, and assumed that that
was the only possibility.  This is not so.  If I were you I'd just drop
the port-number constraints ... local loopback UDP traffic is not a
major source of security threats.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2006-09-15 16:27 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-09-15 12:11 Auto Vacuum not starting unless postgres is restarted Nick Howden <n.howden@eris.qinetiq.com>
2006-09-15 14:01 ` Alvaro Herrera <alvherre@commandprompt.com>
2006-09-15 13:08 Auto Vacuum not starting unless postgres is restarted Nick Howden <n.howden@eris.qinetiq.com>
2006-09-15 15:57 Re: Auto Vacuum not starting unless postgres is restarted Nick Howden <n.howden@eris.qinetiq.com>
2006-09-15 16:27 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox