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

Docker Build - Internal Server Error - Application Issue Report

Open siva-rithish opened this issue 1 year ago • 18 comments

Description

Encountered an "Internal Server Error" with the following message:

Application Error We've reported this to our error tracker. Internal Server Error

Reproduce

It occurs since past two updates.

Expected behavior

No response

docker version

Client:
 Cloud integration: v1.0.35+desktop.10
 Version:           25.0.1
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        29cf629
 Built:             Tue Jan 23 23:06:12 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.27.0 (135262)
 Engine:
  Version:          25.0.1
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       71fa3ab
  Built:            Tue Jan 23 23:09:35 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.27
  GitCommit:        a1496014c916f9e62104b33d1bb5bd03b0858e59
 runc:
  Version:          1.1.11
  GitCommit:        v1.1.11-0-g4bccb38
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    25.0.1
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1-desktop.4
    Path:     /Users/rithishkarg/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
Server:
 Containers: 4
  Running: 1
  Paused: 0
  Stopped: 3
 Images: 2
 Server Version: 25.0.1
 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: 2
 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: a1496014c916f9e62104b33d1bb5bd03b0858e59
 runc version: v1.1.11-0-g4bccb38
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.6.12-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 8
 Total Memory: 7.658GiB
 Name: docker-desktop
 ID: ae36d043-d1cf-4990-ac88-e5892cb8a347
 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
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

Diagnostics ID

92DC3F5A-9682-4A47-A192-39480420EFFA/20240126164032

Additional Info

No response

siva-rithish avatar Jan 26 '24 16:01 siva-rithish

+1

rouaks avatar Jan 27 '24 19:01 rouaks

+1

joelkim avatar Jan 29 '24 00:01 joelkim

Can anyone provide a solution to this issue?

piyushmishra1416 avatar Feb 04 '24 11:02 piyushmishra1416

Same issue :(

pclavelloux avatar Feb 04 '24 12:02 pclavelloux

same issue

PR4NJ41 avatar Feb 05 '24 06:02 PR4NJ41

If you are a Mac user, then changing the owner will work for some of the repos. Try this command: sudo chown -R $(id -u):$(id -g) $HOME/.docker

piyushmishra1416 avatar Feb 06 '24 07:02 piyushmishra1416

Same here

Dviros avatar Feb 09 '24 12:02 Dviros

can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272

bsousaa avatar Feb 09 '24 13:02 bsousaa

@bsousaa still happening for me with 4.27.2. I'm on an M1 MacBook Pro running macOS 14.2.

grahamburgsma avatar Feb 09 '24 13:02 grahamburgsma

@bsousaa can confirm as solved on my end; Running on 14.3.1, MBP M3. Thanks a lot.

Dviros avatar Feb 09 '24 15:02 Dviros

can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272

I still get the problem MBP M1 14.3 (23D56)

pclavelloux avatar Feb 23 '24 08:02 pclavelloux

image I have the same issue reinstall docker desktop upgrade to 4.28.0
worked on my MAC Pro M1

ajounie avatar Mar 10 '24 17:03 ajounie

can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272

I still get the problem MBP M1 14.3 (23D56)

test with 4.28.0

ajounie avatar Mar 10 '24 17:03 ajounie

image I have the same issue reinstall docker desktop upgrade to 4.28.0 worked on my MAC Pro M1

This is not working on Windows 11.

aamna2401 avatar Mar 14 '24 02:03 aamna2401

did someone face this issue

unable to resolve docker endpoint: Invalid proto, expected tcp: http://127.0.0.1:5000

aamna2401 avatar Mar 14 '24 02:03 aamna2401

I did the following and it worked for me:

  1. Uninstall Docker Desktop:

    • Drag the Docker app from the Applications folder to the Trash.
    • Open Terminal and run:
      rm -rf ~/Library/Group\ Containers/group.com.docker
      rm -rf ~/.docker
      
    • Empty the Trash.
  2. Download the Latest Docker Desktop:

  3. Reinstall Docker Desktop:

    • Open the downloaded .dmg file and drag the Docker icon to the Applications folder.
    • Launch Docker Desktop from the Applications folder and follow the setup instructions.

m-root avatar Jun 06 '24 12:06 m-root

I did the following and it worked for me:

  1. Uninstall Docker Desktop:

    • Drag the Docker app from the Applications folder to the Trash.
    • Open Terminal and run:
      rm -rf ~/Library/Group\ Containers/group.com.docker
      rm -rf ~/.docker
      
    • Empty the Trash.
  2. Download the Latest Docker Desktop:

  3. Reinstall Docker Desktop:

    • Open the downloaded .dmg file and drag the Docker icon to the Applications folder.
    • Launch Docker Desktop from the Applications folder and follow the setup instructions.

This works! However, I was trying to fix the other issue - stop using buildx, which seems can be fixed by reinstalling Docker Desktop, and this didn't work. It still complains like:

(base) user@MAC Project % sudo docker build --tag "$CONTAINER_NAME:$TARGET" \
--target "stage-$TARGET" $BUILD_ARGS "./"
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build

SiegeSailor avatar Jul 11 '24 06:07 SiegeSailor

I did the following and it worked for me:

  1. Uninstall Docker Desktop:

    • Drag the Docker app from the Applications folder to the Trash.
    • Open Terminal and run:
      rm -rf ~/Library/Group\ Containers/group.com.docker
      rm -rf ~/.docker
      
    • Empty the Trash.
  2. Download the Latest Docker Desktop:

  3. Reinstall Docker Desktop:

    • Open the downloaded .dmg file and drag the Docker icon to the Applications folder.
    • Launch Docker Desktop from the Applications folder and follow the setup instructions.

@m-root I did the following and I was able to get past the "Internal Server Error" but now I am stuck at buildx error:

"open /Users/username/.docker/buildx/current: permission denied"

does anyone else know the solution to this?

Shahzaibahmad97 avatar Jul 18 '24 09:07 Shahzaibahmad97

"open /Users/username/.docker/buildx/current: permission denied"

does anyone else know the solution to this?

Did you invoke sudo docker?

You can mitigate this issue by fixing the owner:

$ sudo chown -R $(id -un):$(id -gn) ~/.docker/buildx

See https://github.com/docker/for-mac/issues/7356 for more info

crazy-max avatar Oct 16 '24 10:10 crazy-max