microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.31k stars 814 forks source link

WSL Ubuntu 20.04 LTS Claiming Invalid Data and Not Allowing to Run Commands #6509

Closed ottonieljimenez closed 8 months ago

ottonieljimenez commented 3 years ago

Hello all,

I currently use WSL with Ubuntu 20.04 LTS to use Tensorflow with an NVIDIA GPU (from my laptop). This mainly allows me to run commands to both activate my Tensorflow environment and open a Jupyter notebook on a separate browser to carry out Python coding that uses an OpenAI Gym environment. Today, however, I encountered the following issue: when I tried opening the Ubuntu 20.04 LTS command shell, the output "The data is invalid. Press any key to continue" showed up (see screenshot attached). Hence, I am not able to run any commands at all and what concerns me the most is that my files in my Tensorflow environment (which are VERY important) be somehow affected by this. I have tried updating the Windows Insider Program since I thought this might have been related to the issue, but up to this point, the updates are still being downloaded (after approximately five hours) and I can't tell for sure that this might be the right solution. Hence, I wanted to ask you if you could please help me solve this issue. It is extremely important and necessary for me to find a solution to this problem and your help would be truly appreciated. Thank you in advance! Ubuntu_Startup_Issue

randaz81 commented 3 years ago

I have the same issue from yesterday. Windows 10, version 2004, build 20241.1005. I think that the error comes from some windows update. What should I do to recover my data? Should I update my windows insider build?

nagromnortara commented 3 years ago

I'm in Insider build Version 10.0.20251 and having the same issue still, but now I'm also getting greenscreens of deaths frequently. So I can't recommend that direction.

4b71nmdx commented 3 years ago

The only fix I've found is to change the system date.

The expired Windows Insider Build is the cause of this. I haven't bothered to figure out the expiry method. I also had the green screen issues. Best of luck.

ottonieljimenez commented 3 years ago

@4b71nmdx Thank you for the input. Were you able to actually write commands again on WSL 2 after changing the system date? Moreover, how exactly did you proceed to change the system date itself? Thanks!

therealkenc commented 3 years ago

Please collect WSL logs and post the backlink to the feedback item here. The best sequence to capture is probably starting your distro from the commandline. wsl.exe or wsl.exe -d <distro name>. Three likes on the OP in just a few days so the problem might be fleeting. Also, does the problem manifest on 21301 (or better)? Green screen or no, any potential fix that addresses the issue is going to come by way of a Windows Update, by definition.

etscott commented 3 years ago

I encountered this issue this morning. I was still on build 20262 on the Dev channel, which I discovered was listed as expiring on 1/31. I had been putting off updating to make sure I finished a GPU-enabled task in case I encountered any issues with a newer build.

An update to 21301, and all is well again. Seems to just be a Windows version expiry issue.

ottonieljimenez commented 3 years ago

The Feedback Hub link corresponding to this issue is the following: https://aka.ms/AAb2wny

Umar-Farooq-Shafi commented 2 years ago

I got same issue in Edition Windows 10 Pro Version Dev Installed on ‎6/‎1/‎2021 OS build 21390.2025 Experience Windows 10 Feature Experience Pack 321.13302.10.3 Any idea how to fix this or when next build is coming?

Biswa96 commented 2 years ago

According to https://blogs.windows.com/

FINAL Build Expiration Reminder: We have updated the build expiration for Dev Channel builds to be 9/15/2022. Previous Dev Channel builds from the RS_PRERELEASE branch will expire on 10/31/2021. To avoid hitting this expiration, please be sure to update to the latest Dev Channel build today.

Umar-Farooq-Shafi commented 2 years ago

@Biswa96 I am currently in Release Channel and can't move on Dev or Beta channel due to Window 11 incompatibility with my system.

Biswa96 commented 2 years ago

Then Windows 10 stable build will be the only option for you. BTW, the "incompatibility" is not so incompatible 😉

Nickesh commented 2 years ago

Same thing here. Windows 10 dev channel expired on 31.10.2021, but I'm not allowed to update to Windows 11 due to lack of TPM 2.0 support on my CPU/motherboard. A dead end.

