Coder Social home page Coder Social logo

Comments (6)

jonsherrard avatar jonsherrard commented on August 24, 2024 2

Hello there.

I also have this issue. Macbook Pro M2 on OSX.

  1. Install Supabase from Brew
  2. supabase login worked properly
  3. supabase init worked properly
  4. supabase start --debug ends up with failed to connect to postgres: failed to connect to 'host=127.0.0.1 user=postgres database=postgres': dial error (timeout: dial tcp 127.0.0.1:54322: i/o timeout)

I generally can't inspect docker because container closes when postgres fails

I tried npx method and the @beta version too.

from cli.

sweatybridge avatar sweatybridge commented on August 24, 2024 1

What does docker inspect say after running db start? See if you can grab the output from the following steps

  1. start supabase db in background
supabase db start &
  1. run docker inspect
docker inspect supabase_db_<project_id>

from cli.

ric2z avatar ric2z commented on August 24, 2024

I ran only supabase db start & and it worked somehow! Not sure if this was the fix or something else I did inadvertently

from cli.

peperunas avatar peperunas commented on August 24, 2024

I am having the same issue.

It randomly "works" after a while if supabase start is spammed over and over again. Can we please re-open the issue and investigate this more?

@sweatybridge

This is the log of the spawned container:

PostgreSQL init process complete; ready for start up.

 2024-01-14 10:37:23.792 UTC [10] LOG:  pgaudit extension initialized
 2024-01-14 10:37:23.796 UTC [10] LOG:  pgsodium primary server secret key loaded
 2024-01-14 10:37:23.815 UTC [10] LOG:  starting PostgreSQL 15.1 (Ubuntu 15.1-1.pgdg20.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit
 2024-01-14 10:37:23.815 UTC [10] LOG:  listening on IPv4 address "0.0.0.0", port 5432
 2024-01-14 10:37:23.815 UTC [10] LOG:  listening on IPv6 address "::", port 5432
 2024-01-14 10:37:23.817 UTC [10] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
 2024-01-14 10:37:23.819 UTC [157] LOG:  database system was shut down at 2024-01-14 10:37:23 UTC
 2024-01-14 10:37:23.823 UTC [10] LOG:  database system is ready to accept connections
 2024-01-14 10:37:23.823 UTC [160] LOG:  TimescaleDB background worker launcher connected to shared catalogs
 2024-01-14 10:37:23.825 UTC [162] LOG:  pg_cron scheduler started

from cli.

0xhank avatar 0xhank commented on August 24, 2024

I am also running into this issue with a Macbook Pro M2 on OSX.

failed to connect to postgres: failed to connect to `host=127.0.0.1 user=postgres database=postgres`: dial error (timeout: dial tcp 127.0.0.1:54322: i/o timeout)

from cli.

0xhank avatar 0xhank commented on August 24, 2024

It started working fine when I restarted my machine... very odd

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.