Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xjones opened this issue Nov 21, 2024 · 7 comments

Comments

@xjones
Copy link

xjones commented Nov 21, 2024

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
Copy link
Member

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
Copy link
Author

xjones commented Nov 21, 2024

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
Copy link
Author

xjones commented Nov 21, 2024

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

@FelixMalfait
Copy link
Member

@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
Copy link
Author

xjones commented Nov 21, 2024

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

@xjones
Copy link
Author

xjones commented Nov 21, 2024

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

@xjones
Copy link
Author

xjones commented Nov 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants