Cannot configure icingadb Redis

Hello,

Env : Redhat 7.8
Icinga2 2.15.3
Icingaweb2 2.11.1

I followed the installation procedure from this link : RHEL - Icinga DB Web". When I perform step 3 : “Configure the connection to the Redis server through the Configuration → Modules → icingadb → Redis menu” I get the following error :


Thanks

Hello @moinsunsurx and thank you for reporting!

I guess the problem (we’ll have to fix in Icinga Web itself) is:

https://www.php.net/manual/en/function.sys-get-temp-dir.php#121073

Btw. cool that you’ve already upgraded to Icinga2 2.15.3.

Best,
A/K

Please could you find IcingaException.php,

find / -mount -name IcingaException.php

edit it as here,

--- IcingaException.php
+++ IcingaException.php
@@ -71,6 +71,7 @@ class IcingaException extends Exception
      */
     public static function getConfidentialTraceAsString(Exception $exception)
     {
+        return $exception->getTraceAsString();
         $trace = array();

         foreach ($exception->getTrace() as $index => $frame) {

get the stack again and share what mkdir(String, Integer) changed to?

Bellow the error after modifying the file : “/usr/share/php/Icinga/File/Storage/TemporaryLocalFileStorage.php”
like that :
public function __construct()
{
$path = tempnam(sys_get_temp_dir(), uniqid() );
chmod($path, 0700);

    parent::__construct($path);
}

Have you installed icingaweb2-selinux?

Hello Grandmaster,
I will close the issue. There was an old php binary lying around the server. I don’t know why it wasn’t a problem before. I simply deleted a rpm file.
Thanks for your help. Have a nice day.