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

The requested URL returned error: 404 #1092

Open
devhl-labs opened this issue Aug 14, 2024 · 5 comments
Open

The requested URL returned error: 404 #1092

devhl-labs opened this issue Aug 14, 2024 · 5 comments

Comments

@devhl-labs
Copy link

Installing docker-in-docker fails to curl, not sure what url. How can I fix this?

[dev_containers_target_stage 6/6] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=docker-in-docker_1,target=/tmp/build-features-src/docker-in-docker_1 cp -ar /tmp/build-features-src/docker-in-docker_1 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/docker-in-docker_1 && cd /tmp/dev-container-features/docker-in-docker_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/docker-in-docker_1:
0.474 ===========================================================================
0.474 Feature : Docker (Docker-in-Docker)
0.474 Description : Create child containers inside a container, independent from the host's docker instance. Installs Docker extension in the container along with needed CLIs.
[2024-08-14T14:52:48.241Z] 0.474 Id : ghcr.io/devcontainers/features/docker-in-docker
0.474 Version : 2.11.0
0.474 Documentation : https://github.com/devcontainers/features/tree/main/src/docker-in-docker
0.474 Options :
0.474 VERSION="latest"
[2024-08-14T14:52:48.241Z] 0.474 MOBY="true"
0.474 MOBYBUILDXVERSION="latest"
0.474 DOCKERDASHCOMPOSEVERSION="v2"
0.474 AZUREDNSAUTODETECTION="true"
0.474 DOCKERDEFAULTADDRESSPOOL=""
0.474 INSTALLDOCKERBUILDX="true"
0.474 INSTALLDOCKERCOMPOSESWITCH="false"
0.474 ===========================================================================
0.500 Distro codename 'focal' matched filter 'bookworm buster bullseye bionic focal jammy noble'
1.005 Get:1 https://packages.microsoft.com/repos/azure-cli focal InRelease [3596 B]
[2024-08-14T14:52:48.241Z] 1.032 Get:2 https://packages.microsoft.com/repos/microsoft-ubuntu-focal-prod focal InRelease [3632 B]
1.058 Get:3 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
1.163 Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB]
1.171 Get:5 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
1.192 Get:6 https://packages.microsoft.com/repos/azure-cli focal/main amd64 Packages [1713 B]
1.230 Get:7 https://packages.microsoft.com/repos/azure-cli focal/main all Packages [4113 B]
1.328 Get:8 https://packages.microsoft.com/repos/microsoft-ubuntu-focal-prod focal/main all Packages [2714 B]
1.358 Get:9 https://packages.microsoft.com/repos/microsoft-ubuntu-focal-prod focal/main amd64 Packages [308 kB]
1.460 Get:10 https://download.docker.com/linux/ubuntu focal/stable amd64 Packages [58.5 kB]
1.682 Get:11 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB]
1.723 Get:12 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.9 kB]
1.806 Get:13 http://archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB]
1.842 Get:14 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3867 kB]
1.946 Get:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
2.758 Get:16 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3885 kB]
3.431 Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1256 kB]
3.853 Get:18 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
3.853 Get:19 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
3.874 Get:20 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
3.999 Get:21 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.5 kB]
4.012 Get:22 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1543 kB]
[2024-08-14T14:52:48.241Z] 4.175 Get:23 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [4351 kB]
4.488 Get:24 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4018 kB]
[2024-08-14T14:52:48.241Z] 4.805 Get:25 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
4.812 Get:26 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
6.670 Fetched 33.0 MB in 6s (5650 kB/s)
6.670 Reading package lists...
8.464 Docker / Moby CLI and Engine already installed.
8.464 Finished installing docker / moby!
8.717 compose_version=2.29.2
8.717 (*) Installing docker-compose 2.29.2...
8.859 curl: (22) The requested URL returned error: 404
8.863 Error: Failed to install docker-compose v2.29.2
8.864 chmod: cannot access '/usr/local/bin/docker-compose': No such file or directory
8.865 ERROR: Feature "Docker (Docker-in-Docker)" (ghcr.io/devcontainers/features/docker-in-docker) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/docker-in-docker for help troubleshooting this error.


@devhl-labs
Copy link
Author

devhl-labs commented Aug 14, 2024

I think I see the issue. It is trying to curl https://github.com/docker/compose/releases/download/v2.29.2/docker-compose-Linux-x86_64 acording to the releases, that version does not exist, latest is 2.29.1 https://github.com/docker/compose/releases/

curl -fsSL "https://github.com/docker/compose/releases/download/${compose_v1_version}/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose

I was able to work around this issue by providing "dockerDashComposeVersion": "v2.29.1" instead of the v2 I had.

@neilschark
Copy link

I got the same problem, setting it manually is helping me for now, but just a workaround.

@chrmarti
Copy link

chrmarti commented Sep 3, 2024

https://github.com/docker/compose/releases/download/v2.29.2/docker-compose-Linux-x86_64 is now available. I guess its publishing was delayed and the script picked up the version from the repository's tags. Maybe the script could fall back to the previous tag when the current doesn't have a download yet.

@adamstegman
Copy link

This happened again for v2.30.0, but worked again within 10 minutes.

@PetoriousBIG
Copy link

This disrupted me briefly this morning but fixed itself quickly.

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

No branches or pull requests

5 participants