Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RancherDesktop can not be installed #770

Closed
hohwille opened this issue May 30, 2022 · 3 comments · Fixed by devonfw/ide-mirrors#15, #775 or #792
Closed

RancherDesktop can not be installed #770

hohwille opened this issue May 30, 2022 · 3 comments · Fixed by devonfw/ide-mirrors#15, #775 or #792
Assignees
Labels
bug Something isn't working setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) software software-package with 3rd party products

Comments

@hohwille
Copy link
Member

Expected behavior

devon docker setup should simply work

Actual behavior

It does not even manage to download RancherDesktop.

Steps to reproduce (bug) / Use Case of feature request (enhancement)

devon docker setup
Rancher Desktop set as option
Starting installation of rancher in version 1.3.0 to /d/projects/mmm/updates/install/rancherdesktop

******** ATTENTION ********
ERROR: Download of rancher in version 1.3.0 failed after trying 0 mirror(s).
We are sorry for the inconvenience. Please check the above errors, resolve them and try again.

Related/Dependent Issues

#690

Comments/Hints:

Check mirrors

Affected version:

  • 2022.04.001
  • OS: tested on Windows, most probably all plattforms
@hohwille hohwille added bug Something isn't working software software-package with 3rd party products setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) labels May 30, 2022
@hohwille hohwille added this to the mirrors milestone May 30, 2022
hohwille pushed a commit to devonfw/ide-mirrors that referenced this issue May 30, 2022
@hohwille
Copy link
Member Author

hohwille commented May 30, 2022

Download now works but next error is:

devon docker setup
Rancher Desktop set as option
Starting installation of rancher in version 1.3.0 to /d/projects/devonfw/updates/install/rancherdesktop
Trying to download rancher-1.3.0-windows.exe from https://github.com/rancher-sandbox/rancher-desktop/releases/download/v1.3.0/Rancher.Desktop.Setup.1.3.0.exe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  365M  100  365M    0     0   579k      0  0:10:45  0:10:45 --:--:--  831k
Successfully extracted/moved archive rancher-1.3.0-windows.exe to updates/extracted
Successfully installed (installation software for) rancher
Installing Rancher Desktop for Windows...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 7315k  100 7315k    0     0   738k      0  0:00:09  0:00:09 --:--:--  802k
between mv and pushd

wsl-vpnkit v0.3.2
This distro is only intended for running wsl-vpnkit.

Run the following commands from Windows or other WSL 2 distros to use.

    wsl.exe -d wsl-vpnkit service wsl-vpnkit start
    wsl.exe -d wsl-vpnkit service wsl-vpnkit stop

The following file will be copied if it does not already exist.

    /mnt/c/Users/hohwille/wsl-vpnkit/wsl-gvproxy.exe

Logs for wsl-vpnkit can be viewed here.

    wsl.exe -d wsl-vpnkit tail -f /var/log/wsl-vpnkit.log

Config for wsl-vpnkit can be edited here.

    /mnt/c/Users/hohwille/wsl-vpnkit/wsl-vpnkit.conf

Run the following command to see the default values.

    wsl.exe -d wsl-vpnkit cat /app/defaults.conf

Press [enter] key to continue...


/bin/sh: bash: not found

I cannot tell where this /bin/sh: bash: not found comes from but it seems the installation process is still not working correct.
Also I am confused what the log-line between mv and pushd should tell me.
Further, from the log output I can not tell if the error occurred whilst installing vpnkit or if that succeeded and the error happened afterwards while installing RancherDesktop.

What is all that output messages from vpnkit telling me?
Do I have to manually start vpnkit via wsl.exe -d wsl-vpnkit service wsl-vpnkit start - do I have to start this every time after booting windows and before launching RancherDesktop?
If so, this is not a final solution for our end-users.

@hohwille
Copy link
Member Author

Also I tested the story #710 that was implemented with PR #760
I manually called the following command

wsl.exe -d wsl-vpnkit service wsl-vpnkit start

It succeeded but gave me no output at all.
I also verified that the WSL container is present:

PS C:\Users\hohwille> wsl --list
Windows Subsystem for Linux Distributions:
rancher-desktop-data (Default)
rancher-desktop
wsl-vpnkit

Then I launched RancherDesktop while I was connected with VPN via Cisco AnyConnect and got the same error as always:
RancherDesktop-VPN-issue

Further observations:

wsl.exe -d wsl-vpnkit cat /app/defaults.conf
cat: can't open 'C:/Program Files/Git/app/defaults.conf': No such file or directory
 wsl.exe -d wsl-vpnkit tail -f /var/log/wsl-vpnkit.log
tail: can't open 'C:/Program Files/Git/var/log/wsl-vpnkit.log': No such file or directory
tail: no files

The above commands work in powershell or CMD but as I ran the setup in git-bash and got this logged as output and was even forced to confirm this, I think users will be slightly confused by all this.

@hohwille
Copy link
Member Author

I now also got this in red (system error output):

mv : The file exists.
At D:\projects\devonfw\vpnkit-setup.ps1:1 char:1
+ mv wsl-vpnkit.tar.gz $env:USERPROFILE
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (D:\projects\devonfw\wsl-vpnkit.tar.gz:FileInfo) [Move-Item], IOException
    + FullyQualifiedErrorId : MoveFileInfoItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand

Seems to happen if VPN Kit installation is run multiple times (so more and edge-case but we should also try to resolve this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working setup related to the setup process of devonfw-ide (setup[.bat] and devon ... setup) software software-package with 3rd party products
Projects
None yet
2 participants