rengine icon indicating copy to clipboard operation
rengine copied to clipboard

bug: Error with watchmedo: OSError: [Errno 38] Function not implemented

Open AnasAboreeda opened this issue 1 year ago • 6 comments

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

  1. Start the service by running sudo make up
  2. The service will run normally
  3. Start a new project
  4. Add target
  5. Start any type of scan
  6. 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

AnasAboreeda avatar Jan 02 '24 12:01 AnasAboreeda

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

github-actions[bot] avatar Jan 02 '24 12:01 github-actions[bot]

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.

psyray avatar Jan 05 '24 11:01 psyray

Maybe this kind of issue could help https://github.com/docker/for-mac/issues/6174

psyray avatar Jan 05 '24 11:01 psyray

@AnasAboreeda Did you solved the problem ?

psyray avatar Jan 12 '24 00:01 psyray

Not yet, unfortunately. Tried restarting it, no luck! Also, updated to the latest version and rebuilt everything, still not working.

AnasAboreeda avatar Jan 13 '24 18:01 AnasAboreeda

Can't reproduce.

AnonymousWP avatar Jan 14 '24 19:01 AnonymousWP

@AnasAboreeda We can't reproduce your issue, could you give us some feedback ? Without feedback next week we will close this issue

psyray avatar Feb 21 '24 11:02 psyray

Not working on it anymore

AnasAboreeda avatar Feb 21 '24 12:02 AnasAboreeda