Comments (3)
Hi! Thanks for the good tutorial reference. Session handling via Redis works fine on my instance 👍 . Did you also manage to get the redis authentication to work? I tried the following settings (Ubuntu 16.04.1):
- /etc/redis/redis.conf
requirepass <mySuperSecretPassword>
- /etc/php/7.0/apache2/php.ini
session.save_handler = redis
session.save_path = "tcp://127.0.0.1:6379?auth=<mySuperSecretPassword>"
- MISP Server Settings
Plugin settings --> ZeroMQ
Plugin.ZeroMQ_redis_host => 127.0.0.1
Plugin.ZeroMQ_redis_port => 6379
Plugin.ZeroMQ_redis_password => <mySuperSecretPassword>
Plugin.ZeroMQ_redis_database => 1
Plugin.ZeroMQ_redis_namespace => mispq
However, after restarting Apache & Redis, I can't access https://misp.example.com/servers/serverSettings/ anymore and receive the following error in /var/www/MISP/app/tmp/logs/error.log:
2017-01-12 14:35:40 Warning: Warning (2): Invalid argument supplied for foreach() in [/var/www/MISP/app/Vendor/kamisama/resque-status/src/ResqueStatus/ResqueStatus.php, line 126]
Trace:
ResqueStatus\ResqueStatus::getWorkers() - APP/Vendor/kamisama/resque-status/src/ResqueStatus/ResqueStatus.php, line 126
Server::workerDiagnostics() - APP/Model/Server.php, line 2869
ServersController::serverSettings() - APP/Controller/ServersController.php, line 750
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - APP/Lib/cakephp/lib/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 92
2017-01-12 14:35:40 Error: [RedisException] Failed to AUTH connection
Request URL: /servers/serverSettings
Stack Trace:
#0 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque.php(153): Redis->lLen('queue:cache')
#1 /var/www/MISP/app/Plugin/CakeResque/Lib/CakeResque.php(342): Resque::size('cache')
#2 /var/www/MISP/app/Model/Server.php(2902): CakeResque::getQueueSize('cache')
#3 /var/www/MISP/app/Controller/ServersController.php(750): Server->workerDiagnostics(0)
#4 [internal function]: ServersController->serverSettings()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(ServersController), Array)
#6 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#7 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(ServersController), Object(CakeRequest))
#8 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#9 {main}
Do you have to set the Redis password anywhere else? Cheers
from misp-book.
@koenigswinter I'm running into the same issue. Did you find a solution workaround?
from misp-book.
File 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' => null // Redis password
),
After change 'password' to mysecretpass, it fix problem
from misp-book.
Related Issues (20)
- Lack of documentation regarding feeds / synchronisation HOT 4
- Document how to create a new dashboard widget
- Document relations / event graph
- Document event report functionality
- Document correlation exclusions functionality HOT 2
- Document what a NIDS SID is HOT 1
- Document includeCorrelations HOT 1
- Document syslog behavior especially priority and RHEL
- Document PHP developer debugging / troubleshooting techniques HOT 2
- Document decaying system
- Document correlation engine HOT 2
- Document existing dashboard widgets / usage
- Document warninglists checkValue functionality
- Create a "basic misp usage" section
- Update screenshots according to changes in top menu (v2.4.144)
- Document how to create simple scheduled job to trigger (pull) sync
- Rename Bro to zeek
- https://misp-project.org/MISP-sizer/ return not found HOT 1
- Workflow Module Error - Invalid argument supplied for foreach HOT 1
- Document local tagging permissions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from misp-book.