Skip to content
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

thehive.service: Main process exited, code=exited, status=255/EXCEPTION #1150

Closed
DevJho opened this issue Oct 25, 2019 · 4 comments
Closed
Assignees
Labels

Comments

@DevJho
Copy link

DevJho commented Oct 25, 2019

Bug/Misconfiguration

Work Environment

Question Answer
OS version (server) Debian
Package Type Binary

Problem Description

thehive.service - TheHive
Loaded: loaded (/lib/systemd/system/thehive.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-10-25 05:59:01 EDT; 7s ago
Docs: https://thehive-project.org
Process: 2992 ExecStart=/opt/thehive/bin/thehive -Dconfig.file=/etc/thehive/application.conf -Dlogger.file=/et
Main PID: 2992 (code=exited, status=255/EXCEPTION)

Oct 25 05:58:48 TheHive systemd[1]: Started TheHive.
Oct 25 05:59:01 TheHive systemd[1]: thehive.service: Main process exited, code=exited, status=255/EXCEPTION
Oct 25 05:59:01 TheHive systemd[1]: thehive.service: Failed with result 'exit-code'.


I'm following the installation through Binary, and i got error in the above. does anyone know why?

Steps to Reproduce

sudo addgroup thehive
sudo adduser --system thehive
sudo cp /opt/thehive/package/thehive.service /usr/lib/systemd/system
sudo chown -R thehive:thehive /opt/thehive
sudo chgrp thehive /etc/thehive/application.conf
sudo chmod 640 /etc/thehive/application.conf
sudo systemctl enable thehive
sudo systemctl start thehive


and re-run
bin/thehive -Dconfig.file=/etc/thehive/application.conf
but still failed. here the log sample for the error.
Thehive-log.txt

@ITServ-DE
Copy link

Could you please post your /etc/thehive/application.conf.

Redact passwords and such.

Thank you.

@jlecerf
Copy link

jlecerf commented Nov 26, 2019

Hi,

I have the same error and I think it miss to CP command like this :
sudo addgroup thehive
sudo adduser --system thehive
sudo cp /opt/thehive/package/thehive.service /usr/lib/systemd/system
sudo chown -R thehive:thehive /opt/thehive
sudo cp /opt/thehive/conf/application.conf /etc/thehive/
sudo cp /opt/thehive/conf/logback.xml /etc/thehive/

sudo chgrp thehive /etc/thehive/application.conf
sudo chgrp thehive /etc/thehive/logback.xml
sudo chmod 640 /etc/thehive/application.conf
sudo chmod 640 /etc/thehive/logback.xml
sudo systemctl enable thehive
sudo systemctl start thehive

After this to CP command, it's work fine!

@nakagit
Copy link

nakagit commented Jan 15, 2021

I found the root cause of this issue, typo.

Please edit the following file:
/etc/thehive/application.conf
(Before) play.modules.enabled += org.thp.thehive.connector.mips.MispModule
(After) play.modules.enabled += org.thp.thehive.connector.misp.MispModule

Hope this help. :)

@rriclet
Copy link
Contributor

rriclet commented Feb 5, 2021

#1595

@rriclet rriclet closed this as completed Feb 5, 2021
@rriclet rriclet self-assigned this Feb 5, 2021
@rriclet rriclet added the bug label Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants