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

wslhostpatcher stopped working #17

Open
mf-guse opened this issue Dec 12, 2022 · 2 comments
Open

wslhostpatcher stopped working #17

mf-guse opened this issue Dec 12, 2022 · 2 comments

Comments

@mf-guse
Copy link

mf-guse commented Dec 12, 2022

I've been using wslhostpatcher successfully for a while to get access to my locally running Rancher-Desktop from an Domain from outside (only for development purposes).

Setup:

  • Windows 10 Enterprise
  • Rancher Desktop 1.6.2
  • WSL 2 1.0

My workflow was:

  • start Rancher Desktop
  • run wslhostpatcher.exe
  • restart Rancher Desktop

Since the last WSL2 update it stopped working, the applications running in Rancher Desktop are no more available from outside.

Unfortunately it is very uncomfortable without wslhostpatcher to make applications available which are running in the WSL2.

Is there any help? Any new version of wslhostpatcher?

@mapokapo
Copy link

I've also tried recently running WSLHostPatcher but it just simply wouldn't work.

  1. When the unzipped WSLHostPatcher folder is in a Windows path (eg. "/mnt/c/WSLHostPatcher"), then I get the error:
/mnt/c/WSLHostPatcher/WSLHostPatcher.exe: Invalid argument
  1. When the WSLHostPatcher folder is in a WSL path (eg. "/home/user/WSLHostPatcher/WSLHostPatcher.exe"), it hangs for around 1 minute before outputting the same error. I've made sure the file is chmod +x'd, and that the WSL user is the owner of the file.

I've also tried running it as sudo from WSL, which outputs the same error.
I've also tried running it as an admin from the command prompt in the Windows folder, which simply outputs "Access is denied." (for both admins and users).

@CzBiX
Copy link
Owner

CzBiX commented Oct 18, 2024

@mapokapo This seems to be a different issue.

First, check if the file's permissions are set correctly in Windows, and then check if the file is corrupted.
Also, check if any antivirus software are blocking the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants