Thread: Error: absolute path not allowed
I am getting a repeating error and not sure what why.
2013-01-08 06:12:08 MSTERROR: absolute path not allowed
2013-01-08 06:12:08 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
2013-01-08 06:42:10 MSTERROR: absolute path not allowed
2013-01-08 06:42:10 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
2013-01-08 07:12:01 MSTERROR: absolute path not allowed
2013-01-08 07:12:01 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
2013-01-08 07:42:02 MSTERROR: absolute path not allowed
2013-01-08 07:42:02 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
Anyone know why I’m getting this?
0___ Wolfgang Schwurack
c/ /'_ DBA/SA
(*) \(*) University of Utah/UEN
Tel: (801) 587-9444
email: wolf@uen.org
On Tue, Jan 8, 2013 at 8:09 AM, Wolf Schwurack <wolf@uen.org> wrote: > I am getting a repeating error and not sure what why. > > > > 2013-01-08 06:12:08 MSTERROR: absolute path not allowed > > 2013-01-08 06:12:08 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576) > > 2013-01-08 06:42:10 MSTERROR: absolute path not allowed > > 2013-01-08 06:42:10 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576) > > 2013-01-08 07:12:01 MSTERROR: absolute path not allowed > > 2013-01-08 07:12:01 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576) > > 2013-01-08 07:42:02 MSTERROR: absolute path not allowed > > 2013-01-08 07:42:02 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576) > > > > Anyone know why I’m getting this? Just a guess but it looks like $1 has an absolute path (i.e. it starts with / )
I am getting a repeating error and not sure what why.
2013-01-08 06:12:08 MSTERROR: absolute path not allowed
2013-01-08 06:12:08 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
2013-01-08 06:42:10 MSTERROR: absolute path not allowed
2013-01-08 06:42:10 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
2013-01-08 07:12:01 MSTERROR: absolute path not allowed
2013-01-08 07:12:01 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
2013-01-08 07:42:02 MSTERROR: absolute path not allowed
2013-01-08 07:42:02 MSTSTATEMENT: SELECT pg_read_file($1, 0, 1048576)
How do I find what is calling pg_read_file -- View this message in context: http://postgresql.1045698.n5.nabble.com/Error-absolute-path-not-allowed-tp5739320p5739424.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
Look at your log line prefix setting in postgresql.conf. Specifically log things like db, host, username, etc. On Wed, Jan 9, 2013 at 12:50 PM, wschwurack <wolf@uen.org> wrote: > How do I find what is calling pg_read_file > > > > -- > View this message in context: http://postgresql.1045698.n5.nabble.com/Error-absolute-path-not-allowed-tp5739320p5739424.html > Sent from the PostgreSQL - general mailing list archive at Nabble.com. > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general -- To understand recursion, one must first understand recursion.
How do I find what is calling pg_read_file
I did some more debugging and found that I'm only getting the errors on the databases that is being monitored by Postgres Enterprise Manager. I Will have to contact EnterpriseDB support -- View this message in context: http://postgresql.1045698.n5.nabble.com/Error-absolute-path-not-allowed-tp5739320p5739545.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
I added the values to log_line_prefix but this still doesn't give me anymore info on why I'm getting the error log_line_prefix = '%t [%p]: [%1-1] db=%d, user=%u, client=%h ' 2013-01-10 07:42:03 MST [8555]: [-1] db=postgres, user=postgres, client=10.11.0.200 ERROR: absolute path not allowed 2013-01-10 07:42:03 MST [8555]: [-1] db=postgres, user=postgres, client=10.11.0.200 STATEMENT: SELECT pg_read_file($1, 0, 1048576) the client is the database server I ran the query, no rows found postgres=# select proname from pg_proc postgres-# where prosrc like '%pg_read_file%' postgres-# and pronamespace=(select oid from pg_namespace where nspname='public'); proname --------- (0 rows) -- View this message in context: http://postgresql.1045698.n5.nabble.com/Error-absolute-path-not-allowed-tp5739320p5739543.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
I found what pg_read_file didn't like. With the help of enterprisedb support which gave me the steps to see what was wrong 1. set log_min_duration_statement = 0 in postgresql.conf: This will log all statements 2. select pg_reload_conf(); reloads the parameters 3. Wait until the error message come up again. The problem was I had set parameter hba_file to the soft link. I change the parameter to the correct path which fixed the problem. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Error-absolute-path-not-allowed-tp5739320p5739598.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.