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

[BUG] Build fails with Bad File Descriptor #12050

Closed
dipanghosh opened this issue Aug 7, 2024 · 6 comments
Closed

[BUG] Build fails with Bad File Descriptor #12050

dipanghosh opened this issue Aug 7, 2024 · 6 comments
Assignees
Labels

Comments

@dipanghosh
Copy link

dipanghosh commented Aug 7, 2024

Description

Running docker compose build

fails with bad file descriptor

I managed to track down this issue to the buildx plugin of docker. See this buildx issue and this pull request. However, I have downgraded buildx to 15.1, and docker compose build still fails. Docker build works after the downgrade.

Steps To Reproduce

Trying to build a container, while on a NFS is likely causing the issue.

Run docker compose build

Compose Version

Docker Compose version v2.29.1
docker-compose not installed

Docker Environment

Client: Docker Engine - Community
 Version:    27.1.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.15.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 15
  Running: 13
  Paused: 0
  Stopped: 2
 Images: 33
 Server Version: 27.1.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: systemd
 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: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc version: v1.1.13-0-g58aa920
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.1.0-23-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 31.3GiB
 Name: services
 ID: d106e603-8eb2-486e-82a3-51976dee2d5a
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Anything else?

I downgraded compose to version 2.28.1, at which point the errors were resolved.

@glours
Copy link
Contributor

glours commented Aug 7, 2024

Hey @dipanghosh

Compose is vendoring buildx which explains why even if you downgrade buildx version you still have the issue with Compose. This will be fixed on the Compose side when we'll bump buildx version with the fix included

@glours glours self-assigned this Aug 7, 2024
@dipanghosh
Copy link
Author

Ah I see. That makes sense.

Thanks for the clarification. Once the new version comes, I will close the issue.

@SJaffa
Copy link

SJaffa commented Sep 12, 2024

I'm getting this too, is there an estimate for when it will be fixed, or a workaround if that is a while away?
I have Docker version 27.1.1 and Docker Buildx version 0.16.1

@SJaffa
Copy link

SJaffa commented Sep 13, 2024

Fixed for me by upgrading to Docker version 27.2.1 with buildx v0.16.2

@glours
Copy link
Contributor

glours commented Sep 23, 2024

@dipanghosh can we close this issue? do you still have troubles with lates releases of Compose?

@dipanghosh
Copy link
Author

I have not checked myself, but i believe it to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants