Discussion:
BUG #7983: Problem with pgAgent.
(too old to reply)
m***@oi.com.br
2013-03-21 20:12:41 UTC
Permalink
The following bug has been logged on the website:

Bug reference: 7983
Logged by: Marcelo Nunes
Email address: ***@oi.com.br
PostgreSQL version: 9.1.4
Operating system: Linux Red Hat 6
Description:

Hello, good afternoon.

When trying to run a batch in pgAgent the following error occurs.

DEBUG: Checking for jobs to run
DEBUG: Sleeping... sh: /tmp/pga_GvQxqM/5_9.scr: Permission denied
DEBUG: Clearing inactive connections
DEBUG: Connection stats: total - 1, free - 0, deleted - 0
DEBUG: Checking for jobs to run
DEBUG: Sleeping...

I have no idea what may be happening. The / tmp is allowed for everyone.

Thanks,
Marcelo Nunes
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Michael Paquier
2013-03-21 22:55:36 UTC
Permalink
Post by m***@oi.com.br
run a batch in pgAgent the following error occurs.
DEBUG: Checking for jobs to run
DEBUG: Sleeping... sh: /tmp/pga_GvQxqM/5_9.scr: Permission denied
DEBUG: Clearing inactive connections
DEBUG: Connection stats: total - 1, free - 0, deleted - 0
DEBUG: Checking for jobs to run
DEBUG: Sleeping...
I have no idea what may be happening. The / tmp is allowed for everyone.
Isn't this bug something related with pgAdmin?
You should perhaps report this bug to their dedicated ML instead:
http://www.pgadmin.org/support/list.php
--
Michael
Dave Page
2013-03-22 10:29:44 UTC
Permalink
Post by m***@oi.com.br
Bug reference: 7983
Logged by: Marcelo Nunes
PostgreSQL version: 9.1.4
Operating system: Linux Red Hat 6
Hello, good afternoon.
When trying to run a batch in pgAgent the following error occurs.
DEBUG: Checking for jobs to run
DEBUG: Sleeping... sh: /tmp/pga_GvQxqM/5_9.scr: Permission denied
DEBUG: Clearing inactive connections
DEBUG: Connection stats: total - 1, free - 0, deleted - 0
DEBUG: Checking for jobs to run
DEBUG: Sleeping...
I have no idea what may be happening. The / tmp is allowed for everyone.
Is /tmp mounted with the noexec option?

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Marcelo Matheus
2013-03-22 15:58:16 UTC
Permalink
Hello, Dave.

The pemissões of / tmp are:

[***@vmpjebdh /]# ls -ld /tmp
drwxrwxrwt. 18 root root 4096 Mar 22 12:29 /tmp

Thanks,
Marcelo Matheus



--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-7983-Problem-with-pgAgent-tp5749215p5749296.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Dave Page
2013-03-22 17:51:53 UTC
Permalink
On Fri, Mar 22, 2013 at 11:58 AM, Marcelo Matheus
Post by Marcelo Matheus
Hello, Dave.
drwxrwxrwt. 18 root root 4096 Mar 22 12:29 /tmp
Right, but is it mounted with noexec? Look at the output from the mount command.


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Marcelo Matheus
2013-03-22 18:23:59 UTC
Permalink
Good afternoon, Dave.

The output of led mount brings the following about the / tmp:

/dev/mapper/vg_vmpjebdh2-LogVol01 on /tmp type ext4
(rw,noexec,nosuid,nodev,noat
ime)
Thanks,
Marcelo Matheus



--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-7983-Problem-with-pgAgent-tp5749215p5749308.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Dave Page
2013-03-23 11:51:18 UTC
Permalink
Hi

On Fri, Mar 22, 2013 at 2:23 PM, Marcelo Matheus
Post by Marcelo Matheus
Good afternoon, Dave.
/dev/mapper/vg_vmpjebdh2-LogVol01 on /tmp type ext4
(rw,noexec,nosuid,nodev,noat
ime)
That's likely the issue then - you need to mount /tmp without the
noexec option for pgAgent to be able to work.


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Marcelo Matheus
2013-03-25 20:21:23 UTC
Permalink
Good afternoon, Dave.

That was it, bingo!

Thank you for your help.



--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-7983-Problem-with-pgAgent-tp5749215p5749598.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Loading...