5
30
Fork
You've already forked nvim-dev-container
3

lchown gshadow invalid argument #104

Open
opened 2024年09月16日 02:37:09 +02:00 by twilwa · 1 comment

Version

  • Plugin version (or ref)
  • Platform info

0.2.0
Pop! OS ubuntu 22.04 equiv

Describe the bug
A clear and concise description of what the bug is.
Devcontainers is unable to start. I'm seeing the following errors of note in the logs:

/.devcontainer/.", "--iidfile", "/tmp/lua_6yZWXN" }): 'Error: error creating build container: writing blob: adding layer with blob "sha256:6533c3eba3f3cd4c840877f9245b26929fc8c22a39f42c872aa314c32c6d654b": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid: lchown /etc/gshadow: invalid argument\n'
[ERROR Sun 15 Sep 2024 04:17:24 PM PDT]: "podman" command ({ "build", "-f", "/home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile", "/home/anon/repos/avalanche-starter-kit/.devcontainer/.", "--iidfile", "/tmp/lua_c1FYzZ" }): 'Error: error creating build container: writing blob: adding layer with blob "sha256:6533c3eba3f3cd4c840877f9245b26929fc8c22a39f42c872aa314c32c6d654b": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid: lchown /etc/gshadow: invalid argument\n'

[ERROR Sun 15 Sep 2024 05:13:44 PM PDT]: "podman" command ({ "run", "-i", "-d", "--publish", 9650, "--publish", 9652, "--publish", 9654, "--publish", 9656, "--publish", 9658, "--mount", "source=/home/anon/repos/avalanche-starter-kit,target=/workspace,type=bind,z=true", "--network=host", "--entrypoint", "", "sha256:614ff56192790b85f01ccfa3d6468f0417eedc4f0cd12e1ab744d0b1bf053ecd", "/bin/sh", "-c", "while sleep 1000; do :; done" }): "Port mappings have been discarded as one of the Host, Container, Pod, and None network modes are in use\n"
[INFO Sun 15 Sep 2024 05:19:00 PM PDT]: "Setup complete!"
[ERROR Sun 15 Sep 2024 05:19:09 PM PDT]: "podman" command ({ "image", "inspect", "nvim_dev_container_homeanonreposavalanchestarterkit", "--format", "{{.RootFS.Layers}}" }): "Error: error inspecting object: nvim_dev_container_homeanonreposavalanchestarterkit: image not known\n"
[ERROR Sun 15 Sep 2024 05:19:10 PM PDT]: "podman" command ({ "run", "-i", "-d", "--publish", 9650, "--publish", 9652, "--publish", 9654, "--publish", 9656, "--publish", 9658, "--mount", "source=/home/anon/repos/avalanche-starter-kit,target=/workspace,type=bind,z=true", "--network=host", "--entrypoint", "", "sha256:614ff56192790b85f01ccfa3d6468f0417eedc4f0cd12e1ab744d0b1bf053ecd", "/bin/sh", "-c", "while sleep 1000; do :; done" }): "Port mappings have been discarded as one of the Host, Container, Pod, and None network modes are in use\n"
[INFO Sun 15 Sep 2024 05:23:19 PM PDT]: "Setup complete!"

[ERROR Sun 15 Sep 2024 05:28:14 PM PDT]: "podman" command ({ "build", "-f", "/home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile", "/home/anon/repos/avalanche-starter-kit/.devcontainer/.", "--iidfile", "/tmp/lua_DrNFHf" }): 'time="2024年09月15日T17:28:14-07:00" level=error msg="invalid internal status, try resetting the pause process with \"podman system migrate\": invalid configuration: the specified mapping 0:65536 in \"/etc/subuid\" includes the user UID"\n'
[INFO Sun 15 Sep 2024 05:30:19 PM PDT]: "Setup complete!"
[ERROR Sun 15 Sep 2024 05:32:40 PM PDT]: "podman" command ({ "build", "-f", "/home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile", "/home/anon/repos/avalanche-starter-kit/.devcontainer/.", "--iidfile", "/tmp/lua_WMH7vO" }): 'time="2024年09月15日T17:32:40-07:00" level=error msg="invalid internal status, try resetting the pause process with \"podman system migrate\": invalid configuration: the specified mapping 0:65536 in \"/etc/subuid\" includes the user UID"\n'

For context, I've done a bit of troubleshooting trying to podman system migrate after modifying /etc/subuid and /etc/subgid , which were originally blank when I began the process.

I have other programs on my system that make use of podman as well which are stopped, and confirmed i can podman run hello-world without error.

I'll mention that running 'lchown /etc/gshadow' from my terminal results in a permission denied error.

Expected behavior
A clear and concise description of what you expected to happen.
Functions on startup without error.

Provide logs if possible
Logs can be accessed with DevcontainerLogs command or with require("devcontainer.commands").open_logs() function.

