rengine
rengine copied to clipboard
bug: Error with watchmedo: OSError: [Errno 38] Function not implemented
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
Scans are not running, always pending, and giving this error in the logs
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/watchmedo.py", line 800, in main
rengine-celery-1 | sys.exit(main())
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/watchmedo.py", line 800, in main
rengine-celery-1 | args.func(args)
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/watchmedo.py", line 764, in auto_restart
rengine-celery-1 | args.func(args)
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/watchmedo.py", line 764, in auto_restart
rengine-celery-1 | observe_with(observer, handler, args.directories, args.recursive)
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/watchmedo.py", line 187, in observe_with
rengine-celery-1 | observer.start()
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/observers/api.py", line 261, in start
rengine-celery-1 | observe_with(observer, handler, args.directories, args.recursive)
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/watchmedo.py", line 187, in observe_with
rengine-celery-1 | emitter.start()
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/utils/__init__.py", line 92, in start
rengine-celery-1 | observer.start()
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/observers/api.py", line 261, in start
rengine-celery-1 | self.on_thread_start()
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/observers/inotify.py", line 119, in on_thread_start
rengine-celery-1 | emitter.start()
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/utils/__init__.py", line 92, in start
rengine-celery-1 | self._inotify = InotifyBuffer(path, self.watch.is_recursive)
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/observers/inotify_buffer.py", line 37, in __init__
rengine-celery-1 | self._inotify = Inotify(path, recursive)
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/observers/inotify_c.py", line 167, in __init__
rengine-celery-1 | Inotify._raise_error()
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/observers/inotify_c.py", line 432, in _raise_error
rengine-celery-1 | self.on_thread_start()
rengine-celery-1 | File "/usr/local/lib/python3.10/dist-packages/watchdog/observers/inotify.py", line 119, in on_thread_start
rengine-celery-1 | raise OSError(err, os.strerror(err))
rengine-celery-1 | OSError: [Errno 38] Function not implemented
Expected Behavior
Scans should run without error
Steps To Reproduce
- Start the service by running
sudo make up - The service will run normally
- Start a new project
- Add target
- Start any type of scan
- It will be pending for the whole time and you will see the prev. error in the logs.
Environment
- reNgine: v2.0.2-jasper
- OS: MacOS Ventura 13.6 / Apple M2 Pro
- Python:
- Docker Engine:
Client:
Cloud integration: v1.0.35+desktop.5
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:28:49 2023
OS/Arch: darwin/arm64
Context: desktop-linux
Server: Docker Desktop 4.25.2 (129061)
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:31:36 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe
docker-init:
Version: 0.19.0
GitCommit: de40ad0
- Docker Compose: v2.23.0-desktop.1
- Browser: Chrome 120.0.6099.129
Anything else?
No response
👋 Hi @AnasAboreeda, Issues is only for reporting a bug/feature request. Please read documentation before raising an issue https://rengine.wiki For very limited support, questions, and discussions, please join reNgine Discord channel: https://discord.gg/azv6fzhNCE Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.
It seems there are problem with Inotify in the celery Docker.
OSError: [Errno 38] Function not implemented
Do a make down & make up to rebuild thing, and check for errors while building.
As you are on Mac with an M2 Pro CPU it could comes from here.
Maybe this kind of issue could help https://github.com/docker/for-mac/issues/6174
@AnasAboreeda Did you solved the problem ?
Not yet, unfortunately. Tried restarting it, no luck! Also, updated to the latest version and rebuilt everything, still not working.
Can't reproduce.
@AnasAboreeda We can't reproduce your issue, could you give us some feedback ? Without feedback next week we will close this issue
Not working on it anymore