mycelium icon indicating copy to clipboard operation
mycelium copied to clipboard

Add some helpful error messages

Open scottyeager opened this issue 2 years ago • 1 comments

I ran into a couple errors while starting up mycelium. It would be nice to provide helpful messages to guide the user in these cases.

Error: NixError(EBUSY)

Happens when there's already a tun device in the slot mycelium is trying to use, for example when Yggdrasil or a VPN is running. Maybe this could be resolved by looking for a free index instead (tun0 is taken so try tun1, etc).

Error: NixError(EPERM)

Means we need to run with root permissions. I tried without at first as the readme suggests root isn't needed on Linux.

scottyeager avatar Jan 19 '24 18:01 scottyeager

I confirm. I use a vpn and what worked for me was:

sudo mycelium --peers tcp://83.231.240.31:9651 quic://185.206.122.71:9651 --tun-name utun2

mik-tf avatar Feb 22 '24 02:02 mik-tf