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

Too many levels of symbolic links when running ls -l /proc/sys/fs/binfmt_misc #15

Open
rubys opened this issue Dec 7, 2020 · 0 comments

Comments

@rubys
Copy link

rubys commented Dec 7, 2020

I'm now seeing the same problem that was reported on the (now archived) ubuntu-wsl2-systemd-script:

DamionGans/ubuntu-wsl2-systemd-script#15

The solution is to add the following to /etc/rc.local in step 6

ls /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || \
  mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc

More background:

Without this fix, I am now seeing the following when attempting to debug an application created using create react app:

[client] Error: spawn WSL Interopability is disabled. Please enable it before using WSL.
[client] C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe ENOENT
[client]     at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)

The error message itself is produced by wslu-header when it is not able to verify that binfmt_misc/WSLInterop is enabled. Googling on that lead me to ubuntu-wsl2-systemd-script issue and ultimate fix.

Apparently, invoking the webpack devserver causes the system default browser to be launched, which in the case of WSL2 involves spawning out to powershell.

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

1 participant