فشل تنفيذ Discourse bundle exec rake multisite:migrate

مرحباً بكم في مجتمع Discourse،

اليوم، حاولت تحديث نسخة Discourse multisite الخاصة بي. وفقاً للبريد الإلكتروني الذي تلقيته:

الإصدار الحالي: 2.7.0.beta4
الإصدار الجديد: 2.7.0.beta5

لذا قمت بتسجيل الدخول إلى الخادم عبر SSH، والتنقل إلى مجلد /var/discourse، ثم نفذت أمر git pull وأمر ./launcher rebuild app.

للأسف، فشل التحديث.

./launcher rebuild app
التأكد من أن launcher محدّث
جلب origin
launcher محدّث
إيقاف الحاوية القديمة
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && /pups/bin/pups --stdin
محدّث بالفعل.
I, [2021-03-12T11:56:14.238266 #1]  INFO -- : تحميل --stdin
I, [2021-03-12T11:56:14.249154 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2021-03-12T11:56:14.321067 #1]  INFO -- : جاري إنشاء اللغات (قد يستغرق ذلك بعض الوقت)...
اكتمل الإنشاء.

I, [2021-03-12T11:56:14.321626 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2021-03-12T11:56:14.332795 #1]  INFO -- : 
I, [2021-03-12T11:56:14.333382 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-03-12T11:56:14.337573 #1]  INFO -- : 
I, [2021-03-12T11:56:14.338086 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2021-03-12T11:56:14.341662 #1]  INFO -- : 
I, [2021-03-12T11:56:14.342086 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2021-03-12T11:56:14.345471 #1]  INFO -- : 
I, [2021-03-12T11:56:14.345849 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-03-12T11:56:14.349051 #1]  INFO -- : 
I, [2021-03-12T11:56:14.349415 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/03/12 11:56:14 socat[29] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-03-12T11:56:14.360417 #1]  INFO -- : 
I, [2021-03-12T11:56:14.360833 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-03-12T11:56:14.365343 #1]  INFO -- : 
I, [2021-03-12T11:56:14.365687 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-03-12T11:56:14.369748 #1]  INFO -- : 
I, [2021-03-12T11:56:14.370120 #1]  INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-03-12T11:56:14.373249 #1]  INFO -- : 
I, [2021-03-12T11:56:14.374013 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-03-12T11:56:14.377067 #1]  INFO -- : 
I, [2021-03-12T11:56:14.383919 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2021-03-12T11:56:14.391884 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2021-03-12T11:56:14.402147 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2021-03-12T11:56:14.408816 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2021-03-12T11:56:14.409247 #1]  INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-03-12T11:56:21.888748 #1]  INFO -- : 
I, [2021-03-12T11:56:21.889200 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres_data || exit 0
I, [2021-03-12T11:56:21.892545 #1]  INFO -- : 
I, [2021-03-12T11:56:21.892691 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-03-12T11:56:21.959651 #1]  INFO -- : 
I, [2021-03-12T11:56:21.959862 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-03-12T11:56:21.963797 #1]  INFO -- : 
I, [2021-03-12T11:56:21.964287 #1]  INFO -- : > /root/upgrade_postgres
I, [2021-03-12T11:56:21.971460 #1]  INFO -- : 
I, [2021-03-12T11:56:21.971936 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2021-03-12T11:56:21.974953 #1]  INFO -- : 
I, [2021-03-12T11:56:21.976222 #1]  INFO -- : Replace data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:21.977792 #1]  INFO -- : Replace (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:21.986524 #1]  INFO -- : Replace (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:21.987239 #1]  INFO -- : Replace (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:21.987867 #1]  INFO -- : Replace (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:21.988504 #1]  INFO -- : Replace (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:21.989042 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-03-12T11:56:21.997633 #1]  INFO -- : 
I, [2021-03-12T11:56:21.999066 #1]  INFO -- : Replace (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:22.000019 #1]  INFO -- : Replace (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:22.000859 #1]  INFO -- : Replace (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2021-03-12T11:56:22.001943 #1]  INFO -- : Replace (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2021-03-12T11:56:22.002716 #1]  INFO -- : Replace (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2021-03-12T11:56:22.010527 #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, [2021-03-12T11:56:22.014118 #1]  INFO -- : > sleep 5
2021-03-12 11:56:22.097 UTC [52] LOG:  بدء تشغيل PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) على x86_64-pc-linux-gnu، تم التجميع بواسطة gcc (Debian 8.3.0-6) 8.3.0، 64-bit
2021-03-12 11:56:22.099 UTC [52] LOG:  الاستماع على عنوان IPv4 "0.0.0.0"، المنفذ 5432
2021-03-12 11:56:22.099 UTC [52] LOG:  الاستماع على عنوان IPv6 "::"، المنفذ 5432
2021-03-12 11:56:22.110 UTC [52] LOG:  الاستماع على المقبض Unix "/var/run/postgresql/.s.PGSQL.5432"
2021-03-12 11:56:22.129 UTC [55] LOG:  تم إيقاف نظام قاعدة البيانات في 2021-03-12 11:55:56 UTC
2021-03-12 11:56:22.151 UTC [52] LOG:  نظام قاعدة البيانات جاهز لاستقبال الاتصالات
I, [2021-03-12T11:56:27.019556 #1]  INFO -- : 
I, [2021-03-12T11:56:27.020093 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2021-03-12 11:56:27.125 UTC [65] postgres@postgres ERROR:  قاعدة البيانات "discourse" موجودة بالفعل
2021-03-12 11:56:27.125 UTC [65] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: فشل إنشاء قاعدة البيانات: ERROR:  قاعدة البيانات "discourse" موجودة بالفعل
I, [2021-03-12T11:56:27.128162 #1]  INFO -- : 
I, [2021-03-12T11:56:27.128703 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-03-12 11:56:27.250 UTC [76] postgres@discourse ERROR:  الدور "discourse" موجود بالفعل
2021-03-12 11:56:27.250 UTC [76] postgres@discourse STATEMENT:  create user discourse;
ERROR:  الدور "discourse" موجود بالفعل
I, [2021-03-12T11:56:27.252703 #1]  INFO -- : 
I, [2021-03-12T11:56:27.253255 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-03-12T11:56:27.337166 #1]  INFO -- : GRANT

I, [2021-03-12T11:56:27.337619 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-03-12T11:56:27.425790 #1]  INFO -- : ALTER SCHEMA

I, [2021-03-12T11:56:27.426500 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE:  الامتداد "hstore" موجود بالفعل، يتم التخطي
I, [2021-03-12T11:56:27.526741 #1]  INFO -- : CREATE EXTENSION

I, [2021-03-12T11:56:27.527227 #1]  INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE:  الامتداد "pg_trgm" موجود بالفعل، يتم التخطي
I, [2021-03-12T11:56:27.611653 #1]  INFO -- : CREATE EXTENSION

I, [2021-03-12T11:56:27.612139 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE:  الامتداد "hstore" موجود بالفعل، يتم التخطي
I, [2021-03-12T11:56:27.695641 #1]  INFO -- : CREATE EXTENSION

I, [2021-03-12T11:56:27.696131 #1]  INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE:  الامتداد "pg_trgm" موجود بالفعل، يتم التخطي
I, [2021-03-12T11:56:27.779551 #1]  INFO -- : CREATE EXTENSION

I, [2021-03-12T11:56:27.780104 #1]  INFO -- : > sudo -u postgres psql discourse
I, [2021-03-12T11:56:27.783417 #1]  INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');

I, [2021-03-12T11:56:27.885899 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2021-03-12T11:56:27.889959 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2021-03-12T11:56:27.890160 #1]  INFO -- : > echo postgres installed!
I, [2021-03-12T11:56:27.892776 #1]  INFO -- : postgres installed!

I, [2021-03-12T11:56:27.898926 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2021-03-12T11:56:27.904772 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2021-03-12T11:56:27.910473 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2021-03-12T11:56:27.911376 #1]  INFO -- : Replace daemonize yes with  in /etc/redis/redis.conf
I, [2021-03-12T11:56:27.912193 #1]  INFO -- : Replace (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2021-03-12T11:56:27.920377 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-03-12T11:56:27.927016 #1]  INFO -- : 
I, [2021-03-12T11:56:27.927727 #1]  INFO -- : Replace (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2021-03-12T11:56:27.928646 #1]  INFO -- : Replace (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2021-03-12T11:56:27.929485 #1]  INFO -- : Replace (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2021-03-12T11:56:27.930418 #1]  INFO -- : Replace (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2021-03-12T11:56:27.931251 #1]  INFO -- : Replace # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2021-03-12T11:56:27.932240 #1]  INFO -- : > echo redis installed
I, [2021-03-12T11:56:27.935013 #1]  INFO -- : redis installed

I, [2021-03-12T11:56:27.935324 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-03-12T11:56:27.939980 #1]  INFO -- : logfile ""

I, [2021-03-12T11:56:27.940321 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-03-12T11:56:27.942289 #1]  INFO -- : > sleep 10
169:C 12 Mar 2021 11:56:27.949 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
169:C 12 Mar 2021 11:56:27.949 # Redis version=6.0.10, bits=64, commit=00000000, modified=0, pid=169, just started
169:C 12 Mar 2021 11:56:27.949 # Configuration loaded
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.10 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 169
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

169:M 12 Mar 2021 11:56:27.951 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
169:M 12 Mar 2021 11:56:27.951 # Server initialized
169:M 12 Mar 2021 11:56:27.951 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. 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.
169:M 12 Mar 2021 11:56:27.952 * Loading RDB produced by version 6.0.10
169:M 12 Mar 2021 11:56:27.952 * RDB age 32 seconds
169:M 12 Mar 2021 11:56:27.952 * RDB memory usage when created 14.44 Mb
169:M 12 Mar 2021 11:56:27.999 * DB loaded from disk: 0.047 seconds
169:M 12 Mar 2021 11:56:27.999 * Ready to accept connections
I, [2021-03-12T11:56:37.945872 #1]  INFO -- : 
I, [2021-03-12T11:56:37.946561 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-03-12T11:56:37.962190 #1]  INFO -- : thpoff is installed!

I, [2021-03-12T11:56:37.962808 #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, [2021-03-12T11:56:38.136041 #1]  INFO -- : 
I, [2021-03-12T11:56:38.136793 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2021-03-12T11:56:38.257693 #1]  INFO -- : 
I, [2021-03-12T11:56:38.258340 #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, [2021-03-12T11:56:38.367084 #1]  INFO -- : 
I, [2021-03-12T11:56:38.367676 #1]  INFO -- : > chown -R discourse /home/discourse
I, [2021-03-12T11:56:42.373028 #1]  INFO -- : 
I, [2021-03-12T11:56:42.373979 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-03-12T11:56:42.381252 #1]  INFO -- : 
I, [2021-03-12T11:56:42.385040 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2021-03-12T11:56:42.391412 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2021-03-12T11:56:42.397414 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2021-03-12T11:56:42.403267 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2021-03-12T11:56:42.409182 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2021-03-12T11:56:42.415115 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2021-03-12T11:56:42.415478 #1]  INFO -- : Replace # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2021-03-12T11:56:42.416083 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-03-12T11:56:42.419023 #1]  INFO -- : > cd /var/www/discourse && git reset --hard
198:C 12 Mar 2021 11:56:42.423 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
198:C 12 Mar 2021 11:56:42.423 # Redis version=6.0.10, bits=64, commit=00000000, modified=0, pid=198, just started
198:C 12 Mar 2021 11:56:42.423 # Configuration loaded
198:M 12 Mar 2021 11:56:42.424 # Could not create server TCP listening socket *:6379: bind: Address already in use
Checking out files: 100% (28489/28489), done.
I, [2021-03-12T11:56:47.419391 #1]  INFO -- : HEAD is now at c4ff6def UX: change emailLogin to info class when empty (#12105)

I, [2021-03-12T11:56:47.419999 #1]  INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-03-12T11:56:47.610349 #1]  INFO -- : 
I, [2021-03-12T11:56:47.611036 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2021-03-12T11:56:47.616703 #1]  INFO -- : 
I, [2021-03-12T11:56:47.617284 #1]  INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-03-12T11:56:47.622394 #1]  INFO -- : 
I, [2021-03-12T11:56:47.622933 #1]  INFO -- : > cd /var/www/discourse && git fetch --depth 1 origin tests-passed
From https://github.com/discourse/discourse
 * branch              tests-passed -> FETCH_HEAD
 * [new branch]        tests-passed -> origin/tests-passed
I, [2021-03-12T11:56:50.342564 #1]  INFO -- : 
I, [2021-03-12T11:56:50.343035 #1]  INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2021-03-12T11:56:51.154118 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2021-03-12T11:56:51.154674 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-03-12T11:56:51.176871 #1]  INFO -- : 
I, [2021-03-12T11:56:51.177556 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-03-12T11:56:51.182949 #1]  INFO -- : 
I, [2021-03-12T11:56:51.183427 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-03-12T11:56:51.188113 #1]  INFO -- : 
I, [2021-03-12T11:56:51.188560 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-03-12T11:56:51.192692 #1]  INFO -- : 
I, [2021-03-12T11:56:51.193248 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-03-12T11:56:51.206386 #1]  INFO -- : 
I, [2021-03-12T11:56:51.207023 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2021-03-12T11:56:51.212369 #1]  INFO -- : 
I, [2021-03-12T11:56:51.212860 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-03-12T11:56:51.220182 #1]  INFO -- : 
I, [2021-03-12T11:56:51.220414 #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, [2021-03-12T11:56:51.227126 #1]  INFO -- : 
I, [2021-03-12T11:56:51.227326 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2021-03-12T11:56:51.233623 #1]  INFO -- : 
I, [2021-03-12T11:56:51.233796 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-03-12T11:56:51.253826 #1]  INFO -- : 
I, [2021-03-12T11:56:51.254455 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2021-03-12T11:56:51.261816 #1]  INFO -- : 
I, [2021-03-12T11:56:51.262331 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-03-12T11:56:51.268122 #1]  INFO -- : 
I, [2021-03-12T11:56:51.268302 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-03-12T11:56:51.297876 #1]  INFO -- : 
I, [2021-03-12T11:56:51.298577 #1]  INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-03-12T11:56:51.313307 #1]  INFO -- : 
I, [2021-03-12T11:56:51.313689 #1]  INFO -- : Replace # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2021-03-12T11:56:51.314571 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2021-03-12T11:56:53.452046 #1]  INFO -- : 
I, [2021-03-12T11:56:53.452754 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-03-12T11:56:53.458379 #1]  INFO -- : 
I, [2021-03-12T11:56:53.458987 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-03-12T11:56:53.462286 #1]  INFO -- : 
I, [2021-03-12T11:56:53.462694 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2021-03-12T11:56:53.465967 #1]  INFO -- : 
I, [2021-03-12T11:56:53.466707 #1]  INFO -- : Replace pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2021-03-12T11:56:53.468033 #1]  INFO -- : Replace (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2021-03-12T11:56:53.468797 #1]  INFO -- : Replace (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2021-03-12T11:56:53.476470 #1]  INFO -- : Replace (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2021-03-12T11:56:53.477143 #1]  INFO -- : > echo "done configuring web"
I, [2021-03-12T11:56:53.479943 #1]  INFO -- : done configuring web

I, [2021-03-12T11:56:53.480515 #1]  INFO -- : > cd /var/www/discourse && gem update bundler
I, [2021-03-12T11:57:02.030942 #1]  INFO -- : Updating installed gems
Updating bundler
Successfully installed bundler-2.2.14
Gems updated: bundler

I, [2021-03-12T11:57:02.031261 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2021-03-12T11:57:20.129383 #1]  INFO -- : 
I, [2021-03-12T11:57:20.130344 #1]  INFO -- : > ln -s /multisite/multisite.yml /var/www/discourse/config/multisite.yml
I, [2021-03-12T11:57:20.135472 #1]  INFO -- : 
I, [2021-03-12T11:57:20.136021 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'
[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set --local without 'test development'`, and stop using this flag
I, [2021-03-12T11:58:09.626235 #1]  INFO -- : Running `bundle install --deployment --jobs 4 --retry 3 --verbose --without "test" "development"` with bundler 2.2.14
Frozen, using resolution from the lockfile
Bundler::PathError: The path `/var/www/discourse/vendor/bundle/ruby/2.7.0/bundler/gems/mail-5b700fc95ee6` does not exist.
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/source/path.rb:207:in `load_spec_files'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/source/git.rb:203:in `load_spec_files'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/source/path.rb:105:in `local_specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/source/git.rb:170:in `specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/lazy_specification.rb:72:in `__materialize__'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/spec_set.rb:86:in `block in materialize'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/spec_set.rb:82:in `map!'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/spec_set.rb:82:in `materialize'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/definition.rb:214:in `missing_specs'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/definition.rb:219:in `missing_specs?'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/installer.rb:288:in `resolve_if_needed'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/installer.rb:83:in `block in run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/process_lock.rb:12:in `block in lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/process_lock.rb:9:in `open'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/process_lock.rb:9:in `lock'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/installer.rb:72:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/installer.rb:24:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/cli/install.rb:64:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/cli.rb:259:in `block in install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/settings.rb:115:in `temporary'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/cli.rb:258:in `install'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/cli.rb:30:in `dispatch'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/cli.rb:24:in `start'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/exe/bundle:49:in `block in <top (required)>'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
  /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.2.14/exe/bundle:37:in `<top (required)>'
  /usr/local/bin/bundle:23:in `load'
  /usr/local/bin/bundle:23:in `<main>'
The definition is missing dependencies, failed to resolve & materialize locally (https://github.com/discourse/mail.git is not yet checked out. Run `bundle install` first.)
Frozen, usiحدث خطأ في التحديث الخاص بي
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })

يرجى مساعدتي في إصلاحه..
Installing nokogiri 1.11.2 (x86_64-linux)
1: nokogiri (1.11.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nokogiri-1.11.2-x86_64-linux.gemspec
Using rack-test 1.1.0
1: rack-test (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-test-1.1.0.gemspec
Using mail 2.8.0.edge from GitHub - discourse/mail: A Really Ruby Mail Library · GitHub (at master@5b700fc)
1: mail (2.8.0.edge) from /var/www/discourse/vendor/bundle/ruby/2.7.0/bundler/gems/mail-5b700fc95ee6/mail.gemspec
Using addressable 2.7.0
1: addressable (2.7.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/addressable-2.7.0.gemspec
Using sprockets 3.7.2
1: sprockets (3.7.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sprockets-3.7.2.gemspec
Using request_store 1.5.0
1: request_store (1.5.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/request_store-1.5.0.gemspec
Using message_bus 3.3.4
1: message_bus (3.3.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/message_bus-3.3.4.gemspec
Using rack-mini-profiler 2.3.1
1: rack-mini-profiler (2.3.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-mini-profiler-2.3.1.gemspec
Using rack-protection 2.1.0
1: rack-protection (2.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rack-protection-2.1.0.gemspec
Using barber 0.12.2
1: barber (0.12.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/barber-0.12.2.gemspec
Using bootsnap 1.7.2
1: bootsnap (1.7.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/bootsnap-1.7.2.gemspec
Using ember-data-source 3.0.2
1: ember-data-source (3.0.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-data-source-3.0.2.gemspec
Using uglifier 4.2.0
1: uglifier (4.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/uglifier-4.2.0.gemspec
Using openssl-signature_algorithm 1.1.1
1: openssl-signature_algorithm (1.1.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/openssl-signature_algorithm-1.1.1.gemspec
Using pry 0.13.1
1: pry (0.13.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec
Fetching aws-sigv4 1.2.3
Installing aws-sigv4 1.2.3
1: aws-sigv4 (1.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sigv4-1.2.3.gemspec
Using discourse_image_optim 0.26.2
1: discourse_image_optim (0.26.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse_image_optim-0.26.2.gemspec
Using faraday 1.3.0
1: faraday (1.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/faraday-1.3.0.gemspec
Fetching ecma-re-validator 0.3.0
Installing ecma-re-validator 0.3.0
1: ecma-re-validator (0.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ecma-re-validator-0.3.0.gemspec
Using omniauth 1.9.1
1: omniauth (1.9.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-1.9.1.gemspec
Using logstash-logger 0.26.1
1: logstash-logger (0.26.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/logstash-logger-0.26.1.gemspec
Using mini_racer 0.3.1
1: mini_racer (0.3.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_racer-0.3.1.gemspec
Using webpush 1.1.0
1: webpush (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/webpush-1.1.0.gemspec
Using sidekiq 6.1.3
1: sidekiq (6.1.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sidekiq-6.1.3.gemspec
Using redis-namespace 1.8.1
1: redis-namespace (1.8.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/redis-namespace-1.8.1.gemspec
Fetching activesupport 6.0.3.5
Installing activesupport 6.0.3.5
1: activesupport (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activesupport-6.0.3.5.gemspec
Using rqrcode 1.2.0
1: rqrcode (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rqrcode-1.2.0.gemspec
Using unf 0.1.4
1: unf (0.1.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unf-0.1.4.gemspec
Using unicorn 5.8.0
1: unicorn (5.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/unicorn-5.8.0.gemspec
Using loofah 2.9.0
1: loofah (2.9.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/loofah-2.9.0.gemspec
Using nokogumbo 2.0.4
1: nokogumbo (2.0.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nokogumbo-2.0.4.gemspec
Using ruby-readability 0.7.0
1: ruby-readability (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ruby-readability-0.7.0.gemspec
Using css_parser 1.9.0
1: css_parser (1.9.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/css_parser-1.9.0.gemspec
Using ember-handlebars-template 0.8.0
1: ember-handlebars-template (0.8.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ember-handlebars-template-0.8.0.gemspec
Using cose 1.2.0
1: cose (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/cose-1.2.0.gemspec
Using pry-byebug 3.9.0
1: pry-byebug (3.9.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec
Using pry-rails 0.3.9
1: pry-rails (0.3.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/pry-rails-0.3.9.gemspec
Fetching aws-sdk-core 3.112.1
Installing aws-sdk-core 3.112.1
1: aws-sdk-core (3.112.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-core-3.112.1.gemspec
Using oauth2 1.4.4
1: oauth2 (1.4.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oauth2-1.4.4.gemspec
Fetching json_schemer 0.2.18
Installing json_schemer 0.2.18
1: json_schemer (0.2.18) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/json_schemer-0.2.18.gemspec
Using mini_scheduler 0.13.0
1: mini_scheduler (0.13.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_scheduler-0.13.0.gemspec
Using omniauth-oauth 1.2.0
1: omniauth-oauth (1.2.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth-1.2.0.gemspec
Using rails-dom-testing 2.0.3
1: rails-dom-testing (2.0.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-dom-testing-2.0.3.gemspec
Using globalid 0.4.2
1: globalid (0.4.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/globalid-0.4.2.gemspec
Fetching activemodel 6.0.3.5
Installing activemodel 6.0.3.5
1: activemodel (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activemodel-6.0.3.5.gemspec
Using rails-html-sanitizer 1.3.0
1: rails-html-sanitizer (1.3.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails-html-sanitizer-1.3.0.gemspec
Using sanitize 5.2.3
1: sanitize (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sanitize-5.2.3.gemspec
Fetching aws-sdk-kms 1.42.0
Installing aws-sdk-kms 1.42.0
1: aws-sdk-kms (1.42.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-kms-1.42.0.gemspec
Fetching aws-sdk-sns 1.38.0
Installing aws-sdk-sns 1.38.0
1: aws-sdk-sns (1.38.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-sns-1.38.0.gemspec
Using omniauth-oauth2 1.7.1
1: omniauth-oauth2 (1.7.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-oauth2-1.7.1.gemspec
Using omniauth-twitter 1.4.0
1: omniauth-twitter (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-twitter-1.4.0.gemspec
Fetching activejob 6.0.3.5
Installing activejob 6.0.3.5
1: activejob (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activejob-6.0.3.5.gemspec
Using active_model_serializers 0.8.4
1: active_model_serializers (0.8.4) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/active_model_serializers-0.8.4.gemspec
Fetching activerecord 6.0.3.5
Installing activerecord 6.0.3.5
1: activerecord (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/activerecord-6.0.3.5.gemspec
Fetching actionview 6.0.3.5
Installing actionview 6.0.3.5
1: actionview (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview-6.0.3.5.gemspec
Fetching onebox 2.2.8
Installing onebox 2.2.8
1: onebox (2.2.8) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/onebox-2.2.8.gemspec
Fetching aws-sdk-s3 1.90.0
Installing aws-sdk-s3 1.90.0
1: aws-sdk-s3 (1.90.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/aws-sdk-s3-1.90.0.gemspec
Using omniauth-facebook 8.0.0
1: omniauth-facebook (8.0.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-facebook-8.0.0.gemspec
Using omniauth-github 1.4.0
1: omniauth-github (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-github-1.4.0.gemspec
Using omniauth-google-oauth2 0.8.1
1: omniauth-google-oauth2 (0.8.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/omniauth-google-oauth2-0.8.1.gemspec
Using seed-fu 2.3.9
1: seed-fu (2.3.9) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/seed-fu-2.3.9.gemspec
Fetching actionpack 6.0.3.5
Installing actionpack 6.0.3.5
1: actionpack (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionpack-6.0.3.5.gemspec
Using actionview_precompiler 0.2.3
1: actionview_precompiler (0.2.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionview_precompiler-0.2.3.gemspec
Fetching actionmailer 6.0.3.5
Installing actionmailer 6.0.3.5
1: actionmailer (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/actionmailer-6.0.3.5.gemspec
Fetching railties 6.0.3.5
Installing railties 6.0.3.5
1: railties (6.0.3.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/railties-6.0.3.5.gemspec
Using sprockets-rails 3.2.2
1: sprockets-rails (3.2.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sprockets-rails-3.2.2.gemspec
Using jquery-rails 4.4.0
1: jquery-rails (4.4.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/jquery-rails-4.4.0.gemspec
Using lograge 0.11.2
1: lograge (0.11.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/lograge-0.11.2.gemspec
Using rails_failover 0.6.5
1: rails_failover (0.6.5) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_failover-0.6.5.gemspec
Using rails_multisite 2.5.0
1: rails_multisite (2.5.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rails_multisite-2.5.0.gemspec
Using discourse-ember-rails 0.18.6
1: discourse-ember-rails (0.18.6) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/discourse-ember-rails-0.18.6.gemspec
2: nio4r (2.5.7) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/nio4r-2.5.7.gemspec
Fetching puma 5.2.2
Installing puma 5.2.2 with native extensions
Building native extensions. This could take a while…
1: puma (5.2.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/puma-5.2.2.gemspec
3: oj (3.11.3) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/oj-3.11.3.gemspec
0: ffi (1.15.0) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/ffi-1.15.0.gemspec
Using mini_suffix 0.3.2
2: mini_suffix (0.3.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/mini_suffix-0.3.2.gemspec
Using rbtrace 0.4.14
2: rbtrace (0.4.14) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/rbtrace-0.4.14.gemspec
Using sassc 2.0.1
2: sassc (2.0.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-2.0.1.gemspec
Using sassc-rails 2.1.2
0: sassc-rails (2.1.2) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/sassc-rails-2.1.2.gemspec
Bundle complete! 124 Gemfile dependencies, 167 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into ./vendor/bundle

I, [2021-03-12T11:58:09.631058 #1]  INFO -- : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate
`/root` is not writable.
Bundler will use `/tmp/bundler20210312-3899-11auboa3899' as your home directory temporarily.
rake aborted!
NameError: uninitialized constant RailsMultisite::DiscoursePatches
/var/www/discourse/config/initializers/200-first_middlewares.rb:34:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:59:in `load'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/engine.rb:666:in `block in load_config_initializer'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.3.5/lib/active_support/notifications.rb:182:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/engine.rb:665:in `load_config_initializer'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/engine.rb:625:in `block (2 levels) in <class:Engine>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/engine.rb:624:in `each'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/engine.rb:624:in `block in <class:Engine>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/initializable.rb:50:in `each'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/initializable.rb:50:in `tsort_each_child'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/application.rb:363:in `initialize!'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/railtie.rb:190:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/railtie.rb:190:in `method_missing'
/var/www/discourse/config/environment.rb:7:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.7.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/application.rb:339:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-6.0.3.5/lib/rails/application.rb:523:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => multisite:migrate => db:load_config => environment
(See full trace by running task with --trace)
I, [2021-03-12T11:58:15.637907 #1]  INFO -- : 
I, [2021-03-12T11:58:15.638728 #1]  INFO -- : Terminating async processes
I, [2021-03-12T11:58:15.638830 #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: 52
2021-03-12 11:58:15.639 UTC [52] LOG:  received fast shutdown request
I, [2021-03-12T11:58:15.638989 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 169
169:signal-handler (1615550295) Received SIGTERM scheduling shutdown...
2021-03-12 11:58:15.647 UTC [52] LOG:  aborting any active transactions
2021-03-12 11:58:15.650 UTC [52] LOG:  background worker "logical replication launcher" (PID 61) exited with exit code 1
2021-03-12 11:58:15.658 UTC [56] LOG:  shutting down
169:M 12 Mar 2021 11:58:15.704 # User requested shutdown...
169:M 12 Mar 2021 11:58:15.704 * Saving the final RDB snapshot before exiting.
2021-03-12 11:58:15.778 UTC [52] LOG:  database system is shut down
169:M 12 Mar 2021 11:58:15.829 * DB saved on disk
169:M 12 Mar 2021 11:58:15.830 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 3897 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate"
f73b81fb35d03513e96893074964fb75baf31ab6e71448842a58b9f75c1e79a0
** 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.

أعتقد أن هذا له علاقة بـ

NameError: uninitialized constant RailsMultisite::DiscoursePatches

ولكن لم أتمكن من العثور على معلومات مفيدة حول هذا.

لقد قمت بالفعل بتعطيل جميع الإضافات. يبدو ملف 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"
  - "templates/web.ratelimited.template.yml"
  - "templates/web.socketed.template.yml"
## قم بإلغاء التعليق على هاتين السطرين إذا أردت إضافة Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.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٪ من إجمالي الذاكرة.
  ## سيتم تعيينه تلقائيًا بواسطة bootstrap بناءً على الذاكرة العشوائية المكتشفة، أو يمكنك التجاوز
  db_shared_buffers: "512MB"

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

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

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

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

  ## 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: # محذوف
  DISCOURSE_SMTP_PORT: 25
  #DISCOURSE_SMTP_USER_NAME: foo
  #DISCOURSE_SMTP_PASSWORD: "bar"
  DISCOURSE_SMTP_ENABLE_START_TLS: false           # (اختياري، الافتراضي true)

  ## إذا أضفت قالب 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

  DISCOURSE_LOAD_MINI_PROFILER: false

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


## تذهب الإضافات هنا
## انظر https://meta.discourse.org/t/19157 للتفاصيل
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          #- git clone https://github.com/discourse/discourse-spoiler-alert.git
          #- git clone https://github.com/discourse/discourse-data-explorer.git
          #- git clone https://github.com/discourse/discourse-staff-notes.git
          #- git clone https://github.com/cpradio/discourse-plugin-checklist.git
          #- git clone https://github.com/discourse/discourse-math.git

  before_bundle_exec:
    - exec: ln -s /multisite/multisite.yml $home/config/multisite.yml

  after_bundle_exec:
    - exec: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate

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

سأكون ممتنًا لأي نصيحة مفيدة. شكرًا مقدماً.

تعديل: إنها تثبيت متعدد المواقع.

3 إعجابات

يمكنني دعم هذه المشكلة. عمليات البناء على التثبيتات متعددة المواقع تفشل بنفس الخطأ

يبدو أن المشكلة لا تأتي من إضافة ما، ويجب أن تكون قد حدثت خلال الـ 24 ساعة الماضية تقريبًا

3 إعجابات

شكرًا على التقارير! نحن على علم بالمشكلة وأنا أبحث فيها الآن - على الأرجح سيكون لدينا حل خلال الساعة القادمة.

5 إعجابات

*خلال دقيقتين بعد الساعة :wink:

يجب أن تكون المشكلة قد تم إصلاحها الآن في tests-passed. يرجى محاولة إعادة البناء مرة أخرى @iKoze

8 إعجابات

يمكنني تأكيد أن الأمر يعمل الآن. شكرًا لك!

إعجابَين (2)