Re: Again, problem with pgbouncer

From: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
To: raghu ram <raghuchennuru(at)gmail(dot)com>
Cc: PG-General Mailing List <pgsql-general(at)postgresql(dot)org>, pgbouncer-general(at)pgfoundry(dot)org
Subject: Re: Again, problem with pgbouncer
Date: 2012-10-02 03:29:09
Message-ID: CAFWfU=s8TafXFaobj3vT1X1M3PzxoGpcexG6AtprMe14ZN59iQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 2, 2012 at 12:59 AM, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> wrote:
>> Could you please check permission of /var/run/pgbouncer/ directory. If
>> pgbouncer directory does not have "postgres" user permissions,please assign
>> it and then start the pgbouncer.
>
>
> The /var/run/pgbouncer/ directory has
>
> chown -R postgres:postgres ..
>
> The port number everywhere is already 6789.
>
> What else?

And just to be safe, I also added pgbouncer user to postgres group:

usermod -a -G postgres pgbouncer

Now when I restart the pgbouncess service, it fails. The log has this message:

2012-10-01 23:25:24.004 21037 FATAL
Cannot open logfile: '/var/log/pgbouncer.log':
Permission denied

That file is owned by "postgres:postgres" as indicated in a gazillion
threads and documentation online (none of which is comprehensive) but
just to be sure I also did this:

chown :postgres /var/log/pgbouncer.log

Still the same permission error. Seriously, why can't the log message
be a little more useful? Why can't it say clearly WHICH USER is
looking for permission to the log file? Both "pgbouncer" and
"postgres" have permissions (through the group "postgres") on that
file. So which is it?

Much appreciate any pointers.

Thanks.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ondrej Ivanič 2012-10-02 05:37:39 Re: Can I force a query plan to materialise part?
Previous Message Toby Corkindale 2012-10-02 03:28:32 Re: Can I force a query plan to materialise part?