Skip to content
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

[dev.icinga.com #10123] CSS loading may fail w/ mkdir(): File exists in FileCache.php #1993

Closed
icinga-migration opened this issue Sep 8, 2015 · 4 comments
Labels
area/framework Affects third party integration/development bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by jirimedved on 2015-09-08 20:13:39 +00:00

Assignee: elippmann
Status: Resolved (closed on 2015-11-26 11:15:03 +00:00)
Target Version: 2.1.1
Last Update: 2015-11-26 11:15:03 +00:00 (in Redmine)


Hello,
web not loaded css style.

Fatal error:  Uncaught exception 'ErrorException' with message 'mkdir(): File exists' in /usr/share/php/Icinga/Web/FileCache.php:53
Stack trace:

#0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'mkdir(): File e...', '/usr/share/php/...', 53, Array)
#1 /usr/share/php/Icinga/Web/FileCache.php(53): mkdir('/tmp/FileCache_...', '0750', true)
#2 /usr/share/php/Icinga/Web/FileCache.php(270): Icinga\Web\FileCache->__construct('icingaweb')
#3 /usr/share/php/Icinga/Web/StyleSheet.php(95): Icinga\Web\FileCache::instance()
#4 /usr/share/php/Icinga/Web/StyleSheet.php(48): Icinga\Web\StyleSheet::send(true)
#5 /usr/share/php/Icinga/Application/webrouter.php(66): Icinga\Web\StyleSheet::sendMinified()
#6 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#7 {main}

thrown in /usr/share/php/Icinga/Web/FileCache.php on line 53

Changesets

2015-11-26 11:02:55 +00:00 by elippmann 045e4a9

Guard FileCache against an existing but not writeable runtime path

fixes #10123

2015-11-26 11:13:02 +00:00 by elippmann 6e61830

Guard the FileCache if the systemd private tmp directory for the web server has been removed

refs #10123
@icinga-migration
Copy link
Author

Updated by jirimedved on 2015-09-09 07:38:40 +00:00

CentOS 7

~ # rpm -qa | grep icinga
icingaweb2-common-2.0.0-4.rc1.el7.centos.noarch
icingaweb2-vendor-JShrink-1.0.1-1.el7.centos.noarch
icingaweb2-2.0.0-4.rc1.el7.centos.noarch
icinga2-bin-2.3.10-1.el7.centos.x86_64
icingaweb2-vendor-Zend-1.12.9-1.el7.centos.noarch
icingaweb2-vendor-dompdf-0.6.1-1.el7.centos.noarch
icinga2-common-2.3.10-1.el7.centos.x86_64
icinga2-2.3.10-1.el7.centos.x86_64
icinga2-ido-mysql-2.3.10-1.el7.centos.x86_64
icingaweb2-vendor-lessphp-0.4.0-1.el7.centos.noarch
icingaweb2-vendor-HTMLPurifier-4.6.0-1.el7.centos.noarch
icingaweb2-vendor-Parsedown-1.0.0-1.el7.centos.noarch
icingacli-2.0.0-4.rc1.el7.centos.noarch

@icinga-migration
Copy link
Author

Updated by nichols356 on 2015-10-12 23:22:44 +00:00

I ran into this issue as well, but in my scenario it wasn't a bug. The apache user didn't have permissions to /tmp/FileCache_icingaweb (due to an issue with httpd). I had to chown apache:apache on that dir

@icinga-migration
Copy link
Author

Updated by elippmann on 2015-11-26 11:02:39 +00:00

  • Subject changed from Not loaded css styles to CSS loading may fail w/ mkdir(): File exists in FileCache.php
  • Category set to Framework
  • Status changed from New to Assigned
  • Assigned to set to elippmann
  • Target Version set to 2.1.1

@icinga-migration
Copy link
Author

Updated by elippmann on 2015-11-26 11:15:03 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 045e4a9.

@icinga-migration icinga-migration added bug Something isn't working area/framework Affects third party integration/development labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.1.1 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/framework Affects third party integration/development bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant