Docker Community Forums

Share and learn in the Docker community.

EAI_AGAIN undefined:undefined

I wanted to run a postgresql database using docker but got this error repeatedly, any recommendations?

Loading configuration from /wiki/config.yml... OK
2021-01-19T20:23:26.295Z [MASTER] info: =======================================
2021-01-19T20:23:26.296Z [MASTER] info: = Wiki.js 2.5.170 =====================
2021-01-19T20:23:26.296Z [MASTER] info: =======================================
2021-01-19T20:23:26.296Z [MASTER] info: Initializing...
2021-01-19T20:23:26.841Z [MASTER] info: Using database driver pg for postgres [ OK ]
2021-01-19T20:23:26.846Z [MASTER] info: Connecting to database...
2021-01-19T20:23:31.865Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:23:31.865Z [MASTER] warn: Will retry in 3 seconds... [Attempt 1 of 10]
2021-01-19T20:23:34.871Z [MASTER] info: Connecting to database...
2021-01-19T20:23:39.878Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:23:39.879Z [MASTER] warn: Will retry in 3 seconds... [Attempt 2 of 10]
2021-01-19T20:23:42.882Z [MASTER] info: Connecting to database...
2021-01-19T20:23:47.889Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:23:47.889Z [MASTER] warn: Will retry in 3 seconds... [Attempt 3 of 10]
2021-01-19T20:23:50.893Z [MASTER] info: Connecting to database...
2021-01-19T20:23:55.902Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:23:55.902Z [MASTER] warn: Will retry in 3 seconds... [Attempt 4 of 10]
2021-01-19T20:23:58.904Z [MASTER] info: Connecting to database...
2021-01-19T20:24:03.911Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:24:03.911Z [MASTER] warn: Will retry in 3 seconds... [Attempt 5 of 10]
2021-01-19T20:24:06.914Z [MASTER] info: Connecting to database...
2021-01-19T20:24:11.926Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:24:11.926Z [MASTER] warn: Will retry in 3 seconds... [Attempt 6 of 10]
2021-01-19T20:24:14.930Z [MASTER] info: Connecting to database...
2021-01-19T20:24:19.937Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:24:19.937Z [MASTER] warn: Will retry in 3 seconds... [Attempt 7 of 10]
2021-01-19T20:24:22.940Z [MASTER] info: Connecting to database...
2021-01-19T20:24:27.946Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:24:27.947Z [MASTER] warn: Will retry in 3 seconds... [Attempt 8 of 10]
2021-01-19T20:24:30.950Z [MASTER] info: Connecting to database...
2021-01-19T20:24:35.957Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:24:35.958Z [MASTER] warn: Will retry in 3 seconds... [Attempt 9 of 10]
2021-01-19T20:24:38.961Z [MASTER] info: Connecting to database...
2021-01-19T20:24:43.968Z [MASTER] error: Database Connection Error: EAI_AGAIN undefined:undefined
2021-01-19T20:24:43.968Z [MASTER] warn: Will retry in 3 seconds... [Attempt 10 of 10]
2021-01-19T20:24:46.972Z [MASTER] info: Connecting to database...
2021-01-19T20:24:51.995Z [MASTER] error: Database Initialization Error: getaddrinfo EAI_AGAIN hs-psql1