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

\\wsl$ not reachable. Name for the Networkservice is invalid #3861

Closed
zackmuc opened this issue Feb 18, 2019 · 28 comments
Closed

\\wsl$ not reachable. Name for the Networkservice is invalid #3861

zackmuc opened this issue Feb 18, 2019 · 28 comments

Comments

@zackmuc
Copy link

zackmuc commented Feb 18, 2019

Windows 10 18836.rs_prerelease.190208-1649 (German)

  • If i do the following things i get an error nor not the expired result:
    Open installed Ubuntu subsystem and typing "Explorer.exe ." I land in my documents folder
    Opening "\wsl$" in explorer shows an error that the Network service is invalid

  • What's wrong / what should be happening instead:
    errorwsl
    I cannot reach the Windows LInux subsystem folders/files

@benhillis
Copy link
Member

The instance must currently be running in order to see the files. We are working on changing this behavior.

@zackmuc
Copy link
Author

zackmuc commented Feb 18, 2019

But it is running, cause i did "explorer.exe ." in bash
fehler2
tempsnip

@benhillis
Copy link
Member

Interesting, @SvenGroot will likely want to take a look.

@zackmuc
Copy link
Author

zackmuc commented Feb 18, 2019

Sure

@benhillis
Copy link
Member

@zackmuc - Are you able to see the contents if you use a full path? For example:

cmd.exe /c dir \wsl$\Ubuntu-18.04\

Replace Ubuntu-18.04 with whatever your distro is called

@zackmuc
Copy link
Author

zackmuc commented Feb 19, 2019

Does not work .. says .. path not found

@gojimmypi
Copy link

@benhillis did you really intend only one leading \ in your suggestion, above?

In any case, none work for me:

image

image

image

@zackmuc
Copy link
Author

zackmuc commented Feb 20, 2019

When i click on settings of the Linux folder in Explorer it shows me a link which does not exist in system32 ....

misingfolder

@Disidente
Copy link

Disidente commented Feb 22, 2019

I had the same problem after upgrading to Insider Preview (18342) with Ubuntu 18.04. The solution was to uninstall Ubuntu 18.04 via uninstall (Start->Menu-->Ubuntu 18.04->Uninstall) and re-install Ubuntu (without version) from Microsoft Store.

I think, that is a generalized problem due to permissions in Windows NT, when the distribution files are installed for the first time in NTFS Linux.

@dcronin05
Copy link

Did Anyone try build 18342?

I am on 18343 and it's still a problem for me. I have not tried the uninstalling solution as I'd rather not spend the time. Easier to just SSH in to the distro if I really need to access something.

@gbaligh
Copy link

gbaligh commented Feb 24, 2019

Same problem

Did Anyone try build 18342?

I'm using the build 18342 too, upgraded from 18334.
And I have the same issue.

@slewsys
Copy link

slewsys commented Mar 9, 2019

Just one more data point: Disidente's suggestion
worked for me.

Started with a vanilla Windows Pro 1809 (OS Build 17763.348). Installing unversioned Ubuntu from Windows Store did not work. But after upgrading to 1903 (OS Build 18353.1), it did. Just for fun, I uninstalled Ubuntu and reinstalled Ubuntu 18.04 without incident.

IPv4 and DNS are statically assigned, IPv6 disabled. One problem does persist: Docker Desktop needs to be restarted after sign in to be reachable. In Event Viewer, there is DistributedCOM Event ID 10016, but no idea if that's related. Network interface wsl$ now seems stable. Thank you!

wslpath in explorer

@t3kk
Copy link

t3kk commented Mar 10, 2019

I had this problem as well. I resolved it by removing the wsl feature from windows, restarting, and adding it again.

@zackmuc
Copy link
Author

zackmuc commented Mar 11, 2019

I had this problem as well. I resolved it by removing the wsl feature from windows, restarting, and adding it again.

Thx that worked for me too. I only don't have the linux link in the explorer with the pinguine ..

@zackmuc
Copy link
Author

zackmuc commented Mar 11, 2019

@zackmuc - Are you able to see the contents if you use a full path? For example:

cmd.exe /c dir \wsl$\Ubuntu-18.04\

Replace Ubuntu-18.04 with whatever your distro is called

must be cmd.exe /c dir \\wsl$\Ubuntu

