Looks similar to #30 but "ICINGA_REDIS_DDRESS: icingadb-redis:6379" is changed to "ICINGADB_REDIS_HOST: icingadb-redis."
The log-file of the icingadb-container indicate a problem while connecting to redis:
github.com/icinga/icingadb/pkg/driver.RetryConnector.Connect.func2
/go/pkg/mod/github.com/icinga/icingadb@v1.0.0-rc2.0.20220322165027-18de0a12974d/pkg/driver/driver.go:44
github.com/icinga/icingadb/pkg/retry.WithBackoff
/go/pkg/mod/github.com/icinga/icingadb@v1.0.0-rc2.0.20220322165027-18de0a12974d/pkg/retry/retry.go:52
github.com/icinga/icingadb/pkg/driver.RetryConnector.Connect
/go/pkg/mod/github.com/icinga/icingadb@v1.0.0-rc2.0.20220322165027-18de0a12974d/pkg/driver/driver.go:32
database/sql.(*DB).conn
/usr/local/go/src/database/sql/sql.go:1395
database/sql.(*DB).query
/usr/local/go/src/database/sql/sql.go:1732
database/sql.(*DB).QueryContext
/usr/local/go/src/database/sql/sql.go:1710
database/sql.(*DB).Query
/usr/local/go/src/database/sql/sql.go:1728
main.dbHasSchema
/entrypoint/main.go:153
main.initDb
/entrypoint/main.go:104
main.runDaemon
/entrypoint/main.go:75
n
/entrypoint/main.go:36
runtime.main
/usr/local/go/src/runtime/proc.go:250
2023-02-14T11:07:17.787Z INFO driver/driver.go:49 Reconnected to database {"after": "593.19301ms", "attempts": 4}
2023-02-14T11:07:17.789Z DEBUG entrypoint/main.go:79 starting actual daemon via exec(3)
2023-02-14T11:07:17.867Z INFO icingadb Starting Icinga DB
2023-02-14T11:07:17.867Z INFO icingadb Connecting to database at 'mysql:3306'
2023-02-14T11:07:17.875Z INFO icingadb Connecting to Redis at 'icingadb-redis:6379'
2023-02-14T11:07:20.878Z 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
2023-03-06T06:50:01.758Z WARN redis Can't connect to Redis. Retrying {"error": "dial tcp 172.19.0.2:6379: connect: connection refused"}
2023-03-06T06:50:02.884Z INFO redis Reconnected to Redis {"after": "1.126900298s", "attempts": 8}
"
After some further troubleshooting I found out, it was a problem with my enviroment.
I used Portainer as some kind of GUI, wich coused my problem. Bringing the stack up by using ssh worked for me.
Looks similar to #30 but "ICINGA_REDIS_DDRESS: icingadb-redis:6379" is changed to "ICINGADB_REDIS_HOST: icingadb-redis."
The log-file of the icingadb-container indicate a problem while connecting to redis: