Extras icon indicating copy to clipboard operation
Extras copied to clipboard

[Bug]: rancher-desktop 1.17.0 fails to run - failed to get paths: failed to find resources directory

Open kieronlanning opened this issue 11 months ago • 6 comments

Prerequisites

  • [X] I have written a descriptive issue title.
  • [X] I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • [X] I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

rancher-desktop

Expected/Current Behaviour

Current Behaviour

Installing rancher-desktop v1.17.0 (either local user or global) fails to execute rdctl.exe and Rancher Desktop.exe with the following error:

[global install]: failed to get paths: failed to find resources directory: failed to resolve "C:\\ProgramData\\scoop\\apps\\rancher-desktop\\current\\resources\\resources\\win32\\bin\\rdctl.exe": The system cannot find the path specified.

[local install]: failed to get paths: failed to find resources directory: failed to resolve "C:\\Users\\Kieron.Lanning\\scoop\\apps\\rancher-desktop\\current\\resources\\resources\\win32\\bin\\rdctl.exe": The system cannot find the path specified.

Expected Behaviour

Installing rancher-desktop v1.17.0 executes rdctl.exe and Rancher Desktop.exe without issue, as with previous versions.

Steps to Reproduce

PS> scoop install rancher-desktop # optionally using -g from an elevated prompt

Installing 'rancher-desktop' (1.17.0) [64bit] from 'extras' bucket
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: bf8740|OK  |   6.4MiB/s|C:/Users/Kieron.Lanning/scoop/cache/rancher-desktop#1.17.0#84e993a.msi
Download: Status Legend:
Download: (OK):download completed.
Checking hash of Rancher.Desktop.Setup.1.17.0.msi ... ok.
Extracting Rancher.Desktop.Setup.1.17.0.msi ... done.
Linking ~\scoop\apps\rancher-desktop\current => ~\scoop\apps\rancher-desktop\1.17.0
Creating shortcut for Rancher Desktop (Rancher Desktop.exe)
Adding ~\scoop\apps\rancher-desktop\current\resources\resources\win32\bin to your path.
Adding ~\scoop\apps\rancher-desktop\current\resources\resources\linux\bin to your path.
'rancher-desktop' (1.17.0) was installed successfully!
Notes
-----
Rancher Desktop requires WSL (Windows Subsystem for Linux) to work properly.
Learn more about WSL: https://aka.ms/wsl2

PS> rdctl start

2025/01/07 08:07:39 failed to get paths: failed to find resources directory: failed to resolve "C:\\Users\\Kieron.Lanning\\scoop\\apps\\rancher-desktop\\current\\resources\\resources\\win32\\bin\\rdctl.exe": The system cannot find the path specified.

Possible Solution

The only solution I've found is either rollback to a previous version, however there is a bug-fix in 1.17.0 I'm waiting on, or manually install Rancher Desktop using https://github.com/rancher-sandbox/rancher-desktop/releases/download/v1.17.0/Rancher.Desktop.Setup.1.17.0.msi

Installing the msi directly does work.

Scoop and Buckets Version

Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
c368c134c (HEAD -> master, origin/master, origin/HEAD) uv: Update to version 0.5.15

'extras' bucket:
49cedb32c (HEAD -> master, origin/master, origin/HEAD) siyuan-note: Update to version 3.1.19

'sysinternals' bucket:
4aa1b85 (HEAD -> main, origin/main, origin/HEAD) [email protected]: Remove `ctrl2cap.exe` bin

'nonportable' bucket:
40e803ad (HEAD -> master, origin/master, origin/HEAD) office-365-apps-np: Update to version 3.3.3

'java' bucket:
70e70bb0 (HEAD -> master, origin/master, origin/HEAD) semeru23-jre: Update to version 23.0.1-11-0.49.0-m2

Scoop Config

last_update           : 07/01/2025 07:59:51
aria2-enabled         : True
aria2-warning-enabled : False
scoop_repo            : https://github.com/ScoopInstaller/Scoop
scoop_branch          : master
show_update_log       : False

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

kieronlanning avatar Jan 07 '25 08:01 kieronlanning

Just to add some information, if you launch the Rancher Desktop.exe from the 1.17.0 folder instead of the 'current' link it works fine and can be used as a workaround. I suspect that is something related to the link creation and the path handling of the executable. I also tried to

scoop reset rancher-desktop

with no luck.

LCerebo avatar Jan 07 '25 10:01 LCerebo

You can also install rancher-desktop 1.17.0 with config no_junction=true.

Ideally no_junction could be set per-application instead of globally. https://github.com/ScoopInstaller/Scoop/issues/6087

nicerloop avatar Jan 10 '25 21:01 nicerloop

Same issue with new v1.17.1

ath0mas avatar Jan 22 '25 11:01 ath0mas

Same with v1.18.2

spoletum avatar Apr 05 '25 00:04 spoletum

Same with v.1.19.1

henrikschristensen avatar Jun 04 '25 11:06 henrikschristensen

You can also install rancher-desktop 1.17.0 with config no_junction=true.

Ideally no_junction could be set per-application instead of globally. ScoopInstaller/Scoop#6087

This method is very good, it solved the problem.

hansmax avatar Jun 06 '25 15:06 hansmax