The only way that would probably work for me is the total system reinstall to Windows 10 (as this is the only way of leaving "Microsoft Insider Programme". But I don't want to do it. If I had to destroy my OS, I'd rather take that opportunity to switch to native Linux instead. I guess here's where my struggles against "Docker on Windows" end...

petersmagnusson commented 2 years ago

Like @Nickesh says ... perhaps time for just native Linux. I understand the need to have expirations etc, but the "hard lock" effect on a system is simply too fragile to accept as a professional user. I do have support licenses etc etc so I can switch to 11. But if I really needed this system right now, and couldn't wait for update? Or if I wanted to go into WSL environment and before the upgrade make sure that all my git repos and other work-in-progress are all backed up/ synced? Etc. Just one more indicator of our dependence on fewer and fewer platform providers that ultimately don't really care that much.

tilda commented 2 years ago

yep, just encountered this on windows 10 dev (21364). this is like the worst experience i've had with windows period, literally not allowing you to use the software beyond a certain date... what a pain. i'd certainly be on pure linux by now if i didn't have software that requires me to still have windows installed (and if it was easier to move) >_>

rideorwalk commented 2 years ago

The only fix I've found is to change the system date.

The expired Windows Insider Build is the cause of this. I haven't bothered to figure out the expiry method. I also had the green screen issues. Best of luck.

Thank you for this! I spent the last 6 hours trying to figure out why I couldn't load wsl anymore, tried so many different fixes. To think that simply changing the date would get me back access to my data 😆

I honestly do not understand how Microsoft thought it would be acceptable to lock you out of your data because of an expired version.

chull434 commented 2 years ago

Same issue here, this is so stupid that you can't just leave the dev channel.

In other news mother board did have a TPM it was just disabled in BIOS, windows 11 health check now passes and off we go

maulberto3 commented 2 years ago

Hi, this WIP has been so unpleasant. First, even if I changed my Beta/Dev/Release option, Windows itself changed to whatever option it may felt good. Strange. Then, it seems my CPU is not allowed for Windows 11, therefore, I got the 10/31/2021 expiry message, locking my WSL along the way. Now, each time I try to use it, it says invalid data. Also, the Docker Desktop can't start up, because of the same thing. So pretty much I just got locked in a dead end, WTF. All this because my CPU is not eligible for Windows 11. My PC is only 4 years old, and has good specs. This is so frustrating.

neojp commented 2 years ago

Changing the date to October let me in to my WSL. This is really dumb. At the very least they should have added a message about this somewhere. I had no idea this would happen if I didn't update to Windows 11.

Edit: be aware Git will make your commits with the old date and several websites won't work due to your clock not matching the SSLs date.

xxzhan321 commented 2 years ago

1 ❯ wsl The data is invalid. 2 hyper-v virtul machine is not start up :message:Start-VM: 'win11' failed to start. Microsoft Virtual BIOS (Instance ID AC6B8DC1-3257-4A70-B1B2-A9C9215659AD): Error 'The data is invalid.'. 'win11' failed to start. (Virtual machine ID 23771B2B-5279-4F0A-A0CD-7E3C415F34AE) 'win11' Microsoft Virtual BIOS: Failed to start reserving resources with Error 'The data is invalid.' (0x8007000D). (Virtual machine ID 23771B2B-5279-4F0A-A0CD-7E3C415F34AE)..

changing the date to October. wsl hyper-v is ok.

Nickesh commented 2 years ago

You only need to change the date in your system for the moment of WSL or Docker Desktop startup. After they start, you can normally re-set your system date back to the automatic setting and everything works fine.

In fact you really should do it for the reasons mentions by @neojp.

AwokeKnowing commented 2 years ago

This just happened to me and I lost all day trying to figure it out. Our clients schedule is now delayed and we did not meet a very urgent deadline I was just about to clean format my system which would cause me to loose a full day of software dev work. This is an absolutely untenable situation, over absurd TPM module. Microsoft is out of control. This experience will likely result in leaving the dev program and migrating fully to linux for all work.

Unfathomably wrong move microsoft. you need to extend the non-tpm build for at least a year. you cannot just instantly trash millions of developer machines. This is practically a ransomware attack perpetuated by microsoft.

27Bslash6 commented 2 years ago

Yeah, this is horrific DevEx, Microsoft. Back to Mac for a more cohesive developer / GUI experience. Or maybe it's time for PopOS...

adelina-t commented 2 years ago

This is horrible. Just ran into this myself. Well, I guess it's back to linux for my desktop. As a dev, if I can't have WSL2, Windows is basically pointless to me.

chiqui3d commented 2 years ago

Same problem https://github.com/microsoft/WSL/issues/7644, this is called murder in my village.

Biswa96 commented 2 years ago

As suggested previously, you can change the system date before 31/10/2021 to run WSL2 and get your data asap. But remember web browser will not work with that date.

Then switch back to other stable Windows build or install any GNU/Linux distribution.

adelina-t commented 2 years ago

But remember web browser will not work with that date.

You can change system date, start WSL2 and then change system time back to automatic so browser & everything else would work

Worked for me, using WSL2 as we speak.

chiqui3d commented 2 years ago

Ok, but now I don't know what to do whether to install Ubuntu directly or some way to go back to the stable version of Windows no "insiders" without losing the data and without having to format the system again, I don't want to have to reconfigure my PC all over again, this is crazy.

reganh48 commented 2 years ago

per Nickesh above: change the sysdate to 31-Oct, then start up any linux instance with wsl, afterwards revert to auto date and all is irritatingly well. Once once instance is booted, then others will boot. I started with ubuntu-20.04 then kali

chiqui3d commented 2 years ago

I have already fixed it. Thanks https://github.com/microsoft/WSL/discussions/7646#discussioncomment-1599751

iTem186 commented 2 years ago

No more update the build expiration?

FINAL Build Expiration Reminder: We have updated the build expiration for Dev Channel builds to be 9/15/2022. Previous Dev Channel builds from the RS_PRERELEASE branch will expire on 10/31/2021. To avoid hitting this expiration, please be sure to update to the latest Dev Channel build today.

Since 9/15/2022 I have the same problem with WSL:

The network name cannot be found.

[process exited with code 4294967295 (0xffffffff)]

Edition Windows 11 Pro Insider Preview Version Dev OS build 22471.1000

And no possibilities to update on new release because of hardware requirements for Windows 11.

Only change system date allow to start WSL, but there are new problems inside WSL, because of: изображение

microsoft-github-policy-service[bot] commented 8 months ago

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!