Code Monkey home page Code Monkey logo

Comments (9)

Connor-McCarron avatar Connor-McCarron commented on May 25, 2024 1

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

wsl --setdefault {DISTRO}
image

image

from wsl.

github-actions avatar github-actions commented on May 25, 2024

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:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

from wsl.

ciprianglg avatar ciprianglg commented on May 25, 2024

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.

OneBlue avatar OneBlue commented on May 25, 2024

/logs

from wsl.

ciprianglg avatar ciprianglg commented on May 25, 2024

I've sent the logs to the email address.

from wsl.

OneBlue avatar OneBlue commented on May 25, 2024

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.

ciprianglg avatar ciprianglg commented on May 25, 2024

@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.

OneBlue avatar OneBlue commented on May 25, 2024

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.

ciprianglg avatar ciprianglg commented on May 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.