Re: FW: Can not always connect to postmaster. Sometimes get "Connection refused".

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: FW: Can not always connect to postmaster. Sometimes get "Connection refused".
Дата
Msg-id 25811.1075522089@sss.pgh.pa.us
обсуждение исходный текст
Ответ на FW: Can not always connect to postmaster. Sometimes get "Connection refused".  ("Hamedany, Allen" <Allen.Hamedany@revivio.com>)
Список pgsql-bugs
"Hamedany, Allen" <Allen.Hamedany@revivio.com> writes:
> Sometimes, after Postgres starts up, when the database clients try to
> access the db from the localhost, we get the following error:

> com.solarmetric.kodo.Runtime -
> com.solarmetric.kodo.runtime.FatalDataStoreException: Connection
> refused. Check that the hostname and port are correct and that the
> postmaster is accepting TCP/IP connections.

> Any ideas what's causing postmaster NOT to accept connections some of
> the time?

Nope, can't tell much from that message.  You should look in the
postmaster's log to see if it shows any messages at the time that a
connection fails like this.  (If you are sending the postmaster's stderr
to /dev/null, now would be a good time to stop doing that...)

If the postmaster doesn't log anything at all when this happens, my
conclusion would be that the connection is being rejected at the kernel
level (but why would that happen only intermittently??) or that you have
a network-level problem.  "Connection refused" sounds a bit like a
kernel-level issue, FWIW.  Another thing to ask about is whether there
are any firewall machines between your clients and your database.

            regards, tom lane

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

Предыдущее
От: Orion Henry
Дата:
Сообщение: segfault in psql on x86_64
Следующее
От: Tom Lane
Дата:
Сообщение: Re: signal 11