**Version** - Plugin version (or ref) - Platform info 0.2.0 Pop! OS ubuntu 22.04 equiv **Describe the bug** A clear and concise description of what the bug is. Devcontainers is unable to start. I'm seeing the following errors of note in the logs: /.devcontainer/.", "--iidfile", "/tmp/lua_6yZWXN" }): 'Error: error creating build container: writing blob: adding layer with blob "sha256:6533c3eba3f3cd4c840877f9245b26929fc8c22a39f42c872aa314c32c6d654b": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid: lchown /etc/gshadow: invalid argument\n' [ERROR Sun 15 Sep 2024 04:17:24 PM PDT]: "podman" command ({ "build", "-f", "/home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile", "/home/anon/repos/avalanche-starter-kit/.devcontainer/.", "--iidfile", "/tmp/lua_c1FYzZ" }): 'Error: error creating build container: writing blob: adding layer with blob "sha256:6533c3eba3f3cd4c840877f9245b26929fc8c22a39f42c872aa314c32c6d654b": Error processing tar file(exit status 1): potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid: lchown /etc/gshadow: invalid argument\n' [ERROR Sun 15 Sep 2024 05:13:44 PM PDT]: "podman" command ({ "run", "-i", "-d", "--publish", 9650, "--publish", 9652, "--publish", 9654, "--publish", 9656, "--publish", 9658, "--mount", "source=/home/anon/repos/avalanche-starter-kit,target=/workspace,type=bind,z=true", "--network=host", "--entrypoint", "", "sha256:614ff56192790b85f01ccfa3d6468f0417eedc4f0cd12e1ab744d0b1bf053ecd", "/bin/sh", "-c", "while sleep 1000; do :; done" }): "Port mappings have been discarded as one of the Host, Container, Pod, and None network modes are in use\n" [INFO Sun 15 Sep 2024 05:19:00 PM PDT]: "Setup complete!" [ERROR Sun 15 Sep 2024 05:19:09 PM PDT]: "podman" command ({ "image", "inspect", "nvim_dev_container_homeanonreposavalanchestarterkit", "--format", "{{.RootFS.Layers}}" }): "Error: error inspecting object: nvim_dev_container_homeanonreposavalanchestarterkit: image not known\n" [ERROR Sun 15 Sep 2024 05:19:10 PM PDT]: "podman" command ({ "run", "-i", "-d", "--publish", 9650, "--publish", 9652, "--publish", 9654, "--publish", 9656, "--publish", 9658, "--mount", "source=/home/anon/repos/avalanche-starter-kit,target=/workspace,type=bind,z=true", "--network=host", "--entrypoint", "", "sha256:614ff56192790b85f01ccfa3d6468f0417eedc4f0cd12e1ab744d0b1bf053ecd", "/bin/sh", "-c", "while sleep 1000; do :; done" }): "Port mappings have been discarded as one of the Host, Container, Pod, and None network modes are in use\n" [INFO Sun 15 Sep 2024 05:23:19 PM PDT]: "Setup complete!" [ERROR Sun 15 Sep 2024 05:28:14 PM PDT]: "podman" command ({ "build", "-f", "/home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile", "/home/anon/repos/avalanche-starter-kit/.devcontainer/.", "--iidfile", "/tmp/lua_DrNFHf" }): 'time="2024年09月15日T17:28:14-07:00" level=error msg="invalid internal status, try resetting the pause process with \\"podman system migrate\\": invalid configuration: the specified mapping 0:65536 in \\"/etc/subuid\\" includes the user UID"\n' [INFO Sun 15 Sep 2024 05:30:19 PM PDT]: "Setup complete!" [ERROR Sun 15 Sep 2024 05:32:40 PM PDT]: "podman" command ({ "build", "-f", "/home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile", "/home/anon/repos/avalanche-starter-kit/.devcontainer/.", "--iidfile", "/tmp/lua_WMH7vO" }): 'time="2024年09月15日T17:32:40-07:00" level=error msg="invalid internal status, try resetting the pause process with \\"podman system migrate\\": invalid configuration: the specified mapping 0:65536 in \\"/etc/subuid\\" includes the user UID"\n' For context, I've done a bit of troubleshooting trying to podman system migrate after modifying /etc/subuid and /etc/subgid , which were originally blank when I began the process. I have other programs on my system that make use of podman as well which are stopped, and confirmed i can podman run hello-world without error. I'll mention that running 'lchown /etc/gshadow' from my terminal results in a permission denied error. **Expected behavior** A clear and concise description of what you expected to happen. Functions on startup without error. **Provide logs if possible** Logs can be accessed with `DevcontainerLogs` command or with `require("devcontainer.commands").open_logs()` function.

Thank you for reporting this and sorry for the very late reply.

Can you confirm that you are able to build your image manually? It seems it is failing at that step and this plugin really just forwards these arguments to podman.

The command is this one specifically:

podman build -f /home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile /home/anon/repos/avalanche-starter-kit/.devcontainer/.

You can also just try to run podman build . from /home/anon/repos/avalanche-starter-kit/.devcontainer directory.

Thank you for reporting this and sorry for the very late reply. Can you confirm that you are able to build your image manually? It seems it is failing at that step and this plugin really just forwards these arguments to `podman`. The command is this one specifically: ``` podman build -f /home/anon/repos/avalanche-starter-kit/.devcontainer/Dockerfile /home/anon/repos/avalanche-starter-kit/.devcontainer/. ``` You can also just try to run `podman build .` from `/home/anon/repos/avalanche-starter-kit/.devcontainer` directory.
Sign in to join this conversation.
No Branch/Tag specified
main
feature/netman-integration
improvement/container-api
0.2.0
0.1.1
0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
esensar/nvim-dev-container#104
Reference in a new issue
esensar/nvim-dev-container
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?