New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: [RedisException] Redis server went away #2104
Comments
Anyone? |
Are the workers running? If not, can you restart those? |
The workers are not running. Already stated in my Issue that if i try to (re)start the workers i get; root@misp:/var/www/MISP/app/Model# su - www-data -s /bin/bash -c 'bash /var/www/MISP/app/Console/worker/start.sh' |
If you type redis-cli does the redis cli load fine for you? |
Also already stated in my issue; "(and yes redis-cli is working fine: 127.0.0.1:6379> )" |
If you only use redis for MISP, could you run a flushall and see if it persists? |
I also did that :), didn't make any difference... |
Hmph. Weird, especially since it worked before, haven't seen this happen yet. |
A silly question perhaps, but does Also, is it possible to tcpdump the lo interface to see what is going on at the network level?
|
melvin@misp:~$ host localhost So i first started redis-cli and afterwords i tried restarting the workers: root@misp:/home/melvin# tcpdump -n -i lo port 6379 |
Ok this is embarrassing, looks like its a IPv6 FW mistake... Thanks for pointing this out Richie |
MISP worked fine, but after i connected to another MISP instance to sync (pull) i got the following error:
An Internal Error Has Occurred.
Error: An Internal Error Has Occurred.
Also can't get into the "server settings" or "jobs" pages anymore. Can anyone help me to fix this?
(and yes redis-cli is working fine: 127.0.0.1:6379> )
Work environment
Expected behavior
Sync should pull all events from other MISP instance
Actual behavior
An Internal Error Has Occurred.
Error: An Internal Error Has Occurred.
Steps to reproduce the behavior
I am not 100% sure but it looks like this happened after i tried to "pull all" (Sync) from a other MISP.
Logs, screenshots, configuration dump, ...
2017-04-03 15:27:52 Error: [RedisException] Redis server went away
Request URL: /servers/pull/3/full
Stack Trace:
#0 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(28): Redis->setOption(2, 'resque:')
#1 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(18): RedisApi->establishConnection()
#2 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(168): RedisApi->__construct('localhost', '6379', 5, NULL)
#3 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque.php(102): Resque_Redis->__construct('localhost', '6379', NULL)
#4 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque.php(123): Resque::redis()
#5 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Job.php(77): Resque::push('default', Array)
#6 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque.php(169): Resque_Job::create('default', 'ServerShell', Array, false)
#7 [internal function]: Resque::enqueue('default', 'ServerShell', Array, false)
#8 /var/www/MISP/app/Plugin/CakeResque/Lib/CakeResque.php(140): call_user_func_array('Resque::enqueue', Array)
#9 /var/www/MISP/app/Controller/ServersController.php(479): CakeResque::enqueue('default', 'ServerShell', Array)
#10 [internal function]: ServersController->pull('3', 'full')
#11 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(ServersController), Array)
#12 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#13 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(ServersController), Object(CakeRequest))
#14 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#15 {main}
2017-04-03 19:10:00 Error: [RedisException] Redis server went away
Request URL: /servers/serverSettings
Stack Trace:
#0 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(28): Redis->setOption(2, 'resque:')
#1 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(18): RedisApi->establishConnection()
#2 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(168): RedisApi->__construct('localhost', '6379', 5, NULL)
#3 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque.php(102): Resque_Redis->__construct('localhost', '6379', NULL)
#4 /var/www/MISP/app/Model/Server.php(2906): Resque::redis()
#5 /var/www/MISP/app/Controller/ServersController.php(753): Server->workerDiagnostics(0)
#6 [internal function]: ServersController->serverSettings()
#7 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(ServersController), Array)
#8 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#9 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(ServersController), Object(CakeRequest))
#10 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}
2017-04-03 17:04:33 Error: [RedisException] Redis server went away
Request URL: /jobs/index
Stack Trace:
#0 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(28): Redis->setOption(2, 'resque:')
#1 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(18): RedisApi->establishConnection()
#2 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(168): RedisApi->__construct('localhost', '6379', 5, NULL)
#3 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque.php(102): Resque_Redis->__construct('localhost', '6379', NULL)
#4 /var/www/MISP/app/Model/Server.php(2906): Resque::redis()
#5 /var/www/MISP/app/Controller/JobsController.php(20): Server->workerDiagnostics(0)
#6 [internal function]: JobsController->index()
#7 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(JobsController), Array)
#8 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#9 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(JobsController), Object(CakeRequest))
#10 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}
Also tried to restart the workers;
root@misp:/var/www/MISP/app/Model# su - www-data -s /bin/bash -c 'bash /var/www/MISP/app/Console/worker/start.sh'
Error: Redis server went away
#0 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(28): Redis->setOption(2, 'resque:')
#1 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(18): RedisApi->establishConnection()
#2 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque/Redis.php(168): RedisApi->__construct('localhost', '6379', 5, NULL)
#3 /var/www/MISP/app/Vendor/kamisama/php-resque-ex/lib/Resque.php(102): Resque_Redis->__construct('localhost', '6379', NULL)
#4 /var/www/MISP/app/Plugin/CakeResque/Console/Command/CakeResqueShell.php(77): Resque::redis()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/Shell.php(450): CakeResqueShell->startup()
#6 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/ShellDispatcher.php(219): Shell->runCommand('stop', Array)
#7 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#8 /var/www/MISP/app/Console/cake.php(32): ShellDispatcher::run(Array)
#9 {main}
The text was updated successfully, but these errors were encountered: