I try to migrate from Nagios to Icinga with a docker setup and latest images of icinga.
I use the web setup. All steps are working but the redis part is crashing with
foreach() argument must be of type array|object, null given
Since you wrote that you are using a Docker-based setup, could you please list the version of Icinga DB and the Icinga DB Web module within Icinga Web. There might be a discrepancy there. Otherwise, is the Redis reachable from the Icinga Web container?
thanks for you answer.
Redis is within the same network and reachable yes.
Here are the requested version infos.
Best and thanks,
Don
Icinga Web 2 2.12.4
setup 2.12.4
Module: icingadb
Version: 1.2.1
Requires:
Libraries: icinga-php-library (>=0.16.1), icinga-php-thirdparty (>=0.13.0)
Description: Icinga DB Web
UI for Icinga DB ā Provides a graphical interface to your Icinga monitoring
Thanks. Could you please also supply the version of Icinga DB and Icinga 2 - the used container versions should be good enough. Otherwise, open a shell in the container and execute icinga2 --version or icingadb --version, respectively.
Iāve started reinstalling everything.
When Iām finished, later today, Iāll share the results. I think the problem is that I have the intermediate layer for icingadb, but not icingadb itself.
Please do not close this topic.
Thanks and best,
Don
Iāll follow this since Iām having the same problems.
I did not have this problem a 1-2 weeks ago when I did exactly the same setup.
Total of 4 servers:
2 icinga masters (icingadb + redis),
Mysql
Icingaweb2 (icinga db web)
Connecting to Redis at āredis://redis-icingadb:6379ā
2025-07-02T12:27:51.517Z
INFO
icingadb
Waiting for Icinga 2 to write into Redis, please make sure you have started Icinga 2 and the Icinga DB feature is enabled
Icingadb:
2025-07-02T12:27:46.803Z INFO icingadb Starting database schema auto import
2025-07-02T12:27:48.515Z INFO icingadb The database schema was successfully imported
2025-07-02T12:27:48.515Z INFO icingadb Connecting to Redis at āredis://redis-icingadb:6379ā
2025-07-02T12:27:51.517Z INFO icingadb Waiting for Icinga 2 to write into Redis, please make sure you have started Icinga 2 and the Icinga DB feature is enabled
I skipped the validation.
At the end I can logon to icinga2 web frontend. But same picture here.
But .. SQLSTATE[42S02]: Base table or view not found: 1146 Table āicinga.icingadb_schemaā doesnāt exist
Please compare these two log messages from your last two posts. First, the Icinga DB daemon has imported its schema successfully, now Icinga DB Web complaints about missing tables.
Since you work in a containerized environment, I would guess that maybe your relational databaseās storage is not in a persisted volume, but was deleted during container restarts?