https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
a

adamant-kite-43734

06/24/2022, 6:37 PM
This message was deleted.
w

wide-mechanic-33041

06/24/2022, 8:25 PM
Anything useful in the Logs when you go through the Troubleshooting section? maybe in background or k3s that might indicate the issue?
b

bulky-chef-93710

06/27/2022, 6:01 PM
Hey @wide-mechanic-33041 thanks for helping. Looks like both were collecting logs over the weekend. The background file has just a ton of these:
Copy code
2022-06-24T18:45:57.298Z: Launching background process Win32 socket proxy.
2022-06-24T18:45:58.223Z: Background process Credentials Helper Host Proxy exited with status 1 signal null
and the k3s file, in terms of errors has this sort of thing
Copy code
time="2022-06-24T18:47:19Z" level=info msg="Connecting to proxy" url="<wss://127.0.0.1:6443/v1-k3s/connect>"
time="2022-06-24T18:47:19Z" level=error msg="Failed to connect to proxy" error="websocket: bad handshake"
time="2022-06-24T18:47:19Z" level=error msg="Remotedialer proxy error" error="websocket: bad handshake"
I zipped my logs folder and attached here
w

wide-mechanic-33041

06/27/2022, 6:32 PM
i have seen those errors when i have env vars configured in my WSL environment. I don’t believe I see them when running without an http_proxy, but I have other issues in those scenarios.
b

bulky-chef-93710

06/27/2022, 9:08 PM
is there anything i can do to try to clean up or reset my WSL environment so that Rancher works correctly? i haven't been playing with my WSL in any meaningful way
So ive officially tried what i think of as everything. I totally uninstall rancher, unregistered all rancher data and ubuntu drives from wsl and started with a totally fresh ubuntu. I targeted ubuntu at wsl2. Then I tried re-installing Rancher desktop 1.4.1 and i got the exact same issues still. I have no idea what else to try after that level of a clean restart
w

wide-mechanic-33041

06/29/2022, 8:19 PM
so Rancher doesn’t use Ubuntu?
It has it’s own Alpine image based distro where containerd/dockerd run
b

bulky-chef-93710

06/29/2022, 8:20 PM
so it's not actually related to the WSL integration at all? That's where i had the docker daemon running and containers and I had the checkbox checked for wsl integration (back when it actaully worked)
w

wide-mechanic-33041

06/29/2022, 8:21 PM
so were you using RD at all? Or were you running docker-engine in your Ubnt?
or were you just using the calls into the RD distro like you would from Windows using the shim clients
b

bulky-chef-93710

06/29/2022, 8:25 PM
basically i would just install RD, let it do its thing to install of the dependencies it needs, open it, and then run a dotnet cake command (wrapping around a docker-compose command) that would setup our testing infrastructure. I could run that command on either windows cmd line or in ubuntu. i think i started doing everything in ubuntu because thats where i could manually install the docker engine without docker desktop since we cant use that
w

wide-mechanic-33041

06/29/2022, 8:26 PM
k so the containers were running in alpine and not in your ubuntu. you could docker ps them sure, but they were not “local”
b

bulky-chef-93710

06/29/2022, 8:26 PM
gothca i see that now so the integration is just for exposure to ubuntu
w

wide-mechanic-33041

06/29/2022, 8:27 PM
only hits i am finding for that error points at proxy configs in your distro. So you are sure that you don’t have any http_proxy like env statements anywhere in rancher-desktop distro?
b

bulky-chef-93710

06/29/2022, 8:29 PM
where would i be able to find that proxy config if any exists?
w

wide-mechanic-33041

06/29/2022, 8:30 PM
rdctl shell
to get into your Alpine distro and then
env
should show your environ
b

bulky-chef-93710

