Jump to content

[Solved] Remote access for postgres please


brettelliot

Recommended Posts

Hi,

 

Im writing a flask app that connects to postgres. My script errors with a 500 and after reading the forums I'm wondering if it's because i need to request remote access. (But i don't know why my script which is running locally would need remote access).

 

Here's the error:

 

psycopg2.OperationalError: FATAL: no pg_hba.conf entry for host "::1", user "brettell_user", database "brettell_test", SSL off

 

Even if remote access is not the cause of my error, I'd like to enable it from any IP because I will want to query it using datagrip anyway. Here are the details:

 

Host: johnny.heliohost.org

Database: brettell_test

User: brettell_user

 

If remote access isn't the problem, perhaps you can take a quick look and let me know what's wrong.

 

Thanks everyone!

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...