Actions
Bug #7758
closedStopping mentat.service results in failure even though modules are stopped
Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - Tools
Target version:
Start date:
07/11/2024
Due date:
% Done:
0%
Estimated time:
To be discussed:
No
Description
root@mentat-alt:~# systemctl stop mentat.service
root@mentat-alt:~# systemctl status mentat.service
● mentat.service - Mentat - IDS and SIEM system
Loaded: loaded (/etc/systemd/system/mentat.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2024-07-11 09:54:22 CEST; 2s ago
Process: 28359 ExecStart=/usr/local/bin/mentat-controller.py --command start (code=exited, status=0/SUCCESS)
Process: 28450 ExecStop=/usr/local/bin/mentat-controller.py --command stop (code=exited, status=5)
čec 11 09:54:22 mentat-alt mentat-controller.py[28450]: 2024-07-11 09:54:22,273 INFO: Module 'mentat-storage.py': Module successfully stopped
čec 11 09:54:22 mentat-alt mentat-controller.py[28450]: 2024-07-11 09:54:22,274 INFO: Module 'mentat-enricher.py': Module successfully stopped
čec 11 09:54:22 mentat-alt mentat-controller.py[28450]: 2024-07-11 09:54:22,274 INFO: Module 'mentat-inspector.py': Module successfully stoppe
čec 11 09:54:22 mentat-alt mentat-controller.py[28450]: 2024-07-11 09:54:22,437 INFO: System shutdown seems successful
čec 11 09:54:22 mentat-alt mentat-controller.py[28450]: 2024-07-11 09:54:22,438 INFO: Application runtime: '0:00:01.347868' (effectivity 99.6
čec 11 09:54:22 mentat-alt mentat-controller.py[28450]: 2024-07-11 09:54:22,438 INFO: Application persistent state saved to file '/var/mentat/
čec 11 09:54:22 mentat-alt mentat-controller.py[28450]: 2024-07-11 09:54:22,439 INFO: Application runlog saved to file '/var/mentat/run/mentat
čec 11 09:54:22 mentat-alt systemd[1]: mentat.service: Control process exited, code=exited, status=5/NOTINSTALLED
čec 11 09:54:22 mentat-alt systemd[1]: mentat.service: Failed with result 'exit-code'.
čec 11 09:54:22 mentat-alt systemd[1]: Stopped Mentat - IDS and SIEM system.
root@mentat-alt:~# mentat-controller.py --command status
2024-07-11 09:56:12,873 INFO: Executing script command 'status'
2024-07-11 09:56:12,950 INFO: Status of configured Mentat real-time modules:
2024-07-11 09:56:12,950 INFO: Real-time module 'mentat-storage.py': 'Process is not running or service is stopped'
2024-07-11 09:56:12,950 INFO: Real-time module 'mentat-enricher.py': 'Process is not running or service is stopped'
2024-07-11 09:56:12,950 INFO: Real-time module 'mentat-inspector.py': 'Process is not running or service is stopped'
2024-07-11 09:56:12,950 INFO: Overall real-time module status: 'All modules are not running'
2024-07-11 09:56:12,951 INFO: Status of configured Mentat cronjob modules:
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-backup-py': 'Cronjob is enabled'
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-casablanca': 'Cronjob is enabled'
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-cleanup-py': 'Cronjob is enabled'
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-informant-py': 'Cronjob is enabled'
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-metacentrum': 'Cronjob is enabled'
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-negistry': 'Cronjob is enabled'
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-precache-py': 'Cronjob is enabled'
2024-07-11 09:56:12,951 INFO: Cronjob module 'mentat-reporter-py': 'Cronjob is enabled'
2024-07-11 09:56:12,952 INFO: Cronjob module 'mentat-statistician-py': 'Cronjob is enabled'
2024-07-11 09:56:12,952 INFO: Cronjob module 'mentat-watchdog-events-py': 'Cronjob is enabled'
2024-07-11 09:56:12,952 INFO: Overall cronjob module status: 'All cronjobs are enabled'
2024-07-11 09:56:12,952 INFO: Overall Mentat system status: 'Some modules and cronjobs are in different state, overall system state is unknown'
2024-07-11 09:56:12,953 INFO: Application runtime: '0:00:00.081214' (effectivity 97.47 %)
2024-07-11 09:56:12,953 INFO: Application persistent state saved to file '/var/mentat/run/mentat-controller.py.pstate'
2024-07-11 09:56:12,954 INFO: Application runlog saved to file '/var/mentat/run/mentat-controller.py/202407110956.073ee.runlog'
Related issues
Updated by Rajmund Hruška about 2 months ago
- Related to Bug #7559: Mentat import pipeline running after reboot while disabled added
Updated by Rajmund Hruška about 2 months ago
- Status changed from In Progress to Resolved
Updated by Rajmund Hruška about 2 months ago
- Related to deleted (Bug #7559: Mentat import pipeline running after reboot while disabled)
Updated by Rajmund Hruška about 2 months ago
- Blocks Bug #7559: Mentat import pipeline running after reboot while disabled added
Updated by Rajmund Hruška about 2 months ago
- Status changed from Resolved to Closed
Actions