06/29/2022, 8:32 PM
nope no http_proxy variables setup in env:
Copy code
/mnt/c/Windows/System32 # env
USER=root
SHLVL=1
HOME=/root
WSL_DISTRO_NAME=rancher-desktop
LOGNAME=root
WSL_INTEROP=/run/WSL/4679_interop
NAME=jbaum-w02093
TERM=xterm-256color
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/WindowsApps/Microsoft.PowerShell_7.2.5.0_x64__8wekyb3d8bbwe:/mnt/c/Program Files/Eclipse Foundation/jdk-8.0.302.8-hotspot/bin:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Users/j.baum/AppData/Roaming/nvm:/mnt/c/Program Files/nodejs:/mnt/c/Program Files/Amazon/AWSCLIV2/:/mnt/c/Program Files/dotnet/:/mnt/c/Program Files (x86)/Microsoft SQL Server/150/DTS/Binn/:/mnt/c/Program Files/Microsoft SQL Server/130/Tools/Binn/:/mnt/c/Program Files/Microsoft SQL Server/Client SDK/ODBC/170/Tools/Binn/:/mnt/c/Program Files/Azure Data Studio/bin:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Microsoft SQL Server/150/Tools/Binn/:/mnt/c/Program Files (x86)/dotnet/:/mnt/c/Users/j.baum/scoop/shims:/mnt/c/Users/j.baum/.windows-build-tools/python27/:/mnt/c/Users/j.baum/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/j.baum/AppData/Roaming/npm:/mnt/c/Users/j.baum/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/j.baum/.dotnet/tools:/mnt/c/Program Files/Vault:/mnt/c/Program Files/MySQL/MySQL Workbench 6.2 CE:/mnt/c/Users/j.baum/Documents/Bats:/mnt/c/Program Files (x86)/NuGet:/mnt/c/Program Files (x86)/Android/android-sdk/platform-tools:/mnt/c/Program Files (x86)/Android/android-sdk/tools:/mnt/c/Program Files (x86)/Android/android-sdk/tools/bin:/mnt/c/Program Files/ChromeDriver:/mnt/c/DkSource/~/.tfenv/bin:/mnt/c/Users/j.baum/.dotnet/tools:/mnt/c/Users/j.baum/.dotnet/tools:/mnt/c/Users/j.baum/AppData/Local/Programs/Rancher Desktop/resources/resources/win32/bin:/mnt/c/Users/j.baum/AppData/Local/Programs/Rancher Desktop/resources/resources/linux/bin
LANG=en_US.UTF-8
SHELL=/bin/sh
PWD=/mnt/c/Windows/System32
HOSTTYPE=x86_64
WSLENV=
w

wide-mechanic-33041

06/29/2022, 8:33 PM
hmm head scratcher for me then. Probably need the rancher crew to lean in on their thoughts.
b

bulky-chef-93710

07/14/2022, 5:41 PM
Hello - i never received any help from Rancher experts on this issue. This still exists for me. Does anyone from the Rancher team have time to help me. I've uninstalled, deleted everything, unregistered all WSL rancher distros, and reinstalled Rancher desktop multiple times. Nothing ever fixes rancher startup issues. I can never get a clean install and app startup where the cluster starts successfully and image manager is ready.
k

kind-iron-72902

07/14/2022, 8:32 PM
Could you open a Windows Cmd shell (not powershell) and run
set
and dump the output here (you might want to pull out any personal or sensitive info)?
b

bulky-chef-93710

07/15/2022, 4:32 PM
hey @kind-iron-72902 - yeah i can do this. from my most recent investigations, I feel like it definitely has something to do with dns resolutions from inside rancher-desktop wsl distro, although I dont know how to fix it. Basically what i'm noticing is anything like "nslookup google.com" will always timeout inside rancher-desktop
here is my set command
@kind-iron-72902 - eventually figured it out with some help internally at my company. The issue was actually that I had the Hyper-V windows feature enabled on my machine. Turning this off, restarting, and doing a clean install of RD fixed the issue for. I think Hyper-V messed with the ipconfig type stuff on my machine in a way that Rancher does not support which the led to DNS issues. Is this a known issue? Something worth a bug ticket for?
k

kind-iron-72902

07/15/2022, 9:00 PM
Thanks for digging in. Would you mind opening a ticket at https://github.com/rancher-sandbox/rancher-desktop/issues ? At the least it'll make a good doc issue.
💯 1
w

wide-mechanic-33041

07/18/2022, 12:46 PM
well and since hyper-v (really just hypervisor framework) is needed for WSL2 bit of a headscratcher on why things would be working if it wasn’t reinstalled
b

bulky-chef-93710

07/18/2022, 1:07 PM
wsl2 does use some hyper-v features underneath but it doesn't actually require hyper-v be turned on explicitly as a feature in windows. Turning the actual feature on must do something else in terms of networking that breaks rancher dns resolution
w

wide-mechanic-33041

07/18/2022, 1:08 PM
yup hyper-v got split into hypervisor framework and the management side. still the same hypervisor and virtual switching under the covers.
WSL2 does use the Internet Connection Sharing service for it’s egress
the whole “branding” for the features is a bit of a mess with the virtual machine platform, windows hyp framework, and hyper-v mmc and platform all still listed. hard to know what is needed and what the differences are.
68 Views