Re: pgagent hangs forever in "r" state

From: Sanket Mehta <sanket(dot)mehta(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgAdmin Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgagent hangs forever in "r" state
Date: 2015-07-14 05:37:29
Message-ID: CA+yw=mOw7E3THcjt13QBDB8-+cwYHXEramCDYwKYSKqN8Z-WNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Sure Dave,

I will try and let you know.

Regards,
Sanket Mehta
Sr Software engineer
Enterprisedb

On Mon, Jul 13, 2015 at 7:44 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> Sanket, can you reproduce this?
>
> On Fri, Jul 10, 2015 at 5:41 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> > On 07/10/2015 07:16 AM, Dave Page wrote:
> >> Are you able to get a stacktrace from a running instance that's hung?
> >
> > Yes, but it's not doing anything, it's just polling for the next job.
> >
> >> Also, does setting the logging level to debug reveal anything useful
> >> in the filesystem logs? (pgagent -l2 ....)
> >
> > Nope. And I scanned the postgresql log for SQL errors, and there's
> nothing.
> >
> > What appears to be happening is:
> >
> > 1. pgagent picks up job
> >
> > 2. pgagent finds first step in that job
> >
> > 3. pgagent executes first step (successfully, according to the
> > postgresql log, and according to a fake "touch file" job I added).
> >
> > 4. pgagent abandons the job without updating the status of either the
> > job or the step.
> >
> > 5. pgagent starts polling for new jobs.
> >
> > 6. Repeat 1-5 until all jobs are in "r" state with an assigned agent,
> > but not running.
> >
> > Note that this particular user has now abandoned pgagent and is
> > switching to centrally managed cron, so my ability to get further
> > troubleshooting information will be limited.
> >
> > According to apt-get, this is the latest pgagent package.
> >
> > --
> > Josh Berkus
> > PostgreSQL Experts Inc.
> > http://pgexperts.com
>
>
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Sanket Mehta 2015-07-16 07:19:00 Re: Please add timestamps to pgagent log
Previous Message Dave Page 2015-07-13 14:14:17 Re: pgagent hangs forever in "r" state