-
Notifications
You must be signed in to change notification settings - Fork 13
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
Minimal docker-compose setup fails to start up on M1 Mac #24
Comments
Hi @mikeyhew! What system are you running this on? |
Hi @elprans! I'm running on an M1 mac with Big Sur 11.4, using Docker Desktop for Mac. I don't know any reason why it would behave differently on other systems though - were you able to reproduce it?
|
Can't reproduce on an Intel Mac, so this might be related to x86 emulation on m1, as we don't have native builds for it at the moment. |
That said, non-docker installation method (via the |
@elprans ok thanks for that info. I'll see if I can get some time later to debug this some more. Do you have any ideas of things I could check to try to figure out why the server socket isn't showing up? |
My best guess would be that it's either too slow due to Docker virtualization on macOS on M1 or that things are crashing weirdly. I'd start by adding a bunch of verbose logging:
Please compress the resulting |
Here is the log from running that command: log.txt.gz This might actually be the first docker dependency that I've used since getting my M1 Mac that didn't have an arm64 build, so it's possible that there's issues with the x86_64 emulation that I just haven't encountered yet. If that's the case then it might be worth trying to build this locally for arm64 - would that be possible, and if so what is the correct docker incantation to run once I've cloned this repo? |
From the log it seems like it's just taking longer than the timeout. I'll respin the image making that timeout configurable via an env var. |
To me, based on the log it looks like nothing is happening for the last 110 seconds of the 120 second timeout, so i wouldn't expect increasing the timeout to help. I could be missing something though |
Does |
Good question. I can't do it right now, but I'll check this weekend. |
@elprans yes, running By "real" logs, I mean anything other than this
Which is repeated 22 times at the end, without any other logs in between. That's where I got the 110 seconds from. |
@elprans how hard would it be to create an arm64 version of this image? i think ultimately that would be the best solution, since even if we could get the x86_64 version working, it would still be running under emulation and less performant than a native image. If that's not feasible, then it might make sense to look into getting the x86_64 version working, but it could be there's some obscure bug that happens when running x86_64 containers in emulation in Docker for Mac on M1 Macs that's just not worth trying to track down, whereas having an arm64 version of the image would be more widely beneficial. |
+1 I'm also seeing this issue - unable to docker install or native on my M1 mac. This is for both beta3 and the nightly build. Is there a way to turn on debug logging for the native install? |
You can try |
Thanks @tailhook. I realised this is the docker repo so I've opened edgedb/edgedb#2940 instead. |
This is my docker-compose.yml file:
When I run
docker compose up
, I get this output:The text was updated successfully, but these errors were encountered: