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

Docker Desktop update to 4.32.0: Running wsl distro proxy in Ubuntu-22.04 distro: exit status 1

Open zamanh opened this issue 1 year ago • 67 comments

Description

After upgrading docker desktop I get

image

Reproduce

Upgrade from 4.31.1

Expected behavior

Should just work with no error

docker version

Git commit:       662f78c
  Built:            Sat Jun 29 00:02:50 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.18
  GitCommit:        ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc:
  Version:          1.7.18
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    27.0.3
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.15.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.28.1-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.32
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.14
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.25
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.3.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.10.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
 Containers: 110
  Running: 19
  Paused: 0
  Stopped: 91
 Images: 40
 Server Version: 27.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: 5.15.153.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 15.5GiB
 Name: docker-desktop
 ID: 30ccb9ff-769f-4c04-b6de-e611cb642836
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=npipe://\\.\pipe\docker_cli
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

Diagnostics ID

A98290E6-3CC9-416B-8FCE-40023244C402/20240711083753

Additional Info

No response

zamanh avatar Jul 11 '24 11:07 zamanh

Getting the same even when downgrading to the version before this.

zamanh avatar Jul 11 '24 11:07 zamanh

Also now being greeted with on any version of Docker I install. The diagnostics returns image however I am definitely in the docker-users group so I am quite broken at the moment.

image

zamanh avatar Jul 11 '24 14:07 zamanh

When I check the docker command, I see /usr/bin/docker -> /mnt/wsl/docker-desktop/cli-tools/usr/bin/docker , but /mnt/wsl/docker-desktop/cli-tools/ is empty, I think it should be this data loss, how to fixed?

liuyongAlive avatar Jul 12 '24 04:07 liuyongAlive

I downgraded to 4.27.2 and got my install working again. I tried 4.30.0 and is also didn't work.

thardie avatar Jul 15 '24 00:07 thardie

I downgraded to 4.27.2 and got my install working again. I tried 4.30.0 and is also didn't work.

Did not work for me, still getting the same result as below:

Also now being greeted with on any version of Docker I install. The diagnostics returns image however I am definitely in the docker-users group so I am quite broken at the moment.

image

zamanh avatar Jul 15 '24 13:07 zamanh

I attempted to install 24.04 LTS from the MS Store and Docker Desktop, the latest version will work straight out the box with that after turning it on in Docker Desktop settings. Not quite sure why it's still not talking to my current Ubuntu 22.04 install. I did notice a difference below:

which docker on my broken WSL system gives path => /Docker/host/bin/docker

On the new installation it gives path => /usr/bin/docker

zamanh avatar Jul 15 '24 13:07 zamanh

Same problem here. Added a comment with all info here: https://github.com/docker/for-win/issues/14127#issuecomment-2235639822

dbalabka avatar Jul 18 '24 06:07 dbalabka

It looks the following logs part is related:

