TheHive-Project / TheHiveDocs

Documentation of TheHive
https://docs.strangebee.com/
GNU Affero General Public License v3.0
393 stars 280 forks source link

The Hive startup error : /etc/init.d/thehive: 46: Syntax error: ")" unexpected (expecting ";;") #178

Open jaysadat opened 4 years ago

jaysadat commented 4 years ago

Hi,

I read through the code and looked at similar code as well and nothing seems to be an issue with that but when try to start up this message comes up: /etc/init.d/thehive: 46: Syntax error: ")" unexpected (expecting ";;"). Don't know if I am missing something or if anyone has a fix for this would be much appreciated.

Thanks

desnij commented 4 years ago

This appears to be a bug in TheHive and not TheHiveDocs, so the issue should be asked there. :)


But to try to help.

if, by chance, you are on a system that still uses initd, I think this script was meant for debian and wont work on redhat anyway. And it is obviously broken, I may take a look at it soon as I am working on docker - sorry not much help there.

However, This is one of the many errors currently when trying to use thehive without systemd. ( I havent read all the tickets yet, but I am sure these are in there somewhere )

Most systems are using systemd these days ( systemctl start thehive ), if you are using docker you probably want to create a user and start the process with this. ( from thehive.service )

/opt/thehive/bin/thehive \
    -Dconfig.file=/etc/thehive/application.conf \
    -Dlogger.file=/etc/thehive/logback.xml \
    -Dpidfile.path=/dev/null

PS: you will also find that the default location for the config is /opt/thehive/bin/../conf/application.ini, I am not sure if that is cruft or a typo but, you will need to specify where you place your config. :)

desnij commented 4 years ago

@nadouani I think we can close this its another non docs issue.

I propose we make a issue template the mentions that this is the docs and not the project. merci