I think benhillis wrote it also correct .. only this editor migrates double backslash to single backslash ..

@LuKePicci
Copy link

LuKePicci commented Mar 24, 2019

I'm on 18356.16, distro is "Ubuntu", dir \\wsl$\Ubuntu works, but explorer.exe . opens my documents library, In short, I can actually access WSL files from Windows, but not from Explorer

@gojimmypi
Copy link

@LuKePicci you actually could, but should NOT access WSL files from Windows (Explorer or any other app). See:

https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/

fwiw my WSL files are found in:

C:\Users\gojimmypi\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\gojimmypi\

@woachk
Copy link

woachk commented Apr 6, 2019

@LuKePicci You can mount \wsl$\ubuntu as a network drive, to make it work in cmd too.

@hd321kbps
Copy link

Also, \ wsl $ \ Ubuntu and explorer.exe does not work. Even there is no icon in the explorer. I tried to reset did not help

cmd.exe /c dir \wsl$\Ubuntu It worked

Maybe it's in (The volume in the device \wsl$\Ubuntu does not have a label)

@SvenDowideit
Copy link

SvenDowideit commented Jun 21, 2019

WSL2: both 18917.rs_prerelease.190607-1942 (at work) and 18922... something (at home) have this problem

  • cmd.exe /c dir \\wsl$\Ubuntu works
  • explorer.exe . does not
  • explorer.exe \\wsl$\Ubuntu does not

the most painful place this exhibits itself, is that using saveas in vscode shows me my windows user's Documents dir

@SvenDowideit
Copy link

I modified the registry keys mentioned in #4027 (comment) and suddenly (presumably for the reasons listed) explorer based access works for me :)

@boan-jfm
Copy link

boan-jfm commented Nov 8, 2019

I modified the registry keys mentioned in #4027 (comment) and suddenly (presumably for the reasons listed) explorer based access works for me :)

I had the same issue, thanks :-)

@DanielSchmied
Copy link

DanielSchmied commented Feb 8, 2021

I tried like everything mentioned here and other Blogs / Tips / Websites nothing helped.
For me it suddenly worked as following:
I opened \\wsl$\ in the Explorer (and could not access via Doubleclick)
But then i found in the context Menu (right click) on my Folder Ubuntu-20.04 ("Netzlaufwerk verbinden..." in German, maybe "Connect Network Drive" in English)
I just said "Fertigstellen" (Maybe "Save Settings" in english) and didnt change a thing in the masks (leaving all at the default settings)
And there it was the new Folder in my "Dieser Computer" (This Computer) and it opened up already.

Guys and Gals, i really tried like 10 hours straight to get it to open......
Maybe im helping just one of you.... it would be worth this Comment

Good Luck to all of you

@LedzZm
Copy link

LedzZm commented Sep 2, 2021

As @DanielSchmied mentioned.
I typed \wsl$ in the windows search and found the menu shortcut.

Single click on it got me inside the network.
Right click -> open file location does not work.
For me, typing \wsl$ or clicking the "Network" link in the file explorer, both work, but for a colleague with the same setup only the menu shortcut works. (After using the menu shortcut once, my colleague is also able to access it directly via typing \wsl$ but the Network link still does not work for them).

This seems to be a very bizarre behavior.

@eizedev
Copy link

eizedev commented Feb 11, 2022

As mentioned in #4027 (comment)

For anyone that comes to this issue using google etc. (like me).
You could also run these two commands in a powershell window (Start as Admin) to add the missing entries to the registry keys.

Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order' -Name 'ProviderOrder' -Value 'P9NP,RDPNP,LanmanWorkstation,webclient'
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\NetworkProvider\HWOrder' -Name 'ProviderOrder' -Value 'P9NP,RDPNP,LanmanWorkstation,webclient'

After that i could access \\wsl$\Ubuntu or just \\wsl$ using explorer, Start -> Run or anything else. The effect was immediate for me, but maybe a restart may required for you.

@legistek
Copy link

I'm still having this problem, on Windows Server 2019. @eizedev's fix didn't seem to do anything.
I'm on an on-prem domain. I wonder if that has anything to do with it?

@ghost
Copy link

ghost commented Sep 9, 2022

if anyone has this problem in windows' latest build, \\wsl$\ has been changed to \\wsl.localhost\

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

No branches or pull requests