for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Upgraded from 4.15.0 to 4.16.1 docker stuck in starting mode forever

Open jeffrozica opened this issue 3 years ago • 83 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [ ] I have tried disabling enabled experimental features
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Actual behavior

Expected behavior

Information

  • Windows Version:
  • Docker Desktop Version:
  • WSL2 or Hyper-V backend?
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM:

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

Steps to reproduce the behavior

  1. ...
  2. ...

jeffrozica avatar Jan 13 '23 21:01 jeffrozica

I just upgraded from docker desktop for windows version 4.15.0 to 4.16.1 on my laptop with windows 11 running wsl2 and ubuntu. After upgrading docker desktop is stuck in starting mode forever... It will not start and is hung. It worked great in version 4.15.0 and prior versions.... I downloaded 4.16.1 and tried install again, but did not work. I rebooted my laptop and that did not work. I do a lot of development and I am dead in the water. The only way I can see to fix this is to uninstall 4.16.1 and reinstall 4.15.0 and see if I can get it back up and running, but that's a lot of work...

jeffrozica avatar Jan 13 '23 21:01 jeffrozica

This happened to me as well on both 4.16.0 and 4.16.1, but not 4.15.0. Possible bug in $USER interpolation?

From %APPDAATA%/Local/Docker/log.txt

[2023-01-13T21:37:15.327970500Z][com.docker.backend.exe][I] WSLEngine: start handler error exit: 1 error occurred:
[2023-01-13T21:37:15.328328600Z][GoBackendProcess][I] 	* provisioning docker WSL distros: deploying "docker-desktop": preparing directory "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro" for distro "docker-desktop": decompressing "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": 1 error occurred:
[2023-01-13T21:37:15.328328600Z][GoBackendProcess][I] 	* decompressing file "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": The parameter is incorrect.
[2023-01-13T21:37:15.328328600Z][com.docker.backend.exe][W] (022eb604) 7b25e335-BackendAPI S->C 750ed8b2-GoBackendClient-CSharp POST /wsl/engine/start (4.3219861s): 1 error occurred:
[2023-01-13T21:37:15.328835600Z][GoBackendProcess][I] 	* provisioning docker WSL distros: deploying "docker-desktop": preparing directory "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro" for distro "docker-desktop": decompressing "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": 1 error occurred:
[2023-01-13T21:37:15.328835600Z][GoBackendProcess][I] 	* decompressing file "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": The parameter is incorrect.

feynmanliang avatar Jan 13 '23 21:01 feynmanliang

This happened to me as well on both 4.16.0 and 4.16.1, but not 4.15.0. Possible bug in $USER interpolation?

From %APPDAATA%/Local/Docker/log.txt

[2023-01-13T21:37:15.327970500Z][com.docker.backend.exe][I] WSLEngine: start handler error exit: 1 error occurred:
[2023-01-13T21:37:15.328328600Z][GoBackendProcess][I] 	* provisioning docker WSL distros: deploying "docker-desktop": preparing directory "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro" for distro "docker-desktop": decompressing "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": 1 error occurred:
[2023-01-13T21:37:15.328328600Z][GoBackendProcess][I] 	* decompressing file "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": The parameter is incorrect.
[2023-01-13T21:37:15.328328600Z][com.docker.backend.exe][W] (022eb604) 7b25e335-BackendAPI S->C 750ed8b2-GoBackendClient-CSharp POST /wsl/engine/start (4.3219861s): 1 error occurred:
[2023-01-13T21:37:15.328835600Z][GoBackendProcess][I] 	* provisioning docker WSL distros: deploying "docker-desktop": preparing directory "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro" for distro "docker-desktop": decompressing "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": 1 error occurred:
[2023-01-13T21:37:15.328835600Z][GoBackendProcess][I] 	* decompressing file "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": The parameter is incorrect.

Thanks for your response. I uninstalled v4.16.1 and am in the process of re-installing v4.15.0. Hopefully this will work for me.

jeffrozica avatar Jan 13 '23 21:01 jeffrozica

I just installed 4.15.0 and now I am getting failed to start. Frustrated.

jeffrozica avatar Jan 13 '23 21:01 jeffrozica

I uninstalled docker docktop, then rebooted my laptop and then re-installed docker desktop for windows version 4.15.0 and I am now back up and running. I am rebuilding all of my docker images. Many thanks for the help. I hope version 4.16.1 is fixed as I cannot upgrade until it is.

jeffrozica avatar Jan 13 '23 22:01 jeffrozica

Similar issue,
Issue: updating 4.15 to 4.16.1 stuck on Starting Docker. TempFix: Reverting to 4.15 resolved the issue.

I could not see anything in the log.txt about <USER> per @feynmanliang comment. Feel free to let me know if there is anything else I can post to help troubleshoot.

  • Windows 11 22H2
  • WSL2 backend

Things tried:

  • Uninstalling/reinstalling docker.
  • Updating wsl --update

jafin avatar Jan 14 '23 04:01 jafin

The same problem here. I upgraded from 4.10 to 4.16.1 and it stuck in Starting forever. I uploaded the diagnostics to Docker. My diagnostic ID is: C84E282B-A40C-4C57-8B55-2C7E146FBACD/20230114112020 I am using Windows 10 Pro latest package.

Hombre2014 avatar Jan 14 '23 11:01 Hombre2014

This happened to me as well on both 4.16.0 and 4.16.1, but not 4.15.0. Possible bug in $USER interpolation?

From %APPDAATA%/Local/Docker/log.txt

