borg-hive icon indicating copy to clipboard operation
borg-hive copied to clipboard

Watcher Inotify is crashing on repository init

Open bpereto opened this issue 4 years ago • 4 comments

Watcher crashes on repository create: borg init --encryption=repokey-blake2 bqs6jumh@localhost:test4

watcher_1  | Call failed (should not be -1): (-1) ERRNO=(0)
watcher_1  | Traceback (most recent call last):
watcher_1  |   File "/app/borghive/management/commands/watch_repositories.py", line 51, in handle
watcher_1  |     for event in i.event_gen(yield_nones=False):
watcher_1  |   File "/usr/local/lib/python3.8/site-packages/inotify/adapters.py", line 300, in event_gen
watcher_1  |     self._i.add_watch(full_path, self._mask)
watcher_1  |   File "/usr/local/lib/python3.8/site-packages/inotify/adapters.py", line 95, in add_watch
watcher_1  |     wd = inotify.calls.inotify_add_watch(self.__inotify_fd, path_bytes, mask)
watcher_1  |   File "/usr/local/lib/python3.8/site-packages/inotify/calls.py", line 34, in _check_nonnegative
watcher_1  |     raise InotifyError("Call failed (should not be -1): (%d)" %
watcher_1  | inotify.calls.InotifyError: Call failed (should not be -1): (-1) ERRNO=(0)

bpereto avatar May 08 '20 20:05 bpereto

I've ran into this too, any idea on the cause for this?

ikkemaniac avatar Sep 06 '20 19:09 ikkemaniac

Not at the moment. I want to check if it's happening also on k8s. Could be a namespacing issues in docker / linux. Searching the Web doesn't give much more information about it.

bpereto avatar Sep 18 '20 19:09 bpereto

I don't experience this on k8s with the following setup:

  • Centos8 4.18.0-193.28.1.el8_2.x86_64
  • docker-ce-19.03.13-3.el7.x86_64
  • K8s: v1.19.3
  • Repo on NFS

bpereto avatar Nov 15 '20 09:11 bpereto

NFS does not seem to support inotify. related

maltejk avatar Oct 22 '21 18:10 maltejk