Red Hat Satellite Postgresql fails to start with error could not bind IPv4 socket: Cannot assign requested address

Solution Verified - Updated -

Issue

  • Red Hat Satellite Postgresql fails to start with the following error:

-- Unit postgresql.service has begun starting up. Aug 14 13:21:25 satellite.example.com pg_ctl[31257]: 2019-08-14 13:21:25 IST LOG: could not bind IPv4 socket: Cannot assign requested address Aug 14 13:21:25 satellite.example.com pg_ctl[31257]: 2019-08-14 13:21:25 IST HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry. Aug 14 13:21:25 satellite.example.com pg_ctl[31257]: 2019-08-14 13:21:25 IST WARNING: could not create listen socket for "localhost" Aug 14 13:21:25 satellite.example.com pg_ctl[31257]: 2019-08-14 13:21:25 IST FATAL: could not create any TCP/IP sockets Aug 14 13:21:26 satellite.example.com pg_ctl[31257]: pg_ctl: could not start server Aug 14 13:21:26 satellite.example.com pg_ctl[31257]: Examine the log output. Aug 14 13:21:26 satellite.example.com systemd[1]: postgresql.service: control process exited, code=exited status=1 Aug 14 13:21:26 satellite.example.com systemd[1]: Failed to start PostgreSQL database server. -- Subject: Unit postgresql.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit postgresql.service has failed. -- -- The result is failed. Aug 14 13:21:26 satellite.example.com systemd[1]: Unit postgresql.service entered failed state. Aug 14 13:21:26 satellite.example.com systemd[1]: postgresql.service failed.

Environment

  • Red Hat Satellite 6.x
  • Red Hat Satellite 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content