modularml / mojo

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

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

Open treeshateorcs opened 3 days ago

treeshateorcs commented 3 days 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 3 days 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 2 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"]