-
Notifications
You must be signed in to change notification settings - Fork 852
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 Export Failure. Error code: Wsl/Service/WSL_E_EXPORT_FAILED #9382
Comments
I have the same error. |
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
Same issue. |
Hello, I have collected logs. |
@ssratkevich: Based on the logs it looks like you're trying to export a WSL1 distro, this is probably a different issue. Can you create a new issue to track this ? @kele6ra: Based on your logs it looks like the directory where the .vhdx is doesn't exist, can you confirm that the directory exists ? |
Apologies for the delay. |
Thanks @gyutaepark. Looking at the logs, It looks like something is wrong with that distro registration. Can you share the output of: Does installing store WSL (via wsl.exe --install) help ? |
Actually, having a deeper look it looks like store WSL is installed on your machine, but somehow inbox WSL gets invoked. Can you share the output of: |
Interesting. I'm not sure whats causing that.
Similarly,
Is there any additional information that might help? UpdateIn case this might also help.
|
Hi.
I'm created new one yesterday. |
@gyutaepark: I wonder if you captured logs while the app was updating, can you try to capture logs again while wsl --export is running so I can compare the two executions ? |
Of course. I've ran the script once I've started the export process after shutting down wsl. |
Ah I think that's the issue. @gyutaepark. Can you run the script first, then run wsl --export, and then stop the script ? This should capture the logs I need to root cause this |
I hope this offers a better picture. WslLogs-2022-12-29_16-04-33.zip This time, I ran the log script -> Started the export process -> stopped the log script while the export was running. |
@gyutaepark: I do see the export running in that logs, but I don't see the export error. Sorry if my previous instructions were not clear. Can you please:
|
No worries. I should have just let it finish in the first place. |
Thank you @gyutaepark. Now I can see the actual issue: Looking at your .wslconfig, I see that the memory limit is 2GB and that swap is disabled, which is probably why bsdtar runs out of memory. Can you try removing swap and memory from .wslconfig, then run: wsl.exe --shutdown and try exporting again ? |
Glad this worked ! Closing since the issue is resolved. |
For anyone finding this via a search machine... In my case, I experienced this error, when the temporary directory was on a drive with insufficient space for the exported tarball. |
Hi, everybody But some strange fact is that I can export if I specify Any idea why is that? It worked so many times, and noting was changed... Cheers |
|
Version
Microsoft Windows [Version 10.0.22621.963]
WSL Version
Kernel Version
5.15.79.1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
wsl --shutdown
wsl --export Ubuntu D:\Extra\wsl\20221220
Expected Behavior
WSL Exports a backup of itself into 20221220 file.
Actual Behavior
Export fails within 10s of seconds.
Output file is created but the size does not change during this time.
Different output file names were tested including
20221220.tar
and20221220.tar.gz
.Export in progress, this may take a few minutes.
Exporting the distribution failed.
Error code: Wsl/Service/WSL_E_EXPORT_FAILED
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: