Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watcher Inotify is crashing on repository init #1

Open
bpereto opened this issue May 8, 2020 · 4 comments
Open

Watcher Inotify is crashing on repository init #1

bpereto opened this issue May 8, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@bpereto
Copy link
Owner

bpereto commented May 8, 2020

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 bpereto added the bug Something isn't working label May 8, 2020
@ikkemaniac
Copy link

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

@bpereto
Copy link
Owner Author

bpereto commented Sep 18, 2020

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
Copy link
Owner Author

bpereto commented Nov 15, 2020

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

@maltejk
Copy link
Contributor

maltejk commented Oct 22, 2021

NFS does not seem to support inotify. related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants