Comments (9)
Had similar issue. In my case the docker-desktop image was my default linux instance for wsl after an update WSL cannot mount drive and path variables to the docker distro ensure default distro is Debian in your case
from wsl.
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Mount a drive into WSL distro owned by a restricted user (#9406), similarity score: 0.75
Closed similar issues:
- WSL mount need admin but target user-based distro (#6147), similarity score: 0.77
- WSL can't mount the C drive in Windows. (#10400), similarity score: 0.75
- The Windows admin user cannot see the WSL installed on a normal user. (#10863), similarity score: 0.75
- Making WSL installed with admin available to non-privileged user (#3817), similarity score: 0.74
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from wsl.
I tried to replicate this on some Azure vm's and i was not able. Somehow i noticed that this is randomly happening. If i use the combination of wsl --shutdown or wsl --terminate, then will start working for regular user. Don't know how to debug this, as i can't find something usefully in dmesg about why it is not mounting, except the following error which is about the paths:
[ 1.967289] Exception: Invalid argument @../main.cpp:117 (TranslateWindowsPath)
from wsl.
/logs
from wsl.
I've sent the logs to the email address.
from wsl.
Thank you @ciprianglg.
Looking at the logs, this seem to be the root cause of the drives not being mounted:
86 True Microsoft.Windows.Lxss.Manager VerboseLog 0 02-14-2024 00:39:20.770 " " "code:
failurecount: 7
file: D:\a\1\s\src\windows\wslcore\lib\WslCoreVm.cpp
function:
hr: 0x80080005
linenumber: 2941
message: ""D:\a\1\s\packages\Microsoft.Windows.ImplementationLibrary.1.0.240102.2\include\wil\result_macros.h(7244)\wslservice.exe!00007FF7DA2FCD4B: (caller: 00007FF7DA3857DE) Exception(5) tid(269c) 80080005 Server execution failed ""
threadid: 9884
wslVersion: 2.1.1.0" D:\a\1\s\src\windows\wslcore\lib\WslCoreVm.cpp 7832 9884 5 7888b357-43c2-42c8-9ff8-562cb05f9e79
This most likely means that the dllhost.exe process running this is crashing.
Can you follow the '11) Reporting a WSL process crash' section and reproduce the issue to collect the process crash and share it with us ?
from wsl.
@OneBlue i was off for a couple of days, so unable to reply. I tried to take a dump with the script using admin rights but:
~ .\collect-wsl-logs.ps1 -Dump
Log collection is running. Please reproduce the problem and once done press any key to save the logs.
Saving logs...
100% [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>]
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:123
Line |
123 | $DumpMethod = $Assembly.GetNestedType('NativeMethods', 'NonPublic …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Directory: C:\Users\......\WslLogs-2024-03-21_07-50-57
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 3/21/2024 7:51 AM dumps
Writing C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wsl.4696.dmp
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:136
Line |
136 | $Result = $DumpMethod.Invoke($null, @($process.Handle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Failed to write dump for: C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wsl.4696.dmp
Writing C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wsl.7484.dmp
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:136
Line |
136 | $Result = $DumpMethod.Invoke($null, @($process.Handle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Failed to write dump for: C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wsl.7484.dmp
Writing C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wsl.26696.dmp
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:136
Line |
136 | $Result = $DumpMethod.Invoke($null, @($process.Handle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Failed to write dump for: C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wsl.26696.dmp
Writing C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslhost.13044.dmp
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:136
Line |
136 | $Result = $DumpMethod.Invoke($null, @($process.Handle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Failed to write dump for: C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslhost.13044.dmp
Writing C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslhost.25988.dmp
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:136
Line |
136 | $Result = $DumpMethod.Invoke($null, @($process.Handle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Failed to write dump for: C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslhost.25988.dmp
Writing C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslhost.39004.dmp
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:136
Line |
136 | $Result = $DumpMethod.Invoke($null, @($process.Handle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Failed to write dump for: C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslhost.39004.dmp
Writing C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslservice.10052.dmp
InvalidOperation: C:\Users\......\collect-wsl-logs.ps1:136
Line |
136 | $Result = $DumpMethod.Invoke($null, @($process.Handle,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Failed to write dump for: C:\Users\......\WslLogs-2024-03-21_07-50-57\dumps/wslservice.10052.dmp
from wsl.
You don't need to capture the dumps yourself. This section '11) Reporting a WSL process crash' shows how can enable automatic crash dump collection
from wsl.
@OneBlue i've replicated the issue several time, but no crash was generated, so maybe there is no crash. The only workaround is to use wsl --terminate command, and after i start again all is fine, and c drive is mounted.
Step1: Computer is booted up
Step2: Open a terminal and start a shell with Debian (here i get the error since drive c: is not mounted)
Step3: I use wsl --terminat Debian
Step4: I open another shell with Debian and this is fine, and all is working.
I have other colleagues with the same issue, and all of them are able to use the steps i've mentioned, and behavior is the same.
My only option is to revert wsl to 1.2.5 where the problem is not present, or use the steps i've mentioned.
from wsl.
Related Issues (20)
- disagree about version of symbol module_layout HOT 2
- WSL doesn't source ~/.bashrc when running wsl --shell-type login xeyes HOT 5
- ALSA error while running pygame from WSL2 - Windows 11 HOT 2
- graphical programs unresponsive after waking from suspend HOT 2
- WSL Service Disables Automatically After Reboot or Logoff HOT 8
- Element not found while performing update HOT 4
- Effective MTU in mirrored mode is lower than interface MTU HOT 1
- Internet in WSL2 error when using mirrored network with firewall HOT 3
- Facing WSL2 issue while installing in Visual studio code HOT 1
- Wsl/InstallDistro/WININET_E_CANNOT_CONNECT when installing Ubuntu HOT 5
- du: WARNING: Circular directory structure. HOT 7
- CUDA Version return ERROR! after nvidia-smi command HOT 12
- Windows GCC Executable Fails From WSL HOT 4
- CTRL + key does not work properly using Brazilian Portuguese keyboard layout HOT 5
- Ubuntu-20.04.6 LTS takes 30+ minutes to boot HOT 4
- ubuntu 22_04 系统下载ubuntu desktop 下载报错,重启到期systemctl以及其他服务都不起来 HOT 2
- WSL2 Memory Allocation Issue: Configured 55GB but Only 32GB Available HOT 5
- Load custom kernels and Realtek RTL8812au Driver HOT 4
- Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff HOT 4
- Problema para iniciar o ubuntu HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl.