Hi Icinga gurus,
After I updated icingaweb2-2.5.3-1 to icingaweb2-2.6.1-1 on a CentOS7 server, I
was not able to access the web gui. I got the error message such as these on my
web log:
[Wed Oct 03 15:17:15.832101 2018] [:error] [pid 25301] [client
128.120.128.37:33956] PHP Fatal error: Uncaught exception 'ErrorException'
with message 'json_encode() expects at most 2 parameters, 3 given' in
/usr/share/php/Icinga/Util/Json.php:57\nStack trace:\n#0 [internal function]:
Icinga\\Application\\ApplicationBootstrap->Icinga\\Application\\{closure}(2,
'json_encode() e...', '/usr/share/php/...', 57, Array)\n#1
/usr/share/php/Icinga/Util/Json.php(57): json_encode(false, 0, 512)\n#2
/usr/share/php/Icinga/Util/Json.php(26):
Icinga\\Util\\Json::encodeAndSanitize(false, 0, 512, false)\n#3
/usr/share/php/Icinga/Application/Logger.php(255):
Icinga\\Util\\Json::encode(false)\n#4 [internal function]:
Icinga\\Application\\Logger::Icinga\\Application\\{closure}(false)\n#5
/usr/share/php/Icinga/Application/Logger.php(258): array_map(Object(Closure),
Array)\n#6 /usr/share/php/Icinga/Application/Logger.php(282):
Icinga\\Application\\Logger::formatMessage(Array)\n#7
/usr/share/php/Icinga/Application/Modules/Manager.php(172):
Icinga\\Application\\Logger::warning('Found invalid m...',
'/etc/icingaweb2...', '/etc/icingaweb2...', false)\n#8 /usr in
/usr/share/php/Icinga/Util/Json.php on line 57, referer:
https://icinga.noc.ucdavis.edu/icingaweb2/dashboard
I had to downgrade icingaweb2 (and its related packages) back to 2.5.3-1 to
gain acces s to the web gui. I wonder if I missed some dependent package for
it to work properly.
Thank you much very for your help.
Zhi-Wei Lu
IET-CR-Network Operations Center
University of California, Davis
(530) 752-0155
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users