Unix Technical Forum

pgAgent problems

This is a discussion on pgAgent problems within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> I am having problems with pgAgent. I installed the seervice with the following command: C:\Program Files\PostgreSQL\8.1\bin>"C:\Program Files\PostgreSQL\8.1\bin\pgAgent" INSTALL pgAgent ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:23 PM
Benjamin Krajmalnik
 
Posts: n/a
Default pgAgent problems

I am having problems with pgAgent.
I installed the seervice with the following command:

C:\Program Files\PostgreSQL\8.1\bin>"C:\Program Files\PostgreSQL\8.1\bin\pgAgent" INSTALL pgAgent -u postgres -p postgres -t 60 hostaddr=127.0.0.1 dbname=postgres user=postgres

In the services, the path to executable is set as follows:

C:\Program Files\PostgreSQL\8.1\bin\pgAgent RUN pgAgent -t 60 hostaddr=127.0.0.1 dbname=postgres user=postgres

The directory where pgAgent is located is not on the path.

I scheduled a job - everything looks correct.
The job shows up as scheduled for the next execution time.
I checked the pgagent schema in the postgres database (which is the one specified in the connection), and I see the job, steps, etc.

The information for the job is as follows:
Name: ishield - calculate control limits
ID: 2
Enabled: yes
Host Agent: left blank
Job Class: Data Summarisation
Created: 4/5/2006 10:06:26 AM
Changed: 4/5/2006 10:06:26 AM
Next run: 4/5/2006 12:00:00 PM
Last Run: blank
Last result: unknown
Running at: Not Currently Running
Comment:

This job should have run at 12. It is already past the scheduled time and the job has not run.
Any suggestions will be deeply appreciated.
The windows event log shows the service as having started successfully, but I see no additional logging.

Thanks in advance,

Benjamin




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:23 PM
Dave Page
 
Posts: n/a
Default Re: pgAgent problems




On 5/4/06 19:18, "Benjamin Krajmalnik" <kraj@illumen.com> wrote:

> I am having problems with pgAgent.
> I installed the seervice with the following command:
>
> C:\Program Files\PostgreSQL\8.1\bin>"C:\Program
> Files\PostgreSQL\8.1\bin\pgAgent" INSTALL pgAgent -u postgres -p postgres-t
> 60 hostaddr=127.0.0.1 dbname=postgres user=postgres
>
> In the services, the path to executable is set as follows:
>
> C:\Program Files\PostgreSQL\8.1\bin\pgAgent RUN pgAgent -t 60
> hostaddr=127.0.0.1 dbname=postgres user=postgres
>
> The directory where pgAgent is located is not on the path.
>
> I scheduled a job - everything looks correct.
> The job shows up as scheduled for the next execution time.
> I checked the pgagent schema in the postgres database (which is the one
> specified in the connection), and I see the job, steps, etc.
>
> The information for the job is as follows:
> Name: ishield - calculate control limits
> ID: 2
> Enabled: yes
> Host Agent: left blank
> Job Class: Data Summarisation
> Created: 4/5/2006 10:06:26 AM
> Changed: 4/5/2006 10:06:26 AM
> Next run: 4/5/2006 12:00:00 PM
> Last Run: blank
> Last result: unknown
> Running at: Not Currently Running
> Comment:
>
> This job should have run at 12. It is already past the scheduled time and the
> job has not run.
> Any suggestions will be deeply appreciated.
> The windows event log shows the service as having started successfully, but I
> see no additional logging.
>

If you reinstall the service with *l 2 as an extra option, then schedule a
new job there should be a load of extra debug data in the event log to tell
us whatšs going wrong.

One thing that does spring to mind is that you didnšt mention how the agent
authenticates to the database * have you setup a pgpass.conf file in your
postgres useršs %APPDATA% directory, or granted trusted access in
pg_hba.conf?

Regards, Dave.
>
>
>
>




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com