Re: could not send data to client: Permission denied

Поиск
Список
Период
Сортировка
От Daniel Jakots
Тема Re: could not send data to client: Permission denied
Дата
Msg-id 20200827121449.10ba2efa@anegada
обсуждение исходный текст
Ответ на Re: could not send data to client: Permission denied  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: could not send data to client: Permission denied  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Thu, 27 Aug 2020 09:04:25 -0700, Adrian Klaver
<adrian.klaver@aklaver.com> wrote:

> > In postgresql log, it says:
> > Aug 27 02:10:02 db1 postgres[62464]: [7-1]
> > 10.10.10.43(41816):[unknown]@[unknown]: LOG:  connection received:
> > host=10.10.10.43 port=4181 Aug 27 02:10:02 db1 postgres[62464]:
> > [8-1] 10.10.10.43(41816):api@api: LOG:  connection authorized:
> > user=api database=api Aug 27 02:10:02 db1 postgres[62464]: [9-1]
> > 10.10.10.43(41816):api@api: LOG:  could not send data to client:
> > Permission denied  
> 
> I would think it is the above.
> 
> Are you using some sort of authentication for the API?

Sorry I'm not sure what you mean?

Between the clients and the python code I use some "basic auth" (and IP
restrictions on the reverse proxy). But I can't see how it would cause
the problem.

Between the python code and postgresql, the relevant pg_hba.conf line
is
host    api       api    10.10.10.43/32     scram-sha-256
Since except these two times it always works, why would it fail
then?

Cheers,
Daniel



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: could not send data to client: Permission denied
Следующее
От: Tom Lane
Дата:
Сообщение: Re: could not send data to client: Permission denied