Re: Port 25060 failed: FATAL: pg_hba.conf rejects connection for host on Digital OCean

Поиск
Список
Период
Сортировка
От Aditya Toshniwal
Тема Re: Port 25060 failed: FATAL: pg_hba.conf rejects connection for host on Digital OCean
Дата
Msg-id CAM9w-_nQ1AXKJpAdUVccPKTs3V0VcNsJQo9v_AKLmWcyroV-=w@mail.gmail.com
обсуждение исходный текст
Ответ на Port 25060 failed: FATAL: pg_hba.conf rejects connection for host on Digital OCean  (Uma Annamalai <uannamalai7@gmail.com>)
Список pgadmin-support
Hi Uma,

This is the pgAdmin mailing list. Since the error is coming from PostgreSQL server, you will get better support/solutions if you send this to - pgsql-admin@postgresql.org

On Tue, May 16, 2023 at 12:52 PM Uma Annamalai <uannamalai7@gmail.com> wrote:
We did not have any issue but did not run the prisma DB seeding for months and when the team tried to re-do it, we experienced the below error within the Pgadmin. We've been blocked for over 1 week now and tried so many things and nothing works.
Full error: connection to server at "DBNAME.b.db.ondigitalocean.com" (IP address), port 25060 failed: FATAL: pg_hba.conf rejects connection for host "IP address", user "NAME", database "NAME", SSL encryption
connection to server at "DBNAME.b.db.ondigitalocean.com" (IP Address), port 25060 failed: FATAL: no pg_hba.conf entry for host "IP Address", user "NAME", database "NAME", no encryption

  • Does the order that you type out the updated information into the pg_hba.conf file matter? If so what is the correct order?
  • What are the steps that I can take to resolve the issue? Do any of the articles referenced already actually provide the solution?
  • Is this error occurring because I'm not on md5 method and it is on the default scram-sha-256?
The current pg_hba.conf file looks like this. After we tried making the changes recommended in the links, our postgresql stopped working all together so we reverted back to the original file.

# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all scram-sha-256
# IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all scram-sha-256
host replication all 127.0.0.1/32 scram-sha-256
host replication all ::1/128 scram-sha-256


We have looked into somewhat related articles here on stack exchange. Tried changing it to event listeners is * and changed to host all all 0.0.0.0/0 with trusted per user. Its still saying the same error and we expected the error to be resolved.

Also another thing is that in our Digital Ocean server - the SSL is default set to required and it is not allowing a change. This same required is stuck and not allowing it to be changed within the SSH portion of the Postgresql. Some folks have indicated that the SSL needs to be changed to true or that the reason for the issue is a mismatch between the SSL security in Digital Ocean versus Postgresql. But we are not able to attempt a change. 

  • How would we be able to change the SSL to true if that is what will help resolve the issue?
Uma


--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Architect | enterprisedb.com
"Don't Complain about Heat, Plant a TREE"

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

Предыдущее
От: Uma Annamalai
Дата:
Сообщение: Port 25060 failed: FATAL: pg_hba.conf rejects connection for host on Digital OCean
Следующее
От: Simon Thorpe
Дата:
Сообщение: Re: Help with running pgadmin in a docker container