TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.31k stars 610 forks source link

thehive.service - TheHive: Active: failed (Result: exit-code) #1235

Open alikat500 opened 4 years ago

alikat500 commented 4 years ago

thehive.service - TheHive: Active: failed (Result: exit-code)

Request Type

Installation issue

Work Environment

Question Answer
OS version (server) Red Hat Enterprise Linux Server release 7.7
OS version (client) Windows 10
TheHive version / git hash thehive-project-release-1.1.0-2.noarch
Package Type RPM
Browser type & version Chrome

Problem Description

A few seconds after issuing "systemctl start thehive" command, when I check thehive service status it is, "' Active: failed "

Steps to Reproduce

  1. systemctl start thehive
  2. systemctl status thehive

Complementary information

systemctl status thehive report: [root@alishivevm yum.repos.d]# systemctl status thehive ● thehive.service - TheHive Loaded: loaded (/usr/lib/systemd/system/thehive.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2020-03-02 14:02:55 EST; 1s ago Docs: https://thehive-project.org Process: 28187 ExecStart=/opt/thehive/bin/thehive -Dconfig.file=/etc/thehive/application.conf -Dlogger.file=/etc/thehive/logback.xml -Dpidfile.path=/dev/null (code=exited, status=255) Main PID: 28187 (code=exited, status=255)

Mar 02 14:02:46 alishivevm systemd[1]: Started TheHive. Mar 02 14:02:55 alishivevm systemd[1]: thehive.service: main process exited, code=exited, status=255/n/a Mar 02 14:02:55 alishivevm systemd[1]: Unit thehive.service entered failed state. Mar 02 14:02:55 alishivevm systemd[1]: thehive.service failed. [root@alishivevm yum.repos.d]#

Installation process:

I followed the RPM installtion process from:

https://github.com/TheHiveProject/TheHiveDocs/blob/master/installation/install-guide.md

Note: During the emssage I received and error that 'java-11-openjdk-headless" was needed.

Using YUM, installed the package. yum install java-11-openjdk-headless

Then ran:

yum install thehive

Then followed the configuraiton proceduere and install

https://github.com/TheHiveProject/TheHiveDocs/blob/master/admin/configuration.md

From my Windows10 client I was uanble to browse

http://server'sIP:9300

Rebooted the server, the same reult.

Checked thehive staus using: systemctl status thehive It was not enabled

Enabled and started hive using:

systemctl enable thehive systemctl start thehive

I was still unable to browse to http://server'sIP:9300 from my client PC.

Checked thehive status and it was ' Active: failed "

portalthiago commented 4 years ago

Same here, just after the instalation, thehive just wentdown... what i doing wrong if i just follow tha bloddy tutorial. =/

alikat500 commented 4 years ago

thehive.service - TheHive: Active: failed (Result: exit-code)

Request Type

Installation issue

Work Environment

Question Answer OS version (server) Red Hat Enterprise Linux Server release 7.7 OS version (client) Windows 10 TheHive version / git hash thehive-project-release-1.1.0-2.noarch Package Type RPM Browser type & version Chrome

Problem Description

A few seconds after issuing "systemctl start thehive" command, when I check thehive service status it is, "' Active: failed "

Steps to Reproduce

  1. systemctl start thehive
  2. systemctl status thehive

Complementary information

systemctl status thehive report: [root@alishivevm yum.repos.d]# systemctl status thehive ● thehive.service - TheHive Loaded: loaded (/usr/lib/systemd/system/thehive.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2020-03-02 14:02:55 EST; 1s ago Docs: https://thehive-project.org Process: 28187 ExecStart=/opt/thehive/bin/thehive -Dconfig.file=/etc/thehive/application.conf -Dlogger.file=/etc/thehive/logback.xml -Dpidfile.path=/dev/null (code=exited, status=255) Main PID: 28187 (code=exited, status=255)

Mar 02 14:02:46 alishivevm systemd[1]: Started TheHive. Mar 02 14:02:55 alishivevm systemd[1]: thehive.service: main process exited, code=exited, status=255/n/a Mar 02 14:02:55 alishivevm systemd[1]: Unit thehive.service entered failed state. Mar 02 14:02:55 alishivevm systemd[1]: thehive.service failed. [root@alishivevm yum.repos.d]#

