Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Build - Internal Server Error - Application Issue Report #7144

Open
siva-rithish opened this issue Jan 26, 2024 · 19 comments · May be fixed by docker/buildx#2745 or docker/buildx#2739
Open

Docker Build - Internal Server Error - Application Issue Report #7144

siva-rithish opened this issue Jan 26, 2024 · 19 comments · May be fixed by docker/buildx#2745 or docker/buildx#2739

Comments

@siva-rithish
Copy link

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

@rouaks
Copy link

rouaks commented Jan 27, 2024

+1

1 similar comment
@joelkim
Copy link

joelkim commented Jan 29, 2024

+1

@piyushmishra1416
Copy link

Can anyone provide a solution to this issue?

@pclavelloux
Copy link

Same issue :(

@PR4NJ41
Copy link

PR4NJ41 commented Feb 5, 2024

same issue

@piyushmishra1416
Copy link

piyushmishra1416 commented Feb 6, 2024

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

@Dviros
Copy link

Dviros commented Feb 9, 2024

Same here

@bsousaa
Copy link
Contributor

bsousaa commented Feb 9, 2024

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

@grahamburgsma
Copy link

grahamburgsma commented Feb 9, 2024

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

@Dviros
Copy link

Dviros commented Feb 9, 2024

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

@pclavelloux
Copy link

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)

@ajounie
Copy link

ajounie commented Mar 10, 2024

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

@ajounie
Copy link

ajounie commented Mar 10, 2024

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

@aamna2401
Copy link

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
Copy link

did someone face this issue

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

@m-root
Copy link

m-root commented Jun 6, 2024

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.

@SiegeSailor
Copy link

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

@Shahzaibahmad97
Copy link

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?

@crazy-max
Copy link
Member

crazy-max commented Oct 16, 2024

"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 #7356 for more info

@crazy-max crazy-max linked a pull request Oct 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet