Open phillies opened 1 month ago
Same problem with version 4.33.1 (on Windows 11). Tried also running as Admin, but dashboard just keeps looping between Docker Starting and Stopping.
D594353A-A820-4B7E-B26F-1E146A9BDBF0/20240805184808
Having the same issue
same issue 28A128F9-4210-484E-A792-8872A6E0F3E4/20240806110933
Hey all, I have shared a development build that should avoid this loop of "WSL Update required" prompts https://github.com/docker/for-win/issues/13806#issuecomment-2271507065. Feel free to try that out and report any feedback!
(Please, also note that custom WSL2 kernels are not officially supported in Docker Desktop - some of the diagnostics shared in this and other threads point to that as a common source of the problem)
I have the same kind of issue: just updated, now Docker doesn't start.
I rolled back to 4.32.0 and it doesn't start either (while it was 4.32.0 yesterday and it worked perfectly). I tried with your build @andrea-reale, but it didn't work either.
I'm starting to rip my hair out of my head, so I'll take a rest and come back after that, maybe I'll have fresh ideas on how to fix this 😅
Hey, i just reinstalled the docker and its fixed now
I'm starting to rip my hair out of my head, so I'll take a rest and come back after that, maybe I'll have fresh ideas on how to fix this
Hey @Pierstoval , please do not rip your hair off your head! Do instead upload and share a diagnostics bundle if you can, and we'll happily take a look.
Thanks @andrea-reale. Tried with your build but now I get another error. Sounds like a factory reset might be required, but would rather check first before destroying all the containers.
Diagnostic ID: D594353A-A820-4B7E-B26F-1E146A9BDBF0/20240806200453
I encountered the same issue. Installing version 4.33.0 worked for me(workaround)
@andrea-reale I reinstalled v4.33.1, went to the "Troubleshoot" settings tab, purged data and reset to factory defaults
Version : 4.33.1 (161083)
Engine: 27.1.1
Compose: v2.29.1-desktop.1
Credential Helper: v0.8.2
Kubernetes: v1.30.2
Docker engine doesn't start, so here's the diagnose check output:
Also, here's my %HOME%/.wslconfig
file:
[wsl2]
kernelCommandLine=ipv6.disable=1
memory=20GB
swap=4GB
localhostForwarding=true
processors=4
[experimental]
sparseVhd=true
I also have the failed to unregister WSL docker-desktop distro: Accès refusé.
error now when I want to refresh WSL's integration in the Settings > Resources > WSL Integration panel.
@telsaleh thanks for uploading your diagnostics. From the logs, I can see a WSL2 error that says:
[2024-08-06T20:02:53.965973700Z][com.docker.backend.exe.WSLKeepAlive] Failed to attach disk 'F:\docker\wsl\disk\ext4.vhdx' to WSL2: The system cannot find the file specified.
It looks like WSL2 cannot find the disk backing the docker-desktop-data
distribution at the expected path. A factory reset will definitely help (note that all existing containers, images, etc. will be deleted), unless you know what might have happened to the missing disk.
@Pierstoval, can you please share the diagnostics ID (it's a string similar to: D594353A-A820-4B7E-B26F-1E146A9BDBF0/20240806200453
).
This is generated by going in the Troubleshoot
menu (the bug shaped icon on the top bar), then clicking on Get Support
, and finally clicking Upload to get a Diagonostics ID
. Thanks
@andrea-reale Yep, here it is: C7599527-E956-48F0-BC16-D8C9E30ACB42/20240807075941
.
I can run other diagnostics if you need, because it's heavily changing, sometimes I have different errors... (rip hair from head, etc. 😂).
I just restarted it and got Unable to calculate image disk size
right at launch time. After that, I checked my WSL distro in Resources > WSL integrations
.
I also had the "Privileged service not started" error, clicked on "Start"
Hey @Pierstoval,
from the logs I see that the problem is related to the fact that you have IPv6 disabled in your wsl config: (kernelCommandLine=ipv6.disable=1
).
FATAL: running services: running services namespace: adding IPv6 to services1
Is that something that you (or your company administrator, if any) recently changed?
I've been using this for years, as ipv6 is not supported everywhere, and I had issues with it enabled in the past. I wonder why it would suddenly break things right now 🤔
EDIT: Oh my. I re-enabled ipv6 and it now starts. With the latest version 😱 I'm gonna check lots of things to see if my projects work on it (though I have to re-download all images and reinstall all the projects I'm working on 😑)
EDIT 2: apparently, my main project works... 😱
Docker doesn't work anymore since 12. Juli '24.
It worked for 2 Years, now it stucks in engine starting. Nothing helped, updates, new installation,
Whats wrong?
Same thing, going to try uninstalling and reinstalling. Bad update
Same thing, going to try uninstalling and reinstalling. Bad update
this works
same issue, doesn't start and just keeps asking for previledge helper in a loop.
wsl --update which I run and is already up to date
dia ID A89CF936-1CF7-4B13-AD32-CF7D80A703F4/20240808033712
EDIT:
solved by commenting out in wslconfig
[wsl2]
# kernel=C:\\Users\\dragon\\bzImage-5-15-153-1
@bigsk1 for the record, I think custom kernels are kinda experimental in WSL
@bigsk1 for the record, I think custom kernels are kinda experimental in WSL
I say custom but I mean latest from wsl github repo and complied, after 2 years without a wsl update nativly had to take measures. I think there was something specfic at the time and needed above a certain kernel in order to work. Such is life..
@telsaleh thanks for uploading your diagnostics. From the logs, I can see a WSL2 error that says:
[2024-08-06T20:02:53.965973700Z][com.docker.backend.exe.WSLKeepAlive] Failed to attach disk 'F:\docker\wsl\disk\ext4.vhdx' to WSL2: The system cannot find the file specified.
It looks like WSL2 cannot find the disk backing the
docker-desktop-data
distribution at the expected path. A factory reset will definitely help (note that all existing containers, images, etc. will be deleted), unless you know what might have happened to the missing disk.
Thanks @andrea-reale for pointing this out. I recently had to move docker to another drive, and hence the problem. A rename of the file fixed the issue.
Working now, many thanks!!
N.B: Probably worth confirming that on my other (unadministered) machine , it worked fine without the need for the special updated version.
same issue, doesn't start and just keeps asking for previledge helper in a loop.
wsl --update which I run and is already up to date
dia ID A89CF936-1CF7-4B13-AD32-CF7D80A703F4/20240808033712
EDIT:
solved by commenting out in wslconfig
[wsl2] # kernel=C:\\Users\\dragon\\bzImage-5-15-153-1
This might be rough for users who are utilizing custom kernels in order to address #12944 / https://github.com/carlfriedrich/wsl-kernel-build/issues/1 - that defect requires the selection of a custom kernel to avoid excessive memory usage. Is anyone else here encountering this issue not also using custom kernels?
same issue, doesn't start and just keeps asking for previledge helper in a loop. wsl --update which I run and is already up to date dia ID A89CF936-1CF7-4B13-AD32-CF7D80A703F4/20240808033712 EDIT: solved by commenting out in wslconfig
[wsl2] # kernel=C:\\Users\\dragon\\bzImage-5-15-153-1
This might be rough for users who are utilizing custom kernels in order to address #12944 / carlfriedrich/wsl-kernel-build#1 - that defect requires the selection of a custom kernel to avoid excessive memory usage. Is anyone else here encountering this issue not also using custom kernels?
Yes, I'm using vanilla wsl (as far as I'm aware, never intentionally set a custom kernel)
same issue, doesn't start and just keeps asking for previledge helper in a loop. wsl --update which I run and is already up to date dia ID A89CF936-1CF7-4B13-AD32-CF7D80A703F4/20240808033712 EDIT: solved by commenting out in wslconfig
[wsl2] # kernel=C:\\Users\\dragon\\bzImage-5-15-153-1
This might be rough for users who are utilizing custom kernels in order to address #12944 / carlfriedrich/wsl-kernel-build#1 - that defect requires the selection of a custom kernel to avoid excessive memory usage. Is anyone else here encountering this issue not also using custom kernels?
Yes, I am now experiencing this and am not using a custom kernel (I don't even have a .wslconfig).
Getting this too.
Installing the latest version of WSL helped me get Docker Desktop running. https://github.com/microsoft/WSL/releases
I've been using this for years, as ipv6 is not supported everywhere, and I had issues with it enabled in the past. I wonder why it would suddenly break things right now 🤔
EDIT: Oh my. I re-enabled ipv6 and it now starts. With the latest version 😱 I'm gonna check lots of things to see if my projects work on it (though I have to re-download all images and reinstall all the projects I'm working on 😑)
EDIT 2: apparently, my main project works... 😱
Where and how did you re-enable ipv6? (windows, docker, wsl2?) trying to get this to work as well too
Where and how did you re-enable ipv6? (windows, docker, wsl2?)
To enable/disable ipv6 in WSL, edit to your %HOME%/.wslconfig
file (or create it if you don't have it) and add this:
[wsl2]
kernelCommandLine=ipv6.disable=1
The example above will disable ipv6.
In my setup, I had it disabled and when I removed this line of config, it fixed the issue.
(though I still don't understand why)
Same issue after updating to 4.33.1 (161083)
Was previously running 4.32 fine
Updated to WSL 2.3.17, WSL kernel 6.6, then docker, and rolled back to WSL 2.2.4 and kernel 6.1.21.2
When docker starts, it keeps asking for the UAC for C:\Program Files\Docker\Docker\resources\com.docker.admin.exe" wsl-update
, but wsl is up to date.
Running docker with privilege has docker constantly starting and stopping in a loop.
685A9D10-74D9-48FC-AC3E-033962CD07CD/20240822135617 and 685A9D10-74D9-48FC-AC3E-033962CD07CD/20240822140032
@bdkuhman , please see this comment and let me know if that helps.
@bdkuhman , please see this comment and let me know if that helps.
@andrea-reale,
Thanks!
Dev build fixed UAC issue,
Docker's still failing to start.
With kernel 6.6
error spotted in wslbootstrap log: "[2024-08-22T16:28:26.142128706Z][wsl-bootstrap][F] exit status 32"
bundle 685A9D10-74D9-48FC-AC3E-033962CD07CD/20240822163021
With kernel 6.1
error spotted in wslbootstrap log: "[2024-08-22T16:37:23.953265555Z][wsl-bootstrap][F] mounting /lib/modules to /tmp/docker-desktop-<USER>/lib/modules: no such file or directory"
bundle 685A9D10-74D9-48FC-AC3E-033962CD07CD/20240822163732
both wsl 2.2.4.0 and 2.3.17.0
EDIT: this comment helped with modules not being found in 6.1; but I'm still getting exit status 32 with kernel 6.6.
At least on Windows a system restart seems to fix the problem. Afterwards Docker Desktop and the docker engine are starting properly.
For me it fails the first time with the message wsl update failed. Second time i start docker desktop it starts ok...
Why is this issue dragging on for so long?
For me purge data & factory reset helped to fix the problem.
Why no solution yet!?
This is all I am getting in the report log. 1725554399-13270dff1bd40864e018aab7ce955e2470b4dabf4e994d1d6959e70b4502fdc285eb691ed8fd7b8a8dd270463bcc72f0cd99c978221e70c440dca94bbae070c7
Hey there, please try out Docker Desktop 4.34.1 (download page), and let us know if the issue with WSL Updates and Privilege Helper loops continues.
Why can't you just fix the problem??
Hey there, please try out Docker Desktop 4.34.1 (download page), and let us know if the issue with WSL Updates and Privilege Helper loops continues.
It really works in my lab, thanks my friend.
Description
After updating Docker Desktop from 4.32 to 4.33.1 the engine does not start anymore. During the start attempt a "Docker Desktop Privileged Helper" tries to install something / requests elevation. When granted, the engine start goes directly over to engine shutdown. The engine tries to restart after the shutdown, resulting in again the "Docker Desktop Privileged Helper" request. Denying the request leads to an error message that an wsl update failed and Docker Desktop closes. Uninstalling 4.33.1 and reinstalling 4.32 works.
Reproduce
Expected behavior
Docker Desktop Privileged Helper window should close after clicking on yes
docker version
docker info
Diagnostics ID
4D2EDD9D-1FB0-42E7-97D1-7363EB0FFA15/20240805142824
Additional Info
No response