docker-discourse icon indicating copy to clipboard operation
docker-discourse copied to clipboard

[WARN] ** [discourse] Postgres Host 'discourse-db' is not accessible, retrying..

Open stephane-klein opened this issue 1 year ago • 4 comments

I have executed:

$ docker network create proxy
$ docker network create services
$ docker-compose up -d

I see:

$ docker-compose ps
           Name               Command   State                   Ports
-------------------------------------------------------------------------------------
discourse-app                 /init     Up      10050/tcp, 2020/tcp, 3000/tcp, 80/tcp
discourse-db                  /init     Up      10050/tcp, 2020/tcp, 5432/tcp
discourse-db-backup           /init     Up      10050/tcp, 2020/tcp
discourse-example-org-redis   /init     Up      10050/tcp, 2020/tcp, 6379/tcp

And:

$ docker-compose logs -f discourse-app
Attaching to discourse-app
discourse-app          |                                                                        ,---.
discourse-app          | ,--------.,--.                 ,--.            ,---.    ,--. ,--------.|   |
discourse-app          | '--.  .--'`--',--.--. ,---.  ,-|  |     ,---. /  .-'    |  | '--.  .--'|  .'
discourse-app          |    |  |   ,--.|  .--'| .-. :' .-. |    | .-. ||  `-,    |  |    |  |   |  |
discourse-app          |    |  |   |  ||  |   \   --.\ `-' |    ' '-' '|  .-'    |  |.--.|  |   `--'
discourse-app          |    `--'   `--'`--'    `----' `---'      `---' `--'      `--''--'`--'   .--.
discourse-app          |                                                                        '--'
discourse-app          | Image:  tiredofit/discourse | Version  3.1.4 Type 'image_changelog' for details
discourse-app          | Repository/Issues/Support:  https://github.com/tiredofit/docker-discourse/
discourse-app          |            Sponsor me for development and upkeep: https://www.tiredofit.ca/sponsor
discourse-app          |
discourse-app          | 2023-04-07.17:33:10 [NOTICE] ** [timezone] Timezone: Setting to 'America/Vancouver' from 'Etc/GMT'
discourse-app          | 2023-04-07.10:33:10 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
discourse-app          | 2023-04-07.10:33:10 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
discourse-app          | 2023-04-07.10:33:10 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
discourse-app          | 2023-04-07.10:33:11 [NOTICE] ** [nginx] Disabling Nginx Functionality
discourse-app          | 2023-04-07.10:33:16 [WARN] ** [discourse] Postgres Host 'discourse-db' is not accessible, retrying.. (5 seconds so far)

...

discourse-app          | 2023-04-07.10:42:14 [WARN] ** [discourse] Postgres Host 'discourse-db' is not accessible, retrying.. (540 seconds so far)
discourse-app          | 2023-04-07.10:42:19 [WARN] ** [discourse] Postgres Host 'discourse-db' is not accessible, retrying.. (545 seconds so far)

Where is my mistake? How can I fix it?

stephane-klein avatar Apr 07 '23 17:04 stephane-klein