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

Container fails to initialize because Java 17 can't be installed #2

Open
fbricon opened this issue Nov 7, 2022 · 1 comment
Open

Comments

@fbricon
Copy link

fbricon commented Nov 7, 2022

Tested a new repo in codespaces:

2022-11-07 10:46:11.483Z: #6 ERROR: executor failed running [/bin/sh -c bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh              && sdk install jbang && jbang jdk install 17"]: exit code: 3
2022-11-07 10:46:11.651Z: ------
2022-11-07 10:46:11.651Z:  > [dev_container_auto_added_stage_label 3/3] RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh              && sdk install jbang && jbang jdk install 17":
2022-11-07 10:46:11.651Z: #6 9.028 Installing: jbang 0.99.1
2022-11-07 10:46:11.651Z: #6 9.092 Done installing!
2022-11-07 10:46:11.651Z: #6 9.092 
2022-11-07 10:46:11.651Z: #6 9.092 
2022-11-07 10:46:11.651Z: #6 9.092 Setting jbang 0.99.1 as default.
2022-11-07 10:46:11.651Z: #6 11.24 [jbang] Downloading JDK 17. Be patient, this can take several minutes...
2022-11-07 10:46:11.651Z: #6 58.90 [jbang] Installing JDK 17...
2022-11-07 10:46:11.651Z: #6 59.69 [jbang] [ERROR] Required Java version not possible to download or install. You can run with '--java 11' to force using the default installed Java.
2022-11-07 10:46:11.651Z: #6 59.69 [jbang] [ERROR] Unable to download or install JDK version 17
2022-11-07 10:46:11.651Z: #6 59.69 [jbang] Run with --verbose for more details
2022-11-07 10:46:11.651Z: ------
2022-11-07 10:46:11.651Z: ERROR: failed to solve: executor failed running [/bin/sh -c bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh              && sdk install jbang && jbang jdk install 17"]: exit code: 3
2022-11-07 10:46:11.651Z: Stop (75718 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.23.2-1667817895886/Dockerfile-with-features -t vsc-jbangdemo-e5367a0f93c7f8772653e6d8ccb08638 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/jbangdemo/.devcontainer
2022-11-07 10:46:11.651Z: Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /tmp/devcontainercli-root/container-features/0.23.2-1667817895886/Dockerfile-with-features -t vsc-jbangdemo-e5367a0f93c7f8772653e6d8ccb08638 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /var/lib/docker/codespacemount/workspace/jbangdemo/.devcontainer
2022-11-07 10:46:11.651Z:     at doe (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1888:1635)
2022-11-07 10:46:11.651Z:     at runMicrotasks (<anonymous>)
2022-11-07 10:46:11.651Z:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2022-11-07 10:46:11.651Z:     at async pF (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1887:1973)
2022-11-07 10:46:11.651Z:     at async eT (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1887:901)
2022-11-07 10:46:11.651Z:     at async voe (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1893:2049)
2022-11-07 10:46:11.651Z:     at async Xf (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1893:3212)
2022-11-07 10:46:11.652Z:     at async Jae (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:2013:15058)
2022-11-07 10:46:11.652Z:     at async Wae (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:2013:14812)
2022-11-07 10:46:11.652Z: Stop (225557 ms): Run: /usr/bin/node /usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --workspace-folder /var/lib/docker/codespacemount/workspace/jbangdemo --id-label Type=codespaces --log-level info --log-format json --config /var/lib/docker/codespacemount/workspace/jbangdemo/.devcontainer/devcontainer.json --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --skip-post-create --update-remote-user-uid-default never --mount-workspace-git-root false
2022-11-07 10:46:11.652Z: Exit code 1

@quintesse
Copy link

Any chance you could add a --verbose to that invocation and try again?

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

2 participants