question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatically prefix localhost connections

See original GitHub issue

So, 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:closed
  • Created 8 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
alexeyklyukincommented, Aug 1, 2016

We need to look into this further.

1reaction
jberkuscommented, Jan 8, 2016

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

WAMP server won't prefix localhost and suffix port number
Solution to problem 1 : Locate and open index.php from www directory ( C:\wamp\www\index.php ). Find this line : $UrlPort = $port !==...
Read more >
add a prefix to localhost - Software Engineering Stack Exchange
My question is that I want to add a prefix before localhost for my project url (ie. "dev.localhost/project/default.htm"). This is for an ASP.NET ......
Read more >
5 ways to set the URLs for an ASP.NET Core app
In this post I describe 5 different ways to set which URLs your ASP.NET Core application listens on.
Read more >
What is Local Host? - GeeksforGeeks
This term is generally used in the context of networks. Localhost is not just the name for the virtual server but it is...
Read more >
How to prevent Firefox converting 'localhost/*' URLs into ...
8 Answers 8 · Type about:config in the URL bar, · Create boolean parameter browser.fixup.domainwhitelist.domain_name (replace domain_name with your local domain ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found