-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Systemd: thehive.service: Failed with result 'exit-code'. #811
Comments
Have you identified why TheHive service doesn't start ? I don't recommend to configure a PID file as it is not useful (it is managed by systemd) and prevent the service startup if it has been removed at the last service stop. |
No, I copied the original thehive.service to systemd/system, restarted the server and it did not run. What is the best way to check this? |
I had this same error just now ... running
revealed that the service didn't have permission to write to the log directory ( Perhaps the following commands should be added to the service configuration documentation?
|
Updated the folder owner and permissions (were assigned to root) but owned by thehive user now. Same issue post reboot:
Permissions for systemd files below, is worth changing to run under user context?:
|
Figured out the issue, the install guide for TheHive needs to include the following if using systemd to run thehive.service as it is missing in the specified path as described in /usr/lib/systemd/system/thehive.service
|
Attempting to run thehive.service from systemd fails, issue described below:
Request Type
Bug/misconfiguration
Work Environment
Problem Description
service thehive status
â thehive.service - TheHive
Loaded: loaded (/usr/lib/systemd/system/thehive.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-12-03 ; 5min ago
Docs: https://thehive-project.org
Main PID: 1135 (code=exited, status=255)
server01 systemd[1]: Started TheHive.
server01 systemd[1]: thehive.service: Main process exited, code=exited, status=255/n/a
server01 systemd[1]: thehive.service: Unit entered failed state.
server01 systemd[1]: thehive.service: Failed with result 'exit-code'.
Steps to Reproduce
Possible Solutions
#29
Applied:
Complementary information
/usr/lib/systemd/system/thehive.service
The text was updated successfully, but these errors were encountered: