supabase link command failed: no route to host

npx supabase link --debug
open supabase/.temp/profile: no such file or directory
Supabase CLI 2.61.2
Using profile: supabase (supabase.co)
Loading project ref from file: supabase/.temp/project-ref
Using access token for profile: supabase
2025/11/25 13:24:04 HTTP GET: https://api.supabase.com/v1/projects
Selected project: yfxschpiwarltuatdeui
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/api-keys?reveal=true
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/postgrest
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/storage
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/network-restrictions
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/auth
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/database/postgres
2025/11/25 13:24:12 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/database/pooler
2025/11/25 13:24:12 HTTP GET: https://yfxschpiwarltuatdeui.supabase.co/auth/v1/health
2025/11/25 13:24:12 HTTP GET: https://yfxschpiwarltuatdeui.supabase.co/rest/v1/
2025/11/25 13:24:12 HTTP GET: https://yfxschpiwarltuatdeui.supabase.co/storage/v1/version
Initialising login role...
2025/11/25 13:24:12 HTTP POST: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/cli/login-role
Connecting to remote database...
failed to connect to postgres: failed to connect to `host=db.yfxschpiwarltuatdeui.supabase.co user=cli_login_postgres database=postgres`: dial error (dial tcp [2406:da14:271:9901:77d0:497b:42d:cc21]:5432: connect: no route to host)
npx supabase link --debug
open supabase/.temp/profile: no such file or directory
Supabase CLI 2.61.2
Using profile: supabase (supabase.co)
Loading project ref from file: supabase/.temp/project-ref
Using access token for profile: supabase
2025/11/25 13:24:04 HTTP GET: https://api.supabase.com/v1/projects
Selected project: yfxschpiwarltuatdeui
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/api-keys?reveal=true
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/postgrest
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/storage
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/network-restrictions
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/auth
2025/11/25 13:24:11 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/database/postgres
2025/11/25 13:24:12 HTTP GET: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/config/database/pooler
2025/11/25 13:24:12 HTTP GET: https://yfxschpiwarltuatdeui.supabase.co/auth/v1/health
2025/11/25 13:24:12 HTTP GET: https://yfxschpiwarltuatdeui.supabase.co/rest/v1/
2025/11/25 13:24:12 HTTP GET: https://yfxschpiwarltuatdeui.supabase.co/storage/v1/version
Initialising login role...
2025/11/25 13:24:12 HTTP POST: https://api.supabase.com/v1/projects/yfxschpiwarltuatdeui/cli/login-role
Connecting to remote database...
failed to connect to postgres: failed to connect to `host=db.yfxschpiwarltuatdeui.supabase.co user=cli_login_postgres database=postgres`: dial error (dial tcp [2406:da14:271:9901:77d0:497b:42d:cc21]:5432: connect: no route to host)
2 Replies
qwertyuiop
qwertyuiop5d ago
Having this same issue on 2.61.2. My previous version was 2.53.6 and the link command works with that version Edit: Looks like there's a fix going to release soon https://github.com/supabase/cli/issues/4503
GitHub
Supabase link fails to connect to postgres on latest (2.61.2) · Is...
Describe the bug Running supabase link using 2.61.2 (latest as of writing this issue) fails to connect to postgres with error: Connecting to remote database... failed to connect to postgres: failed...
『SixthSense』
『SixthSense』OP4d ago
Yeah, @2.62.5 fixed it. ✌️

Did you find this page helpful?