Installation process:

I followed the RPM installtion process from:

https://github.com/TheHiveProject/TheHiveDocs/blob/master/installation/install-guide.md

Note: During the emssage I received and error that 'java-11-openjdk-headless" was needed.

Using YUM, installed the package. yum install java-11-openjdk-headless

Then ran:

yum install thehive

Then followed the configuraiton proceduere and install

https://github.com/TheHiveProject/TheHiveDocs/blob/master/admin/configuration.md

From my Windows10 client I was uanble to browse

http://server'sIP:9300

Rebooted the server, the same reult.

Checked thehive staus using: systemctl status thehive It was not enabled

Enabled and started hive using:

systemctl enable thehive systemctl start thehive

I was still unable to browse to http://server'sIP:9300 from my client PC.

Checked thehive status and it was ' Active: failed "

I was wondering if there is any troubleshooting suggestions for this issue. Thanks!

mobisnothere commented 3 years ago

Hi,

Any updates or solution to this issue? I am also facing the issue of thehive service stopping automatically after a few seconds.

Any help to resolve this issue would be greatly appreciated!

alexrdz0 commented 3 years ago

I have the same problem, thehive can start, but when verifying the status it presents the same error.

thehive.service - TheHive
     Loaded: loaded (/lib/systemd/system/thehive.service; enabled; vendor prese>
     Active: failed (Result: exit-code) since Fri 2021-03-19 09:41:48 MST; 3s a>
       Docs: https://thehive-project.org
    Process: 6849 ExecStart=/opt/thehive/bin/thehive -Dconfig.file=/opt/thehive>
   Main PID: 6849 (code=exited, status=255/EXCEPTION)

mar 19 09:41:46 infoforense-M6700 systemd[1]: Started TheHive.
mar 19 09:41:48 infoforense-M6700 systemd[1]: thehive.service: Main process exi>
mar 19 09:41:48 infoforense-M6700 systemd[1]: thehive.service: Failed with resu>
`
tentrem commented 2 years ago

hello, I have some problem,

 thehive.service - TheHive
   Loaded: loaded (/usr/lib/systemd/system/thehive.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2022-01-22 02:19:57 EST; 5min ago
     Docs: https://thehive-project.org
  Process: 4644 ExecStart=/opt/thehive/bin/thehive -Dconfig.file=/etc/thehive/application.conf -Dlogger.file=/etc/thehive/logback.xml -Dpidfile.path=/dev/null (code=exited, status=255)
 Main PID: 4644 (code=exited, status=255)

Jan 22 02:19:53 localhost.localdomain systemd[1]: Started TheHive.
Jan 22 02:19:57 localhost.localdomain systemd[1]: thehive.service: main process exited, code=exited, status=255/n/a
Jan 22 02:19:57 localhost.localdomain systemd[1]: Unit thehive.service entered failed state.
Jan 22 02:19:57 localhost.localdomain systemd[1]: thehive.service failed.
YazidRB commented 2 months ago

same problem here

root@ubuntu-VirtualBox:/# systemctl status thehive × thehive.service - Scalable, Open Source and Free Security Incident Response Solutions Loaded: loaded (/usr/lib/systemd/system/thehive.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Wed 2024-05-01 10:27:26 CET; 11min ago Duration: 1min 24.027s Docs: https://thehive-project.org Process: 5103 ExecStart=/opt/thehive/bin/thehive -Dfile.encoding=UTF-8 -Dconfig.file> Main PID: 5103 (code=exited, status=1/FAILURE) CPU: 54.347s

May 01 10:26:02 ubuntu-VirtualBox systemd[1]: Started thehive.service - Scalable, Open S> May 01 10:27:26 ubuntu-VirtualBox systemd[1]: thehive.service: Main process exited, code> May 01 10:27:26 ubuntu-VirtualBox systemd[1]: thehive.service: Failed with result 'exit-> May 01 10:27:26 ubuntu-VirtualBox systemd[1]: thehive.service: Consumed 54.347s CPU time> lines 1-13/13 (END)