Bug: Error: [MissingTableException] Table default_correlations for model Correlation was not found in datasource default. Exception Attributes: array ( #8620
Labels
needs triage
This issue has been automatically labelled and needs further triage
Expected behavior
I am able to navigate to our dev landing page with no issues or errors, as with case two release cycles ago.
Actual behavior
Our prod instance of instance is throwing an internal server erorr msg while, dev doesnt. Prod instance also is showing stack trace errors, while dev does not.
#8 /var/www/MISP/app/Model/Event.php(645): Correlation->getRelatedEventIds()
#9 /var/www/MISP/app/Model/Event.php(572): Event->getRelatedEventCount()
#10 /var/www/MISP/app/Controller/EventsController.php(1054): Event->attachCorrelationCountToEvents()
#11 /var/www/MISP/app/Controller/EventsController.php(743): EventsController->__attachInfoToEvents()
#12 [internal function]: EventsController->index()
#13 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#14 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#15 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#16 /var/www/MISP/app/webroot/index.php(99): Dispatcher->dispatch()
#17 {main}
2022-09-27 11:17:39 Error: [MissingTableException] Table default_correlations for model Correlation was not found in datasource default.
Exception Attributes: array (
'table' => 'default_correlations',
'class' => 'Correlation',
'ds' => 'default',
)
Request URL: /events/index
Stack Trace:
#0 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3686): Model->setSource()
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3053): Model->getDataSource()
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3025): Model->_readDataSource()
#3 /var/www/MISP/app/Model/Behavior/DefaultCorrelationBehavior.php(488): Model->find()
#4 /var/www/MISP/app/Model/Behavior/DefaultCorrelationBehavior.php(436): DefaultCorrelationBehavior->__filterRelatedEvents()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/BehaviorCollection.php(238): DefaultCorrelationBehavior->fetchRelatedEventIds()
#6 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(829): BehaviorCollection->dispatchMethod()
#7 /var/www/MISP/app/Model/Correlation.php(843): Model->__call()
#8 /var/www/MISP/app/Model/Event.php(645): Correlation->getRelatedEventIds()
#9 /var/www/MISP/app/Model/Event.php(572): Event->getRelatedEventCount()
#10 /var/www/MISP/app/Controller/EventsController.php(1054): Event->attachCorrelationCountToEvents()
#11 /var/www/MISP/app/Controller/EventsController.php(743): EventsController->__attachInfoToEvents()
#12 [internal function]: EventsController->index()
#13 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#14 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#15 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#16 /var/www/MISP/app/webroot/index.php(99): Dispatcher->dispatch()
#17 {main}
2022-09-27 11:18:19 Error: [MissingTableException] Table default_correlations for model Correlation was not found in datasource default.
Exception Attributes: array (
'table' => 'default_correlations',
'class' => 'Correlation',
'ds' => 'default',
)
Request URL: /
Stack Trace:
#0 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3686): Model->setSource()
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3053): Model->getDataSource()
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3025): Model->_readDataSource()
#3 /var/www/MISP/app/Model/Behavior/DefaultCorrelationBehavior.php(488): Model->find()
#4 /var/www/MISP/app/Model/Behavior/DefaultCorrelationBehavior.php(436): DefaultCorrelationBehavior->__filterRelatedEvents()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/BehaviorCollection.php(238): DefaultCorrelationBehavior->fetchRelatedEventIds()
#6 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(829): BehaviorCollection->dispatchMethod()
#7 /var/www/MISP/app/Model/Correlation.php(843): Model->__call()
#8 /var/www/MISP/app/Model/Event.php(645): Correlation->getRelatedEventIds()
#9 /var/www/MISP/app/Model/Event.php(572): Event->getRelatedEventCount()
#10 /var/www/MISP/app/Controller/EventsController.php(1054): Event->attachCorrelationCountToEvents()
#11 /var/www/MISP/app/Controller/EventsController.php(743): EventsController->__attachInfoToEvents()
#12 [internal function]: EventsController->index()
#13 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#14 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#15 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#16 /var/www/MISP/app/webroot/index.php(99): Dispatcher->dispatch()
#17 {main}
2022-09-27 11:18:32 Error: [MissingTableException] Table default_correlations for model Correlation was not found in datasource default.
Exception Attributes: array (
'table' => 'default_correlations',
'class' => 'Correlation',
'ds' => 'default',
)
Request URL: /events/index
Stack Trace:
#0 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3686): Model->setSource()
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3053): Model->getDataSource()
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(3025): Model->_readDataSource()
#3 /var/www/MISP/app/Model/Behavior/DefaultCorrelationBehavior.php(488): Model->find()
#4 /var/www/MISP/app/Model/Behavior/DefaultCorrelationBehavior.php(436): DefaultCorrelationBehavior->__filterRelatedEvents()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/BehaviorCollection.php(238): DefaultCorrelationBehavior->fetchRelatedEventIds()
#6 /var/www/MISP/app/Lib/cakephp/lib/Cake/Model/Model.php(829): BehaviorCollection->dispatchMethod()
#7 /var/www/MISP/app/Model/Correlation.php(843): Model->__call()
#8 /var/www/MISP/app/Model/Event.php(645): Correlation->getRelatedEventIds()
#9 /var/www/MISP/app/Model/Event.php(572): Event->getRelatedEventCount()
#10 /var/www/MISP/app/Controller/EventsController.php(1054): Event->attachCorrelationCountToEvents()
#11 /var/www/MISP/app/Controller/EventsController.php(743): EventsController->__attachInfoToEvents()
#12 [internal function]: EventsController->index()
#13 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#14 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#15 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#16 /var/www/MISP/app/webroot/index.php(99): Dispatcher->dispatch()
#17 {main}
Steps to reproduce
tailed log file while navigating to land page and events page as you can see above
Version
2.4.163
Operating System
Ubuntu (both dev, prod)
Operating System version
20.04
PHP version
7.4.3 (dev,prod)
Browser
all browsers
Browser version
No response
Relevant log output
No response
Extra attachments
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: