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.28k stars 605 forks source link

Failure to start theHive #2432

Open GreenKnightDigital opened 1 year ago

GreenKnightDigital commented 1 year ago

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) 22.04.1 LTS
Virtualized Env. Linode Server
Dedicated RAM 12 GB
vCPU 4 / 8 / 16 / 32
TheHive version / git hash 4.x, hash of the commit
Package Type DEB
Database Cassandra
Index type Lucene
Attachments storage Local
Browser type & version If applicable

Problem Description

When I run `sudo systemctl start thehive' it acts like it want's to start but then just quits. I have included a copy of the application log

I have went through setup a couple of times and I have not been able to fix the problem. The Log talks about the secret key not being setup properly but I can't find anything wrong.

app.log

Keroseno101 commented 1 year ago

The error could not be more clear, you did not configurate a secret key, you can configurate a secret key here https://www.playframework.com/documentation/2.8.x/ApplicationSecret

Your first no-commented line in application.conf should be: include "/etc/thehive/secret.txt"

And guess what, there you have your secret key: play.http.secret.key="asdflaksdjasdfflaksjdfasdlaksdjgldskjhglksjdfhglskfdg"

Now you can restart TheHive