Skip to content

Supabase Studio unable to connect to database #13389

@JamesPartington

Description

@JamesPartington

Bug Report

Environment

Operating System: macOS Monterey 12.4
Processor: Apple M1 Pro

Installed Version

Command Used to Install: brew install supabase/tap/supabase
Supabase Version: 1.47.0
Supabase Configuration: Default

Issue Description

I am unable to use certain features of the Supabase local studio at http://localhost:54323/project/default. Specifically, I cannot view any tables, nor can I run any SQL on the editors. When I attempt to run a simple SQL query such as SELECT version();, I receive the error message: "An error has occurred: Invalid URL".

Cause of Issue

This issue began after upgrading Supabase, although I do not remember the specific version number of the previous installation. The issue persists even after attempting to resolve it through various troubleshooting steps.

Functioning Features

I am able to successfully run the following Supabase commands:

supabase init
supabase start
supabase db reset
Additionally, I am able to connect to the database using the command psql 'postgres://postgres:postgres@localhost:54322/postgres' < database-dump-all.sql.

Troubleshooting Steps
I have attempted the following steps to resolve the issue, but the problem persists:

Uninstalled and reinstalled Supabase using Homebrew.
Restarted the computer.
Deleted all Docker images, containers, and volumes.
Ran supabase start after removing everything in Docker.
Tried using Chrome and Safari

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingself-hostedRelated to self-hosted Supabase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions