-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Magic CLI]: Command “magic init my-project” runs indefinitely on Ubuntu 24.04.1 LTS #3872
Comments
Hi, happening to me too:
Edit: not happening (working fine) on another machine having Ubuntu 22.04 LTS, x86-64, magic 0.5.1 |
Can you run with |
can you try with |
If you are on macos can you run |
Have the same issue on Arch so I don't think it's an ubuntu problem. Running strace it looks like it locks up at 100% CPU right after it closes some socket.. so I guess whatever
|
Thanks! I pushed a pre-release build of magic 0.6.0 that may (or may not) resolve the deadlocking issue a few people have been hitting. We still haven't been able to reproduce the issue some folks are seeing internally but this build has mitigations that might help from the traces we received and has an new ENV that may help if it still doesn't (based on hunch on where the issue might be coming from with doing socket establishment in certain network environments with a telemetry server even if telemetry isn't being sent). You can install this (assuming magic isn't deadlocking for you) with If it is I made a script to directly reinstall this pre-release: If it still locks up for you with this build you can try doing |
Hi @zbowling , thanks! So, for information, in my case:
|
Can confirm the same, Flipping that env var back to false makes it deadlock again. Thanks for looking into this! |
Awesome. Thanks for letting me know. Still trying to get a repro internally but the fact that new env override works narrows it down a bit. It’s something about specific network environments I can’t replicate and probably an updated crash reporting, telemetry, and SSL library not all playing well together. If you don’t want to keep setting the env you can also now do ‘magic telemetry --disable’ and it should persist and avoid the issue on that build. |
Thanks for the quick update and the patch! The pre-release build of magic 0.6.0 resolved the deadlocking issue for me. I used the provided curl command to install the pre-release and followed the instructions: export MAGIC_TELEMETRY=false
magic init my-project Everything is working smoothly now. Thanks for your help! |
Issue description
The magic shell command runs indefinitely without completing or showing any output. Similarly, when trying to initialize a project using magic init my-project, the same behavior occurs. Both commands hang indefinitely without providing any feedback or errors.
Expected behavior:
The commands should complete successfully, either initializing a project or setting up the environment.
Steps to reproduce
Steps to Reproduce:
curl -ssL https://magic.modular.com/4519bd52-ec0f-43e6-a8d1-865720aafd1e | bash
The command confirms the CLI is installed successfully.
Result: The command hangs indefinitely.
Version Info
The text was updated successfully, but these errors were encountered: