こんにちは
コマンドラインから Discourse をアップグレードしようとしているのですが、再構築(Rebuild)が失敗しています。launcher start app でサイトを復旧させましたが、今問題の原因を特定する必要があります。
app.yml にいくつかのプラグイン(discourse-solved と discourse-github)を追加したばかりなので、それが原因かもしれません… しかし、これらは標準的なプラグインなので…
これが関連するエラーのようです:
I, [2020-02-04T11:59:19.741293 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Gem::MissingSpecError: Could not find 'addressable' (>= 2.3.5) among 254 total gem(s)
Checked in 'GEM_PATH=/var/www/discourse/vendor/bundle/ruby/2.6.0', execute `gem env` for more information
/var/www/discourse/lib/plugin_gem.rb:20:in `load'
/var/www/discourse/lib/plugin/instance.rb:570:in `gem'
/var/www/discourse/plugins/discourse-github/plugin.rb:9:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:496:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:496:in `activate!'
lib/discourse.rb:172:in `block in activate_plugins!'
lib/discourse.rb:169:in `each'
lib/discourse.rb:169:in `activate_plugins!'
/var/www/discourse/config/application.rb:261:in `<class:Application>'
/var/www/discourse/config/application.rb:58:in `<module:Discourse>'
/var/www/discourse/config/application.rb:57:in `<top (required)>'
/var/www/discourse/Rakefile:7:in `require'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
(--trace オプションを実行して完全なトレースを表示してください)
「git pull」を除く、私の完全な再構築ログ
root@discourse:/docker-app/discourse# ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up to date.
I, [2020-02-04T11:56:09.204750 #1] INFO -- : Loading --stdin
I, [2020-02-04T11:56:09.211557 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2020-02-04T11:56:09.250932 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2020-02-04T11:56:09.251275 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2020-02-04T11:56:09.257720 #1] INFO -- :
I, [2020-02-04T11:56:09.258997 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2020-02-04T11:56:09.262817 #1] INFO -- :
I, [2020-02-04T11:56:09.263417 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2020-02-04T11:56:09.266405 #1] INFO -- :
I, [2020-02-04T11:56:09.266883 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2020-02-04T11:56:09.269595 #1] INFO -- :
I, [2020-02-04T11:56:09.270088 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2020-02-04T11:56:09.272944 #1] INFO -- :
I, [2020-02-04T11:56:09.273461 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2020/02/04 11:56:09 socat[26] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2020-02-04T11:56:09.284561 #1] INFO -- :
I, [2020-02-04T11:56:09.285078 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2020-02-04T11:56:09.289363 #1] INFO -- :
I, [2020-02-04T11:56:09.289783 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2020-02-04T11:56:09.293578 #1] INFO -- :
I, [2020-02-04T11:56:09.294025 #1] INFO -- : > mkdir -p /shared/postgres_run/10-main.pg_stat_tmp
I, [2020-02-04T11:56:09.297494 #1] INFO -- :
I, [2020-02-04T11:56:09.298033 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/10-main.pg_stat_tmp
I, [2020-02-04T11:56:09.301909 #1] INFO -- :
I, [2020-02-04T11:56:09.308737 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2020-02-04T11:56:09.315669 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2020-02-04T11:56:09.322199 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2020-02-04T11:56:09.327902 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2020-02-04T11:56:09.328472 #1] INFO -- : > chown -R root /var/lib/postgresql/10/main
I, [2020-02-04T11:56:10.386858 #1] INFO -- :
I, [2020-02-04T11:56:10.387601 #1] INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/10/bin/initdb -D /shared/postgres_data || exit 0
I, [2020-02-04T11:56:10.390625 #1] INFO -- :
I, [2020-02-04T11:56:10.390984 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2020-02-04T11:56:10.406223 #1] INFO -- :
I, [2020-02-04T11:56:10.406943 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2020-02-04T11:56:10.410440 #1] INFO -- :
I, [2020-02-04T11:56:10.410981 #1] INFO -- : > /root/upgrade_postgres
I, [2020-02-04T11:56:10.416851 #1] INFO -- :
I, [2020-02-04T11:56:10.417396 #1] INFO -- : > rm /root/upgrade_postgres
I, [2020-02-04T11:56:10.420105 #1] INFO -- :
I, [2020-02-04T11:56:10.421103 #1] INFO -- : Replacing data_directory = '/var/lib/postgresql/10/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.421807 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.422328 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.422886 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.423392 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.423904 #1] INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.424380 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2020-02-04T11:56:10.428794 #1] INFO -- :
I, [2020-02-04T11:56:10.429639 #1] INFO -- : Replacing (?-mix:#?max_wal_senders *=.*) with max_wal_senders = $db_max_wal_senders in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.430301 #1] INFO -- : Replacing (?-mix:#?wal_level *=.*) with wal_level = $db_wal_level in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.430930 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.431444 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.432021 #1] INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/10/main/postgresql.conf
I, [2020-02-04T11:56:10.432711 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/10/main/pg_hba.conf
I, [2020-02-04T11:56:10.433196 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/10/main/pg_hba.conf
I, [2020-02-04T11:56:10.433619 #1] INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main
I, [2020-02-04T11:56:10.436661 #1] INFO -- : > sleep 5
2020-02-04 11:56:10.473 UTC [49] LOG: listening on IPv4 address "0.0.0.0", port 5432
2020-02-04 11:56:10.473 UTC [49] LOG: listening on IPv6 address "::", port 5432
2020-02-04 11:56:10.474 UTC [49] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-02-04 11:56:10.499 UTC [52] LOG: database system was shut down at 2020-02-04 11:55:54 UTC
2020-02-04 11:56:10.505 UTC [49] LOG: database system is ready to accept connections
I, [2020-02-04T11:56:15.440013 #1] INFO -- :
I, [2020-02-04T11:56:15.440576 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2020-02-04 11:56:15.516 UTC [62] postgres@postgres ERROR: database "discourse" already exists
2020-02-04 11:56:15.516 UTC [62] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: database creation failed: ERROR: database "discourse" already exists
I, [2020-02-04T11:56:15.519001 #1] INFO -- :
I, [2020-02-04T11:56:15.519438 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2020-02-04 11:56:15.593 UTC [73] postgres@discourse ERROR: role "discourse" already exists
2020-02-04 11:56:15.593 UTC [73] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2020-02-04T11:56:15.596667 #1] INFO -- :
I, [2020-02-04T11:56:15.597220 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2020-02-04T11:56:15.675380 #1] INFO -- : GRANT
I, [2020-02-04T11:56:15.675920 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2020-02-04T11:56:15.750300 #1] INFO -- : ALTER SCHEMA
I, [2020-02-04T11:56:15.750863 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2020-02-04T11:56:15.829899 #1] INFO -- : CREATE EXTENSION
I, [2020-02-04T11:56:15.830367 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2020-02-04T11:56:15.901531 #1] INFO -- : CREATE EXTENSION
I, [2020-02-04T11:56:15.902073 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2020-02-04T11:56:15.975008 #1] INFO -- : CREATE EXTENSION
I, [2020-02-04T11:56:15.975494 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2020-02-04T11:56:16.045642 #1] INFO -- : CREATE EXTENSION
I, [2020-02-04T11:56:16.046150 #1] INFO -- : > sudo -u postgres psql discourse
I, [2020-02-04T11:56:16.049178 #1] INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');
I, [2020-02-04T11:56:16.143460 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2020-02-04T11:56:16.147042 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2020-02-04T11:56:16.147206 #1] INFO -- : > echo postgres installed!
I, [2020-02-04T11:56:16.149700 #1] INFO -- : postgres installed!
I, [2020-02-04T11:56:16.155601 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2020-02-04T11:56:16.161508 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2020-02-04T11:56:16.167178 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2020-02-04T11:56:16.168187 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf
I, [2020-02-04T11:56:16.168958 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf
I, [2020-02-04T11:56:16.169595 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2020-02-04T11:56:16.173742 #1] INFO -- :
I, [2020-02-04T11:56:16.174695 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2020-02-04T11:56:16.175612 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf
I, [2020-02-04T11:56:16.176359 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2020-02-04T11:56:16.177066 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2020-02-04T11:56:16.177612 #1] INFO -- : > echo redis installed
I, [2020-02-04T11:56:16.180803 #1] INFO -- : redis installed
I, [2020-02-04T11:56:16.181293 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2020-02-04T11:56:16.186899 #1] INFO -- : logfile ""
I, [2020-02-04T11:56:16.187630 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2020-02-04T11:56:16.191295 #1] INFO -- : > sleep 10
166:C 04 Feb 2020 11:56:16.199 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
166:C 04 Feb 2020 11:56:16.199 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=166, just started
166:C 04 Feb 2020 11:56:16.199 # Configuration loaded
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.5 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) スタンアローンモードで実行中
|`-._`-...-` __...-.``-._|'` _.-'| ポート: 6379
| `-._ `._ / _.-' | PID: 166
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
166:M 04 Feb 2020 11:56:16.203 # WARNING: /proc/sys/net/core/somaxconn がより低い値 128 に設定されているため、TCP backlog の設定 511 を適用できません。
166:M 04 Feb 2020 11:56:16.203 # サーバー初期化完了
166:M 04 Feb 2020 11:56:16.203 # WARNING overcommit_memory が 0 に設定されています!メモリ不足の条件下ではバックグラウンド保存が失敗する可能性があります。この問題を修正するには、/etc/sysctl.conf に 'vm.overcommit_memory = 1' を追加し、その後再起動するか、'sysctl vm.overcommit_memory=1' コマンドを実行して変更を反映させてください。
166:M 04 Feb 2020 11:56:16.204 # WARNING カーネルで Transparent Huge Pages (THP) サポートが有効になっています。これにより、Redis でレイテンシーとメモリ使用量の問題が発生します。この問題を修正するには、root で 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' コマンドを実行し、再起動後も設定を保持するために /etc/rc.local に追加してください。THP を無効化した後、Redis を再起動する必要があります。
166:M 04 Feb 2020 11:56:16.304 * ディスクから DB を読み込みました: 0.101 秒
166:M 04 Feb 2020 11:56:16.304 * 接続の受け入れ準備完了
I, [2020-02-04T11:56:26.195411 #1] INFO -- :
I, [2020-02-04T11:56:26.196123 #1] INFO -- : > thpoff echo "thpoff がインストールされています!"
I, [2020-02-04T11:56:26.203019 #1] INFO -- : thpoff がインストールされています!
I, [2020-02-04T11:56:26.203746 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "中止します!メールが設定されていません!"; exit 1; end'
I, [2020-02-04T11:56:26.311422 #1] INFO -- :
I, [2020-02-04T11:56:26.311926 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "中止します!ドメインが設定されていません!"; exit 1; end'
I, [2020-02-04T11:56:26.399607 #1] INFO -- :
I, [2020-02-04T11:56:26.399929 #1] INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "中止します!CDNにはプロトコルを指定する必要があります。修正後、すべての投稿を正しくするために今すぐ投稿を再ベイクしてください。"; exit 1; end'
I, [2020-02-04T11:56:26.487389 #1] INFO -- :
I, [2020-02-04T11:56:26.487949 #1] INFO -- : > chown -R discourse /home/discourse
I, [2020-02-04T11:56:27.041253 #1] INFO -- :
I, [2020-02-04T11:56:27.042015 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2020-02-04T11:56:27.045439 #1] INFO -- :
I, [2020-02-04T11:56:27.048814 #1] INFO -- : ファイル > /etc/cron.d/anacron chmod: chown:
I, [2020-02-04T11:56:27.054281 #1] INFO -- : ファイル > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2020-02-04T11:56:27.059958 #1] INFO -- : ファイル > /etc/service/unicorn/run chmod: +x chown:
I, [2020-02-04T11:56:27.065814 #1] INFO -- : ファイル > /etc/service/nginx/run chmod: +x chown:
I, [2020-02-04T11:56:27.071417 #1] INFO -- : ファイル > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2020-02-04T11:56:27.076944 #1] INFO -- : ファイル > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2020-02-04T11:56:27.077169 #1] INFO -- : /etc/service/unicorn/run の # postgres を sv start postgres || exit 1 に置換
I, [2020-02-04T11:56:27.077593 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2020-02-04T11:56:27.079941 #1] INFO -- : > cd /var/www/discourse && git reset --hard
193:C 04 Feb 2020 11:56:27.085 # oO0OoO0OoO0Oo Redis が起動しています oO0OoO0OoO0Oo
193:C 04 Feb 2020 11:56:27.085 # Redis バージョン=5.0.5, ビット=64, コミット=00000000, 変更=0, pid=193, 直近起動
193:C 04 Feb 2020 11:56:27.085 # 設定を読み込みました
193:M 04 Feb 2020 11:56:27.087 # サーバー TCP リッスンソケット *:6379 の作成に失敗しました: bind: アドレスは既に使用されています
チェックアウト中のファイル: 100% (27788/27788), 完了。
I, [2020-02-04T11:56:30.008317 #1] INFO -- : HEAD は現在 fdea0a0838 fix icon test にあります
I, [2020-02-04T11:56:30.008465 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2020-02-04T11:56:30.127357 #1] INFO -- :
I, [2020-02-04T11:56:30.127508 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin master
I, [2020-02-04T11:56:30.133659 #1] INFO -- :
I, [2020-02-04T11:56:30.133786 #1] INFO -- : > cd /var/www/discourse && git pull
(git pull メッセージは削除されました、エラーはありません)
I, [2020-02-04T11:56:34.806846 #1] INFO -- : > cd /var/www/discourse && git fetch origin stable
https://github.com/discourse/discourse から
* ブランチ stable -> FETCH_HEAD
I, [2020-02-04T11:56:35.748932 #1] INFO -- :
I, [2020-02-04T11:56:35.749328 #1] INFO -- : > cd /var/www/discourse && git checkout stable
新しいブランチ 'stable' に切り替えました
I, [2020-02-04T11:56:37.144345 #1] INFO -- : ブランチ 'stable' は 'origin' のリモートブランチ 'stable' を追跡するように設定されました。
I, [2020-02-04T11:56:37.144680 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2020-02-04T11:56:37.149410 #1] INFO -- :
I, [2020-02-04T11:56:37.149640 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2020-02-04T11:56:37.153453 #1] INFO -- :
I, [2020-02-04T11:56:37.153993 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2020-02-04T11:56:37.158167 #1] INFO -- :
I, [2020-02-04T11:56:37.158716 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2020-02-04T11:56:37.162724 #1] INFO -- :
I, [2020-02-04T11:56:37.163178 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2020-02-04T11:56:37.168855 #1] INFO -- :
I, [2020-02-04T11:56:37.169432 #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, [2020-02-04T11:56:37.175860 #1] INFO -- :
I, [2020-02-04T11:56:37.176413 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2020-02-04T11:56:37.183530 #1] INFO -- :
I, [2020-02-04T11:56:37.184131 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2020-02-04T11:56:37.190033 #1] INFO -- :
I, [2020-02-04T11:56:37.190566 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2020-02-04T11:56:37.197105 #1] INFO -- :
I, [2020-02-04T11:56:37.197700 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2020-02-04T11:56:37.204715 #1] INFO -- :
I, [2020-02-04T11:56:37.205308 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2020-02-04T11:56:37.318366 #1] INFO -- :
I, [2020-02-04T11:56:37.318883 #1] INFO -- : /etc/service/unicorn/run の # redis を sv start redis || exit 1 に置換
I, [2020-02-04T11:56:37.319639 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
'docker_manager' にクローン中...
I, [2020-02-04T11:56:38.988391 #1] INFO -- :
I, [2020-02-04T11:56:38.988786 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/communiteq/discourse-migratepassword.git
'discourse-migratepassword' にクローン中...
I, [2020-02-04T11:56:39.904867 #1] INFO -- :
I, [2020-02-04T11:56:39.905305 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
'discourse-solved' にクローン中...
I, [2020-02-04T11:56:41.120700 #1] INFO -- :
I, [2020-02-04T11:56:41.121114 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-github.git
'discourse-github' にクローン中...
I, [2020-02-04T11:56:42.126043 #1] INFO -- :
I, [2020-02-04T11:56:42.126368 #1] INFO -- : > cd /var/www/discourse/plugins && apt update; apt install tmux nano wget inetutils-ping libsqlite3-dev default-libmysqlclient-dev -y
WARNING: apt は安定した CLI インターフェースを持っていません。スクリプトでは注意して使用してください。
WARNING: apt は安定した CLI インターフェースを持っていません。スクリプトでは注意して使用してください。
debconf: apt-utils がインストールされていないため、パッケージ構成を延期しています
I, [2020-02-04T11:56:48.848378 #1] INFO -- : Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 https://deb.nodesource.com/node_10.x buster InRelease [4,584 B]
Hit:3 http://deb.debian.org/debian buster InRelease
Get:4 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [175 kB]
Get:6 http://apt.postgresql.org/pub/repos/apt buster-pgdg InRelease [46.2 kB]
Get:7 https://deb.nodesource.com/node_10.x buster/main amd64 Packages [766 B]
Get:8 http://apt.postgresql.org/pub/repos/apt buster-pgdg/main amd64 Packages [156 kB]
498 kB を 1秒で取得しました (468 kB/s)
パッケージリストを読み込んでいます...
dependency ツリーを構築しています...
状態情報を読み込んでいます...
10 パッケージがアップグレード可能です。'apt list --upgradable' を実行してそれらを表示してください。
パッケージリストを読み込んでいます...
dependency ツリーを構築しています...
状態情報を読み込んでいます...
wget はすでに最新バージョン (1.20.1-1.1) です。
以下の追加パッケージがインストールされます:
libgmp-dev libgmpxx4ldbl libgnutls-openssl27 libgnutls28-dev libgnutlsxx28
libidn2-0 libidn2-dev libmariadb-dev libmariadb-dev-compat libp11-kit-dev
libtasn1-6-dev libtasn1-doc libutempter0 nettle-dev
推奨パッケージ:
gmp-doc libgmp10-doc libmpfr-dev gnutls-bin gnutls-doc sqlite3-doc spell
以下の新しいパッケージがインストールされます:
default-libmysqlclient-dev inetutils-ping libgmp-dev libgmpxx4ldbl
libgnutls-openssl27 libgnutls28-dev libgnutlsxx28 libidn2-dev libmariadb-dev
libmariadb-dev-compat libp11-kit-dev libsqlite3-dev libtasn1-6-dev
libtasn1-doc libutempter0 nano nettle-dev tmux
以下のパッケージがアップグレードされます:
libidn2-0
1 アップグレード、18 新規インストール、0 削除、9 アップグレード不可。
6,826 kB のアーカイブを取得する必要があります。
この操作後、追加で 22.5 MB のディスク容量が使用されます。
Get:1 http://deb.debian.org/debian buster/main amd64 nano amd64 3.2-3 [544 kB]
Get:2 http://security.debian.org/debian-security buster/updates/main amd64 libidn2-0 amd64 2.0.5-1+deb10u1 [76.7 kB]
Get:3 http://security.debian.org/debian-security buster/updates/main amd64 libidn2-dev amd64 2.0.5-1+deb10u1 [79.5 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 libgnutls-openssl27 amd64 3.6.7-4 [316 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 libgnutlsxx28 amd64 3.6.7-4 [14.6 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 libp11-kit-dev amd64 0.23.15-2 [195 kB]
Get:7 http://deb.debian.org/debian buster/main amd64 libtasn1-6-dev amd64 4.13-3 [104 kB]
Get:8 http://deb.debian.org/debian buster/main amd64 libgmpxx4ldbl amd64 2:6.1.2+dfsg-4 [22.9 kB]
Get:9 http://deb.debian.org/debian buster/main amd64 libgmp-dev amd64 2:6.1.2+dfsg-4 [628 kB]
Get:10 http://deb.debian.org/debian buster/main amd64 nettle-dev amd64 3.4.1-1 [1,076 kB]
Get:11 http://deb.debian.org/debian buster/main amd64 libgnutls28-dev amd64 3.6.7-4 [1,086 kB]
Get:12 http://deb.debian.org/debian buster/main amd64 libmariadb-dev amd64 1:10.3.18-0+deb10u1 [1,009 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 libmariadb-dev-compat amd64 1:10.3.18-0+deb10u1 [30.9 kB]
Get:14 http://deb.debian.org/debian buster/main amd64 default-libmysqlclient-dev amd64 1.0.5 [3,764 B]
Get:15 http://deb.debian.org/debian buster/main amd64 inetutils-ping amd64 2:1.9.4-7 [226 kB]
Get:16 http://deb.debian.org/debian buster/main amd64 libsqlite3-dev amd64 3.27.2-3 [787 kB]
Get:17 http://deb.debian.org/debian buster/main amd64 libtasn1-doc all 4.13-3 [317 kB]
Get:18 http://deb.debian.org/debian buster/main amd64 libutempter0 amd64 1.1.6-3 [7,812 B]
Get:19 http://deb.debian.org/debian buster/main amd64 tmux amd64 2.8-3 [302 kB]
6,826 kB を 0秒で取得しました (52.3 MB/s)
(データベースを読み込んでいます ... 現在 44562 個のファイルとディレクトリがインストールされています。)
.../libidn2-0_2.0.5-1+deb10u1_amd64.deb の展開準備中 ...
libidn2-0:amd64 (2.0.5-1+deb10u1) を (2.0.5-1) の上書き展開しています ...
libidn2-0:amd64 (2.0.5-1+deb10u1) を設定しています ...
nano パッケージを選択しました。
(データベースを読み込んでいます ... 現在 44562 個のファイルとディレクトリがインストールされています。)
.../00-nano_3.2-3_amd64.deb の展開準備中 ...
nano (3.2-3) を展開しています ...
libgnutls-openssl27:amd64 パッケージを選択しました。
.../01-libgnutls-openssl27_3.6.7-4_amd64.deb の展開準備中 ...
libgnutls-openssl27:amd64 (3.6.7-4) を展開しています ...
libgnutlsxx28:amd64 パッケージを選択しました。
.../02-libgnutlsxx28_3.6.7-4_amd64.deb の展開準備中 ...
libgnutlsxx28:amd64 (3.6.7-4) を展開しています ...
libidn2-dev:amd64 パッケージを選択しました。
.../03-libidn2-dev_2.0.5-1+deb10u1_amd64.deb の展開準備中 ...
libidn2-dev:amd64 (2.0.5-1+deb10u1) を展開しています ...
libp11-kit-dev:amd64 パッケージを選択しました。
.../04-libp11-kit-dev_0.23.15-2_amd64.deb の展開準備中 ...
libp11-kit-dev:amd64 (0.23.15-2) を展開しています ...
libtasn1-6-dev:amd64 パッケージを選択しました。
.../05-libtasn1-6-dev_4.13-3_amd64.deb の展開準備中 ...
libtasn1-6-dev:amd64 (4.13-3) を展開しています ...
libgmpxx4ldbl:amd64 パッケージを選択しました。
.../06-libgmpxx4ldbl_2%3a6.1.2+dfsg-4_amd64.deb の展開準備中 ...
libgmpxx4ldbl:amd64 (2:6.1.2+dfsg-4) を展開しています ...
libgmp-dev:amd64 パッケージを選択しました。
.../07-libgmp-dev_2%3a6.1.2+dfsg-4_amd64.deb の展開準備中 ...
libgmp-dev:amd64 (2:6.1.2+dfsg-4) を展開しています ...
nettle-dev:amd64 パッケージを選択しました。
.../08-nettle-dev_3.4.1-1_amd64.deb の展開準備中 ...
nettle-dev:amd64 (3.4.1-1) を展開しています ...
libgnutls28-dev:amd64 パッケージを選択しました。
.../09-libgnutls28-dev_3.6.7-4_amd64.deb の展開準備中 ...
libgnutls28-dev:amd64 (3.6.7-4) を展開しています ...
libmariadb-dev パッケージを選択しました。
.../10-libmariadb-dev_1%3a10.3.18-0+deb10u1_amd64.deb の展開準備中 ...
libmariadb-dev (1:10.3.18-0+deb10u1) を展開しています ...
libmariadb-dev-compat:amd64 パッケージを選択しました。
.../11-libmariadb-dev-compat_1%3a10.3.18-0+deb10u1_amd64.deb の展開準備中 ...
libmariadb-dev-compat:amd64 (1:10.3.18-0+deb10u1) を展開しています ...
default-libmysqlclient-dev:amd64 パッケージを選択しました。
.../12-default-libmysqlclient-dev_1.0.5_amd64.deb の展開準備中 ...
default-libmysqlclient-dev:amd64 (1.0.5) を展開しています ...
inetutils-ping パッケージを選択しました。
.../13-inetutils-ping_2%3a1.9.4-7_amd64.deb の展開準備中 ...
inetutils-ping (2:1.9.4-7) を展開しています ...
libsqlite3-dev:amd64 パッケージを選択しました。
.../14-libsqlite3-dev_3.27.2-3_amd64.deb の展開準備中 ...
libsqlite3-dev:amd64 (3.27.2-3) を展開しています ...
libtasn1-doc パッケージを選択しました。
.../15-libtasn1-doc_4.13-3_all.deb の展開準備中 ...
libtasn1-doc (4.13-3) を展開しています ...
libutempter0:amd64 パッケージを選択しました。
.../16-libutempter0_1.1.6-3_amd64.deb の展開準備中 ...
libutempter0:amd64 (1.1.6-3) を展開しています ...
tmux パッケージを選択しました。
.../17-tmux_2.8-3_amd64.deb の展開準備中 ...
tmux (2.8-3) を展開しています ...
libgnutls-openssl27:amd64 (3.6.7-4) を設定しています ...
libtasn1-doc (4.13-3) を設定しています ...
libgmpxx4ldbl:amd64 (2:6.1.2+dfsg-4) を設定しています ...
libsqlite3-dev:amd64 (3.27.2-3) を設定しています ...
libgnutlsxx28:amd64 (3.6.7-4) を設定しています ...
libidn2-dev:amd64 (2.0.5-1+deb10u1) を設定しています ...
inetutils-ping (2:1.9.4-7) を設定しています ...
libutempter0:amd64 (1.1.6-3) を設定しています ...
nano (3.2-3) を設定しています ...
update-alternatives: /usr/bin/editor (editor) を auto モードで /bin/nano が提供するように設定しました
update-alternatives: warning: link group editor の関連ファイル /usr/share/man/man1/nano.1.gz が存在しないため、/usr/share/man/man1/editor.1.gz の作成をスキップします
update-alternatives: /usr/bin/pico (pico) を auto モードで /bin/nano が提供するように設定しました
update-alternatives: warning: link group pico の関連ファイル /usr/share/man/man1/nano.1.gz が存在しないため、/usr/share/man/man1/pico.1.gz の作成をスキップします
libtasn1-6-dev:amd64 (4.13-3) を設定しています ...
tmux (2.8-3) を設定しています ...
libp11-kit-dev:amd64 (0.23.15-2) を設定しています ...
libgmp-dev:amd64 (2:6.1.2+dfsg-4) を設定しています ...
nettle-dev:amd64 (3.4.1-1) を設定しています ...
libgnutls28-dev:amd64 (3.6.7-4) を設定しています ...
libmariadb-dev (1:10.3.18-0+deb10u1) を設定しています ...
libmariadb-dev-compat:amd64 (1:10.3.18-0+deb10u1) を設定しています ...
default-libmysqlclient-dev:amd64 (1.0.5) を設定しています ...
libc-bin (2.28-10) のトリガーを処理しています ...
I, [2020-02-04T11:56:48.848536 #1] INFO -- : > cd /var/www/discourse/plugins && gem install mysql2
I, [2020-02-04T11:56:57.200772 #1] INFO -- : ネイティブ拡張をビルドしています。これには時間がかかる場合があります...
mysql2-0.5.3 のインストールに成功しました
1 gem がインストールされました
I, [2020-02-04T11:56:57.201244 #1] INFO -- : > cd /var/www/discourse/plugins && gem install bcrypt -v 3.1.3 -i /var/www/discourse/plugins/discourse-migratepassword/gems/2.5.1 --no-document --ignore-dependencies
I, [2020-02-04T11:56:59.647304 #1] INFO -- : ネイティブ拡張をビルドしています。これには時間がかかる場合があります...
bcrypt-3.1.3 のインストールに成功しました
1 gem がインストールされました
I, [2020-02-04T11:56:59.647828 #1] INFO -- : > cd /var/www/discourse/plugins && gem install unix-crypt -v 1.3.0 -i /var/www/discourse/plugins/discourse-migratepassword/gems/2.5.1 --no-document --ignore-dependencies
I, [2020-02-04T11:57:00.200614 #1] INFO -- : unix-crypt-1.3.0 のインストールに成功しました
1 gem がインストールされました
I, [2020-02-04T11:57:00.201052 #1] INFO -- : > cd /var/www/discourse/plugins && chown -R discourse /var/www/discourse/plugins/discourse-migratepassword/
I, [2020-02-04T11:57:00.207435 #1] INFO -- :
I, [2020-02-04T11:57:00.207997 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2020-02-04T11:57:00.211915 #1] INFO -- :
I, [2020-02-04T11:57:00.212462 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2020-02-04T11:57:00.215375 #1] INFO -- :
I, [2020-02-04T11:57:00.215913 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2020-02-04T11:57:00.218933 #1] INFO -- :
I, [2020-02-04T11:57:00.219467 #1] INFO -- : /etc/nginx/nginx.conf の pid /run/nginx.pid; を daemon off; に置換
I, [2020-02-04T11:57:00.220049 #1] INFO -- : /etc/nginx/conf.d/discourse.conf の (?m-ix:upstream[^\}]+\}) を upstream discourse { server 127.0.0.1:3000; } に置換
I, [2020-02-04T11:57:00.220533 #1] INFO -- : /etc/nginx/conf.d/discourse.conf の (?-mix:server_name.+$) を server_name _ ; に置換
I, [2020-02-04T11:57:00.220985 #1] INFO -- : /etc/nginx/conf.d/discourse.conf の (?-mix:client_max_body_size.+$) を client_max_body_size $upload_size ; に置換
I, [2020-02-04T11:57:00.221414 #1] INFO -- : > echo "done configuring web"
I, [2020-02-04T11:57:00.224163 #1] INFO -- : done configuring web
I, [2020-02-04T11:57:00.224805 #1] INFO -- : > cd /var/www/discourse && gem update bundler
I, [2020-02-04T11:57:06.519077 #1] INFO -- : インストール済みの gem を更新しています
bundler を更新中
bundler-2.1.4 のインストールに成功しました
更新された gem: bundler
アップデート中にエラーが発生しました
```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
修正にご協力ください。私のアップデートにエラーが発生しました
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
修正にご協力ください。
We’re so glad you’re here! Want to run your own Minecraft server? Just click the Get Started button below — it’s easy.
He proposed a so-called clean architecture for the new service. But clean doesn’t always mean simple.
2: i18n (1.6.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/i18n-1.6.0.gemspec
Using mail 2.7.1
2: mail (2.7.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/mail-2.7.1.gemspec
Using aws-sigv4 1.1.0
2: aws-sigv4 (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/aws-sigv4-1.1.0.gemspec
Using barber 0.12.2
2: barber (0.12.2) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/barber-0.12.2.gemspec
Using ember-data-source 3.0.2
2: ember-data-source (3.0.2) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/ember-data-source-3.0.2.gemspec
Fetching uglifier 4.1.20
Fetching nokogiri 1.10.3
0: stackprof (0.2.12) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/stackprof-0.2.12.gemspec
Fetching rqrcode 0.10.1
Installing rqrcode 0.10.1
Installing uglifier 4.1.20
2: uglifier (4.1.20) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/uglifier-4.1.20.gemspec
Using rack-test 1.1.0
2: rack-test (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rack-test-1.1.0.gemspec
Using sprockets 3.7.2
2: sprockets (3.7.2) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/sprockets-3.7.2.gemspec
Using request_store 1.4.1
2: request_store (1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/request_store-1.4.1.gemspec
Fetching message_bus 2.2.0
0: rqrcode (0.10.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rqrcode-0.10.1.gemspec
Fetching rack-protection 2.0.5
Installing rack-protection 2.0.5
0: rack-protection (2.0.5) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rack-protection-2.0.5.gemspec
Using rack-mini-profiler 1.1.4
0: rack-mini-profiler (1.1.4) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rack-mini-profiler-1.1.4.gemspec
Fetching bootsnap 1.4.4
Installing bootsnap 1.4.4 with native extensions
Installing message_bus 2.2.0
Building native extensions. This could take a while…
Installing nokogiri 1.10.3 with native extensions
2: message_bus (2.2.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/message_bus-2.2.0.gemspec
Using pry 0.12.2
2: pry (0.12.2) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/pry-0.12.2.gemspec
Using discourse_image_optim 0.26.2
2: discourse_image_optim (0.26.2) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/discourse_image_optim-0.26.2.gemspec
Building native extensions. This could take a while…
Fetching faraday 0.15.4
0: bootsnap (1.4.4) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/bootsnap-1.4.4.gemspec
Using fast_xor 1.1.3
0: fast_xor (1.1.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/fast_xor-1.1.3.gemspec
Using omniauth 1.9.0
0: omniauth (1.9.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-1.9.0.gemspec
Installing faraday 0.15.4
2: faraday (0.15.4) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/faraday-0.15.4.gemspec
Using logstash-logger 0.26.1
2: logstash-logger (0.26.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/logstash-logger-0.26.1.gemspec
Fetching mini_racer 0.2.6
Fetching webpush 0.3.8
1: nokogiri (1.10.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/nokogiri-1.10.3.gemspec
Using mini_suffix 0.3.0
1: mini_suffix (0.3.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/mini_suffix-0.3.0.gemspec
Using sassc 2.0.1
1: sassc (2.0.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/sassc-2.0.1.gemspec
Fetching redis-namespace 1.6.0
Installing mini_racer 0.2.6 with native extensions
Installing webpush 0.3.8
Installing redis-namespace 1.6.0
Building native extensions. This could take a while…
0: webpush (0.3.8) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/webpush-0.3.8.gemspec
Using rbtrace 0.4.11
0: rbtrace (0.4.11) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rbtrace-0.4.11.gemspec
Using rack-openid 1.3.1
0: rack-openid (1.3.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rack-openid-1.3.1.gemspec
Using openid-redis-store 0.0.2
0: openid-redis-store (0.0.2) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/openid-redis-store-0.0.2.gemspec
Using unicorn 5.5.1
0: unicorn (5.5.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/unicorn-5.5.1.gemspec
Using unf 0.1.4
0: unf (0.1.4) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/unf-0.1.4.gemspec
1: redis-namespace (1.6.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/redis-namespace-1.6.0.gemspec
Fetching activesupport 5.2.3
Fetching aws-sdk-core 3.48.6
2: mini_racer (0.2.6) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/mini_racer-0.2.6.gemspec
Using ember-handlebars-template 0.8.0
2: ember-handlebars-template (0.8.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/ember-handlebars-template-0.8.0.gemspec
Fetching sidekiq 5.2.7
Installing aws-sdk-core 3.48.6
Installing sidekiq 5.2.7
Installing activesupport 5.2.3
2: sidekiq (5.2.7) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/sidekiq-5.2.7.gemspec
Using pry-rails 0.3.9
2: pry-rails (0.3.9) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/pry-rails-0.3.9.gemspec
Using omniauth-oauth 1.1.0
2: omniauth-oauth (1.1.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-oauth-1.1.0.gemspec
Fetching oauth2 1.4.1
Installing oauth2 1.4.1
1: aws-sdk-core (3.48.6) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/aws-sdk-core-3.48.6.gemspec
Fetching loofah 2.2.3
2: oauth2 (1.4.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/oauth2-1.4.1.gemspec
Fetching nokogumbo 2.0.1
Installing loofah 2.2.3
Installing nokogumbo 2.0.1 with native extensions
Building native extensions. This could take a while…
1: loofah (2.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/loofah-2.2.3.gemspec
Using ruby-readability 0.7.0
1: ruby-readability (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/ruby-readability-0.7.0.gemspec
Using omniauth-openid 1.0.1
1: omniauth-openid (1.0.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-openid-1.0.1.gemspec
0: activesupport (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/activesupport-5.2.3.gemspec
Using omniauth-twitter 1.4.0
0: omniauth-twitter (1.4.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-twitter-1.4.0.gemspec
Fetching mini_scheduler 0.11.0
Fetching aws-sdk-kms 1.17.0
2: nokogumbo (2.0.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/nokogumbo-2.0.1.gemspec
Fetching aws-sdk-sns 1.13.0
Installing mini_scheduler 0.11.0
1: mini_scheduler (0.11.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/mini_scheduler-0.11.0.gemspec
Using omniauth-oauth2 1.6.0
1: omniauth-oauth2 (1.6.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-oauth2-1.6.0.gemspec
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
1: rails-html-sanitizer (1.0.4) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rails-html-sanitizer-1.0.4.gemspec
Using rails-dom-testing 2.0.3
1: rails-dom-testing (2.0.3) from /var/www/discourse/vendor/bundle/ruby/2.6.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.6.0/specifications/globalid-0.4.2.gemspec
Fetching activemodel 5.2.3
Installing activemodel 5.2.3
Installing aws-sdk-sns 1.13.0
Installing aws-sdk-kms 1.17.0
0: aws-sdk-kms (1.17.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/aws-sdk-kms-1.17.0.gemspec
Fetching sanitize 5.0.0
Installing sanitize 5.0.0
2: aws-sdk-sns (1.13.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/aws-sdk-sns-1.13.0.gemspec
Using omniauth-facebook 5.0.0
2: omniauth-facebook (5.0.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-facebook-5.0.0.gemspec
Using omniauth-github 1.3.0
2: omniauth-github (1.3.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-github-1.3.0.gemspec
Fetching omniauth-google-oauth2 0.7.0
Installing omniauth-google-oauth2 0.7.0
1: activemodel (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/activemodel-5.2.3.gemspec
Using omniauth-instagram 1.3.0
1: omniauth-instagram (1.3.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-instagram-1.3.0.gemspec
Fetching actionview 5.2.3
2: omniauth-google-oauth2 (0.7.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/omniauth-google-oauth2-0.7.0.gemspec
Fetching activejob 5.2.3
Installing actionview 5.2.3
Installing activejob 5.2.3
0: sanitize (5.0.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/sanitize-5.0.0.gemspec
Fetching aws-sdk-s3 1.36.1
Installing aws-sdk-s3 1.36.1
2: activejob (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/activejob-5.2.3.gemspec
Using active_model_serializers 0.8.4
2: active_model_serializers (0.8.4) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/active_model_serializers-0.8.4.gemspec
Fetching activerecord 5.2.3
Installing activerecord 5.2.3
1: actionview (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/actionview-5.2.3.gemspec
Fetching onebox 1.8.92
Installing onebox 1.8.92
0: aws-sdk-s3 (1.36.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/aws-sdk-s3-1.36.1.gemspec
Fetching actionpack 5.2.3
Installing actionpack 5.2.3
1: onebox (1.8.92) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/onebox-1.8.92.gemspec
2: activerecord (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/activerecord-5.2.3.gemspec
Using seed-fu 2.3.9
1: seed-fu (2.3.9) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/seed-fu-2.3.9.gemspec
0: actionpack (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/actionpack-5.2.3.gemspec
Fetching railties 5.2.3
Using sprockets-rails 3.2.1
2: sprockets-rails (3.2.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/sprockets-rails-3.2.1.gemspec
Fetching actionmailer 5.2.3
Installing actionmailer 5.2.3
Installing railties 5.2.3
1: actionmailer (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/actionmailer-5.2.3.gemspec
0: railties (5.2.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/railties-5.2.3.gemspec
Using rails_multisite 2.0.7
2: rails_multisite (2.0.7) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/rails_multisite-2.0.7.gemspec
Fetching sassc-rails 2.1.1
Fetching lograge 0.11.0
Fetching jquery-rails 4.3.3
Installing sassc-rails 2.1.1
Installing lograge 0.11.0
1: lograge (0.11.0) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/lograge-0.11.0.gemspec
Installing jquery-rails 4.3.3
2: sassc-rails (2.1.1) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/sassc-rails-2.1.1.gemspec
0: jquery-rails (4.3.3) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/jquery-rails-4.3.3.gemspec
Using ember-rails 0.18.5
1: ember-rails (0.18.5) from /var/www/discourse/vendor/bundle/ruby/2.6.0/specifications/ember-rails-0.18.5.gemspec
Bundle complete! 116 Gemfile dependencies, 152 gems now installed.
Gems in the groups test and development were not installed.
Bundled gems are installed into ./vendor/bundle
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
Please check your Rails app for ‘config.i18n.fallbacks = true’.
If you’re using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
‘config.i18n.fallbacks = [I18n.default_locale]’.
If not, fallbacks will be broken in your app by I18n 1.1.x.
For more info see:
I, [2020-02-04T11:59:19.741293 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’
rake aborted!
Gem::MissingSpecError: Could not find ‘addressable’ (>= 2.3.5) among 254 total gem(s)
Checked in ‘GEM_PATH=/var/www/discourse/vendor/bundle/ruby/2.6.0’, execute gem env for more information
/var/www/discourse/lib/plugin_gem.rb:20:in load' /var/www/discourse/lib/plugin/instance.rb:570:in gem’
/var/www/discourse/plugins/discourse-github/plugin.rb:9:in activate!' /var/www/discourse/lib/plugin/instance.rb:496:in instance_eval’
/var/www/discourse/lib/plugin/instance.rb:496:in activate!' lib/discourse.rb:172:in block in activate_plugins!’
lib/discourse.rb:169:in each' lib/discourse.rb:169:in activate_plugins!’
/var/www/discourse/config/application.rb:261:in <class:Application>' /var/www/discourse/config/application.rb:58:in module:Discourse’
/var/www/discourse/config/application.rb:57:in <top (required)>' /var/www/discourse/Rakefile:7:in require’
/var/www/discourse/Rakefile:7:in <top (required)>' /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in <top (required)>’
/usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in ’
(See full trace by running task with --trace)
I, [2020-02-04T11:59:23.993010 #1] INFO – : gem install sawyer -v 0.8.2 -i /var/www/discourse/plugins/discourse-github/gems/2.6.5 --no-document --ignore-dependencies --no-user-install
Successfully installed sawyer-0.8.2
1 gem installed
I, [2020-02-04T11:59:23.993577 #1] INFO – : Terminating async processes
I, [2020-02-04T11:59:23.993648 #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/10/bin/postmaster -D /etc/postgresql/10/main pid: 49
2020-02-04 11:59:23.993 UTC [49] LOG: received fast shutdown request
I, [2020-02-04T11:59:23.993913 #1] INFO – : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 166
166:signal-handler (1580817563) Received SIGTERM scheduling shutdown…
2020-02-04 11:59:23.995 UTC [49] LOG: aborting any active transactions
2020-02-04 11:59:23.999 UTC [49] LOG: worker process: logical replication launcher (PID 58) exited with exit code 1
2020-02-04 11:59:23.999 UTC [53] LOG: shutting down
2020-02-04 11:59:24.013 UTC [49] LOG: database system is shut down
166:M 04 Feb 2020 11:59:24.017 # User requested shutdown…
166:M 04 Feb 2020 11:59:24.017 * Saving the final RDB snapshot before exiting.
166:M 04 Feb 2020 11:59:24.158 * DB saved on disk
166:M 04 Feb 2020 11:59:24.158 # Redis is now ready to exit, bye bye…
FAILED
Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake db:migrate’ failed with return #<Process::Status: pid 18297 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn’
exec failed with the params {“cd”=>“$home”, “hook”=>“db_migrate”, “cmd”=>[“su discourse -c ‘bundle exec rake db:migrate’”]}
3504d432db12bbe88cf973f6b9b7665e95ecd4f7f082b7efa41b0d92751bb3b4
** 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.
root@discourse:/docker-app/discourse#
</details>
And my `app.yml` with a bit of obfuscation:
<details><summary>app.yml</summary>
```yaml
root@discourse:/docker-app/discourse# cat /docker-app/discourse/containers/app.yml
## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed
templates:
- "templates/postgres.template.yml"
- "templates/redis.template.yml"
- "templates/web.template.yml"
- "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
#- "templates/web.ssl.template.yml"
#- "templates/web.letsencrypt.ssl.template.yml"
## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:
- "8080:80" # http
- "4434:443" # https
params:
db_default_text_search_config: "pg_catalog.english"
## Set db_shared_buffers to a max of 25% of the total memory.
## will be set automatically by bootstrap based on detected RAM, or you can override
db_shared_buffers: "256MB"
## can improve sorting performance, but adds memory usage per-connection
#db_work_mem: "40MB"
## Which Git revision should this container use? (default: tests-passed)
version: stable
env:
LANG: en_US.UTF-8
# DISCOURSE_DEFAULT_LOCALE: en
## How many concurrent web requests are supported? Depends on memory and CPU cores.
## will be set automatically by bootstrap based on detected CPUs, or you can override
UNICORN_WORKERS: 4
## TODO: The domain name this Discourse instance will respond to
## Required. Discourse will not work with a bare IP number.
DISCOURSE_HOSTNAME: community.suitecrm.com
## Uncomment if you want the container to be started with the same
## hostname (-h option) as specified above (default "$hostname-$config")
#DOCKER_USE_HOSTNAME: true
## TODO: List of comma delimited emails that will be made admin and developer
## on initial signup example 'user1@example.com,user2@example.com'
DISCOURSE_DEVELOPER_EMAILS: 'xxxxx@xxxxxxxxxxxx.com'
## TODO: The SMTP mail server used to validate new accounts and send notifications
# SMTP ADDRESS, username, and password are required
# WARNING the char '#' in SMTP password can cause problems!
(...)
## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
#LETSENCRYPT_ACCOUNT_EMAIL: me@example.com
## The CDN address for this Discourse instance (configured to pull)
## see https://meta.discourse.org/t/14857 for details
#DISCOURSE_CDN_URL: //discourse-cdn.example.com
# added by Pgr Jan/20 to solve rebuild bug, https://meta.discourse.org/t/upgrade-rebuilds-fail-due-to-maxmind-db-eol/137387
DISCOURSE_REFRESH_MAXMIND_DB_DURING_PRECOMPILE_DAYS: 0
## The Docker container is stateless; all data is stored in /shared
volumes:
- volume:
host: /docker-app/standalone
guest: /shared
- volume:
host: /docker-app/standalone/log/var-log
guest: /var/log
## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/communiteq/discourse-migratepassword.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-github.git
- apt update; apt install tmux nano wget inetutils-ping libsqlite3-dev default-libmysqlclient-dev -y
- gem install mysql2
- gem install bcrypt -v 3.1.3 -i /var/www/discourse/plugins/discourse-migratepassword/gems/2.5.1 --no-document --ignore-dependencies
- gem install unix-crypt -v 1.3.0 -i /var/www/discourse/plugins/discourse-migratepassword/gems/2.5.1 --no-document --ignore-dependencies
- chown -R discourse /var/www/discourse/plugins/discourse-migratepassword/
## Any custom commands to run after building
run:
- exec: echo "Beginning of custom commands"
## If you want to set the 'From' email address for your first registration, uncomment and change:
## After getting the first signup email, re-comment the line. It only needs to run once.
#- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
- exec: echo "End of custom commands"
networks:
- app
Can anybody please give some hints on how to go about troubleshooting this? I would prefer not to have too many rebuild attempts, since it brings my community down for a few minutes each time. Thanks