Icinga/docker-icingaweb2

Module path missing

danielbierstedt opened this issue · 1 comments

Hello,

I need some help getting this running. When starting the given command: "docker run ...", I see the following:

[Sun Jun 12 09:32:53.006275976 2022] [docker_entrypoint:info] [pid 1] DOCKERE: Initializing /data as we're the init process
[Sun Jun 12 09:32:53.006359373 2022] [docker_entrypoint:debug] [pid 1] DOCKERE: Creating "/data/etc/icingaweb2/enabledModules"
[Sun Jun 12 09:32:53.006491302 2022] [docker_entrypoint:debug] [pid 1] DOCKERE: Creating "/data/var/lib/icingaweb2"
[Sun Jun 12 09:32:53.006558589 2022] [docker_entrypoint:debug] [pid 1] DOCKERE: Translating env vars to .ini config
[Sun Jun 12 09:32:53.006623722 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/groups.ini"
[Sun Jun 12 09:32:53.006661193 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/modules/icingadb/commandtransports.ini"
[Sun Jun 12 09:32:53.006732598 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/roles.ini"
[Sun Jun 12 09:32:53.006752355 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/config.ini"
[Sun Jun 12 09:32:53.006787131 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/modules/icingadb/config.ini"
[Sun Jun 12 09:32:53.006809703 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/modules/icingadb/redis.ini"
[Sun Jun 12 09:32:53.006833558 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/authentication.ini"
[Sun Jun 12 09:32:53.00686611 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Writing "/data/etc/icingaweb2/resources.ini"
[Sun Jun 12 09:32:53.006899212 2022] [docker_entrypoint:debug] [pid 1] DOCKERE: Enabling/disabling modules
[Sun Jun 12 09:32:53.006919009 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Enabling module "icingadb"
[Sun Jun 12 09:32:53.006932314 2022] [docker_entrypoint:trace1] [pid 1] DOCKERE: Enabling module "ipl"
[Sun Jun 12 09:32:53.006943786 2022] [docker_entrypoint:info] [pid 1] DOCKERE: Checking database resources used as backends
Found invalid module in enabledModule directory "/data/etc/icingaweb2/enabledModules": "/data/etc/icingaweb2/enabledModules/ipl" points to non existing path "false"
[Sun Jun 12 09:32:53.042215207 2022] [docker_entrypoint:debug] [pid 1] DOCKERE: Checking database resource "icingaweb_db"
Found invalid module in enabledModule directory "/data/etc/icingaweb2/enabledModules": "/data/etc/icingaweb2/enabledModules/ipl" points to non existing path "false"
ERROR: PDOException in /usr/share/icingaweb2/modules/setup/library/Setup/Utils/DbTool.php:352 with message: SQLSTATE[HY000] [2002] Connection timed out
[Sun Jun 12 09:32:54.072241484 2022] [docker_entrypoint:crit] [pid 1] DOCKERE: exit status 1

Something wrong with linking?

root@desktop:/var/lib/docker/volumes/icingaweb/_data/etc/icingaweb2/enabledModules# ll                                                                                                                                                                                          
insgesamt 8                                                                                                                                                                                                                                                                     
drwxr-x--- 2 www-data www-data 4096 Jun 12 11:30 ./                                                                                                                                                                                                                             
drwxr-x--- 4 www-data www-data 4096 Jun 12 11:17 ../                                                                                                                                                                                                                            
lrwxrwxrwx 1 www-data www-data   38 Jun 12 11:17 icingadb -> /usr/share/icingaweb2/modules/icingadb                                                                                                                                                                             
lrwxrwxrwx 1 www-data www-data   33 Jun 12 11:17 ipl -> /usr/share/icingaweb2/modules/ipl 

Also, the IP Adresses used in the documentation are unclear, I have no idea whats meant to be put there.

Found invalid module in enabledModule directory "/data/etc/icingaweb2/enabledModules": "/data/etc/icingaweb2/enabledModules/ipl" points to non existing path "false"

Looks like the README might be outdated as ipl isn't really a module anymore. Can you please try again with removing that from icingaweb.enabledModules?

Also, the IP Adresses used in the documentation are unclear, I have no idea whats meant to be put there.

Can also be hostnames, if you're running everything in Docker, try the name of the other container running that service.