Project

General

Profile

Actions

Bug #7758

closed

Stopping mentat.service results in failure even though modules are stopped

Added by Rajmund Hruška 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
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

Blocks Mentat - Bug #7559: Mentat import pipeline running after reboot while disabledClosedRajmund Hruška02/15/2022

Actions
Actions #1

Updated by Rajmund Hruška 6 months ago

  • Related to Bug #7559: Mentat import pipeline running after reboot while disabled added
Actions #2

Updated by Rajmund Hruška 6 months ago

  • Status changed from In Progress to Resolved
Actions #3

Updated by Rajmund Hruška 6 months ago

  • Related to deleted (Bug #7559: Mentat import pipeline running after reboot while disabled)
Actions #4

Updated by Rajmund Hruška 6 months ago

  • Blocks Bug #7559: Mentat import pipeline running after reboot while disabled added
Actions #5

Updated by Rajmund Hruška 6 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF