Skip to content

Conversation

@gianarb
Copy link
Contributor

@gianarb gianarb commented Dec 5, 2025

Fixes #13015
Fixes #13019

Motivation

The current example in the documentation does not run correclty

If fails with the following error:

PermissionError: [Errno 13] Permission denied: '/var/run/argo/token'

Modifications

The fix was already discovered and applied by Dejan Golja (co-author here) and
it changed the user that runs the python script.

Verification

Following the documentation I can successfully run the workflow.

Documentation

This commit only contains documentation update.

The Executor Plugin example documentation does not run correctly as it
is today with the following error:

```
PermissionError: [Errno 13] Permission denied: '/var/run/argo/token'
```

The user set to run the python plugin is incorrect. It should be
`1000` for the particular image we use in the example.

Dejan Golja identified and fixed the issue in its own PR, still open
today:

argoproj#13019

I tried to rebase it on top of main but the page changed a bit and it is
hard to merge conflicts today.

With this fix the examples works correctly

Co-Authored-By: Dejan Golja <[email protected]>
Signed-off-by: Gianluca Arbezzano <[email protected]>
@gianarb
Copy link
Contributor Author

gianarb commented Dec 5, 2025

Looking at it a bit deeper I realized that this may not be the right fix. I was inspecting the image used for this plugin python:alpine3.6 and it does not have user 1000.

docker run  -u 1000 -it --rm python:alpine3.6 sh
/ $ echo "CIAO" > /tmp/ciao
/ $ ls -lsa /tmp/
total 12
     4 drwxrwxrwt    1 root     root          4096 Dec  5 16:06 .
     4 drwxr-xr-x    1 root     root          4096 Dec  5 16:06 ..
     4 -rw-r--r--    1 1000     root             5 Dec  5 16:06 ciao

This fix works probably because the user is in the group root so it can read the actual file, but this is not what I think we want to advertise for since we want to run rootless

@gianarb gianarb marked this pull request as ready for review December 9, 2025 08:14
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

Successfully merging this pull request may close these issues.

executor plugins example from documentation does not work

1 participant