Network unreachable
Can't access one of our projects. None of our projects are self-hosted.
While for another project of ours, everything is smooth. The dns looks different:
$ npx supabase link --project-ref cudrojvjehpceexsxcrc
Initialising login role...
Connecting to remote database...
failed to connect to postgres: failed to connect to `host=db.cudrojvjehpceexsxcrc.supabase.co user=cli_login_postgres database=postgres`: dial error (dial tcp [2600:1f18:2e13:9d18:75b9:72d0:9439:ba62]:5432: connect: network is unreachable)
Try rerunning the command with --debug to troubleshoot the error.
$ ping db.cudrojvjehpceexsxcrc.supabase.co
ping: connect: Network is unreachable
$ dig +all db.cudrojvjehpceexsxcrc.supabase.co
; <<>> DiG 9.18.39-0ubuntu0.22.04.2-Ubuntu <<>> +all db.cudrojvjehpceexsxcrc.supabase.co
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57766
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;db.cudrojvjehpceexsxcrc.supabase.co. IN A
;; AUTHORITY SECTION:
supabase.co. 30 IN SOA christina.ns.cloudflare.com. dns.cloudflare.com. 2389541190 10000 2400 604800 30
;; Query time: 7 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Tue Nov 25 08:24:50 CET 2025
;; MSG SIZE rcvd: 131
$ npx supabase link --project-ref cudrojvjehpceexsxcrc
Initialising login role...
Connecting to remote database...
failed to connect to postgres: failed to connect to `host=db.cudrojvjehpceexsxcrc.supabase.co user=cli_login_postgres database=postgres`: dial error (dial tcp [2600:1f18:2e13:9d18:75b9:72d0:9439:ba62]:5432: connect: network is unreachable)
Try rerunning the command with --debug to troubleshoot the error.
$ ping db.cudrojvjehpceexsxcrc.supabase.co
ping: connect: Network is unreachable
$ dig +all db.cudrojvjehpceexsxcrc.supabase.co
; <<>> DiG 9.18.39-0ubuntu0.22.04.2-Ubuntu <<>> +all db.cudrojvjehpceexsxcrc.supabase.co
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57766
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;db.cudrojvjehpceexsxcrc.supabase.co. IN A
;; AUTHORITY SECTION:
supabase.co. 30 IN SOA christina.ns.cloudflare.com. dns.cloudflare.com. 2389541190 10000 2400 604800 30
;; Query time: 7 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Tue Nov 25 08:24:50 CET 2025
;; MSG SIZE rcvd: 131
$ dig +all db.llxysjttxxdawdsvrxdl.supabase.co
; <<>> DiG 9.18.39-0ubuntu0.22.04.2-Ubuntu <<>> +all db.llxysjttxxdawdsvrxdl.supabase.co
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19694
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;db.llxysjttxxdawdsvrxdl.supabase.co. IN A
;; ANSWER SECTION:
db.llxysjttxxdawdsvrxdl.supabase.co. 30 IN A 54.177.6.151
$ dig +all db.llxysjttxxdawdsvrxdl.supabase.co
; <<>> DiG 9.18.39-0ubuntu0.22.04.2-Ubuntu <<>> +all db.llxysjttxxdawdsvrxdl.supabase.co
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19694
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;db.llxysjttxxdawdsvrxdl.supabase.co. IN A
;; ANSWER SECTION:
db.llxysjttxxdawdsvrxdl.supabase.co. 30 IN A 54.177.6.151
2 Replies
You cannot ping the db url. That is not enabled.