توقف Discourse عن العمل فجأة

مرحباً،

توقف عمل منتدَي Discourse الخاص بي فجأة.

كنت أقوم بتعديل بعض المنشورات هذا الصباح، لكن منذ حوالي ساعتين، اختفى المنتدي.换句话说، لم يعد بإمكانني الوصول إليه.

أمس، أضفت سجل TXT إلى إعدادات DNS للتحقق مما تطلبه وحدة تحكم بحث Google (Google Search Console). من المفترض أن لا يكون لذلك أي تأثير. لم أقم بتغيير أي شيء آخر!

كما لم أجري أي تعديلات على مدير وكيل NGINX (NGINX Proxy Manager).

حاولت إعادة بناء التطبيق دون جدوى. السجل موجود في نهاية هذا النص.

هل يمكنك تقديم نصيحة حول كيفية إصلاح هذا؟ لا أعرف ماذا أفعل. شكراً لك.


root@vmi1695712:/var/discourse# ./launcher rebuild app
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 600 app
app
2.0.20240602-0023: Pulling from discourse/base
Digest: sha256:5e0c30da851a00e824a58b033d59b8f3dd840b513a7694a7a5d0674285c0ee3c
Status: Image is up to date for discourse/base:2.0.20240602-0023
docker.io/discourse/base:2.0.20240602-0023
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-07-04T13:38:50.541714 #1]  INFO -- : Reading from stdin
I, [2024-07-04T13:38:50.560922 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2024-07-04T13:38:50.569920 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2024-07-04T13:38:50.639464 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2024-07-04T13:38:50.647493 #1]  INFO -- : File > /root/install_postgres  chmod: +x  chown:
I, [2024-07-04T13:38:50.657009 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2024-07-04T13:38:50.662175 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.663544 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.663970 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.664802 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.665410 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.665995 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.666444 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.667277 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.667726 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T13:38:50.669744 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-07-04T13:38:50.670470 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-07-04T13:38:50.734826 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-07-04T13:38:50.735770 #1]  INFO -- : > [ -f /root/install_postgres ] && /root/install_postgres && rm -f /root/install_postgres
I, [2024-07-04T13:38:54.865947 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2024-07-04T13:38:54.866404 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2024-07-04T13:38:55.047164 #1]  INFO -- : File > /usr/local/bin/create_db  chmod: +x  chown:
I, [2024-07-04T13:38:55.060731 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2024-07-04T13:38:55.147051 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2024-07-04T13:38:55.148314 #1]  INFO -- : > sleep 5
2024-07-04 13:38:55.452 UTC [35] LOG:  starting PostgreSQL 13.15 (Debian 13.15-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-07-04 13:38:55.453 UTC [35] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-07-04 13:38:55.453 UTC [35] LOG:  listening on IPv6 address "::", port 5432
2024-07-04 13:38:55.462 UTC [35] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-07-04 13:38:55.554 UTC [44] LOG:  database system was shut down at 2024-07-04 13:37:27 UTC
2024-07-04 13:38:55.649 UTC [35] LOG:  database system is ready to accept connections
I, [2024-07-04T13:39:00.161334 #1]  INFO -- :
I, [2024-07-04T13:39:00.162068 #1]  INFO -- : > /usr/local/bin/create_db
2024-07-04 13:39:00.363 UTC [54] postgres@postgres ERROR:  database "discourse" already exists
2024-07-04 13:39:00.363 UTC [54] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-07-04 13:39:00.500 UTC [57] postgres@discourse ERROR:  role "discourse" already exists
2024-07-04 13:39:00.500 UTC [57] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
I, [2024-07-04T13:39:02.697895 #1]  INFO -- : GRANT
ALTER SCHEMA
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
UPDATE 0

I, [2024-07-04T13:39:02.699742 #1]  INFO -- : > echo postgres installed!
I, [2024-07-04T13:39:02.708219 #1]  INFO -- : postgres installed!

I, [2024-07-04T13:39:02.729734 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2024-07-04T13:39:02.797663 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2024-07-04T13:39:02.825472 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2024-07-04T13:39:02.873773 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2024-07-04T13:39:02.875722 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2024-07-04T13:39:02.876708 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-07-04T13:39:02.889171 #1]  INFO -- :
I, [2024-07-04T13:39:02.890520 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-07-04T13:39:02.902744 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2024-07-04T13:39:02.905419 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-07-04T13:39:02.905957 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-07-04T13:39:02.906493 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-07-04T13:39:02.909850 #1]  INFO -- : > echo redis installed
I, [2024-07-04T13:39:02.974306 #1]  INFO -- : redis installed

I, [2024-07-04T13:39:02.975084 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-07-04T13:39:03.004950 #1]  INFO -- : logfile ""

I, [2024-07-04T13:39:03.005298 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-07-04T13:39:03.010638 #1]  INFO -- : > sleep 10
97:C 04 Jul 2024 13:39:03.110 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
97:C 04 Jul 2024 13:39:03.110 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=97, just started
97:C 04 Jul 2024 13:39:03.110 # Configuration loaded
97:M 04 Jul 2024 13:39:03.111 * monotonic clock: POSIX clock_gettime
97:M 04 Jul 2024 13:39:03.111 * Running mode=standalone, port=6379.
97:M 04 Jul 2024 13:39:03.112 # Server initialized
97:M 04 Jul 2024 13:39:03.112 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
97:M 04 Jul 2024 13:39:03.114 * Loading RDB produced by version 7.0.7
97:M 04 Jul 2024 13:39:03.114 * RDB age 99 seconds
97:M 04 Jul 2024 13:39:03.114 * RDB memory usage when created 19.56 Mb
97:M 04 Jul 2024 13:39:03.278 * Done loading RDB, keys loaded: 918, keys expired: 7.
97:M 04 Jul 2024 13:39:03.279 * DB loaded from disk: 0.165 seconds
97:M 04 Jul 2024 13:39:03.279 * Ready to accept connections
I, [2024-07-04T13:39:13.020261 #1]  INFO -- :
I, [2024-07-04T13:39:13.021592 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-07-04T13:39:13.038723 #1]  INFO -- : thpoff is installed!

I, [2024-07-04T13:39:13.039801 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2024-07-04T13:39:13.328795 #1]  INFO -- :
I, [2024-07-04T13:39:13.329441 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-07-04T13:39:13.723818 #1]  INFO -- :
I, [2024-07-04T13:39:13.724044 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2024-07-04T13:39:14.221328 #1]  INFO -- :
I, [2024-07-04T13:39:14.221855 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-07-04T13:39:14.226952 #1]  INFO -- :
I, [2024-07-04T13:39:14.232653 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2024-07-04T13:39:14.313293 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2024-07-04T13:39:14.325373 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2024-07-04T13:39:14.341701 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2024-07-04T13:39:14.429720 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2024-07-04T13:39:14.442944 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2024-07-04T13:39:14.443716 #1]  INFO -- : Replacing # postgres with if [ -f /root/install_postgres ]; then
  /root/install_postgres
  rm /root/install_postgres
fi
sv start postgres || exit 1
 in /etc/service/unicorn/run
I, [2024-07-04T13:39:14.511433 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34508/34508), done.
I, [2024-07-04T13:39:31.789206 #1]  INFO -- : HEAD is now at 62b1b69e8 UX: constrain width of chat transcripts in posts (#27288)

I, [2024-07-04T13:39:31.792178 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-07-04T13:39:32.598288 #1]  INFO -- :
I, [2024-07-04T13:39:32.598634 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
'
From https://github.com/discourse/discourse
 - [deleted]             (none)     -> origin/add_filter_webhook_events_by_status
 - [deleted]             (none)     -> origin/add_lifecycle_rule_for_inventories
 - [deleted]             (none)     -> origin/application-route-actions
 - [deleted]             (none)     -> origin/avoid_unformatted_logs
 - [deleted]             (none)     -> origin/categories-modal-fix
 - [deleted]             (none)     -> origin/decorator-transforms-take-2
 - [deleted]             (none)     -> origin/dependabot/bundler/rails_failover-2.1.0
 - [deleted]             (none)     -> origin/dependabot/bundler/sqlite3-2.0.2
 - [deleted]             (none)     -> origin/dev/ember-58-upgrade-playground
 - [deleted]             (none)     -> origin/dev/rfc-value-modifier-plugin-api
 - [deleted]             (none)     -> origin/dev/standalone-home-logo-contents-component
 - [deleted]             (none)     -> origin/discourse-route-actions
 - [deleted]             (none)     -> origin/discourse-url-native-class
 - [deleted]             (none)     -> origin/feature/user-fields-required-for-existing-users-2
 - [deleted]             (none)     -> origin/fix-bbcode-parser
 - [deleted]             (none)     -> origin/fix-group-chat-member-count
 - [deleted]             (none)     -> origin/ghost-button
 - [deleted]             (none)     -> origin/issue/bulk-action-pm-fixes
 - [deleted]             (none)     -> origin/loic-update-to-rails-7.1
 - [deleted]             (none)     -> origin/migrations-tooling/converter
 - [deleted]             (none)     -> origin/permalinks
 - [deleted]             (none)     -> origin/remove-disable-sidebar
 - [deleted]             (none)     -> origin/route-native-class
 - [deleted]             (none)     -> origin/search-result-consistency
 - [deleted]             (none)     -> origin/support_alternate_bucket_s3_inventory
 - [deleted]             (none)     -> origin/update-official-plugin-list
 - [deleted]             (none)     -> origin/user-posts-stream-native-class
 - [deleted]             (none)     -> origin/ux-account-disclaimer
 - [deleted]             (none)     -> origin/with-ancestor-ids
   62b1b69e8..0d608ceff  main                    -> origin/main
 * [new branch]          0-a-fix-high            -> origin/0-a-fix-high
 * [new branch]          add_mechanism_to_redeliver_all_webhook_events -> origin/add_mechanism_to_redeliver_all_webhook_events
 * [new branch]          add_mechanism_to_redeliver_all_webhook_events_wip -> origin/add_mechanism_to_redeliver_all_webhook_events_wip
 * [new branch]          better_logs             -> origin/better_logs
 * [new branch]          chat-empty-state        -> origin/chat-empty-state
 * [new branch]          chat-mobile-menu        -> origin/chat-mobile-menu
 + 098e99e83...bfdeae4f4 coco/generic-importer   -> origin/coco/generic-importer  (forced update)
 * [new branch]          dependabot/bundler/libv8-node-21.7.2.0 -> origin/dependabot/bundler/libv8-node-21.7.2.0
 * [new branch]          dependabot/bundler/oauth2-2.0.9 -> origin/dependabot/bundler/oauth2-2.0.9
 * [new branch]          dependabot/bundler/omniauth-2.1.2 -> origin/dependabot/bundler/omniauth-2.1.2
 * [new branch]          dependabot/bundler/omniauth-google-oauth2-1.1.2 -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.2
 * [new branch]          detect-default-readonly -> origin/detect-default-readonly
 * [new branch]          dev-can-ignore-users    -> origin/dev-can-ignore-users
 * [new branch]          dev/add-behavior-transformers -> origin/dev/add-behavior-transformers
 * [new branch]          dev/ember-source-5.9.0-upgrade -> origin/dev/ember-source-5.9.0-upgrade
 * [new branch]          dev/untangle-admin-sidebar -> origin/dev/untangle-admin-sidebar
 * [new branch]          feature/absolute-number-in-poll -> origin/feature/absolute-number-in-poll
 * [new branch]          feature/private-github-onebox -> origin/feature/private-github-onebox
 * [new branch]          fix-ensure-post-and-topic-user-id-is-always-set -> origin/fix-ensure-post-and-topic-user-id-is-always-set
 * [new branch]          fix-password-reset-security-key -> origin/fix-password-reset-security-key
 * [new branch]          fix-unread-notifications-take-2 -> origin/fix-unread-notifications-take-2
 * [new branch]          fix/table-break-line    -> origin/fix/table-break-line
   b3d6801e8..2902da16e  formtoolkit             -> origin/formtoolkit
 * [new branch]          grant-admin-fetch-user  -> origin/grant-admin-fetch-user
 * [new branch]          issue/do-not-enforce-2fa-on-social-logins -> origin/issue/do-not-enforce-2fa-on-social-logins
 * [new branch]          issue/fix-user-field-enum-migrate -> origin/issue/fix-user-field-enum-migrate
 * [new branch]          issue/prevent-decimal-comma-integer-input-site-setting -> origin/issue/prevent-decimal-comma-integer-input-site-setting
 * [new branch]          jjaffeux-otp-validation -> origin/jjaffeux-otp-validation
 * [new branch]          loic-use-messageformat-gem -> origin/loic-use-messageformat-gem
 * [new branch]          mt/converter            -> origin/mt/converter
 * [new branch]          mt/uploads-command      -> origin/mt/uploads-command
 * [new branch]          prevent-header-cls      -> origin/prevent-header-cls
 * [new branch]          rails_7_1_upgrade       -> origin/rails_7_1_upgrade
 * [new branch]          show-primary-user-group-options-to-members -> origin/show-primary-user-group-options-to-members
   5558028f8..473248381  stable                  -> origin/stable
 * [new branch]          tag-span                -> origin/tag-span
   62b1b69e8..0d608ceff  tests-passed            -> origin/tests-passed
 t [tag update]          beta                    -> beta
 t [tag update]          latest-release          -> latest-release
 * [new tag]             v3.2.3                  -> v3.2.3
 * [new tag]             v3.3.0.beta3            -> v3.3.0.beta3
I, [2024-07-04T13:39:34.299514 #1]  INFO -- :
I, [2024-07-04T13:39:34.299788 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout tests-passed
  fi
'
Switched to a new branch 'tests-passed'
I, [2024-07-04T13:39:41.631661 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2024-07-04T13:39:41.632287 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-07-04T13:39:41.649903 #1]  INFO -- :
I, [2024-07-04T13:39:41.650148 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-07-04T13:39:41.721358 #1]  INFO -- :
I, [2024-07-04T13:39:41.722593 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-07-04T13:39:41.727871 #1]  INFO -- :
I, [2024-07-04T13:39:41.729003 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-07-04T13:39:41.735635 #1]  INFO -- :
I, [2024-07-04T13:39:41.736747 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-07-04T13:39:41.742509 #1]  INFO -- :
I, [2024-07-04T13:39:41.743294 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-07-04T13:39:41.749797 #1]  INFO -- :
I, [2024-07-04T13:39:41.750489 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2024-07-04T13:39:41.821571 #1]  INFO -- :
I, [2024-07-04T13:39:41.822485 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-07-04T13:39:41.832200 #1]  INFO -- :
I, [2024-07-04T13:39:41.832830 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2024-07-04T13:39:41.840532 #1]  INFO -- :
I, [2024-07-04T13:39:41.841216 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2024-07-04T13:39:41.851218 #1]  INFO -- :
I, [2024-07-04T13:39:41.851816 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-07-04T13:39:41.925157 #1]  INFO -- :
I, [2024-07-04T13:39:41.925801 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2024-07-04T13:39:41.935066 #1]  INFO -- :
I, [2024-07-04T13:39:41.935779 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-07-04T13:39:41.943863 #1]  INFO -- :
I, [2024-07-04T13:39:41.944656 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-07-04T13:39:42.227885 #1]  INFO -- :
I, [2024-07-04T13:39:42.228719 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-07-04T13:39:42.231616 #1]  INFO -- :
I, [2024-07-04T13:39:42.232299 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-07-04T13:39:42.233701 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2024-07-04T13:39:44.732799 #1]  INFO -- :
I, [2024-07-04T13:39:44.734253 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-07-04T13:39:44.744794 #1]  INFO -- :
I, [2024-07-04T13:39:44.745634 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-07-04T13:39:44.830767 #1]  INFO -- :
I, [2024-07-04T13:39:44.831520 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2024-07-04T13:39:44.834670 #1]  INFO -- :
I, [2024-07-04T13:39:44.838515 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-07-04T13:39:44.840309 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-07-04T13:39:44.841050 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-07-04T13:39:44.841683 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-07-04T13:39:44.842894 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2024-07-04T13:39:44.931340 #1]  INFO -- : > echo "done configuring web"
I, [2024-07-04T13:39:44.935430 #1]  INFO -- : done configuring web

I, [2024-07-04T13:39:44.936120 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-07-04T13:39:45.835727 #1]  INFO -- :
I, [2024-07-04T13:39:45.836034 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-07-04T13:40:03.434005 #1]  INFO -- :
I, [2024-07-04T13:40:03.434989 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2024-07-04T13:40:03.442966 #1]  INFO -- :
I, [2024-07-04T13:40:03.443147 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
error Error: https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz: ESOCKETTIMEDOUT
    at ClientRequest.<anonymous> (/usr/share/yarn/lib/cli.js:142037:19)
    at Object.onceWrapper (node:events:631:28)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.emitRequestTimeout (node:_http_client:847:9)
    at Object.onceWrapper (node:events:631:28)
    at TLSSocket.emit (node:events:529:35)
    at Socket._onTimeout (node:net:598:8)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
I, [2024-07-04T13:44:53.619485 #1]  INFO -- : yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I, [2024-07-04T13:44:53.623961 #1]  INFO -- : Terminating async processes
I, [2024-07-04T13:44:53.624457 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 35
I, [2024-07-04T13:44:53.624901 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 97
2024-07-04 13:44:53.625 UTC [35] LOG:  received fast shutdown request
97:signal-handler (1720100693) Received SIGTERM scheduling shutdown...
2024-07-04 13:44:53.632 UTC [35] LOG:  aborting any active transactions
2024-07-04 13:44:53.642 UTC [35] LOG:  background worker "logical replication launcher" (PID 50) exited with exit code 1
97:M 04 Jul 2024 13:44:53.644 # User requested shutdown...
97:M 04 Jul 2024 13:44:53.644 * Saving the final RDB snapshot before exiting.
2024-07-04 13:44:53.650 UTC [45] LOG:  shutting down
2024-07-04 13:44:53.747 UTC [35] LOG:  database system is shut down
97:M 04 Jul 2024 13:44:53.932 * DB saved on disk
97:M 04 Jul 2024 13:44:53.932 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean' failed with return #<Process::Status: pid 268 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"yarn", "cmd"=>["if [ \"$version\" != \"tests-passed\" ]; then\n  rm -rf app/assets/javascripts/node_modules\nfi", "su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
0ad323769e87ce77787965163c1889999c044d6dce2cb925cf43f92475148a14
root@vmi1695712:/var/discourse# ^C

و

تشير إلى أن جهازك الافتراضي قد يواجه بعض مشكلات الاتصال. قد تكون مؤقتة. ماذا يحدث إذا قمت بتشغيل ./launcher rebuild app مرة أخرى؟

فشل إعادة البناء مرة أخرى. نفس الأخطاء.

من الغريب أنني أقوم بتشغيل WordPress و Nginx proxy manager و Portainer على نفس الخادم، وكل شيء يعمل.

ليس غريباً لأن أياً من هذه الخدمات ليس له علاقة بـ discourse.
ستحتاج إلى تقديم سجل كامل للبناء الفاشل والمزيد من المعلومات حول إعدادك للحصول على أي مساعدة إضافية هنا.

حسنا، لا مشكلة.

أي سجل تقصد؟ وكيف يمكنني الحصول عليه؟

ما هي المعلومات الأخرى التي تحتاجها؟

بالمناسبة، شكراً لمساعدتك. أنا تائه تماماً الآن.

استخدم ./discourse-doctor، سيقوم بإنشاء ملف يمكنك مشاركته.

ثانياً، إذا كان بإمكانك مشاركة ملف app.yml بعد إزالة المعلومات الحساسة، فقد أتمكن أنا أو شخص آخر هنا من رؤية ما إذا كانت هناك أي مشكلات واضحة مثل الإضافات غير المتوافقة وما إلى ذلك.

حدث خطأ في تحديثاتي

api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })

يرجى مساعدتي في إصلاحه.

نحن سعداء جداً بكونك هنا! هل تريد تشغيل خادم Minecraft الخاص بك؟ ما عليك سوى النقر على زر “ابدأ” أدناه — إنه سهل.

اقترح ما يسمى بالبنية النظيفة للخدمة الجديدة. لكن النظيفة لا تعني دائماً البسيطة.

قام دكتور ديسكورس بتوليد السجل. ومع ذلك، لا يمكنني مشاركته عبر رابط URL.

يقول متصفحي هذا: لم يتم العثور على عنوان IP لخادم forum.**********.com.

سأقوم بنشره هنا.

لا أعرف ما إذا كان لهذا أي تأثير، ولكن قبل أن يتوقف ديسكورس عن العمل، كان هناك تحديث للموضوع متاح. ومع ذلك، لم أقم بإجراء التحديث بعد.

DISCOURSE DOCTOR Thu Jul 4 11:11:09 AM CDT 2024
OS: Linux vmi1695712.contaboserver.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Lin                          ux


Found containers/app.yml

==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=*********************
SMTP_ADDRESS=email-smtp.us-east-1.amazonaws.com
DEVELOPER_EMAILS=**************,****************
SMTP_PASSWORD=******************************************
SMTP_PORT=587
SMTP_USER_NAME=*************************************
LETSENCRYPT_ACCOUNT_EMAIL=me@example.com

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 25.0.4, build 1a576c5

DOCKER PROCESSES (docker ps -a)

CONTAINER ID   IMAGE                               COMMAND                  CREATED        STATUS                   PORTS                                                                        NAMES
ce55082edacf   local_discourse/app                 "/sbin/boot"             4 weeks ago    Exited (5) 3 hours ago                                                                                app
2623c7a72364   ghcr.io/goauthentik/server:2024.2   "dumb-init -- ak ser…"   3 months ago   Up 3 weeks (healthy)                                                                                  authentik
c9aaf56f9eeb   jc21/nginx-proxy-manager:latest     "/init"                  3 months ago   Up 3 weeks               0.0.0.0:80->80/                          tcp, 0.0.0.0:443->443/tcp, 81/tcp   nginx_proxy_manager
e6d5c52fe8de   ghcr.io/goauthentik/server:2024.2   "dumb-init -- ak wor…"   3 months ago   Up 3 weeks (healthy)                                                                                  authentik-worker-1
8676ee45a21d   postgres:12-alpine                  "docker-entrypoint.s…"   3 months ago   Up 3 weeks (healthy)     5432/tcp                                                                     authentik-postgresql-1
13bb9ab5f88c   redis:alpine                        "docker-entrypoint.s…"   3 months ago   Up 3 weeks (healthy)     6379/tcp                                                                     authentik-redis-1
174735dcc208   portainer/portainer-ce:latest       "/portainer"             3 months ago   Up 3 weeks                                                                                            portainer
694372a6e79d   tailscale/tailscale:latest          "/usr/local/bin/cont…"   3 months ago   Up 3 weeks                                                                                            portainer-tailscale-portainer-1
13de0af406c8   wordpress:latest                    "docker-entrypoint.s…"   3 months ago   Up 3 weeks               80/tcp                                                                       wordpress
ad068e38c59c   mysql:5.7                           "docker-entrypoint.s…"   3 months ago   Up 3 weeks               3306/tcp, 33060                          /tcp                                wordpress-db-1

==================== SERIOUS PROBLEM!!!! ====================
app not running!
Attempting to rebuild
==================== REBUILD LOG ====================
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 600 app
app
2.0.20240602-0023: Pulling from discourse/base
Digest: sha256:5e0c30da851a00e824a58b033d59b8f3dd840b513a7694a7a5d0674285c0ee3c
Status: Image is up to date for discourse/base:2.0.20240602-0023
docker.io/discourse/base:2.0.20240602-0023
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-07-04T16:11:39.322139 #1]  INFO -- : Reading from stdin
I, [2024-07-04T16:11:39.395213 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2024-07-04T16:11:39.399741 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2024-07-04T16:11:39.408014 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2024-07-04T16:11:39.415883 #1]  INFO -- : File > /root/install_postgres  chmod: +x  chown:
I, [2024-07-04T16:11:39.422053 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2024-07-04T16:11:39.422558 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shar                          ed/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.424073 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgre                          sql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.425303 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous                          _commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.425764 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /                          etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.426249 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/                          main/postgresql.conf
I, [2024-07-04T16:11:39.486651 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config =                           '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.487230 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoin                          t_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.487777 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_colle                          ctor in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.488319 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement =                           $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2024-07-04T16:11:39.488982 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgr                          es  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-07-04T16:11:39.489334 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/pos                          tgresql/13/main/pg_hba.conf
I, [2024-07-04T16:11:39.489655 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/pos                          tgresql/13/main/pg_hba.conf
I, [2024-07-04T16:11:39.489969 #1]  INFO -- : > [ -f /root/install_postgres ] && /root/install_postgres && rm -f /root/install_post                          gres
I, [2024-07-04T16:11:43.504790 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2024-07-04T16:11:43.505416 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U                           postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2024-07-04T16:11:43.600978 #1]  INFO -- : File > /usr/local/bin/create_db  chmod: +x  chown:
I, [2024-07-04T16:11:43.618510 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2024-07-04T16:11:43.704451 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2024-07-04T16:11:43.705704 #1]  INFO -- : > sleep 5
2024-07-04 16:11:43.726 UTC [36] LOG:  starting PostgreSQL 13.15 (Debian 13.15-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc                           (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-07-04 16:11:43.727 UTC [36] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-07-04 16:11:43.727 UTC [36] LOG:  listening on IPv6 address "::", port 5432
2024-07-04 16:11:43.799 UTC [36] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-07-04 16:11:43.806 UTC [45] LOG:  database system was shut down at 2024-07-04 16:09:46 UTC
2024-07-04 16:11:43.817 UTC [36] LOG:  database system is ready to accept connections
I, [2024-07-04T16:11:48.712694 #1]  INFO -- :
I, [2024-07-04T16:11:48.713998 #1]  INFO -- : > /usr/local/bin/create_db
2024-07-04 16:11:48.839 UTC [55] postgres@postgres ERROR:  database "discourse" already exists
2024-07-04 16:11:48.839 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-07-04 16:11:48.966 UTC [58] postgres@discourse ERROR:  role "discourse" already exists
2024-07-04 16:11:48.966 UTC [58] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
I, [2024-07-04T16:11:50.853046 #1]  INFO -- : GRANT
ALTER SCHEMA
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
UPDATE 0

I, [2024-07-04T16:11:50.853484 #1]  INFO -- : > echo postgres installed!
I, [2024-07-04T16:11:50.858311 #1]  INFO -- : postgres installed!

I, [2024-07-04T16:11:50.924492 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2024-07-04T16:11:50.934768 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2024-07-04T16:11:50.944045 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2024-07-04T16:11:50.945335 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2024-07-04T16:11:50.946689 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2024-07-04T16:11:50.947567 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-07-04T16:11:50.953926 #1]  INFO -- :
I, [2024-07-04T16:11:50.954947 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-07-04T16:11:50.955756 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2024-07-04T16:11:50.957367 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-07-04T16:11:50.958630 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-07-04T16:11:50.959769 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-07-04T16:11:50.960808 #1]  INFO -- : > echo redis installed
I, [2024-07-04T16:11:51.020508 #1]  INFO -- : redis installed

I, [2024-07-04T16:11:51.020879 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-07-04T16:11:51.027651 #1]  INFO -- : logfile ""

I, [2024-07-04T16:11:51.028264 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-07-04T16:11:51.030228 #1]  INFO -- : > sleep 10
98:C 04 Jul 2024 16:11:51.042 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
98:C 04 Jul 2024 16:11:51.042 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=98, just started
98:C 04 Jul 2024 16:11:51.042 # Configuration loaded
98:M 04 Jul 2024 16:11:51.043 * monotonic clock: POSIX clock_gettime
98:M 04 Jul 2024 16:11:51.044 * Running mode=standalone, port=6379.
98:M 04 Jul 2024 16:11:51.044 # Server initialized
98:M 04 Jul 2024 16:11:51.044 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail un                          der low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemal                          loc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command '                          sysctl vm.overcommit_memory=1' for this to take effect.
98:M 04 Jul 2024 16:11:51.045 * Loading RDB produced by version 7.0.7
98:M 04 Jul 2024 16:11:51.045 * RDB age 125 seconds
98:M 04 Jul 2024 16:11:51.045 * RDB memory usage when created 14.81 Mb
98:M 04 Jul 2024 16:11:51.150 * Done loading RDB, keys loaded: 840, keys expired: 0.
98:M 04 Jul 2024 16:11:51.150 * DB loaded from disk: 0.106 seconds
98:M 04 Jul 2024 16:11:51.151 * Ready to accept connections
I, [2024-07-04T16:12:01.046784 #1]  INFO -- :
I, [2024-07-04T16:12:01.047553 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-07-04T16:12:01.051993 #1]  INFO -- : thpoff is installed!

I, [2024-07-04T16:12:01.052660 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; put                          s "Aborting! Mail is not configured!"; exit 1; end'
I, [2024-07-04T16:12:01.191284 #1]  INFO -- :
I, [2024-07-04T16:12:01.191894 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; pu                          ts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-07-04T16:12:01.354031 #1]  INFO -- :
I, [2024-07-04T16:12:01.354639 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Ab                          orting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2024-07-04T16:12:01.574116 #1]  INFO -- :
I, [2024-07-04T16:12:01.574514 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-07-04T16:12:01.578680 #1]  INFO -- :
I, [2024-07-04T16:12:01.654026 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2024-07-04T16:12:01.663931 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2024-07-04T16:12:01.671163 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2024-07-04T16:12:01.751159 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2024-07-04T16:12:01.761258 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2024-07-04T16:12:01.768764 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2024-07-04T16:12:01.769267 #1]  INFO -- : Replacing # postgres with if [ -f /root/install_postgres ]; then
  /root/install_postgres
  rm /root/install_postgres
fi
sv start postgres || exit 1
 in /etc/service/unicorn/run
I, [2024-07-04T16:12:01.770932 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34508/34508), done.
I, [2024-07-04T16:12:18.326043 #1]  INFO -- : HEAD is now at 62b1b69e8 UX: constrain width of chat transcripts in posts (#27288)

I, [2024-07-04T16:12:18.327297 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-07-04T16:12:19.106550 #1]  INFO -- :
I, [2024-07-04T16:12:19.107847 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
'
From https://github.com/discourse/discourse
 - [deleted]             (none)     -> origin/add_filter_webhook_events_by_status
 - [deleted]             (none)     -> origin/add_lifecycle_rule_for_inventories
 - [deleted]             (none)     -> origin/application-route-actions
 - [deleted]             (none)     -> origin/avoid_unformatted_logs
 - [deleted]             (none)     -> origin/categories-modal-fix
 - [deleted]             (none)     -> origin/decorator-transforms-take-2
 - [deleted]             (none)     -> origin/dependabot/bundler/rails_failover-2.1.0
 - [deleted]             (none)     -> origin/dependabot/bundler/sqlite3-2.0.2
 - [deleted]             (none)     -> origin/dev/ember-58-upgrade-playground
 - [deleted]             (none)     -> origin/dev/rfc-value-modifier-plugin-api
 - [deleted]             (none)     -> origin/dev/standalone-home-logo-contents-component
 - [deleted]             (none)     -> origin/discourse-route-actions
 - [deleted]             (none)     -> origin/discourse-url-native-class
 - [deleted]             (none)     -> origin/feature/user-fields-required-for-existing-users-2
 - [deleted]             (none)     -> origin/fix-bbcode-parser
 - [deleted]             (none)     -> origin/fix-group-chat-member-count
 - [deleted]             (none)     -> origin/ghost-button
 - [deleted]             (none)     -> origin/issue/bulk-action-pm-fixes
 - [deleted]             (none)     -> origin/loic-update-to-rails-7.1
 - [deleted]             (none)     -> origin/migrations-tooling/converter
 - [deleted]             (none)     -> origin/permalinks
 - [deleted]             (none)     -> origin/remove-disable-sidebar
 - [deleted]             (none)     -> origin/route-native-class
 - [deleted]             (none)     -> origin/search-result-consistency
 - [deleted]             (none)     -> origin/support_alternate_bucket_s3_inventory
 - [deleted]             (none)     -> origin/update-official-plugin-list
 - [deleted]             (none)     -> origin/user-posts-stream-native-class
 - [deleted]             (none)     -> origin/ux-account-disclaimer
 - [deleted]             (none)     -> origin/with-ancestor-ids
   62b1b69e8..2db35149f  main                    -> origin/main
 * [new branch]          add_mechanism_to_redeliver_all_webhook_events -> origin/add_mechanism_to_redeliver_all_webhook_events
 * [new branch]          add_mechanism_to_redeliver_all_webhook_events_wip -> origin/add_mechanism_to_redeliver_all_webhook_events_                          wip
 * [new branch]          better_logs             -> origin/better_logs
 * [new branch]          chat-empty-state        -> origin/chat-empty-state
 + 098e99e83...bfdeae4f4 coco/generic-importer   -> origin/coco/generic-importer  (forced update)
 * [new branch]          dependabot/bundler/libv8-node-21.7.2.0 -> origin/dependabot/bundler/libv8-node-21.7.2.0
 * [new branch]          dependabot/bundler/oauth2-2.0.9 -> origin/dependabot/bundler/oauth2-2.0.9
 * [new branch]          dependabot/bundler/omniauth-2.1.2 -> origin/dependabot/bundler/omniauth-2.1.2
 * [new branch]          dependabot/bundler/omniauth-google-oauth2-1.1.2 -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.2
 * [new branch]          detect-default-readonly -> origin/detect-default-readonly
 * [new branch]          dev-can-ignore-users    -> origin/dev-can-ignore-users
 * [new branch]          dev/add-behavior-transformers -> origin/dev/add-behavior-transformers
 * [new branch]          dev/ember-source-5.9.0-upgrade -> origin/dev/ember-source-5.9.0-upgrade
 * [new branch]          dev/untangle-admin-sidebar -> origin/dev/untangle-admin-sidebar
 * [new branch]          feature/absolute-number-in-poll -> origin/feature/absolute-number-in-poll
 * [new branch]          feature/private-github-onebox -> origin/feature/private-github-onebox
 * [new branch]          fix-ensure-post-and-topic-user-id-is-always-set -> origin/fix-ensure-post-and-topic-user-id-is-always-set
 * [new branch]          fix-password-reset-security-key -> origin/fix-password-reset-security-key
 * [new branch]          fix-unread-notifications-take-2 -> origin/fix-unread-notifications-take-2
 * [new branch]          fix/table-break-line    -> origin/fix/table-break-line
 * [new branch]          fix_featured_topics_mobile -> origin/fix_featured_topics_mobile
   b3d6801e8..2902da16e  formtoolkit             -> origin/formtoolkit
 * [new branch]          grant-admin-fetch-user  -> origin/grant-admin-fetch-user
 * [new branch]          issue/do-not-enforce-2fa-on-social-logins -> origin/issue/do-not-enforce-2fa-on-social-logins
 * [new branch]          issue/fix-user-field-enum-migrate -> origin/issue/fix-user-field-enum-migrate
 * [new branch]          issue/prevent-decimal-comma-integer-input-site-setting -> origin/issue/prevent-decimal-comma-integer-input                          -site-setting
 * [new branch]          jjaffeux-otp-validation -> origin/jjaffeux-otp-validation
 * [new branch]          loic-use-messageformat-gem -> origin/loic-use-messageformat-gem
 * [new branch]          mt/converter            -> origin/mt/converter
 * [new branch]          mt/uploads-command      -> origin/mt/uploads-command
 * [new branch]          prevent-header-cls      -> origin/prevent-header-cls
 * [new branch]          rails_7_1_upgrade       -> origin/rails_7_1_upgrade
 * [new branch]          show-primary-user-group-options-to-members -> origin/show-primary-user-group-options-to-members
   5558028f8..473248381  stable                  -> origin/stable
 * [new branch]          tag-span                -> origin/tag-span
   62b1b69e8..32149e6fa  tests-passed            -> origin/tests-passed
 t [tag update]          beta                    -> beta
 t [tag update]          latest-release          -> latest-release
 * [new tag]             v3.2.3                  -> v3.2.3
 * [new tag]             v3.3.0.beta3            -> v3.3.0.beta3
I, [2024-07-04T16:12:20.323803 #1]  INFO -- :
I, [2024-07-04T16:12:20.323954 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout tests-passed
  fi
'
Switched to a new branch 'tests-passed'
I, [2024-07-04T16:12:27.761632 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2024-07-04T16:12:27.762404 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version                           tests-passed
I, [2024-07-04T16:12:27.848402 #1]  INFO -- :
I, [2024-07-04T16:12:27.848664 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-07-04T16:12:27.854415 #1]  INFO -- :
I, [2024-07-04T16:12:27.854638 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-07-04T16:12:27.860466 #1]  INFO -- :
I, [2024-07-04T16:12:27.860678 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-07-04T16:12:27.864396 #1]  INFO -- :
I, [2024-07-04T16:12:27.864892 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-07-04T16:12:27.932184 #1]  INFO -- :
I, [2024-07-04T16:12:27.932693 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-07-04T16:12:27.940033 #1]  INFO -- :
I, [2024-07-04T16:12:27.940385 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2024-07-04T16:12:27.946924 #1]  INFO -- :
I, [2024-07-04T16:12:27.947687 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,                          production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-07-04T16:12:27.956905 #1]  INFO -- :
I, [2024-07-04T16:12:27.957193 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,                          production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2024-07-04T16:12:27.965236 #1]  INFO -- :
I, [2024-07-04T16:12:27.966563 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2024-07-04T16:12:28.036448 #1]  INFO -- :
I, [2024-07-04T16:12:28.036901 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var                          /www/discourse/public"
I, [2024-07-04T16:12:28.046500 #1]  INFO -- :
I, [2024-07-04T16:12:28.047633 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}                          "
I, [2024-07-04T16:12:28.057095 #1]  INFO -- :
I, [2024-07-04T16:12:28.057405 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores}                           /var/www/discourse/tmp"
I, [2024-07-04T16:12:28.067178 #1]  INFO -- :
I, [2024-07-04T16:12:28.067805 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uplo                          ads /shared/backups /shared/tmp
I, [2024-07-04T16:12:28.243943 #1]  INFO -- :
I, [2024-07-04T16:12:28.244269 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth                           1 -xtype l -delete
I, [2024-07-04T16:12:28.248729 #1]  INFO -- :
I, [2024-07-04T16:12:28.249558 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-07-04T16:12:28.250527 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_mana                          ger.git
Cloning into 'docker_manager'...
I, [2024-07-04T16:12:30.853995 #1]  INFO -- :
I, [2024-07-04T16:12:30.854433 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-07-04T16:12:30.939767 #1]  INFO -- :
I, [2024-07-04T16:12:30.940799 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-07-04T16:12:30.946251 #1]  INFO -- :
I, [2024-07-04T16:12:30.947639 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2024-07-04T16:12:30.954245 #1]  INFO -- :
I, [2024-07-04T16:12:30.954993 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-07-04T16:12:31.036718 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; }                           in /etc/nginx/conf.d/discourse.conf
I, [2024-07-04T16:12:31.038565 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.                          conf
I, [2024-07-04T16:12:31.039919 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in                           /etc/nginx/conf.d/discourse.conf
I, [2024-07-04T16:12:31.040735 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connect                          ions ; in /etc/nginx/nginx.conf
I, [2024-07-04T16:12:31.052794 #1]  INFO -- : > echo "done configuring web"
I, [2024-07-04T16:12:31.138487 #1]  INFO -- : done configuring web

I, [2024-07-04T16:12:31.139059 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH                          / { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-07-04T16:12:32.272213 #1]  INFO -- :
I, [2024-07-04T16:12:32.272415 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown disc                          ourse {} \+
I, [2024-07-04T16:12:38.379788 #1]  INFO -- :
I, [2024-07-04T16:12:38.380287 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2024-07-04T16:12:38.456020 #1]  INFO -- :
I, [2024-07-04T16:12:38.456298 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn ca                          che clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
error Error: https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz: ESOCKETTIMEDOUT
    at ClientRequest.<anonymous> (/usr/share/yarn/lib/cli.js:142037:19)
    at Object.onceWrapper (node:events:631:28)
    at ClientRequest.emit (node:events:517:28)
    at TLSSocket.emitRequestTimeout (node:_http_client:847:9)
    at Object.onceWrapper (node:events:631:28)
    at TLSSocket.emit (node:events:529:35)
    at Socket._onTimeout (node:net:598:8)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
I, [2024-07-04T16:17:52.646742 #1]  INFO -- : yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info Theيبدو أن هناك مشكلة في اتصالك بالشبكة. جاري إعادة المحاولة...
info يبدو أن هناك مشكلة في اتصالك بالشبكة. جاري إعادة المحاولة...
info يبدو أن هناك مشكلة في اتصالك بالشبكة. جاري إعادة المحاولة...
info يبدو أن هناك مشكلة في اتصالك بالشبكة. جاري إعادة المحاولة...
info يبدو أن هناك مشكلة في اتصالك بالشبكة. جاري إعادة المحاولة...
info قم بزيارة https://yarnpkg.com/en/docs/cli/install للاطلاع على التوثيق الخاص بهذا الأمر.

98:signal-handler (1720109872) تم استلام SIGTERM لجدولة الإغلاق...
98:M 04 Jul 2024 16:17:52.663 # طلب المستخدم الإغلاق...
98:M 04 Jul 2024 16:17:52.663 * حفظ لقطة RDB النهائية قبل الخروج.
I, [2024-07-04T16:17:52.653347 #1]  INFO -- : إنهاء العمليات غير المتزامنة
I, [2024-07-04T16:17:52.653701 #1]  INFO -- : إرسال INT إلى HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres                          :ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 36
I, [2024-07-04T16:17:52.653954 #1]  INFO -- : إرسال TERM إلى exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.c                          onf pid: 98
2024-07-04 16:17:52.657 UTC [36] LOG:  تم استلام طلب الإغلاق السريع
2024-07-04 16:17:52.664 UTC [36] LOG:  إلغاء أي عمليات معاملة نشطة
2024-07-04 16:17:52.743 UTC [36] LOG:  العامل الخلفي "logical replication launcher" (PID 51) خرج برمز خروج 1
2024-07-04 16:17:52.744 UTC [46] LOG:  جاري الإغلاق
2024-07-04 16:17:52.860 UTC [36] LOG:  تم إيقاف نظام قاعدة البيانات
98:M 04 Jul 2024 16:17:53.048 * تم حفظ قاعدة البيانات على القرص
98:M 04 Jul 2024 16:17:53.049 # Redis الآن جاهز للخروج، وداعاً...


فشل
--------------------
Pups::ExecError: فشل الأمر cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean' برمز العودة #                          <Process::Status: pid 268 exit 1>
موقع الفشل: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
فشل التنفيذ مع المعاملات {"cd"=>"$home", "hook"=>"yarn", "cmd"=>["if [ \"$version\" != \"tests-passed\" ]; then\n  rm -rf app/as                          sets/javascripts/node_modules\nfi", "su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'"]}
فشل التمهيد برمز العودة 1
** فشل في التمهيد ** يرجى التمرير للأعلى والبحث عن رسائل الخطأ السابقة، قد يكون هناك أكثر من واحد.
قد يساعدك ./discourse-doctor في تشخيص المشكلة.
28e72690ac1f17e0226b0c7546f1e9d9f299131572ed4deacc95bc109166e028
==================== نهاية سجل إعادة البناء ====================
فشل في إعادة بناء التطبيق.

جاري التحقق من اسم النطاق الخاص بك . . .

نجح الاتصال بـ ****************.
يجب عليك على الأرجح إزالة أي إضافات غير قياسية وإعادة البناء.
جاري محاولة إعادة تشغيل الحاوية الحالية . . .
تم اكتشاف معمارية x86_64.

جاري تشغيل الحاوية الحالية
+ /usr/bin/docker start app
app
ce55082edacf   local_discourse/app                 "/sbin/boot"             منذ 4 أسابيع    يعمل منذ أقل من ثانية                                                                                app
تم إعادة تشغيل الحاوية.


==================== الإضافات ====================
          - git clone https://github.com/discourse/docker_manager.git

لم يتم اكتشاف أي إضافات غير رسمية.

راجع https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb للحصول على القائمة الرسمية.

========================================
إصدار Discourse على ***************: غير موجود
إصدار Discourse على localhost: غير موجود


==================== معلومات الذاكرة ====================
الذاكرة العشوائية (ميغابايت): 6209

               الإجمالي        المستخدم        الحر      المشترك  buff/cache   المتاح
Mem:            5921        1978        2453         166        1489        3474
Swap:              0           0           0

==================== فحص مساحة القرص ====================
---------- مساحة قرص نظام التشغيل ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       391G   23G  349G   7% /

==================== معلومات القرص ====================
Disk /dev/sda: 400 GiB, 429496729600 bytes, 838860800 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1B86FC4E-2370-48E1-8752-0E932DA55E09

Device       Start       End   Sectors  Size Type
/dev/sda1     2048      4095      2048    1M BIOS boot
/dev/sda2     4096   4194303   4190208    2G Linux filesystem
/dev/sda3  4194304 838858751 834664448  398G Linux filesystem

==================== نهاية معلومات القرص ====================

==================== اختبار البريد ====================
لاختبار قوي، احصل على عنوان من http://www.mail-tester.com/
أو أرسل رسالة اختبارية إلى نفسك.
عنوان البريد الإلكتروني لاختبار البريد؟ ('n' للتخطي) [***********]:
جاري إرسال البريد إلى *****************. . .
جاري اختبار الإرسال إلى ********************** باستخدام email-smtp.us-east-1.amazonaws.com:587، اسم المستخدم:*********************** مع مصادقة عادية                          .
اتصال خادم SMTP ناجح.
جاري الإرسال إلى **************. . .
تم قبول البريد من قبل خادم SMTP.
Message-ID: 2bddc993-deed-4fbc-905e-bc692afc97d8@**************.com

إذا لم تتلقَ الرسالة، تحقق من مجلد البريد العشوائي
أو أعد الاختبار باستخدام خدمة مثل http://www.mail-tester.com/.

إذا لم يتم تسليم الرسالة، فهذا ليس مشكلة في Discourse.
تحقق من سجلات خادم SMTP للـ Message ID أعلاه لمعرفة سبب فشل تسليم الرسالة.
استبدال: SMTP_PASSWORD
استبدال: LETSENCRYPT_ACCOUNT_EMAIL
استبدال: DEVELOPER_EMAILS
استبدال: DISCOURSE_DB_PASSWORD
استبدال: جاري إرسال البريد إلى

==================== انتهى! ====================

app.yml

## هذا هو قالب حاوية Docker الكل في واحد، المستقل لـ Discourse
##
## بعد إجراء تغييرات على هذا الملف، يجب عليك إعادة البناء
## /var/discourse/launcher rebuild app
##
## كن *حذراً جداً* عند التعديل!
## ملفات YAML حساسة للغاية للأخطاء في المسافات البيضاء أو المحاذاة!
## قم بزيارة http://www.yamllint.com/ للتحقق من صحة هذا الملف عند الحاجة

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  ## قم بإلغاء التعليق على السطر التالي لتمكين مستمع IPv6
  #- "templates/web.ipv6.template.yml"
  - "templates/web.ratelimited.template.yml"
  ## قم بإلغاء التعليق على هذين السطرين إذا رغبت في إضافة Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"
  #- "templates/web.socketed.template.yml"

## أي منافذ TCP/IP يجب أن تعرضها هذه الحاوية؟
## إذا كنت تريد من Discourse مشاركة منفذ مع خادم ويب آخر مثل Apache أو nginx،
## راجع https://meta.discourse.org/t/17247 للحصول على التفاصيل
expose:
  # - "80:80"   # http
  # - "443:443" # https

params:
  db_default_text_search_config: "pg_catalog.english"

  ## تعيين db_shared_buffers إلى حد أقصى 25٪ من إجمالي الذاكرة.
  ## سيتم تعيينه تلقائياً بواسطة التمهيد بناءً على الذاكرة العشوائية المكتشفة، أو يمكنك التخطي
  #db_shared_buffers: "256MB"

  ## يمكن تحسين أداء الفرز، لكنه يزيد من استخدام الذاكرة لكل اتصال
  #db_work_mem: "40MB"

  ## أي مراجعة Git يجب أن تستخدمها هذه الحاوية؟ (الافتراضي: tests-passed)
  #version: tests-passed

env:
  LC_ALL: en_US.UTF-8
  LANG: en_US.UTF-8
  LANGUAGE: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## كم طلب ويب متزامن مدعوم؟ يعتمد على الذاكرة ونوى وحدة المعالجة المركزية.
  ## سيتم تعيينه تلقائياً بواسطة التمهيد بناءً على وحدات المعالجة المركزية المكتشفة، أو يمكنك التخطي
  #UNICORN_WORKERS: 3

  ## TODO: اسم النطاق الذي ستستجيب له هذه النسخة من Discourse
  ## مطلوب. لن يعمل Discourse مع رقم IP عاري.
  DISCOURSE_HOSTNAME: '**************'

  ## قم بإلغاء التعليق إذا كنت تريد بدء تشغيل الحاوية بنفس
  ## اسم المضيف (خيار -h) كما هو محدد أعلاه (الافتراضي "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true

  ## TODO: قائمة عناوين البريد الإلكتروني مفصولة بفواصل التي سيتم تعيينها كمسؤول ومطور
  ## عند التسجيل الأولي مثال 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: '*****************, ******************'

  ## TODO: خادم البريد SMTP المستخدم للتحقق من الحسابات الجديدة وإرسال الإشعارات
  # عنوان SMTP، اسم المستخدم، وكلمة المرور مطلوبة
  # تحذير: قد يسبب حرف '#' في كلمة مرور SMTP مشاكل!
  DISCOURSE_SMTP_ADDRESS: email-smtp.us-east-1.amazonaws.com
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: *********************
  DISCOURSE_SMTP_PASSWORD: *****************************************
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (اختياري، الافتراضي true)
  #DISCOURSE_SMTP_DOMAIN: *******************    # (مطلوب من قبل بعض المزودين)
  DISCOURSE_NOTIFICATION_EMAIL: *********************    # (العنوان لإرسال الإشعارات منه)

  ## إذا أضفت قالب Lets Encrypt، قم بإلغاء التعليق أدناه للحصول على شهادة SSL مجانية
  #LETSENCRYPT_ACCOUNT_EMAIL: me@example.com

  ## عنوان CDN http أو https لهذه النسخة من Discourse (معد للسحب)
  ## راجع https://meta.discourse.org/t/14857 للحصول على التفاصيل
  #DISCOURSE_CDN_URL: https://discourse-cdn.example.com
  ## مفتاح عنوان IP لـ maxmind geolocation للبحث عن عنوان IP
  ## راجع https://meta.discourse.org/t/-/137387/23 للحصول على التفاصيل
  #DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456

## حاوية Docker بلا حالة؛ جميع البيانات مخزنة في /shared
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

## الإضافات تذهب هنا
## راجع https://meta.discourse.org/t/19157 للحصول على التفاصيل
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git

## أي أوامر مخصصة لتشغيلها بعد البناء
run:
  - exec: echo "Beginning of custom commands"
  ## إذا كنت تريد تعيين عنوان البريد الإلكتروني 'From' لتسجيلك الأول، قم بإلغاء التعليق والتغيير:
  ## بعد الحصول على البريد الإلكتروني للتسجيل الأول، أعد التعليق على السطر. يحتاج فقط للتشغيل مرة واحدة.
  #- exec: rails r "SiteSetting.notification_email='***************'"
  - exec: echo "End of custom commands"

docker_args: |
  --network nginx_proxy_manager_default

تحديث: في المحاولة العاشرة تقريبًا، تمكنت من إعادة البناء.

لا أعرف ما إذا كان لذلك أي تأثير، لكنني قمت بتحديث محرك دوكر إلى أحدث إصدار.

ومع ذلك، على الرغم من أن الحاوية قيد التشغيل، لا يمكنني الوصول إلى الصفحة. يستمر في إخباري أن عنوان IP الخاص بالخادم غير متاح.

لقد حاولت أيضًا الوصول إلى الموقع من شبكة أخرى على جهاز آخر ولكن دون جدوى.

كما ذكرت، على نفس الخادم الافتراضي الخاص (VPS)، أقوم بتشغيل ووردبريس على النطاق الرئيسي، وكل شيء يعمل بشكل جيد. لا أفهم كيف توقف ديسكورد عن العمل بهذه السرعة.

أي أفكار؟ أنا يائس حقًا.

تم حل المشكلة.

لأسباب لا أفهمها، توقف الوصول إلى الموقع عن العمل بعد حوالي 24 ساعة من إضافة سجل TXT إلى DNS.

حاولت إضافة سجل A بعنوان IP الخاص بالخادم بتنسيق forum.domain.com، وبعد فترة، بدأ العمل مرة أخرى. في السابق، كان إعادة التوجيه إلى نطاق فرعي باستخدام *.domain.com يعمل.

بصراحة، هذا لغز بالنسبة لي، لكن الشيء الرئيسي هو أنه يعمل الآن :grinning: