twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
23.04k stars 2.41k forks source link

macOS - make postgres-on-docker hangs on "Waiting for PostgreSQL to be ready..." #8630

Open xjones opened 1 day ago

xjones commented 1 day ago

I'm following the steps to install Twenty locally on an M4 Max MacBook Pro. I have all of the pre-reqs and Docker installed. When I run make postgres-on-docker it hangs. I can see the Docker container in the Docker console but no visibility into what's happening inside.

make postgres-on-docker
docker run -d \
    --name twenty_pg \
    -e PGUSER_SUPERUSER=postgres \
    -e PGPASSWORD_SUPERUSER=twenty \
    -e ALLOW_NOSSL=true \
    -v twenty_db_data:/home/postgres/pgdata \
    -p 5432:5432 \
    twentycrm/twenty-postgres-spilo:latest
5043e9147946a4a75842da8975fc0c8c9045d74d4a394c1142d33c9315e985cf
Waiting for PostgreSQL to be ready...
FelixMalfait commented 1 day ago

Could you please check your container logs?

E.g. if you use the Docker GUI: Image

I just removed all images/cache and tried from scratch and it seemed to work for me...

Thanks

xjones commented 20 hours ago

I looked at the logs and didn't see anything. Already deleted the container so will clear all images/cache and try again. will post results.

xjones commented 19 hours ago

getting the same result. here's the log.Image

FelixMalfait commented 18 hours ago

@xjones strange because as you see I had the same logs and it worked for me 🤔. Maybe there's a problem with the port like a conflict if you already have postgres running locally? It seemed Postgres properly started in your case

xjones commented 15 hours ago

I don't have postgres running locally. looking for any debugging advice.

xjones commented 14 hours ago

looks like postgres is on port 5432. I don't see any conflicts.

xjones commented 14 hours ago

I installed postgres locally via brew and followed the remaining local setup instructions. yarn failed with a bunch of errors. not sure what's wrong and if it's my config or not. that said, while I am interested in trying Twenty I don't have time to dive into what's wrong getting things installed. if there's any info you'd like from me to debug on your end, let me know.

akirayorunoe commented 2 hours ago

same issue when using make redis-on-docker