Skip to content

Error 500 on the ITRB-deployed Plover service #70

@bazarkua

Description

@bazarkua

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).

Metadata

Metadata

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