Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

[dev.icinga.com #6921] Uncaught AppKitModelException after clear agavi configuration cache #1309

Closed
icinga-migration opened this issue Aug 15, 2014 · 5 comments

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/6921

Created by therrmann on 2014-08-15 10:31:25 +00:00

Assignee: therrmann
Status: Feedback
Target Version: Backlog
Last Update: 2015-09-25 10:56:54 +00:00 (in Redmine)

Icinga Version: icinga2 2.0.2-1
Icinga Web Version: 1.11.1
IDO Version: 1.11.6
OS Version: Debian
DB Type: MySQL
DB Version: 1.11.6
Browser Version: Unknown

Hi,

this is an issue with icinga-web running on icinga2. Is this the right place for the bug report, or should it go to icinga1?

Out of curiosity, I clicked on "Clear the agavi configuration cache to apply new xml configuration." in the admin tasks. After that, "Internal Error" messages appeared when opening the web frontend. I tracked it down to this request:

Uncaught AppKitModelException thrown:
Cache dir for CronksUserCacheDataModel does not exist: /usr/share/icinga-web/app/data/tmp
Stacktrace:

#0 /usr/share/icinga-web/app/modules/Cronks/models/Provider/SystemPerformanceModel.class.php(35): CronksUserCacheDataModel->initialize(Object(AppKitAgaviContext), Array)
#1 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(441): Cronks_Provider_SystemPerformanceModel->initialize(Object(AppKitAgaviContext), Array)
#2 /usr/share/icinga-web/app/modules/Cronks/views/System/MonitorPerformanceSuccessView.class.php(35): AgaviContext->getModel('Provider.System...', 'Cronks')
#3 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1672): Cronks_System_MonitorPerformanceSuccessView->executeJson(Object(AgaviWebRequestDataHolder))
#4 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1533): AgaviExecutionFilter->executeView(Object(AgaviExecutionContainer))
#5 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1255): AgaviExecutionFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#6 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#7 /usr/share/icinga-web/lib/agavi/src/filter/AgaviSecurityFilter.class.php(73): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#8 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1255): AgaviSecurityFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#9 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#10 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(870): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#11 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1266): AgaviExecutionContainer->execute()
#12 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1255): AgaviDispatchFilter->execute(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#13 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#14 /usr/share/icinga-web/lib/agavi/src/filter/AgaviFormPopulationFilter.class.php(78): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#15 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(1700): AgaviFormPopulationFilter->executeOnce(Object(AgaviFilterChain), Object(AgaviExecutionContainer))
#16 /var/cache/icinga-web/config/compile.xml_production__d41bc4e7416d79a2859fb497054ab4f5308e2df1.php(579): AgaviFilterChain->execute(Object(AgaviExecutionContainer))
#17 /usr/share/icinga-web/pub/index.php(49): AgaviController->dispatch()
#18 {main}

Simply recreating the missing folder with the proper permission fixed the issue.

root@icinga:/var/cache/icinga-web# dpkg -l icinga* | grep ii
ii icinga-common 1.11.6-1 all host and network monitoring system - support files
ii icinga-web 1.11.1-1 all host and network monitoring system - modern web interface
ii icinga2 2.0.2-1 amd64 host and network monitoring system
ii icinga2-bin 2.0.2-1 amd64 host and network monitoring system - daemon
ii icinga2-common 2.0.2-1 all host and network monitoring system - common files
ii icinga2-doc 2.0.2-1 all host and network monitoring system - documentation
ii icinga2-ido-mysql 2.0.2-1 amd64 host and network monitoring system - IDO for MySQL

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-08-17 09:23:11 +00:00

  • Project changed from Icinga 2 to Web
  • Icinga Web Version set to 1
  • IDO Version set to 1
  • OS Version set to Debian
  • DB Type set to MySQL
  • DB Version set to 1
  • Browser Version set to Unknown

@icinga-migration
Copy link
Author

Updated by alolsz on 2014-09-30 16:49:07 +00:00

My icinga-web is also affected by this bug (running icinga-web with icigna2).

Icinga Web Versiion: 1.11.1-2ppa1
Icinga2 Version: 2.1.1-1
ppa1~trusty1

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-04-26 09:30:56 +00:00

  • Status changed from New to Feedback
  • Assigned to set to therrmann

Verify that '/usr/share/icinga-web/app/data/tmp' exists, is writable by the apache user and SELinux is disabled.

@icinga-migration
Copy link
Author

Updated by berk on 2015-05-18 12:18:05 +00:00

  • Target Version set to Backlog

@icinga-migration
Copy link
Author

Updated by lehrhardt on 2015-09-25 10:56:54 +00:00

i also experienced this bug with icinga 1.13

@icinga-migration icinga-migration added this to the Backlog milestone Jan 17, 2017
@dnsmichi dnsmichi removed this from the Backlog milestone Dec 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants