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.

Error connecting to postgresql instance on Azure

See original GitHub issue

I have postgresql instance on Azure with ssl disabled.

and this is my connection string

HASURA_GRAPHQL_DATABASE_URL: postgres://name%40development-postgresql:pass@development-postgresql.postgres.database.azure.com:5432/name?sslmode=disable

and I keep getting

 {"internal":"FATAL:  no pg_hba.conf entry for host \"xxx.xx.xx.xx\", user \"interxpgadmin\", database \"interx\", SSL on\nFATAL:  no pg_hba.conf entry for host \"190.10.10.147\", user \"interxpgadmin\", database \"interx\", SSL on\n","path":"$","error":"connection error","code":"postgres-error"}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
celvincommented, May 18, 2019

@shahidhk you said (here: https://docs.hasura.io/1.0/graphql/manual/deployment/kubernetes/index.html) that if the password has special characters we need to escape them, but what if the user name has @ or other characters? is hasura able to manage that type of usernames in the database? I have the same trouble and maybe is because azure creates the user with “@”

This is the log output:

{“timestamp”:“2019-05-18T03:19:20.770+0000”,“level”:“info”,“type”:“startup”,“detail”:{“kind”:“serve_options”,“info”:{“auth_hook_mode”:null,“use_prepared_statements”:true,“unauth_role”:null,“stringify_numeric_types”:false,“enable_telemetry”:true,“enable_console”:true,“auth_hook”:null,“cors_config”:{“allowed_origins”:“*”,“disabled”:false,“ws_read_cookie”:null},“admin_secret_set”:true,“port”:8080}}} Fatal Error: JWT conf: Error in $: endOfInput

and the IP of hasura is already in the firewall of postgresql in azure

0reactions
marionschleifercommented, Jul 10, 2019

I’m closing this issue now. Should any of you have any more questions regarding this, please do feel free to re-open it 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot connections - Azure Database for PostgreSQL
Learn how to troubleshoot connection issues to Azure Database for PostgreSQL - Single Server.
Read more >
Unable to connect to Azure Postgres Server 11 - Stack Overflow
1 Answer 1 · Try Adding a VNet rule under "Connection security" -> "VNET Rules". · Try switching Allow access to Azure services...
Read more >
Error Connecting to Azure Database for PostgreSQL server
Hello everyone, I am using windows fusion Auth server. Installation was done successfully. Now I am trying to connect it with the Database....
Read more >
Connections to Azure PostgreSQL fail due to org ... - Jira
Setup an Azure PostgreSQL instance; Attempt to test a connection in the Confluence setup wizard to ... 2021-01-06 19:17:56,961 ERROR [http-nio-8090-exec-8] ...
Read more >
Create a Azure Database PostgreSQL Instance on Azure
If you do not want to use secure connections between Tableau Server and External Repository, you should configure the Azure Database to allow...
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