[2023-01-13T21:37:15.327970500Z][com.docker.backend.exe][I] WSLEngine: start handler error exit: 1 error occurred:
[2023-01-13T21:37:15.328328600Z][GoBackendProcess][I] 	* provisioning docker WSL distros: deploying "docker-desktop": preparing directory "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro" for distro "docker-desktop": decompressing "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": 1 error occurred:
[2023-01-13T21:37:15.328328600Z][GoBackendProcess][I] 	* decompressing file "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": The parameter is incorrect.
[2023-01-13T21:37:15.328328600Z][com.docker.backend.exe][W] (022eb604) 7b25e335-BackendAPI S->C 750ed8b2-GoBackendClient-CSharp POST /wsl/engine/start (4.3219861s): 1 error occurred:
[2023-01-13T21:37:15.328835600Z][GoBackendProcess][I] 	* provisioning docker WSL distros: deploying "docker-desktop": preparing directory "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro" for distro "docker-desktop": decompressing "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": 1 error occurred:
[2023-01-13T21:37:15.328835600Z][GoBackendProcess][I] 	* decompressing file "C:\\Users\\<USER>\\AppData\\Local\\Docker\\wsl\\distro": The parameter is incorrect.

👋 I work at Docker (but not on the Docker Desktop team); I think the <USER> should be unrelated to the issue; it looks like that's part of code that obfuscates personal data in logs (to prevent personal data being included in diagnostic reports). It seems a bit premature to obfuscate the local logs though, so perhaps I should ask the Desktop team if it would be better to obfuscate the data only when generating a diagnostic report (not for the local logs), or at least a more descriptive placeholder (<REDACTED_USER>).

thaJeztah avatar Jan 14 '23 12:01 thaJeztah

In my case, even 4.14.1 did not work and experienced the same freezing. I had to go back to 4.10.1. Did not try any in-between versions.

Hombre2014 avatar Jan 14 '23 14:01 Hombre2014

I experienced the same issue with Docker Desktop 4.16.1 not starting after an upgrade from 4.15.0. I'm running on Windows 10 Pro with WSL 2 integration.

The only solution was completely uninstalling Docker Desktop, restarting and then reinstalling 4.15.0, after which everything works normally again.

zejji avatar Jan 14 '23 17:01 zejji

Updated from 4.14.? to 4.16.1 and got the same issue, downgrade to 4.15.0 did not work, 4.14.1 works. Cleaned up all appdata and reboot between tries.

kng avatar Jan 14 '23 19:01 kng

On a Windows 10 Pro fresh PC installation, I added Ubuntu to WSL after installing Docker, then pressed refresh and the UI didn’t acknowledge the Ubuntu instance. Yes, it’s version 2 and I followed the directions in learn more. I restarted Docker Desktop and even restarted my PC — nothing. I went back to 4.15 and it worked fine only after deleting everything in %APPDATA%\docker, C:\ProgramData\docker.

ghost avatar Jan 14 '23 19:01 ghost

I had the same issue with a fresh install of 4.16.1, tried 4.16.0 and same again. I tried 4.15.0, and then docker desktop asked me to download the update of wsl2. I did it and it worked fine. So i tried to update to 4.16.1, and it finally worked for me. Don't know if it would help. I'm on Windows 11 familly .

podling0ne avatar Jan 14 '23 20:01 podling0ne

Same thing happened to me, uninstalled and tried to reinstall 4.16.1 and got installation errors. Ended up just reverting to install 4.16.0 which is working so far.

BlueAlder avatar Jan 16 '23 05:01 BlueAlder

  • wsl --unregister docker-desktop-data
  • wsl --unregister docker-desktop
  • Uninstall Docker for Windows
  • Install Docker for Windows

Not sure if the uninstall was required but it works again. Found from here https://stackoverflow.com/questions/71702448/docker-daemon-not-running-on-windows-11

amoisis avatar Jan 17 '23 00:01 amoisis

  • wsl --unregister docker-desktop-data
  • wsl --unregister docker-desktop
  • Uninstall Docker for Windows
  • Install Docker for Windows

Not sure if the uninstall was required but it works again. Found from here https://stackoverflow.com/questions/71702448/docker-daemon-not-running-on-windows-11

Wouldn’t hurt to mention that this will delete all of your Docker containers, images, volumes, and networks :)

feynmanliang avatar Jan 17 '23 04:01 feynmanliang

  • wsl --unregister docker-desktop-data
  • wsl --unregister docker-desktop

I can confirm that after uninstalling the (working) downgrade to 4.14.1 and making sure the wsl containers was removed, then installing 4.16.1 it is working again. I did not upgrade, so I had to recreate my containers again.

kng avatar Jan 17 '23 07:01 kng

I my case clicking Restart on Docker Desktop system tray icon helps.

Docker Desktop 4.16.1 Windows 11 WSL 2

image

fadedDexofan avatar Jan 17 '23 07:01 fadedDexofan

Tried installing 4.16.1 on a system that has not have it installed previously, without WSL too, installed WSL with docker installer. It stuck at the same point, starting docker desktop... Also tried the restart docker, no change. I left it waiting for a long while, in the meantime I tried installing debian as a test wsl --install debian, after it was up and running I tried the restart docker desktop again, and Docker actually finished the statup and seems to be working. Super odd.

kng avatar Jan 17 '23 13:01 kng

Update: Since my first post, I downgraded to v4.15.0 after uninstalling the v4.16.1. When I installed v4.15.0, it had 2 check boxes, one for WSL2... I checked them both. Today after Reading other posts, I upgraded to v4.16.1 again and this time it worked. I think by uninstalling docker completely then installing v4.15.0 fresh it did something with WSL2 and then when I upgraded to v4.16.1 today, it worked... Thanks for all of the posts and help here. It really helped.

jeffrozica avatar Jan 17 '23 18:01 jeffrozica