tiredofit / docker-discourse

Dockerized web based forum software
MIT License
21 stars 6 forks source link

Why "[rails] Starting Rails - Discourse version v3.0.2" is executed in a loop every 2 seconds? #3

Open stephane-klein opened 1 year ago

stephane-klein commented 1 year ago
$ docker-compose ps
         Name                       Command                  State                                             Ports
-----------------------------------------------------------------------------------------------------------------------------------------------------------
examples_discourse_1     /init sleep 10d                  Exit 0
examples_mailcatcher_1   mailcatcher --foreground - ...   Up             0.0.0.0:1026->1025/tcp,:::1026->1025/tcp, 0.0.0.0:8026->1080/tcp,:::8026->1080/tcp
examples_postgres_1      docker-entrypoint.sh postgres    Up (healthy)   5432/tcp
examples_redis_1         docker-entrypoint.sh --sav ...   Up (healthy)   6379/tcp

When I execute docker-compose up discourse, I see this log lines in stdout:

$ docker-compose up discourse
examples_postgres_1 is up-to-date
examples_redis_1 is up-to-date
Creating examples_discourse_1 ... done
Attaching to examples_discourse_1
discourse_1    |                                                                        ,---.
discourse_1    | ,--------.,--.                 ,--.            ,---.    ,--. ,--------.|   |
discourse_1    | '--.  .--'`--',--.--. ,---.  ,-|  |     ,---. /  .-'    |  | '--.  .--'|  .'
discourse_1    |    |  |   ,--.|  .--'| .-. :' .-. |    | .-. ||  `-,    |  |    |  |   |  |
discourse_1    |    |  |   |  ||  |   \   --.\ `-' |    ' '-' '|  .-'    |  |.--.|  |   `--'
discourse_1    |    `--'   `--'`--'    `----' `---'      `---' `--'      `--''--'`--'   .--.
discourse_1    |                                                                        '--'
discourse_1    | Image:  tiredofit/discourse | Version  3.1.4 Type 'image_changelog' for details
discourse_1    | Repository/Issues/Support:  https://github.com/tiredofit/docker-discourse/
discourse_1    |            Sponsor me for development and upkeep: https://www.tiredofit.ca/sponsor
discourse_1    |
discourse_1    | 2023-04-07.15:05:58 [NOTICE] ** [timezone] Timezone: Setting to 'America/Vancouver' from 'Etc/GMT'
discourse_1    | 2023-04-07.08:05:58 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
discourse_1    | 2023-04-07.08:05:58 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'mailcatcher'
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [nginx] Disabling Nginx Functionality
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Details
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Lazy YouTube
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Local Dates
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Narrative Bot
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Polls
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Presence
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Style Guide
discourse_1    | 2023-04-07.08:05:59 [INFO] ** [discourse] Migrating Database - This may take a bit..
discourse_1    | 2023-04-07.08:06:16 [INFO] ** [discourse] Precompiling Assets - This may take a bit..
discourse_1    | 2023-04-07.08:07:53 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (modern) 6.4.0
discourse_1    | 2023-04-07.08:07:53 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:07:53 [STARTING] ** [scheduling] [1] Starting cron
discourse_1    | 2023-04-07.08:07:54 [STARTING] ** [sidekiq] [1] Starting Sidekiq
discourse_1    | 2023-04-07.08:07:56 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:07:58 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:01 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:03 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:05 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:07 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:09 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:11 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:13 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:15 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:17 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:19 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:21 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:23 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:25 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:27 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:30 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:32 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:34 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:36 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:38 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:40 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:42 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:44 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:46 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:48 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:50 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:52 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:54 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:56 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:08:58 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:00 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:02 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:04 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:06 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:09 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:11 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:13 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:15 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:17 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:19 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:21 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:23 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:25 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:27 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:29 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:31 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:33 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:35 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:38 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:40 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:42 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:44 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:46 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:48 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:50 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:52 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:54 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:56 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:09:58 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:10:00 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:10:02 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:10:04 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:10:06 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:10:08 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:10:10 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2

Why [rails] Starting Rails - Discourse version v3.0.2 is executed in a loop every 2 seconds?

tiredofit commented 1 year ago

Interesting. Try adding CONTAINER_LOG_LEVEL=DEBUG to your environment variables when starting and see if output tells you more..

stephane-klein commented 1 year ago

CONTAINER_LOG_LEVEL=DEBUG

Here is debug log: https://gist.github.com/stephane-klein/0f26221cead75c19937a9216f6a4f160

stephane-klein commented 1 year ago
discourse-app      | 2023-04-07.14:39:52 [STARTING] ** [sidekiq] [2] Starting Sidekiq
discourse-app      | => Booting Puma
discourse-app      | => Rails 7.0.4.3 application starting in production
discourse-app      | => Run `bin/rails server --help` for more startup options
discourse-app      | fatal: detected dubious ownership in repository at '/app'
discourse-app      | To add an exception for this directory, call:
discourse-app      |
discourse-app      |    git config --global --add safe.directory /app

I don't understand why bin/rails server use git :thinking:.

jennso commented 1 year ago

Having the same issue, has anyone found a solution? I also had the database issue I was able to fix it by adding

  - SUPERUSER_PASS=superuser
aqua-pro commented 1 year ago

Having the same issue, has anyone found a solution? I also had the database issue I was able to fix it by adding

  - SUPERUSER_PASS=superuser

I have the same issue and did the same as you, did you find any solution?

blakstrox commented 1 year ago

I am also having the same issue @tiredofit

micartey commented 1 year ago

Any news on this?