mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

message on startup: ioctl(SIOCGIFADDR): No such device #225

Closed sullyj3 closed 4 years ago

sullyj3 commented 4 years ago

Is printed above the shell prompt. Apologies if this isn't specifically a wsltty issue, I'm not sure where the message comes from or how to go about tracking it down.

Biswa96 commented 4 years ago

Could you provide some information about the issue? Like Windows 10 version? WSL1 or WSL2? What are the network interfaces in WSL? Did you add any network settings in WSL?

sullyj3 commented 4 years ago

Windows 10 build 19041.21

PS C:\Users\James> wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Running         1

(confusingly, I think this means i have wsl 2 - https://askubuntu.com/questions/1177729/wsl-am-i-running-version-1-or-version-2)

james at SurfaceLaptop in ~
❯ ip link show                                                             00:27
1: lo: <LOOPBACK,UP> mtu 1500 group default qlen 1
    link/loopback 00:00:00:00:00:00
19: wifi0: <BROADCAST,MULTICAST,UP> mtu 1500 group default qlen 1
    link/ieee802.11 c4:9d:ed:9a:26:3f
10: wifi1: <> mtu 1500 group default qlen 1
    link/ieee802.11 c6:9d:ed:9a:27:3e
16: wifi2: <> mtu 1500 group default qlen 1
    link/ieee802.11 c6:9d:ed:9a:22:3e

I haven't changed anything network related in WSL, as far as I can recall.

Biswa96 commented 4 years ago

Ohh... It's my fault. wsltty uses wslbridge2. I added an environment variable WSL_GUEST_IP in wslbridge2 backend with which users can access eth0 IP address. But that virtual network interface is available for WSL2 only. I forgot to add the check.

Workaround: Open the wslbridge2 repository, open the Appveyor build badge, download the artifact in Ubuntu build, place it in C:\Users\UserName\AppData\Local\wsltty\bin path.

sullyj3 commented 4 years ago

Cool, seems like it worked!

mintty commented 4 years ago

Is this still an issue or can we close it?

Biswa96 commented 4 years ago

Yes, this can be closed.