modularml / mojo

The Mojo Programming Language
https://docs.modular.com/mojo/manual/
Other
23.36k stars 2.6k forks source link

[Magic CLI]: nothing happens when i run any magic command #3707

Open treeshateorcs opened 1 month ago

treeshateorcs commented 1 month ago

Issue description

i've tried magic init, magic self-update, and magic install. when i run any of them it's just stuck, with no output. i wait for a minute or so, then ^c

here's strace magic init -vvvv https://0x0.st/XUr-.txt

also, it consumes 100% of one of my cpu threads

Steps to reproduce

Version Info

- magic 0.3.1 - (based on pixi 0.29.0)
- arch linux btw
- x86_64
- i'm using zsh shell, but i've tried this in bash with the same results
morne commented 1 month ago

I've had the same issue, and the same environment as yours (arch linux, x86_64, zsh).

It seems to be network related somehow. I have an openvpn client that I run to connect to a remote server. When the client is running, I get the behaviour that your are describing above. When I stop the client, then magic works correctly again.

I've tried disabling the telemetry and enabling it, the issue persists. The only common denominator that I could find was the stopping and starting of the openvpn client.

ForteDexe commented 1 month ago

Same issue on Ubuntu. I use tailscale, did turn it off, but no help. magic -V or -h worked though magic 0.4.0 - (based on pixi 0.33.0)

This version worked: magic 0.3.0 Download from here: https://dl.modular.com/public/magic/raw

0.3.1 didn't work, maybe related to this:

v0.3.1 (2024-10-03)
Fixes a certification error when fetching some packages
Fixes for telemetry data
Added controls to disable telemetry for magic
Print the pixi version with the magic --version command

could be because this channel is ded: channels = ["conda-forge", "https://conda.modular.com/max"]

jsoques commented 4 weeks ago

Same issue here all command just freeze except for --help and --version

towpi13 commented 3 weeks ago

I have this problem since months ago so I uninstalled it and move on. I'm surprised it's still not has been fixed

ehsanmok commented 2 weeks ago

Could try rm -rf ~/.modular and install magic again?

Ahajha commented 1 week ago

I believe magic 0.3.0 had a serious regression with regards to resolution time. magic 0.4.0 is out now and no longer has this issue.

ltjkoomen commented 4 days ago

Same issue on Ubuntu. I use tailscale, did turn it off, but no help. magic -V or -h worked though magic 0.4.0 - (based on pixi 0.33.0)

This version worked: magic 0.3.0 Download from here: https://dl.modular.com/public/magic/raw

0.3.1 didn't work, maybe related to this:

v0.3.1 (2024-10-03)
Fixes a certification error when fetching some packages
Fixes for telemetry data
Added controls to disable telemetry for magic
Print the pixi version with the magic --version command

could be because this channel is ded: channels = ["conda-forge", "https://conda.modular.com/max"]

I have the same findings on Ubuntu 22.04.5, using NordVPN. Magic version 0.3.0 is the last version that works while I'm connected to the VPN, starting with 0.3.1 magic CLI hangs when doing anything other than --version or --help while connected to the VPN.