TheHive-Project / TheHiveDocs

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

TheHive 4 Cassandra Configuration Update #171

Closed peasead closed 3 years ago

peasead commented 4 years ago

Version: CentOS Linux release 7.8.2003 (Core)

When installing Cassandra on a RHEL system, you need to adjust the service file from using su to using runuser. This is documented on RHELs KB (account required).

Starting_a_service_fails_with__New_main_PID_does_not_belong_to_service__and_PID_file_is_not_owned_by_root__Refusing__-_Red_Hat_Customer_Portal

TheHive's v4 RHEL install documentation for Cassandra.

I can't open a PR because I don't have a whole answer.

What you can do is change the su to runuser in /etc/rc.d/init.d/cassandra, run systemctl daemon-reload and that gets past the hard crash, but Cassandra still won't start, now with the following error in journalctl -xe.

May 27 20:56:09 thehive-4 polkitd[694]: Unregistered Authentication Agent for unix-
process:1481:20037 (system bus name :1.29, object path 
/org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected
 from bus)
peasead commented 3 years ago

Stale.