PostgreSQL server is not connecting after Service Restart
NickName:Linu Ask DateTime:2019-10-23T03:00:59

PostgreSQL server is not connecting after Service Restart

I have edited my pg_hba file(Added a row at the end host all ..... Xxxxxx/32" and copied it to server and restarted the services by "sudo service postgresql restart" but after that the server is not connecting.

Showing the below error, Your database returned: "Connection to 138.2xx.1xx.xx:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections."

The Jenkins job and data visualization tools are failing which was working fine previously. What could be the reason.

Getting this in PostgreSQL Log

2019-10-23 07:21:25.829 CEST [11761] LOG:  received fast shutdown request
2019-10-23 07:21:25.829 CEST [11761] LOG:  aborting any active transactions
2019-10-23 07:21:25.829 CEST [11766] LOG:  autovacuum launcher shutting down
2019-10-23 07:21:25.832 CEST [11763] LOG:  shutting down
2019-10-23 07:21:25.919 CEST [11761] LOG:  database system is shut down
2019-10-23 07:21:27.068 CEST [22633] LOG:  database system was shut down at 2019-10-23 07:21:25 CEST
2019-10-23 07:21:27.073 CEST [22633] LOG:  MultiXact member wraparound protections are now enabled
2019-10-23 07:21:27.075 CEST [22631] LOG:  database system is ready to accept connections
2019-10-23 07:21:27.075 CEST [22637] LOG:  autovacuum launcher started
2019-10-23 07:21:27.390 CEST [22639] [unknown]@[unknown] LOG:  incomplete startup packet

Copyright Notice:Content Author:「Linu」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/58510745/postgresql-server-is-not-connecting-after-service-restart

More about “PostgreSQL server is not connecting after Service Restart” related questions

PostgreSQL server is not connecting after Service Restart

I have edited my pg_hba file(Added a row at the end host all ..... Xxxxxx/32" and copied it to server and restarted the services by "sudo service postgresql restart" but after that the server is not

Show Detail

PostgreSQL connection issue after service restart

I have edited my pg_hba file and copied it to server and restarted the services by "sudo service postgresql restart" but after that the server is not connecting. Showing the below error, Your data...

Show Detail

Restart PostgreSQL without postgresql-server

I'm on CentOS 7 and I'm trying to get through the 'PG::ConnectionBad: FATAL: Peer authentication failed for user' error. So I've already figured out that I should change pg_hba.conf (peer to md5)...

Show Detail

Is (sudo) service postgresql restart a clean shutdown

I know database indexes can become corrupted if the server crashes. If I do: sudo service postgresql restart can that cause the same kind of corruption as a server crash?

Show Detail

must always restart sql server when connecting with different client

After a BSOD the sql server doesn't work normal anymore. I must restart the SQL SERVER (SQLEXPRESS) service every time I'm connecting with different client (application) e.g: When I'm connecting wi...

Show Detail

Postgresql: Cannot connect to server after computer restart

I'm running macOS Monterey version 12.2. After restarting my laptop I can no longer connect to my postgresql server. and am getting this error: (base) user@user Application Support % brew services

Show Detail

Postgresql will not listen unless restarted after every server restart

I have a weird problem since I updated my Postgresql to 9.4 on my Ubuntu Server. Every time I restart the server, I need to restart manually my PostgreSQL database as well in order that it listen t...

Show Detail

EDB PostgreSQL restart service fails after trying to enable remove connections to database

I've installed a trial version of EDB PostgreSQL 11.3 on a RHEL 7.3 virtual machine. I followed the installation steps and all went well until I tried to connect to the database from pgadmin and go...

Show Detail

SaltStack: restart server (not only reload) on particular change

In most cases it is enough to reload our PostgreSQL server: postgresql_service: service.running: - name: postgresql - enable: True - reload: True - watch: - file: postgresq...

Show Detail

Docker service start after server restart

I'm struggling with dockers (17) on Ubuntu(14). I have to run rabbitMQ on a couple of machines using docker technology. I managed to do that on one of them using sudo docker service create -d --ho...

Show Detail