Automatically prefix localhost connections
See original GitHub issueSo, not making much progress. When trying to start a master node I get this:
WARNING: enabling “trust” authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or –auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
/usr/lib/postgresql/9.4/bin/postgres -D /pgdata/datacd p
or /usr/lib/postgresql/9.4/bin/pg_ctl -D /pgdata/datacd p -l logfile start
waiting for server to start…LOG: database system was shut down at 2016-01-08 01:15:51 UTC LOG: MultiXact member wraparound protections are now enabled LOG: database system is ready to accept connections LOG: autovacuum launcher started done server started 2016-01-08 01:15:52,558 INFO: established a new patroni connection to the postgres cluster 2016-01-08 01:15:53,411 INFO: established a new patroni connection to the postgres cluster 2016-01-08 01:15:54,164 INFO: established a new patroni connection to the postgres cluster 2016-01-08 01:15:55,267 INFO: established a new patroni connection to the postgres cluster 2016-01-08 01:15:56,309 INFO: established a new patroni connection to the postgres cluster 2016-01-08 01:15:56,311 INFO: removing initialize key after failed attempt to initialize the cluster 2016-01-08 01:15:56,320 INFO: renaming data directory to /pgdata/datacd p_2016-01-08-01-15-56 2016-01-08 01:15:56,321 ERROR: Error communicating with Postgresql. Will try again later Traceback (most recent call last):
… and things fail from there. The thing is, PostgreSQL is running, as subsequent attempts to start it fail due to port 5432 already being bound.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (6 by maintainers)
Top GitHub Comments
We need to look into this further.
Well, if we NEED to have local available for initialization to work, why not automatically prefix it regardless of what’s in the parameter? That is, if the user just puts a public IP address, automatically prefix “localhost” to it?