こんにちは、
私の Discourse が突然再構築できなくなりました。3年以上にわたって定期的にアップデートを行っていましたが、これまで問題はありませんでした。しかし、最新のアップデートが失敗してしまいます。セットアップに対して管理上の変更は行っておらず、新しいテーマも導入していません。つまり、前回のアップグレード以来、変更は一切ありません。
エラー:
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 3945 exit 1>
ログ全体:
./launcher rebuild discourse
launcher が最新であることを確認しています
origin を取得中
launcher は最新です
古いコンテナを停止中
+ /usr/bin/docker stop -t 60 discourse
discourse
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
From https://github.com/discourse/pups
17f04ec..e0ff889 master -> origin/master
* [new tag] v1.1.1 -> v1.1.1
* [new tag] v1.1.0 -> v1.1.0
Updating 17f04ec..e0ff889
Fast-forward
.github/workflows/ci.yml | 29 ++++++
.github/workflows/lint.yml | 27 +++++
.rubocop.yml | 3 +
Gemfile | 2 +
Guardfile | 4 +-
README.md | 21 ++++
Rakefile | 14 +--
bin/pups | 8 +-
lib/pups.rb | 32 ++++--
lib/pups/cli.rb | 92 ++++++++++-------
lib/pups/command.rb | 25 +++--
lib/pups/config.rb | 240 +++++++++++++++++++++++--------------------
lib/pups/docker.rb | 69 +++++++++++++
lib/pups/exec_command.rb | 182 ++++++++++++++++----------------
lib/pups/file_command.rb | 60 +++++------
lib/pups/merge_command.rb | 94 ++++++++---------
lib/pups/replace_command.rb | 70 +++++++------
lib/pups/runit.rb | 47 +++++----
lib/pups/version.rb | 4 +-
pups.gemspec | 37 ++++---
test/cli_test.rb | 102 +++++++++++++++---
test/config_test.rb | 215 ++++++++++++++++++++++++++++----------
test/docker_test.rb | 157 ++++++++++++++++++++++++++++
test/exec_command_test.rb | 62 ++++++-----
test/file_command_test.rb | 17 ++-
test/merge_command_test.rb | 64 ++++++------
test/replace_command_test.rb | 86 ++++++++--------
test/test_helper.rb | 2 +
28 files changed, 1158 insertions(+), 607 deletions(-)
create mode 100644 .github/workflows/ci.yml
create mode 100644 .github/workflows/lint.yml
create mode 100644 .rubocop.yml
create mode 100644 lib/pups/docker.rb
create mode 100644 test/docker_test.rb
注: 'v1.0.3' をチェックアウトしています。
「 detached HEAD」状態にあります。この状態では、周囲を調べたり、実験的な変更を加えてコミットしたりできます。また、別のチェックアウトを実行することで、この状態で作成したコミットを破棄し、どのブランチにも影響を与えずに処理できます。
作成したコミットを保持する新しいブランチを作成したい場合は、-b を使用して再度 checkout コマンドを実行することで、これを行うことができます(今でも後でも)。例:
git checkout -b <new-branch-name>
HEAD は現在 d1 にありますdb030 が新しいバージョンを作成しました
I, [2021-08-06T20:55:29.975137 #1] INFO -- : Loading --stdin
I, [2021-08-06T20:55:29.978798 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2021-08-06T20:55:30.008331 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2021-08-06T20:55:30.008485 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2021-08-06T20:55:30.010760 #1] INFO -- :
I, [2021-08-06T20:55:30.010879 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2021-08-06T20:55:30.012708 #1] INFO -- :
I, [2021-08-06T20:55:30.012838 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2021-08-06T20:55:30.014027 #1] INFO -- :
I, [2021-08-06T20:55:30.014118 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2021-08-06T20:55:30.016426 #1] INFO -- :
I, [2021-08-06T20:55:30.016551 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2021-08-06T20:55:30.018251 #1] INFO -- :
I, [2021-08-06T20:55:30.018391 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2021/08/06 20:55:30 socat[34] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2021-08-06T20:55:30.020876 #1] INFO -- :
I, [2021-08-06T20:55:30.020942 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2021-08-06T20:55:30.023429 #1] INFO -- :
I, [2021-08-06T20:55:30.023514 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2021-08-06T20:55:30.025854 #1] INFO -- :
I, [2021-08-06T20:55:30.025923 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-08-06T20:55:30.027727 #1] INFO -- :
I, [2021-08-06T20:55:30.027842 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2021-08-06T20:55:30.029544 #1] INFO -- :
I, [2021-08-06T20:55:30.035415 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2021-08-06T20:55:30.039019 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2021-08-06T20:55:30.042824 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2021-08-06T20:55:30.046287 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2021-08-06T20:55:30.046444 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2021-08-06T20:55:33.132539 #1] INFO -- :
I, [2021-08-06T20:55:33.132680 #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-08-06T20:55:33.134858 #1] INFO -- :
I, [2021-08-06T20:55:33.134929 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2021-08-06T20:55:33.146303 #1] INFO -- :
I, [2021-08-06T20:55:33.146391 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2021-08-06T20:55:33.148096 #1] INFO -- :
I, [2021-08-06T20:55:33.148200 #1] INFO -- : > /root/upgrade_postgres
I, [2021-08-06T20:55:33.151392 #1] INFO -- :
I, [2021-08-06T20:55:33.151469 #1] INFO -- : > rm /root/upgrade_postgres
I, [2021-08-06T20:55:33.152931 #1] INFO -- :
I, [2021-08-06T20:55:33.153090 #1] INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.153445 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.153608 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.153763 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.153911 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.154056 #1] INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.154194 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2021-08-06T20:55:33.155685 #1] INFO -- :
I, [2021-08-06T20:55:33.155839 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.156037 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.156212 #1] INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2021-08-06T20:55:33.156384 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf
I, [2021-08-06T20:55:33.156543 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2021-08-06T20:55:33.156693 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2021-08-06T20:55:33.156821 #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-08-06T20:55:33.157605 #1] INFO -- : > sleep 5
2021-08-06 20:55:33.189 UTC [57] LOG: starting PostgreSQL 13.3 (Debian 13.3-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2021-08-06 20:55:33.189 UTC [57] LOG: listening on IPv4 address "0.0.0.0", port 5432
2021-08-06 20:55:33.189 UTC [57] LOG: listening on IPv6 address "::", port 5432
2021-08-06 20:55:33.197 UTC [57] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2021-08-06 20:55:33.207 UTC [60] LOG: database system was shut down at 2021-08-06 20:54:23 UTC
2021-08-06 20:55:33.220 UTC [57] LOG: database system is ready to accept connections
I, [2021-08-06T20:55:38.159279 #1] INFO -- :
I, [2021-08-06T20:55:38.159499 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2021-08-06 20:55:38.191 UTC [70] postgres@postgres ERROR: database "discourse" already exists
2021-08-06 20:55:38.191 UTC [70] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2021-08-06T20:55:38.192499 #1] INFO -- :
I, [2021-08-06T20:55:38.192655 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2021-08-06 20:55:38.229 UTC [81] postgres@discourse ERROR: role "discourse" already exists
2021-08-06 20:55:38.229 UTC [81] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2021-08-06T20:55:38.230113 #1] INFO -- :
I, [2021-08-06T20:55:38.230240 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2021-08-06T20:55:38.264816 #1] INFO -- : GRANT
I, [2021-08-06T20:55:38.264954 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2021-08-06T20:55:38.300671 #1] INFO -- : ALTER SCHEMA
I, [2021-08-06T20:55:38.300800 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2021-08-06T20:55:38.338165 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.338299 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2021-08-06T20:55:38.373916 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.374048 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2021-08-06T20:55:38.411727 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.411860 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2021-08-06T20:55:38.447989 #1] INFO -- : CREATE EXTENSION
I, [2021-08-06T20:55:38.448182 #1] INFO -- : > sudo -u postgres psql discourse
I, [2021-08-06T20:55:38.450095 #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-08-06T20:55:38.491795 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2021-08-06T20:55:38.493826 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2021-08-06T20:55:38.493898 #1] INFO -- : > echo postgres installed!
I, [2021-08-06T20:55:38.494947 #1] INFO -- : postgres installed!
I, [2021-08-06T20:55:38.498073 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2021-08-06T20:55:38.501701 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2021-08-06T20:55:38.505031 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2021-08-06T20:55:38.505155 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.505503 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.506380 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2021-08-06T20:55:38.508241 #1] INFO -- :
I, [2021-08-06T20:55:38.508462 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.508754 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.508994 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.511494 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.511692 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2021-08-06T20:55:38.511889 #1] INFO -- : > echo redis installed
I, [2021-08-06T20:55:38.513410 #1] INFO -- : redis installed
I, [2021-08-06T20:55:38.513516 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2021-08-06T20:55:38.515983 #1] INFO -- : logfile ""
I, [2021-08-06T20:55:38.516072 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-08-06T20:55:38.518035 #1] INFO -- : > sleep 10
174:C 06 Aug 2021 20:55:38.520 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
174:C 06 Aug 2021 20:55:38.520 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=174, just started
174:C 06 Aug 2021 20:55:38.520 # Configuration loaded
174:M 06 Aug 2021 20:55:38.520 * monotonic clock: POSIX clock_gettime
174:M 06 Aug 2021 20:55:38.521 * Running mode=standalone, port=6379.
174:M 06 Aug 2021 20:55:38.521 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
174:M 06 Aug 2021 20:55:38.521 # Server initialized
174:M 06 Aug 2021 20:55:38.521 # 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.
174:M 06 Aug 2021 20:55:38.521 * Loading RDB produced by version 6.2.3
174:M 06 Aug 2021 20:55:38.521 * RDB age 75 seconds
174:M 06 Aug 2021 20:55:38.521 * RDB memory usage when created 5.00 Mb
174:M 06 Aug 2021 20:55:38.529 * DB loaded from disk: 0.008 seconds
174:M 06 Aug 2021 20:55:38.529 * Ready to accept connections
I, [2021-08-06T20:55:48.519778 #1] INFO -- :
I, [2021-08-06T20:55:48.520057 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2021-08-06T20:55:48.523431 #1] INFO -- : thpoff is installed!
I, [2021-08-06T20:55:48.523576 #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-08-06T20:55:48.573512 #1] INFO -- :
I, [2021-08-06T20:55:48.573664 #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-08-06T20:55:48.625016 #1] INFO -- :
I, [2021-08-06T20:55:48.625183 #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-08-06T20:55:48.673708 #1] INFO -- :
I, [2021-08-06T20:55:48.673858 #1] INFO -- : > chown -R discourse /home/discourse
I, [2021-08-06T20:55:50.187443 #1] INFO -- :
I, [2021-08-06T20:55:50.187715 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2021-08-06T20:55:50.190315 #1] INFO -- :
I, [2021-08-06T20:55:50.192649 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown:
I, [2021-08-06T20:55:50.196279 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2021-08-06T20:55:50.200029 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown:
I, [2021-08-06T20:55:50.203299 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown:
I, [2021-08-06T20:55:50.206916 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2021-08-06T20:55:50.210465 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2021-08-06T20:55:50.210557 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2021-08-06T20:55:50.210743 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2021-08-06T20:55:50.212426 #1] INFO -- : > cd /var/www/discourse && git reset --hard
202:C 06 Aug 2021 20:55:50.214 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
202:C 06 Aug 2021 20:55:50.214 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=202, just started
202:C 06 Aug 2021 20:55:50.214 # Configuration loaded
202:M 06 Aug 2021 20:55:50.214 * monotonic clock: POSIX clock_gettime
202:M 06 Aug 2021 20:55:50.214 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
202:M 06 Aug 2021 20:55:50.214 # Failed listening on port 6379 (TCP), aborting.
Checking out files: 100% (28860/28860), done.
I, [2021-08-06T20:55:51.872305 #1] INFO -- : HEAD is now at 74f71503 FEATURE: Automatically timed delete stub topics after entire topic is merged into another topic (#13187)
I, [2021-08-06T20:55:51.872402 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2021-08-06T20:55:51.958388 #1] INFO -- :
I, [2021-08-06T20:55:51.958493 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2021-08-06T20:55:51.960768 #1] INFO -- :
I, [2021-08-06T20:55:51.960820 #1] INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2021-08-06T20:55:51.965935 #1] INFO -- :
I, [2021-08-06T20:55:51.966003 #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-08-06T20:55:54.476291 #1] INFO -- :
I, [2021-08-06T20:55:54.476389 #1] INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2021-08-06T20:55:55.350856 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.
I, [2021-08-06T20:55:55.350965 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2021-08-06T20:55:55.354244 #1] INFO -- :
I, [2021-08-06T20:55:55.354326 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2021-08-06T20:55:55.356693 #1] INFO -- :
I, [2021-08-06T20:55:55.356748 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2021-08-06T20:55:55.359270 #1] INFO -- :
I, [2021-08-06T20:55:55.359354 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2021-08-06T20:55:55.361644 #1] INFO -- :
I, [2021-08-06T20:55:55.361707 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2021-08-06T20:55:55.363277 #1] INFO -- :
I, [2021-08-06T20:55:55.363319 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2021-08-06T20:55:55.365505 #1] INFO -- :
I, [2021-08-06T20:55:55.365568 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2021-08-06T20:55:55.368090 #1] INFO -- :
I, [2021-08-06T20:55:55.368151 #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-08-06T20:55:55.371120 #1] INFO -- :
I, [2021-08-06T20:55:55.371179 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2021-08-06T20:55:55.374060 #1] INFO -- :
I, [2021-08-06T20:55:55.374111 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2021-08-06T20:55:55.377133 #1] INFO -- :
I, [2021-08-06T20:55:55.377205 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2021-08-06T20:55:55.380123 #1] INFO -- :
I, [2021-08-06T20:55:55.380185 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2021-08-06T20:55:55.383105 #1] INFO -- :
I, [2021-08-06T20:55:55.383169 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2021-08-06T20:55:55.391208 #1] INFO -- :
I, [2021-08-06T20:55:55.391282 #1] INFO -- : > cd /var/www/discourse && find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2021-08-06T20:55:55.393641 #1] INFO -- :
I, [2021-08-06T20:55:55.393753 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2021-08-06T20:55:55.394026 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2021-08-06T20:55:56.240429 #1] INFO -- :
I, [2021-08-06T20:55:56.240543 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-voting.git
Cloning into 'discourse-voting'...
I, [2021-08-06T20:55:56.774041 #1] INFO -- :
I, [2021-08-06T20:55:56.774147 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidmh/discourse-giphy.git
Cloning into 'discourse-giphy'...
I, [2021-08-06T20:55:57.855222 #1] INFO -- :
I, [2021-08-06T20:55:57.855328 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/davidtaylorhq/discourse-telegram-notifications
Cloning into 'discourse-telegram-notifications'...
I, [2021-08-06T20:55:58.284365 #1] INFO -- :
I, [2021-08-06T20:55:58.284615 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.287516 #1] INFO -- :
I, [2021-08-06T20:55:58.287618 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2021-08-06T20:55:58.289302 #1] INFO -- :
I, [2021-08-06T20:55:58.289392 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2021-08-06T20:55:58.291290 #1] INFO -- :
I, [2021-08-06T20:55:58.291439 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2021-08-06T20:55:58.291656 #1] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.291818 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.291946 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2021-08-06T20:55:58.292066 #1] INFO -- : > echo "done configuring web"
I, [2021-08-06T20:55:58.293474 #1] INFO -- : done configuring web
I, [2021-08-06T20:55:58.293625 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2021-08-06T20:55:58.899514 #1] INFO -- : Successfully installed bundler-2.2.19
1 gem installed
私のアップデートにエラーが発生しました
```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 })
修正にご協力ください。