[2024-07-18T07:03:51.299363100Z] [07:03:51.299363100Z][main.wslintegration   ] starting distro watcher
[2024-07-18T07:03:51.388821500Z] [07:03:51.388821500Z][main.wslintegration   ] current active agents before sync: 0
[2024-07-18T07:03:51.388821500Z] [07:03:51.388821500Z][main.wslintegration   ] active agents: 0
[2024-07-18T07:03:51.388821500Z] [07:03:51.388821500Z][main.wslintegration   ] adding a wsl agent for new distro Ubuntu
[2024-07-18T07:03:51.388821500Z] [07:03:51.388821500Z][main.ipc              ] 8cbfa694-wslintegrationagent-Ubuntu -> \\.\pipe\dockerWSLCrossDistroService CrossDistroService
[2024-07-18T07:03:51.388821500Z] [07:03:51.388821500Z][main.wslintegration   ] done syncing agents
[2024-07-18T07:03:51.388821500Z] [07:03:51.388821500Z][main.wsldistroproxy   ] start wsl integration for distro Ubuntu
[2024-07-18T07:03:51.498942600Z] [07:03:51.498942600Z][main.wsldistroproxy   ] Configuring docker credstore to use desktop.exe
[2024-07-18T07:03:51.500505700Z] [07:03:51.500505700Z][main.wsldistroproxy   ] credsStore already set to desktop.exe
[2024-07-18T07:03:51.500505700Z] [07:03:51.500505700Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e whoami
[2024-07-18T07:03:51.641077200Z] [07:03:51.641077200Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -u root -e sh -c ( addgroup docker || true ) && addgroup "dmitrybalabka" docker
[2024-07-18T07:03:51.813586900Z] [07:03:51.813586900Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:51.946888500Z] [07:03:51.946888500Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:52.005455100Z] [07:03:52.005455100Z][main.segment          ] flushing 1 messages
[2024-07-18T07:03:52.078111400Z] [07:03:52.078111400Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e /mnt/wsl/docker-desktop/docker-desktop-user-distro sync-context-store /mnt/c/Users/dmitry.balabka/.docker/contexts
[2024-07-18T07:03:52.158497200Z] <3>WSL (1150) ERROR: CreateProcessCommon:500: execvpe(/mnt/wsl/docker-desktop/docker-desktop-user-distro) failed: Permission denied
[2024-07-18T07:03:52.180594100Z] [07:03:52.180594100Z][main.segment          ] response 200 OK
[2024-07-18T07:03:52.212260800Z] [07:03:52.212260800Z][main.wsldistroproxy   ][W] syncing context store in Ubuntu distro: cli contexts not resynced: exit status 1
[2024-07-18T07:03:52.212260800Z] [07:03:52.212260800Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:52.348043100Z] [07:03:52.348043100Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:52.479913900Z] [07:03:52.479913900Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e /mnt/wsl/docker-desktop/docker-desktop-user-distro sync-home-subdir /mnt/c/Users/dmitry.balabka/.aws
[2024-07-18T07:03:52.562342600Z] <3>WSL (1156) ERROR: CreateProcessCommon:500: execvpe(/mnt/wsl/docker-desktop/docker-desktop-user-distro) failed: Permission denied
[2024-07-18T07:03:52.612329600Z] [07:03:52.612329600Z][main.wsldistroproxy   ][W] syncing ~/.aws in Ubuntu distro: path .aws not synced: exit status 1
[2024-07-18T07:03:52.612329600Z] [07:03:52.612329600Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:52.748277700Z] [07:03:52.748277700Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:52.969548100Z] [07:03:52.969548100Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e /mnt/wsl/docker-desktop/docker-desktop-user-distro sync-home-subdir /mnt/c/Users/dmitry.balabka/.azure
[2024-07-18T07:03:53.074502900Z] <3>WSL (1162) ERROR: CreateProcessCommon:500: execvpe(/mnt/wsl/docker-desktop/docker-desktop-user-distro) failed: Permission denied
[2024-07-18T07:03:53.139206900Z] [07:03:53.139206900Z][main.wsldistroproxy   ][W] syncing ~/.azure in Ubuntu distro: path .azure not synced: exit status 1
[2024-07-18T07:03:53.139206900Z] [07:03:53.139206900Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:53.275459000Z] [07:03:53.275459000Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:53.413495600Z] [07:03:53.413495600Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e /mnt/wsl/docker-desktop/docker-desktop-user-distro sync-file /mnt/c/Users/dmitry.balabka/.docker/features.json ~/.docker/features.json
[2024-07-18T07:03:53.499023400Z] <3>WSL (1168) ERROR: CreateProcessCommon:500: execvpe(/mnt/wsl/docker-desktop/docker-desktop-user-distro) failed: Permission denied
[2024-07-18T07:03:53.551590100Z] [07:03:53.551590100Z][main.wsldistroproxy   ][W] syncing ~/.docker/features.json in Ubuntu distro: syncing windows path /mnt/c/Users/dmitry.balabka/.docker/features.json to ~/.docker/features.json: exit status 1
[2024-07-18T07:03:53.551590100Z] [07:03:53.551590100Z][main.wsldistroproxy   ] Killing CLI API server running at /home/dmitrybalabka/.docker/run/docker-cli-api.sock
[2024-07-18T07:03:53.565810600Z] [07:03:53.565282400Z][main.wsldistroproxy   ] Starting WSL Distro proxy
[2024-07-18T07:03:53.565810600Z] [07:03:53.565810600Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -e cat /etc/wsl.conf
[2024-07-18T07:03:53.709711700Z] [07:03:53.709711700Z][main.wsldistroproxy   ] wsl.exe -d Ubuntu -u root -e /mnt/wsl/docker-desktop/docker-desktop-user-distro proxy --distro-name Ubuntu --docker-desktop-root /mnt/wsl/docker-desktop C:\Program Files\Docker\Docker\resources
[2024-07-18T07:03:53.794320100Z] <3>WSL (1174) ERROR: CreateProcessCommon:500: execvpe(/mnt/wsl/docker-desktop/docker-desktop-user-distro) failed: Permission denied
[2024-07-18T07:03:53.846179200Z] [07:03:53.846179200Z][main.wslintegration   ] distro agent Ubuntu exited unexpectedly: running wsl distro proxy in Ubuntu distro: exit status 1
[2024-07-18T07:03:53.846179200Z] [07:03:53.846179200Z][main.wslintegration   ] attempting recovery from agent Ubuntu error: running wsl distro proxy in Ubuntu distro: exit status 1
[2024-07-18T07:03:53.846179200Z] [07:03:53.846179200Z][main.report           ] reporting error to user: running wsl distro proxy in Ubuntu distro: exit status 1
[2024-07-18T07:03:53.846698100Z] [07:03:53.846698100Z][main.report           ] error server listening on \\.\pipe\errorReporter
[2024-07-18T07:03:53.846698100Z] [07:03:53.846698100Z][main.ipc              ] run c5b7f84a-ErrorReportAPI for component report on \\.\pipe\errorReporter
[2024-07-18T07:03:54.650050900Z] [07:03:54.649310100Z][main.ipc              ] (b770baeb) 69684cf6-BackendAPI S<-C Docker-Desktop/4.32.0 (Windows; x64) GET /app/settings
[2024-07-18T07:03:54.650555900Z] [07:03:54.649815500Z][main.daemonconfigloader] get daemon config: {"builder":{"gc":{"defaultKeepStorage":"20GB","enabled":true}},"experimental":false}

dbalabka avatar Jul 18 '24 07:07 dbalabka

Not sure if it is related or not, but file requested by a command:

wsl.exe -d Ubuntu -e /mnt/wsl/docker-desktop/docker-desktop-user-distro sync-context-store /mnt/c/Users/dmitry.balabka/.docker/contexts

only accessible by root:

❯ ll /mnt/wsl/docker-desktop/docker-desktop-user-distro
-rw-r--r-- 1 root root 0 Jul 18 10:02 /mnt/wsl/docker-desktop/docker-desktop-user-distro
/mnt/c/Users/dmitry.balabka/AppData/Local/Docker/log ·················································································································································· 10:12:29
❯ /mnt/wsl/docker-desktop/docker-desktop-user-distro
zsh: permission denied: /mnt/wsl/docker-desktop/docker-desktop-user-distro

While direct access to command works:

wsl -d docker-desktop -e /docker-desktop-user-distro

dbalabka avatar Jul 18 '24 07:07 dbalabka

After facing this issue for a while, I managed to solve it by updating wsl

https://github.com/microsoft/WSL/releases

erikyo avatar Jul 18 '24 10:07 erikyo

@erikyo, I'm using the latest version. Could you please provide the version you have?

wsl --version
WSL version: 2.3.11.0
Kernel version: 6.6.36.3-1
WSLg version: 1.0.63
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26120.1252

dbalabka avatar Jul 18 '24 10:07 dbalabka

this one

wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22635.3930

erikyo avatar Jul 18 '24 10:07 erikyo

@erikyo , so you have an older version. Probably, the problem is connected with newer version of WSL

dbalabka avatar Jul 18 '24 10:07 dbalabka

Probably, connected issue: https://github.com/microsoft/WSL/issues/11794

dbalabka avatar Jul 18 '24 10:07 dbalabka

v 2.3.11.0 seems to be a pre-release version... maybe something is wrong there. not sure, just guessing!

erikyo avatar Jul 18 '24 10:07 erikyo

I ran into the same issue after Windows Update updated WSL to 2.3.11.

ifrvn avatar Jul 18 '24 10:07 ifrvn

Rollback to 2.2.4 helped me: https://github.com/microsoft/WSL/issues/11794#issuecomment-2235255851

dbalabka avatar Jul 18 '24 10:07 dbalabka

Rollback to 2.2.4 helped me: microsoft/WSL#11794 (comment)

I am still on:

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3880

zamanh avatar Jul 18 '24 11:07 zamanh

Rollback to 2.2.4 helped me: microsoft/WSL#11794 (comment)

I am still on:

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3880

What docker version are you running? Downgrading 4.32.x to 4.30.0 and downgrading WSL to 2.2.4 worked for me

BillyBlaze avatar Jul 18 '24 11:07 BillyBlaze

Rollback to 2.2.4 helped me: microsoft/WSL#11794 (comment)

I am still on:

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3880

What docker version are you running? Downgrading 4.32.x to 4.30.0 and downgrading WSL to 2.2.4 worked for me

I've tried so many versions, still getting the same result as shown here: https://github.com/docker/for-win/issues/14187#issuecomment-2223035834 I don't think I have this issue exactly now, but it must be something specific to my WSL install which hasn't resolved. If I install a new distro e.g. Ubuntu 24.04 from the MS Store. I have no issues with the latest Docker and WSL.

zamanh avatar Jul 18 '24 11:07 zamanh

same error, but after restarting and manually restarting the "docker desktop service" it did work again.

wsl --version
WSL-Version: 2.3.11.0
Kernelversion: 6.6.36.3-1
WSLg-Version: 1.0.63
MSRDC-Version: 1.2.5326
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.26100.1-240331-1435.ge-release
Windows-Version: 10.0.26120.1252
> docker --version
Docker version 27.0.3, build 7d4bcd8
> which docker
C:\Program Files\Docker\Docker\resources\bin\docker
si@m:~$ uname -r
6.6.36.3-microsoft-standard-WSL2
si@m:~$ which docker
/usr/bin/docker
si@m:~$ docker -v
Docker version 27.0.3, build 7d4bcd8
si@m:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 23.04
Release:        23.04
Codename:       lunar

edit: 24.07 correction. stoped working today. didnt change a thing. back to the belover error

monsdroid avatar Jul 18 '24 15:07 monsdroid

After facing this issue for a while, I managed to solve it by updating wsl

https://github.com/microsoft/WSL/releases

I tried that as one of my first troubleshooting steps, and it didn't fix it for me.

Here's my version:

WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.3880

thardie avatar Jul 18 '24 17:07 thardie

I was experiencing the same issues after recent updates. Not sure what the root cause was, but updating to Ubuntu 24.04 using the command winget install 9NZ3KLHXDJP5 seemed to do the trick for now.

frasermclean avatar Jul 19 '24 00:07 frasermclean

Just to add, downgrading to WSL to 2.2.4.0 fixed the issue for me as well. As soon as I did that I noticed the /mnt/wsl/docker-desktop/cli-tools/ once again had the directories it should.

As a side note, make sure to download the msi file for your architecture, not the msixbundle. The latter one does not downgrade your installation, it only reinstalls the latest.

Cheers!

TheJoelGray avatar Jul 19 '24 14:07 TheJoelGray

same here, downgrading WSL to 2.2.4.0 fixed the problem immediately

GersonDias avatar Jul 19 '24 18:07 GersonDias

I attempted to actually not use Docker Desktop and install Docker natively into my WSL Ubuntu. This was working. I then removed Docker from Ubuntu. Re-enabled Docker Desktop by turning back on the integration with WSL2 and it appears to be working.

zamanh avatar Jul 22 '24 10:07 zamanh

I was experiencing the same issues after recent updates. Not sure what the root cause was, but updating to Ubuntu 24.04 using the command winget install 9NZ3KLHXDJP5 seemed to do the trick for now.

Thanks, that solved it for me.

dvdmchl avatar Jul 22 '24 18:07 dvdmchl

I was experiencing the same issues after recent updates. Not sure what the root cause was, but updating to Ubuntu 24.04 using the command winget install 9NZ3KLHXDJP5 seemed to do the trick for now.

That worked for me for about a day. Going to try downgrading WSL next to see if that resolves it.

smcgettrick avatar Jul 23 '24 11:07 smcgettrick

I was experiencing the same issues after recent updates. Not sure what the root cause was, but updating to Ubuntu 24.04 using the command winget install 9NZ3KLHXDJP5 seemed to do the trick for now.

That worked for me for about a day. Going to try downgrading WSL next to see if that resolves it.

It didn't start for me today again. I've got inspired by this answer: https://stackoverflow.com/questions/71644746/docker-wsl-2-integration-with-distro-ubuntu-20-04-unexpectedly-stopped-with-exi Have removed duplicities in my Path system variable. There were duplicities c:\Windows\System32 and c:\WINDOWS\System32. I've removed those with upper case WINDOWS. The Docker Desktop started then. On my system WSL is still 2.3.11 and Docker Desktop is 4.32.0

dvdmchl avatar Jul 23 '24 15:07 dvdmchl

Broken again after a week like https://github.com/docker/for-win/issues/14187#issuecomment-2223035834, reverted back to using Docker in WSL installed natively. Latest v4.33.0 doesn't solve it either.

zamanh avatar Jul 26 '24 10:07 zamanh