Skip to content

Permission error when using rootless podman without sudo #23

@kartikynwa

Description

@kartikynwa

When I run this command:

cli/decky plugin build -e podman

I get this error:

[!] (plugin delete) Error: EACCES: permission denied, unlink '/plugin/dist/index.js.map'
Error: EACCES: permission denied, unlink '/plugin/dist/index.js.map'


Line:  ELIFECYCLE  Command failed with exit code 1.
Line: error code: 0
Line: pnpm build failed, please report this issue to the CI maintainer and the plugin developer.
Error: Failed to build frontend. There might be more information in the output above.

Caused by:
    child status was: exit status: 1

I was able to rectify this by looking at the podman command that was being run (from the debug logs) and removing the --user flag from it.

I don't know much about containers but from what little I know, rootless podman containers use the UID/GID of 0 inside. If they are being manually set the host user's UID/GID then it causes permission errors because the container's UID=0 maps to the host user's UID.

I think this is worth fixing because the change required is trivial and allows the build command to be run easily without root.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions