Hello everyone,
I’m having persistent trouble connecting my self-hosted NocoDB instance to a Supabase cloud database. I’ve followed several troubleshooting paths, including another post on this forum, but I’m now stuck.
My Infrastructure:
-
NocoDB: Self-hosted on a Hetzner VPS, running inside a Docker container managed by Portainer.
-
Firewall: Using the Hetzner Cloud Firewall, which is applied to the VPS.
-
Database: A standard cloud-hosted project on Supabase.
## Attempt 1: Direct Database Connection
Initially, I tried to connect using the direct connection details from Supabase.
-
Host:
db.<project-ref>.supabase.co -
Port:
5432 -
User:
postgres.<project-ref> -
SSL: Enabled with
requiremode.
Result: This failed with a DNS error: Connection Failure: getaddrinfo ENOTFOUND db.<project-ref>.supabase.co.
Diagnostics:
-
Running
pingfrom the Hetzner VPS to the Supabase host resolved to an IPv6 address but failed with aDestination unreachable: No routeerror. -
Running
ping -4failed withAddress family for hostname not supported. -
This indicated a client-side DNS or IPv6 routing issue on my VPS.
## Attempt 2: Using the Connection Pooler (Following another forum post)
I found another post suggesting to use the Connection Pooler URL, so I switched my configuration.
-
Host:
aws-0-eu-west-1.pooler.supabase.com -
Port:
6543 -
User:
postgres.<project-ref> -
SSL: Enabled with
requiremode.
Result: This led to a new set of errors, pointing towards the firewall.
-
Initial Error: When testing the connection with
openssl s_client, the command failed withunexpected eof while readingandno peer certificate available. This showed the connection was being dropped instantly. -
Firewall Discovery: I checked my Hetzner Cloud Firewall and discovered I had 0 outbound rules, which means the firewall was operating on a default-deny policy for all outgoing traffic.
-
Firewall Fix: I added a new outbound rule to the Hetzner firewall to
AcceptTCPtraffic on port6543toAnydestination. -
Current Error: After adding the firewall rule, the situation is now:
-
Connecting from the NocoDB UI gives me the error:
Connection Failure: self-signed certificate in certificate chain. -
However, running the diagnostic
openssl s_clientcommand from the VPS terminal still results in the exact sameunexpected eof while readingerror as before, which suggests the firewall rule is not having the desired effect.
-
I seem to be stuck between a firewall that is either blocking the connection or is intercepting it with its own certificate (causing the self-signed error in NocoDB).
Has anyone successfully connected a NocoDB instance from a Hetzner VPS (with the cloud firewall) to Supabase? Is there a known issue with Hetzner’s SSL inspection, or a specific configuration I am missing?
Any help would be greatly appreciated.