Skip to content

Error message while starting icingaweb2 docker container #132

Description

@alamp1360

Hi!

From time to time the icingaweb docker container produces the following error message while starting:

[Wed Jul 30 08:43:55.26908997 2025] [docker_entrypoint:info] [pid 1] DOCKERE: Initializing /data as we're the init process
[Wed Jul 30 08:43:55.269177538 2025] [docker_entrypoint:debug] [pid 1] DOCKERE: Creating "/data/etc/icingaweb2/enabledModules"
[Wed Jul 30 08:43:55.269191491 2025] [docker_entrypoint:debug] [pid 1] DOCKERE: Creating "/data/var/lib/icingaweb2"
[Wed Jul 30 08:43:55.269199977 2025] [docker_entrypoint:debug] [pid 1] DOCKERE: Translating env vars to .ini config
[Wed Jul 30 08:43:55.269206109 2025] [docker_entrypoint:info] [pid 1] DOCKERE: Checking database resources used as backends
[Wed Jul 30 08:43:55.269269481 2025] [docker_entrypoint:crit] [pid 1] DOCKERE: **symlink /usr/share/icingaweb2/modules/setup /data/etc/icingaweb2/enabledModules/setup: file exists**

There is another file in the same directory, which, when existing, also produces a similar error message:

[Wed Jul 30 08:41:31.917828434 2025] [docker_entrypoint:crit] [pid 1] DOCKERE: **symlink /entrypoint-db-init /data/etc/icingaweb2/enabledModules/dockerentrypoint: file exists**

The two files are on a mounted directory from the host system (/opt/APPL/ICINGA/IcingaWeb) and indeed exist:

docker-hostsystem # ls -l /opt/APPL/ICINGA/IcingaWeb/etc/icingaweb2/enabledModules/
total 0
lrwxrwxrwx 1 33 tape 38 Apr  4  2024 director -> /usr/share/icingaweb2/modules/director
lrwxrwxrwx 1 33 tape 19 Jul 30 08:32 dockerentrypoint -> /entrypoint-db-init
lrwxrwxrwx 1 33 tape 41 Nov 29  2024 fileshipper -> /usr/share/icingaweb2/modules/fileshipper
lrwxrwxrwx 1 33 tape 38 Apr  4  2024 graphite -> /usr/share/icingaweb2/modules/graphite
lrwxrwxrwx 1 33 tape 38 Apr  4  2024 icingadb -> /usr/share/icingaweb2/modules/icingadb
lrwxrwxrwx 1 33 tape 39 Apr  4  2024 incubator -> /usr/share/icingaweb2/modules/incubator
lrwxrwxrwx 1 33 tape 39 Apr  9  2024 pdfexport -> /usr/share/icingaweb2/modules/pdfexport
lrwxrwxrwx 1 33 tape 39 Apr  9  2024 reporting -> /usr/share/icingaweb2/modules/reporting
lrwxrwxrwx 1 33 tape 35 Jul 30 08:32 setup -> /usr/share/icingaweb2/modules/setup

When i delete the files, startup is successful, but for some strange reason i do not see those files after startup. So i guess they are being deleted later during the startup procedure. And i also guess that this deletion sometimes does not occur, which would explain the issue i am facing.

Would you please consider changing the main.go to first remove the symlink before creating it?
In the meantime: Would it be safe to just check for and delete those two files in the systemd service file?

Greetings!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions