Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] error starting gvm / notus-scanner
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1289

PostPosted: Thu Aug 08, 2024 9:23 am    Post subject: [solved] error starting gvm / notus-scanner Reply with quote

While following the wiki step by step, I was able to install the needed packages, and configure and start openvas-redis and postgreqql.

But then starting notus-scanner failed thus I created a ticket:
Thought, I should post the result here too, if maybe somebody already knows about this problem and how to mitigate or solve it.

https://bugs.gentoo.org/937564

The errors seem to imply a problem with access rights on logging?

Code:
raceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/notus-scanner", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3.12/site-packages/notus/scanner/daemon.py", line 117, in main
    init_logging(
  File "/usr/lib/python3.12/site-packages/notus/scanner/utils.py", line 128, in init_logging
    log_file_handler = WatchedFileHandler(log_file)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/logging/handlers.py", line 475, in __init__
    logging.FileHandler.__init__(self, filename, mode=mode,
  File "/usr/lib/python3.12/logging/__init__.py", line 1231, in __init__
    StreamHandler.__init__(self, self._open())
                                 ^^^^^^^^^^^^
  File "/usr/lib/python3.12/logging/__init__.py", line 1263, in _open
    return open_func(self.baseFilename, self.mode,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/var/log/gvm/notus-scanner.log'
 * start-stop-daemon: failed to start `/usr/bin/notus-scanner'
 * Failed to start Greenbone Notus Scanner                                                                                           [ !! ]
 * ERROR: notus-scanner failed to start


Last edited by Elleni on Tue Aug 13, 2024 8:00 am; edited 1 time in total
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1289

PostPosted: Tue Aug 13, 2024 8:00 am    Post subject: Reply with quote

This problem can be solved by manually creating the logfiles.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum