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] open -: no such file or directory #12262

Closed
Pyxxil opened this issue Nov 3, 2024 · 6 comments
Closed

[BUG] open -: no such file or directory #12262

Pyxxil opened this issue Nov 3, 2024 · 6 comments

Comments

@Pyxxil
Copy link

Pyxxil commented Nov 3, 2024

Description

I'm not sure that the fix in #12248 has actually changed anything, as I still seem to be getting this issue in compose 2.30.1

Steps To Reproduce

  1. docker compose --file - up
  2. See a similar error as in the issue title

Compose Version

Docker Compose version 2.30.1

Docker Compose version 2.30.1

Docker Environment

Client:
Version: 27.3.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: 0.18.0
Path: /usr/lib/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: 2.30.1
Path: /usr/lib/docker/cli-plugins/docker-compose

Server:
Containers: 44
Running: 43
Paused: 0
Stopped: 1
Images: 57
Server Version: 27.3.1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: true
Native Overlay Diff: false
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: 57f17b0a6295a39009d861b89e3b3b87b005ca27.m
runc version:
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.6.58-1-lts
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 62.18GiB
Name: andromeda
ID: 6WJ7:VZ23:KMIX:YN3K:CWPS:WCCQ:CBHH:SIGF:VNAW:AONR:7YYV:XI55
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

Anything else?

No response

@idsulik
Copy link
Collaborator

idsulik commented Nov 4, 2024

Strange things. If I download the latest release and check - I'm able to reproduce the issue, but if I checkout the source code to the releases's commit and check - I'm not able to reproduce it.

git checkout main
git pull upstream main
go mod vendor #I also tried to clear cache and download again

grep -r 'if c.Filename == "-" {' vendor            
vendor/github.com/compose-spec/compose-go/v2/cli/options.go:            if c.Filename == "-" {

but here https://github.com/compose-spec/compose-go/blob/0e87616cc763e8d39e60b5c69ce374095ac9303a/cli/options.go#L417
the line looks like this(this one is correct)
if c.IsStdin() {

@idsulik
Copy link
Collaborator

idsulik commented Nov 4, 2024

The fix should be delivered within the next release because for some reason the fix is in the compose-go v2.4.3 while it should be in the v2.4.2.

v.2.4.2
Image

v2.4.3
Image

full picture
Image

@idsulik
Copy link
Collaborator

idsulik commented Nov 5, 2024

@glours hi! Do you know what the problem might be? Maybe I'm missing something?

@glours
Copy link
Contributor

glours commented Nov 5, 2024

@idsulik I didn't check, but I suppect go mod not being happy with the re-push of an existing tag

@idsulik
Copy link
Collaborator

idsulik commented Nov 5, 2024

I suppect go mod not being happy with the re-push of an existing tag.

I'm more than sure it's the reason) interesting case

@glours
Copy link
Contributor

glours commented Nov 5, 2024

Fix by Compose v2.30.2 release

@glours glours closed this as completed Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants