-
Notifications
You must be signed in to change notification settings - Fork 822
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 --import returns Unspecified error #4735
Comments
Not a fan of the Practical suggestion is to install a fresh distro on your new box. Unpack your tarball there. Cherry pick the stuff you care about, notably your |
Yeah makes sense, thanks. I've given up on trying to get |
Please re-open; the underlying issue persists. I am experiencing it on one of my devices. |
Enabling/Disabling the WSL feature doesn't even fix it. Some state is corrupted that doesn't get reset on removal of WSL. |
if --import is not supposed to work reliably, what's the point of using it? I have a 56GB tar ball. sigh |
same issue here. |
same error. Could you please re-open the issue ? Thks |
Same issue here. |
same issue here! |
Same issue. There was absolutely no reason to close this. |
|
Had this same issue after exporting/importing a fairly new Ubuntu 18.04, with a Windows reset in between. Fixed the issue by importing(installing) the distribution with LxRunOffline. |
Same error. I'v tried many versions of backups. Check this out. Ron |
Same issue. |
Please collect WSL logs and post the backlink to the feedback item here. |
You may be able to solve this yourself... Follow the instructions here to start logging While logman is running, try the import and wait for it to fail I doubled-clicked the tile in the top left where it says "Generic Events" and was able to get a trace that seems to indicate my particular issue This rootfs I generated from the Fedora Live CD rootfs.img using guestfish with xattrs:true so I suppose that did it |
Actually to reproduce this shouldn't be too terribly difficult... I downloaded the Fedora Workstation iso and extracted the squashfs. From that, I extract rootfs.img. I opened that with guestfish and did Not sure if others are getting the same error, but seems likely depending on how they've tarred up their OS I also fixed my tar using Here are the commands I ran (which created the broken tarball)
|
Had the same issue. I exported two WSL 2 distros and then did a clean install of my Windows OS. "Unspecified error" came up when I tried to import them. I fixed it by downloading the Linux kernel update package referred to at https://docs.microsoft.com/en-us/windows/wsl/install-win10 and then running the command After this, my two distros imported without error. |
@jbarrella Thanks for those hints, this did the trick for me too. I'm sorry, but I strongly feel like trying to make a point. 16 years ago I abandoned Windows XP in favour of Red Hat 9. My primary motivation back then was that I found it impossible to debug all the random problems that you can encounter: poor error messages, obscure logs, condescending "please contact your administrator" dialogues. Don't get me wrong, Linux back then had many many flaws and shortcomings, but it treated me maturely with log files and descriptive error messages in predictable places. 16 years later and situations like these make me feel like little has improved in Windows-land. "Unspecified error" is next-to-useless. |
See my comment above--you can use Windows Performance Analyzer #4735 (comment) Usually the hex looking Edit: Here is some info on the hex codes https://blog.sqlauthority.com/2018/07/15/how-to-convert-hex-windows-error-codes-to-the-meaningful-error-message-0x80040002-and-0x80040005-and-others-interview-question-of-the-week-182/ But yeah, not sure why they chose to capture that exception and repackage it as something more generic |
Very unhappy with this problem. I tried @jbarrella's workaround but "Unspecified error" came back. No hex code. Nothing to work with. Seriously, Microsoft, you need to do better than this lame error message! |
After creating the wslconfig file in my $HOME directory and also checking '/etc/wsl.conf.' inside the TAR file to be sure of no conflicts, setting my RAM etc did not resolve the 'unspecified error' issue. Unfortunately, re-taring my broken .tar does import after doing wsl --import again, however it does not boot when calling WSL. so its broken. |
Thank you so much! This is the only fix in my case. Afterwards, |
I'm also seeing "unspecified". Can you be a bit more detailed about the cherry pick process? Do you mean to hand copy the files into the newly installed distro? What's a safe way to do that that preserves ownership and permissions? |
It seems worked, first make a new ubuntu distro, then migrate to new disk, enlarge to 1T, at last extract tar file in the new ubuntu distro to replace all of the files. |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it. Thank you! |
bump |
I was experiencing this issue on a fresh Windows installation with the newest version of WSL/kernel -- imports failed randomly after about 18-22GB for a 26GB .tar, either because they would stall indefinitely (no disk activity) or they would return this E_FAIL unspecified error. The suggestion above (importing the vhdx directly instead of using the .tar from the |
🖕🏼 The bot settings are stupid and force you to post a spam comment every 7 days which just wastes everyone's time. |
I worked around this error following the instructions here: #8787 (comment) I hope this issue can be re-opened and we get a proper solution. |
yes, it does work, my tar file up to 10g |
Leaving my 2 cents: I was experiencing the same issue and making sure all the instances of wsl were down did the trick. Somehow, |
I was trying to move my WSL to another drive and now I can't import it because of this error :/ |
reproducible on corrupt vhd, the error could be more descriptive, so that debugging is ez. |
Just happened to me. I just did another import, exact same command, and it worked. Kinda weird.... please output a more descriptive error. |
Try executing "wsl --import" as an administrator, it works for me |
The error itself is just "Unspecified error", no other descriptive means, turns out my problem was my wsl vhd is corrupt, hence. if it was fresh from store, then it is fine. |
The same worked for me. Phew! I thought for a moment that the backup distro I made would be useless... The export/import feature not being reliable is definitely a concern... |
Same issue here, but changing: |
worked for me when moving distro to another drive |
I followed the above instructions to capture an event log (sorry, I will not publicly upload the entire log here) and this is clearly the problem for me (tar file is 370GB, distro is Ubuntu 18.04): not sure why tar is running in a cgroup that allows 64MB of memory on a box with 128GB... 🤣 just a side note though. the fundamental issue here is poor error reporting. the software knows it needs to run an import process inside the VM, and you know you can't parse all possible outputs into a meaningful error code. Printing out |
Have same issue as guys. And yes it is already for 3 years, how did you do this?) |
|
this works |
This worked for me. I had the whole thing still in the console so here is a screencap... |
I finally resolved this amiss during the following steps (Windows 10.0.19045 Build 19045):
|
I will document that on https://www.mslinn.com/blog/2022/01/10/wsl-backup.html later this week. |
I was originally trying to do this from an msys2 shell Changing to powershell and running the command with a
|
Thanks! |
I also had this issue, later I found out that the reason was just because of lack of space, I solved this problem simply by freeing up more disk space. |
For anyone who needs to hear it… It's my bad, as I missed that detail in the docs; however, surely Microsoft could do better than “unspecified error” when a spoon like me parses a .vhdx without “-—vhd”? |
I meet the same problem ,the configuration of my PC is : win11, wsl2. My .tar is about 150G. I solve this problem by updating my wsl with |
I had to get my computer replaced because of a hardware problem, and I backed up my wsl distro in preparation for moving it to the new computer. When I copy the tar file over to the new computer and try wsl --import, I get an Unspecified error.
Windows version / build number
Both computers: Windows [Version 10.0.18362.476]
Steps required to reproduce
On the old computer:
wsl --export Ubuntu ubuntu_backup_2019_12_04.tar
On the new computer:
Enable WSL (Enable developer mode, turn on WSL in Windows Features)
wsl --import Ubuntu C:\Users\yphillip\AppData\Local\Packages\Ubuntu C:\Users\yphillip\wsl_backup\2019_12_04\ubuntu_backup_2019_12_04.tar
The only output I get from this is
Unspecified error.
The tar file is about 16 GB, and I have no problems sharing it if it might help someone debug my problem. Just let me know. Hoping I can salvage my old setup so I don't have to re-setup everything from scratch on the new computer.
The text was updated successfully, but these errors were encountered: