Skip to content

make sure directory exists in service project lock #3493

Description

@sentry-dev-app

Sentry Issue: RENKU-PYTHON-WM

FileNotFoundError: [Errno 2] No such file or directory: '/svc/cache/projects/Y3JhbWFrcmlldGh6LmNo/cramakri/a-2549-test-1.lock'
(11 additional frame(s) were not displayed)
...
  File "renku/ui/service/controllers/api/mixins.py", line 225, in execute_op
    self.reset_local_repo(project)
  File "renku/ui/service/controllers/api/mixins.py", line 248, in reset_local_repo
    with lock:
  File "portalocker/utils.py", line 157, in __enter__
    return self.acquire()
  File "portalocker/utils.py", line 239, in acquire
    fh = self._get_fh()
  File "portalocker/utils.py", line 289, in _get_fh
    return open(self.filename, self.mode, **self.file_open_kwargs)

ProgramInternalError:

we should make the core service more resilient to the project directory being missing when a request comes in. Like checking it exists and otherwise recloning.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions