Sudden "You are accessing an unset property. Please make sure to set it beforehand." error in Icinga Dashboard

Pretext:

  • I am using Official Docker images for Icinga2, Icingaweb2, Icingadb, and official Redis. All are using latest images from docker.io
  • The Icinga was working without issue until recently.
  • My DB is Postgres and located outside of the containers and running locally.

Issue:

  • When I try to do some actions, such as “check now” it gives an following error “You are accessing an unset property. Please make sure to set it beforehand.”

Steps I have tried:

  • I have tried to redeploy all containers

My current setup:

  • As above all latest containers
  • PHP inside the Icinga-web2 container is PHP 7.4.33 (I think it might be PHP issue?)
  • I am using Debian OS

What to do next?

  • Since I am using containers I can just backup my DB and nuke everything. Afterwards redeploy it. But I want to get to understand the issue, also searching online seems like no one had this issue or for them it was simple fix. :cry:

This is probably the exact reason. The fact that you get this error is very unusual.

Please turn on debug logging and share what gets emitted in it once you issued an action.

I did not turn on the debug logging to check it yet, but while I was doing clean install I was able to find and re-create the issue. Posting here if anyone has same issue.

Somehow the issue seems to be even though I give initial arguments to icingadb module (icinga-web2 container); for database, Redis and command transport, the password for command transport seems to break somehow. So, when it initializes it cannot use it, if you copy and paste exact same password and click save it works.

Find the settings at Icinga Web2 Module > IcingaDB > Command Transport > Re-save your configuration.

Note: Because it happened suddenly I think there is some kind of special trigger for this “bug” or behavior?