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

Error building container. Maybe Label devcontainer.metadata related #9880

Open
yuu-misaki opened this issue May 13, 2024 · 2 comments
Open
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@yuu-misaki
Copy link

  • VSCode Version: 1.89.0
  • Local OS Version: Windows_NT x64 10.0.19045
  • Remote OS Version: Ubuntu 20.04.2 LTS
  • Remote Extension/Connection Type: Containers
  • Logs:
[2024-05-08T07:36:20.350Z] 
[2024-05-08T07:36:20.377Z] ERROR: Service 'main' failed to build: failed to process "\"[ {\\\"id\\\":\\\"ghcr.io/devcontainers/features/common-utils:2\\\"}, {\\\"id\\\":\\\"ghcr.io/devcontainers/features/git:1\\\"}, {\\\"id\\\":\\\"ghcr.io/devcontainers/features/node:1\\\",\\\"customizations\\\":{\\\"vscode\\\":{\\\"extensions\\\":[\\\"dbaeumer.vscode-eslint\\\"]}}}, {\\\"id\\\":\\\"ghcr.io/devcontainers/features/python:1\\\",\\\"customizations\\\":{\\\"vscode\\\":{\\\"extensions\\\":[\\\"ms-python.python\\\",\\\"ms-python.vscode-pylance\\\"],\\\"settings\\\":{\\\"python.defaultInterpreterPath\\\":\\\"/usr/local/python/current/bin/python\\\"}}}}, {\\\"customizations\\\":{\\\"vscode\\\":{\\\"settings\\\":{\\\"python.defaultInterpreterPath\\\":\\\"/usr/local/bin/python\\\"}}},\\\"remoteUser\\\":\\\"vscode\\\"}, {\\\"id\\\":\\\"ghcr.io/devcontainers/features/docker-outside-of-docker:1\\\",\\\"entrypoint\\\":\\\"/usr/local/share/docker-init.sh\\\",\\\"mounts\\\":[{\\\"source\\\":\\\"/var/run/docker.sock\\\",\\\"target\\\":\\\"/var/run/docker-host.sock\\\",\\\"type\\\":\\\"bind\\\"}],\\\"customizations\\\":{\\\"vscode\\\":{\\\"extensions\\\":[\\\"ms-azuretools.vscode-docker\\\"]}}}, {\\\"id\\\":\\\"ghcr.io/devcontainers/features/git:1\\\"}, {\\\"postAttachCommand\\\":\\\"rm /home/vscode/.docker/config.json\\\",\\\"customizations\\\":{\\\"vscode\\\":{\\\"extensions\\\":[\\\"hediet.vscode-drawio\\\",\\\"yzhang.markdown-all-in-one\\\",\\\"bierner.github-markdown-preview\\\",\\\"bierner.markdown-mermaid\\\",\\\"jebbs.plantuml\\\",\\\"HashiCorp.terraform\\\",\\\"ms-vscode.makefile-tools\\\",\\\"ms-azuretools.vscode-docker\\\",\\\"saramorillon.terraform-graph\\\",\\\"ms-python.python\\\",\\\"ms-python.black-formatter\\\",\\\"matangover.mypy\\\",\\\"charliermarsh.ruff\\\",\\\"njpwerner.autodocstring\\\",\\\"ms-toolsai.jupyter\\\",\\\"tamasfe.even-better-toml\\\",\\\"ckolkman.vscode-postgres\\\",\\\"ms-vscode.vscode-typescript-next\\\",\\\"Vue.vscode-typescript-vue-plugin\\\",\\\"vuetifyjs.vuetify-vscode\\\",\\\"esbenp.prettier-vscode\\\",\\\"dbaeumer.vscode-eslint\\\",\\\"Vue.volar\\\",\\\"cedar-policy.vscode-cedar\\\",\\\"42Crunch.vscode-openapi\\\",\\\"mhutchie.git-graph\\\",\\\"h": unexpected end of statement while looking for matching double-quote

Steps to Reproduce:
I am sorry, but I cannot disclose all of the code because it is used for business purposes. I would like to give out as much information as possible, so I hope you will bear with me.

  1. specify docker-compose.yml in devcontainer.json to launch 4 dockers and access one of them.
  2. The build process succeeds until step 52/53, but an error occurs in devcontainer.metadata at step 53/53. I have not created devcontainer.metadata explicitly in either devcontainer.json, docker-compose.yml, or Dockerfile.

Does this issue occur when you try this locally?: Yes/No (I don't have a local environment that can reproduce the docker environment, so I can't take on the challenge.)
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No (same as above)

Additional Information
Looks like the same error as the following issues.
#7339

  1. It is closed because it was addressed in a downgrade of the devcontainer extension, but this time even several versions and downgrades could not address it.

  2. I have put #escape= in the dockerfile but it does not resolve the issue.

  3. The docker version is 24.0.1. I am interested in the comment "It looks like it doesn't accept the multi-line LABEL instruction." but I don't know how to enable it.

I would be very grateful if you could enlighten me.

@VSCodeTriageBot VSCodeTriageBot added the containers Issue in vscode-remote containers label May 13, 2024
@yuu-misaki
Copy link
Author

@chrmarti
Is it going to be difficult to answer regarding the above? I am sorry for your busy schedule, but I would greatly appreciate it if you could respond to me. Best Regards

@chrmarti
Copy link
Contributor

The label seems to be truncated. When you rebuild the container the log mentions a generated Dockerfile that you could check for the LABEL instruction. (F1 > Dev Containers: Show Container Log)

@chrmarti chrmarti added the info-needed Issue requires more information from poster label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants