Skip to main content
Question

Blank Pages after upgrade 24.10.24 on Debian version 12.13

  • May 14, 2026
  • 2 replies
  • 20 views

Forum|alt.badge.img+1

Hello,

Most of the Centreon web menu pages appear blank since the update. I've cleared my browser cache, tested in incognito mode, and cleared the Symfony cache. Nothing works.I checked the logs in /var/log/apache2/error.log and found this, but it might be unrelated:

[Thu May 14 12:46:32.281519 2026] [proxy_fcgi:error] [pid 774:tid 774] [client 82.66.247.24:65357] AH01071: Got error 'PHP message: PHP Warning:  Undefined variable $sessionKeyFreeze in /usr/share/centreon/www/include/Administration/parameters/general/form.php on line 279; PHP message: PHP Warning:  touch(): Utime failed: Syst\xc3\xa8me de fichiers accessible en lecture seulement in /usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php on line 178; PHP message: PHP Warning:  touch(): Utime failed: Syst\xc3\xa8me de fichiers accessible en lecture seulement in /usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php on line 188', referer: http://xxxxxxxxxxxxxxxxxxxx/centreon/main.php?p=50110&o=general
 

(xxxxxxxxxxxxxx : is the server of my centreon)

 

I attempted the upgrade to version 25.10, and when I finalize the upgrade by accessing the web page (http://xxxxxxxxxxxxxxx/centreon/install/upgrade.php), I get a gray page. 
I now have this and the issue with smarty_template_compiled.php is still being raised.

[2026-05-14T12:46:24+02:00] CRITICAL : An error occurred while displaying the error template : unable to create directory /usr/share/centreon/www/templates_c | {"custom":{"error_message":"unable to create directory /usr/share/centreon/www/templates_c"},"exception":{"exceptions":[{"type":"SmartyException","message":"unable to create directory /usr/share/centreon/www/templates_c","file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_writefile.php","line":45,"code":0,"class":"Smarty_Internal_Runtime_WriteFile","method":"writeFile"}],"traces":[{"file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php","line":209,"function":"writeFile","class":"Smarty_Internal_Runtime_WriteFile","type":"->"},{"file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php","line":184,"function":"write","class":"Smarty_Template_Compiled","type":"->"},{"file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php","line":141,"function":"compileTemplateSource","class":"Smarty_Template_Compiled","type":"->"},{"file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php","line":105,"function":"process","class":"Smarty_Template_Compiled","type":"->"},{"file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php","line":217,"function":"render","class":"Smarty_Template_Compiled","type":"->"},{"file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php","line":238,"function":"render","class":"Smarty_Internal_Template","type":"->"},{"file":"/usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php","line":134,"function":"_execute","class":"Smarty_Internal_TemplateBase","type":"->"},{"file":"/usr/share/centreon/GPL_LIB/smarty-plugins/SmartyBC.php","line":569,"function":"display","class":"Smarty_Internal_TemplateBase","type":"->"},{"file":"/usr/share/centreon/www/include/home/customViews/index.php","line":346,"function":"display","class":"SmartyBC","type":"->"},{"file":"/usr/share/centreon/www/main.get.php","line":292,"args":["/usr/share/centreon/www/include/home/customViews/index.php"],"function":"include_once"}]},"default":{"request_infos":{"uri":"/centreon/main.get.php?p=103","http_method":"GET","server":"xxxxxxxxxxxxxxxxxxxx"}}}
 

I tried creating the templates_c directory with centreon:centreon permissions and chmod 775, but then the errors continue: it is not possible to create files in this directory.

 

Best regards

2 replies

Forum|alt.badge.img+1

I am convinced that the problem stems from the update of the php-8.1 to php-8.2 packages, but I haven't been able to find the reason.


Forum|alt.badge.img
  • Steward *
  • May 14, 2026

I had a similar issue after installing the latest PHP 8.2 update from Debian. The update contained this note:
 

php8.2 (8.2.31-2) unstable; urgency=medium

* The systemd unit file has been hardened. Extra options from
sapi/fpm/php-fpm.service.in has been used:

PrivateTmp=true
ProtectSystem=full
PrivateDevices=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=true

This should work in the default environments, but you might need
to modify the systemd unit file if you are using less standard
FPM configuration.


This broke Centreon for me, resulting in the error:

PHP Warning:  touch(): Utime failed: Read-only file system in /usr/share/centreon/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php 
on line 178;


Workaround: Create an override for the php8.2-fpm.service:

systemctl edit php8.2-fpm.service

Disable ProtectSystem:

[Service]
ProtectSystem=false

Reload and restart:

systemctl daemon-reload
systemctl restart php8.2-fpm.service

 

This worked for me.