Skip to content

Supabase link fails to connect to postgres on latest (2.61.2) #4503

@pkabra

Description

@pkabra

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 to connect to `host=db.REDACTED.supabase.co user=cli_login_postgres database=postgres`: dial error (dial tcp [REDACTED_IPv6_ADDRESS]:5432: connect: no route to host)

To Reproduce
Steps to reproduce the behavior:

  1. Run npx supabase@latest link
  2. Select a project
  3. Encounter connection error

Expected behavior
Supabase CLI should successfully link to the specified project.

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: 49599b7ca3494a39967aa11b736876f3
  • Version of OS: macOS 15.6.1 (also failing on Github actions runner Ubuntu 24.04)
  • Version of CLI: 2.61.2
  • Version of Docker: v28.4.0

Additional context

This also occurs from Github Actions error. The same error occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions