Automated install with https://github.com/juju4/ansible-MISP/tree/master.
recently added some redis security options including requirepass
https://github.com/juju4/ansible-MISP/blob/master/tasks/redis-secure.yml
I added it to MISP config.php
| Questions | Answers
|---------------------------|--------------------
| Type of issue | Bug
| OS version (server) | CentOS
| OS version (client) | 7
| PHP version | 7.2-remi
| MISP version / git hash | 2.4.93
starting start.sh without error
all worker start returns
Error: NOAUTH Authentication required
Strangely, that does not affect script exit code (but shell script)
If disabling redis requirepass, restarting redis and reexecute start.sh, it works fine.
use redis requirepass
https://travis-ci.org/juju4/ansible-MISP/jobs/399995248
take raw log and look for
TASK [juju4.MISP : start MISP worker] ******************************************[0m
[...]
[35m [0;33m "Error: NOAUTH Authentication required.", [0m[0m
[35m [0;33m "#0 /var/www/MISP/app/Vendor/kamisama/resque-status/src/ResqueStatus/ResqueStatus.php(56): Redis->hSet('ResqueWorker', '21388', 'a:10:{s:8:\"inte...')", [0m[0m
[35m [0;33m "#1 /var/www/MISP/app/Plugin/CakeResque/Console/Command/CakeResqueShell.php(578): ResqueStatus\\ResqueStatus->addWorker(21388, Array)", [0m[0m
[35m [0;33m "#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/Shell.php(459): CakeResqueShell->start()", [0m[0m
[35m [0;33m "#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('start', Array)", [0m[0m
[35m [0;33m "#4 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()", [0m[0m
[35m [0;33m "#5 /var/www/MISP/app/Console/cake.php(32): ShellDispatcher::run(Array)", [0m[0m
[35m [0;33m "#6 {main}", [0m[0m
After adding the redis password to the following file, i could start the workers using the start.sh script:
/var/www/MISP/app/Plugin/CakeResque/Config/config.php
$config['CakeResque'] = array(
'Redis' => array(
'host' => 'localhost', // Redis server hostname
'port' => 6379, // Redis server port
'database' => 0, // Redis database number
'namespace' => 'resque', // Redis keys namespace
'password' => 'YOUR_REDIS_PW_HERE' // Redis password
However if i navigate to [BASE_URL]/servers/serverSettings/workers in the web-UI the workers aren't showing up and i can't restart them. Doing a tcpdump to i noticed there's the "NOAUTH Authentication required" error as well while trying to restart a worker or just F5-ing the page (configured the password in the MISP-Settings aswell).
I have not tested the background workers with an authenticated redis, but just a few things to also consider:
If you wanted to have the password for 1. - reconsider how you're setting up your system and instead don't open up redis to your network. If it's for 2. - I don't think we'll have the cycles to work on this, but if you do, pull requests are most welcome.