This message was deleted.
# rancher-desktop
a
This message was deleted.
c
Hi Colin, are you referring to the host file on your windows machine? if so, rancher desktop does nothing with that. The host file in the distro should look like something like below (the
172.24.224.1
is the wsl interface IP address):
Copy code
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateHosts = false
127.0.0.1       localhost
127.0.1.1       DESKTOP-PCNAME.localdomain     DESKTOP-PCNAME

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# BEGIN Rancher Desktop configuration.
172.24.224.1 host.rancher-desktop.internal host.docker.internal
# END Rancher Desktop configuration.
w
@calm-sugar-3169 my WSL /etc/hosts is missing the rancher-desktop section
c
hmm, that doesn’t seem right, you may need to recreate it or do a factory reset if you can
not 100% sure why
/etc/hosts
would be missing 🤷
w
same, trying to work through that and replicate it
here's what mine looks like. It could be related to windows updates screwing something up and/or replacing the file.
Copy code
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateHosts = false
127.0.0.1       localhost
127.0.1.1       computer.localdomain   computer

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
I'm doing a factory reset + uninstall + reinstall to see if that helps. maybe there was something upgrade related.
👍 1
c
It's possible because that looks like a default file, and the section we append to it is not there.
w
just out of curiosity, does the section get added on install, versus on startup?
I did manually add the section to /etc/hosts, and it didn't seem to help. but i didn't try to also check the windows hosts file. I tested by curling within WSL, and it couldn't reach my traefik workloads
after reinstall, same thing, missing section:
Copy code
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateHosts = false
127.0.0.1       localhost
127.0.1.1       computer.localdomain   computer

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
I can access my ingress through chrome on windows, but can't curl from WSL
Copy code
krumware@computer:~/code/suse$ curl <http://krum-web.localhost>
curl: (6) Could not resolve host: krum-web.localhost
I have a feeling that your WSL may have gone into weird state that I have encountered a few times in the past. For some reason the networking stack gets into this strange state that everything starts to make no sense which could be related to the dirty iptables. Are you able to do factory reset and then followed by
wsl --shutdown
?
w
I'll try that. I had the same issue on another WSL machine that I'm trying again on now
@calm-sugar-3169 wil any of the crew be at kubecon? travelling that way now, could be convenient to debug in person at some point
c
Hi Colin, yes, there will be some folks at Kubecon for sure, I’m not 100% sure who though. I can find out and let you know.
w
That would be great! Some of this might be related to me deploying the rancher helm chart locally too, but it's difficult to debug
c
SUSE booth at Hall 1, Booth D1, also, talk to @thankful-hospital-82027 he is most likely will be able to debug this with you.
💯 1
w
Awesome, thank you!
t
Hi @witty-honey-18052 , indeed I’ll gladly help you 👍 Let’s talk during the week.
w
Awesome, thanks! I'll be by early if someone's around. This issue is blocking me on Rancher Extensions work and would be great to knock out so I can promote extensions with other partners
t
hi @calm-sugar-3169 , I checked it with Colin and after updating WSL to the store version the Windows host files are not populated with the
rancher.localhost
entry. The workflow Colin uses is then impacted as the address is not reachable from either WSL (integrated distro) or powershell
We’re trying a last test with a previous version of RD and see if there’s a potential regression with 1.8.1