-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Error we see:
500 ERROR: /home/nobody: repository path '/home/nobody' is not owned by current user. Traceback: Traceback (most recent call last):
File "/app/app/main.py", line 211, in run_code_version
repo = pygit2.Repository(os.environ["HOME"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pygit2/repository.py", line 1791, in __init__
path_backend = init_file_backend(path, int(flags))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_pygit2.GitError: /home/nobody: repository path '/home/nobody' is not owned by current user
Same code and Docker image work when we run the container ourselves (e.g. via run.sh on our AWS instance).
The failure happens only when the app runs in ITRB’s environment (deployed via Jenkins + Kubernetes to EKS).
We are not sure how the pod is configured on ITRB’s side (user, HOME, volume mounts, securityContext).
Reactions are currently unavailable