root@abc:/var/discourse# ./discourse-doctor
DISCOURSE DOCTOR Sat Jan 28 12:24:22 EST 2023
OS: Linux ask 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Found containers/app.yml
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=ask.******.com
SMTP_ADDRESS=email-smtp.us-east-1.amazonaws.com # 必須
DEVELOPER_EMAILS=info@*****.com
SMTP_PASSWORD=**************# 必須、WARNING パスワードに '#' 文字が含まれていると問題が発生する可能性があります!
SMTP_PORT=587 # (オプション、デフォルト 587)
SMTP_USER_NAME=******* # 必須
LETSENCRYPT_ACCOUNT_EMAIL=info@********.com
==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 18.06.1-ce, build e68fc7a
DOCKER PROCESSES (docker ps -a)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d8f0766fe33d local_discourse/app "/sbin/boot" 5 months ago Exited (5) 17 minutes ago app
==================== SERIOUS PROBLEM!!!! ====================
app が実行されていません!
再構築を試みます
==================== REBUILD LOG ====================
x86_64 arch detected.
WARNING: containers/app.yml ファイルは誰でも読み取り可能です。このコマンドを実行してファイルを保護できます: chmod o-rwx containers/app.yml
launcher が最新であることを確認中
origin を取得中
launcher は最新です
古いコンテナを停止中
+ /usr/bin/docker stop -t 60 app
app
2.0.20230116-0051: Pulling from discourse/base
Digest: sha256:9e75876adb52427902a6d76dab731c4888af811d7e5ad9ee6efcec4ce6db986f
Status: Image is up to date for discourse/base:2.0.20230116-0051
/usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-01-28T17:24:35.345781 #1] INFO -- : Reading from stdin
I, [2023-01-28T17:24:35.355727 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2023-01-28T17:24:35.397593 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2023-01-28T17:24:35.398311 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2023-01-28T17:24:35.402142 #1] INFO -- :
I, [2023-01-28T17:24:35.403164 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-01-28T17:24:35.407165 #1] INFO -- :
I, [2023-01-28T17:24:35.408165 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2023-01-28T17:24:35.411476 #1] INFO -- :
I, [2023-01-28T17:24:35.412337 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2023-01-28T17:24:35.415841 #1] INFO -- :
I, [2023-01-28T17:24:35.416665 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-01-28T17:24:35.420726 #1] INFO -- :
I, [2023-01-28T17:24:35.421537 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2023/01/28 17:24:35 socat[18] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2023-01-28T17:24:35.429613 #1] INFO -- :
I, [2023-01-28T17:24:35.430171 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-01-28T17:24:35.434488 #1] INFO -- :
I, [2023-01-28T17:24:35.435257 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-01-28T17:24:35.439463 #1] INFO -- :
I, [2023-01-28T17:24:35.440194 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-01-28T17:24:35.443956 #1] INFO -- :
I, [2023-01-28T17:24:35.444889 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-01-28T17:24:35.448569 #1] INFO -- :
I, [2023-01-28T17:24:35.457179 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2023-01-28T17:24:35.464977 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2023-01-28T17:24:35.472916 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2023-01-28T17:24:35.480519 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2023-01-28T17:24:35.481419 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-01-28T17:24:35.581500 #1] INFO -- :
I, [2023-01-28T17:24:35.581872 #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, [2023-01-28T17:24:35.585172 #1] INFO -- :
I, [2023-01-28T17:24:35.585860 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-01-28T17:24:35.611351 #1] INFO -- :
I, [2023-01-28T17:24:35.612223 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-01-28T17:24:35.616135 #1] INFO -- :
I, [2023-01-28T17:24:35.616968 #1] INFO -- : > /root/upgrade_postgres
I, [2023-01-28T17:24:35.624309 #1] INFO -- :
I, [2023-01-28T17:24:35.625026 #1] INFO -- : > rm /root/upgrade_postgres
I, [2023-01-28T17:24:35.628933 #1] INFO -- :
I, [2023-01-28T17:24:35.629978 #1] INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2023-01-28T17:24:35.631633 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2023-01-28T17:24:35.633128 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2023-01-28T17:24:35.634082 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2023-01-28T17:24:35.634930 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2023-01-28T17:24:35.636238 #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, [2023-01-28T17:24:35.636994 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-01-28T17:24:35.642054 #1] INFO -- :
I, [2023-01-28T17:24:35.643184 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2023-01-28T17:24:35.644230 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2023-01-28T17:24:35.645413 #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, [2023-01-28T17:24:35.646268 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf
I, [2023-01-28T17:24:35.646902 #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, [2023-01-28T17:24:35.647840 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2023-01-28T17:24:35.648418 #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, [2023-01-28T17:24:35.651069 #1] INFO -- : > sleep 5
2023-01-28 17:24:35.700 UTC [41] LOG: starting PostgreSQL 13.9 (Debian 13.9-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2023-01-28 17:24:35.700 UTC [41] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-01-28 17:24:35.701 UTC [41] LOG: listening on IPv6 address "::", port 5432
2023-01-28 17:24:35.705 UTC [41] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-01-28 17:24:35.715 UTC [44] LOG: database system was shut down at 2023-01-28 17:08:01 UTC
2023-01-28 17:24:35.725 UTC [41] LOG: database system is ready to accept connections
I, [2023-01-28T17:24:40.660617 #1] INFO -- :
I, [2023-01-28T17:24:40.660886 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2023-01-28 17:24:40.739 UTC [54] postgres@postgres ERROR: database "discourse" already exists
2023-01-28 17:24:40.739 UTC [54] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2023-01-28T17:24:40.742750 #1] INFO -- :
I, [2023-01-28T17:24:40.743445 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-01-28 17:24:40.822 UTC [58] postgres@discourse ERROR: role "discourse" already exists
2023-01-28 17:24:40.822 UTC [58] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2023-01-28T17:24:40.824865 #1] INFO -- :
I, [2023-01-28T17:24:40.825464 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-01-28T17:24:40.900992 #1] INFO -- : GRANT
I, [2023-01-28T17:24:40.901596 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-01-28T17:24:40.974358 #1] INFO -- : ALTER SCHEMA
I, [2023-01-28T17:24:40.975028 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2023-01-28T17:24:41.053082 #1] INFO -- : CREATE EXTENSION
I, [2023-01-28T17:24:41.053858 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2023-01-28T17:24:41.133447 #1] INFO -- : CREATE EXTENSION
I, [2023-01-28T17:24:41.134284 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2023-01-28T17:24:41.209305 #1] INFO -- : CREATE EXTENSION
I, [2023-01-28T17:24:41.210115 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2023-01-28T17:24:41.285522 #1] INFO -- : CREATE EXTENSION
I, [2023-01-28T17:24:41.286519 #1] INFO -- : > sudo -u postgres psql discourse
I, [2023-01-28T17:24:41.290834 #1] INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');
I, [2023-01-28T17:24:41.379816 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2023-01-28T17:24:41.384917 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2023-01-28T17:24:41.385734 #1] INFO -- : > echo postgres installed!
I, [2023-01-28T17:24:41.388975 #1] INFO -- : postgres installed!
I, [2023-01-28T17:24:41.397154 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2023-01-28T17:24:41.405146 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2023-01-28T17:24:41.413150 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2023-01-28T17:24:41.413918 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf
I, [2023-01-28T17:24:41.414930 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf
I, [2023-01-28T17:24:41.417192 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-01-28T17:24:41.422129 #1] INFO -- :
I, [2023-01-28T17:24:41.423161 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2023-01-28T17:24:41.424914 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf
I, [2023-01-28T17:24:41.425942 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-01-28T17:24:41.427672 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2023-01-28T17:24:41.428956 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-01-28T17:24:41.430435 #1] INFO -- : > echo redis installed
I, [2023-01-28T17:24:41.434645 #1] INFO -- : redis installed
I, [2023-01-28T17:24:41.435606 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-01-28T17:24:41.442127 #1] INFO -- : logfile ""
I, [2023-01-28T17:24:41.442883 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-01-28T17:24:41.445375 #1] INFO -- : > sleep 10
102:C 28 Jan 2023 17:24:41.460 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
102:C 28 Jan 2023 17:24:41.460 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=102, just started
102:C 28 Jan 2023 17:24:41.461 # Configuration loaded
102:M 28 Jan 2023 17:24:41.461 * monotonic clock: POSIX clock_gettime
102:M 28 Jan 2023 17:24:41.462 * Running mode=standalone, port=6379.
102:M 28 Jan 2023 17:24:41.463 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
102:M 28 Jan 2023 17:24:41.463 # Server initialized
102:M 28 Jan 2023 17:24:41.463 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
102:M 28 Jan 2023 17:24:41.463 # WARNING You have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo madvise > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled (set to 'madvise' or 'never').
102:M 28 Jan 2023 17:24:41.464 * Loading RDB produced by version 7.0.7
102:M 28 Jan 2023 17:24:41.464 * RDB age 1000 seconds
102:M 28 Jan 2023 17:24:41.464 * RDB memory usage when created 94.37 Mb
102:M 28 Jan 2023 17:24:41.915 * Done loading RDB, keys loaded: 24491, keys expired: 86.
102:M 28 Jan 2023 17:24:41.915 * DB loaded from disk: 0.452 seconds
102:M 28 Jan 2023 17:24:41.916 * Ready to accept connections
I, [2023-01-28T17:24:51.453948 #1] INFO -- :
I, [2023-01-28T17:24:51.454921 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-01-28T17:24:51.461076 #1] INFO -- : thpoff is installed!
I, [2023-01-28T17:24:51.461859 #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, [2023-01-28T17:24:51.603109 #1] INFO -- :
I, [2023-01-28T17:24:51.604021 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2023-01-28T17:24:51.735700 #1] INFO -- :
I, [2023-01-28T17:24:51.736589 #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, [2023-01-28T17:24:51.876732 #1] INFO -- :
I, [2023-01-28T17:24:51.877519 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-01-28T17:24:51.881595 #1] INFO -- :
I, [2023-01-28T17:24:51.886941 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown:
I, [2023-01-28T17:24:51.895950 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2023-01-28T17:24:51.904187 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown:
I, [2023-01-28T17:24:51.912562 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown:
I, [2023-01-28T17:24:51.921491 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2023-01-28T17:24:51.930695 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2023-01-28T17:24:51.931461 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2023-01-28T17:24:51.932184 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-01-28T17:24:51.936273 #1] INFO -- : > cd /var/www/discourse && git reset --hard
129:C 28 Jan 2023 17:24:51.960 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
129:C 28 Jan 2023 17:24:51.961 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=129, just started
129:C 28 Jan 2023 17:24:51.961 # Configuration loaded
129:M 28 Jan 2023 17:24:51.962 * monotonic clock: POSIX clock_gettime
129:M 28 Jan 2023 17:24:51.962 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
129:M 28 Jan 2023 17:24:51.962 # Failed listening on port 6379 (TCP), aborting.
Updating files: 100% (32677/32677), done.
I, [2023-01-28T17:24:55.920809 #1] INFO -- : HEAD is now at 2eb0a300 FIX: Use hashtags in channel archive PMs if available (#19859)
I, [2023-01-28T17:24:55.921441 #1] INFO -- : > cd /var/www/discourse && git clean -f
I, [2023-01-28T17:24:56.139104 #1] INFO -- :
I, [2023-01-28T17:24:56.139983 #1] INFO -- : > cd /var/www/discourse && git remote set-branches --add origin main
I, [2023-01-28T17:24:56.145859 #1] INFO -- :
I, [2023-01-28T17:24:56.146541 #1] INFO -- : > cd /var/www/discourse && git remote set-branches origin tests-passed
I, [2023-01-28T17:24:56.153237 #1] INFO -- :
I, [2023-01-28T17:24:56.153924 #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, [2023-01-28T17:24:58.758598 #1] INFO -- :
I, [2023-01-28T17:24:58.759305 #1] INFO -- : > cd /var/www/discourse && git checkout tests-passed
Switched to a new branch 'tests-passed'
I, [2023-01-28T17:25:00.174821 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.
I, [2023-01-28T17:25:00.175827 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-01-28T17:25:00.182996 #1] INFO -- :
I, [2023-01-28T17:25:00.184342 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-01-28T17:25:00.193079 #1] INFO -- :
I, [2023-01-28T17:25:00.193892 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-01-28T17:25:00.203623 #1] INFO -- :
I, [2023-01-28T17:25:00.204341 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-01-28T17:25:00.209799 #1] INFO -- :
I, [2023-01-28T17:25:00.210501 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-01-28T17:25:00.215415 #1] INFO -- :
I, [2023-01-28T17:25:00.216074 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2023-01-28T17:25:00.221152 #1] INFO -- :
I, [2023-01-28T17:25:00.221800 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-01-28T17:25:00.230317 #1] INFO -- :
I, [2023-01-28T17:25:00.230965 #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, [2023-01-28T17:25:00.238111 #1] INFO -- :
I, [2023-01-28T17:25:00.238844 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2023-01-28T17:25:00.246812 #1] INFO -- :
I, [2023-01-28T17:25:00.247554 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-01-28T17:25:00.254589 #1] INFO -- :
I, [2023-01-28T17:25:00.255261 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2023-01-28T17:25:00.262612 #1] INFO -- :
I, [2023-01-28T17:25:00.263279 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-01-28T17:25:00.270186 #1] INFO -- :
I, [2023-01-28T17:25:00.270829 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-01-28T17:25:01.349652 #1] INFO -- :
I, [2023-01-28T17:25:01.350476 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-01-28T17:25:01.356166 #1] INFO -- :
I, [2023-01-28T17:25:01.357019 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2023-01-28T17:25:01.358568 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2023-01-28T17:25:08.154799 #1] INFO -- :
I, [2023-01-28T17:25:08.155492 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-topic-group-button.git
Cloning into 'discourse-topic-group-button'...
I, [2023-01-28T17:25:09.109635 #1] INFO -- :
I, [2023-01-28T17:25:09.110378 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2023-01-28T17:25:10.077193 #1] INFO -- :
I, [2023-01-28T17:25:10.078107 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-cakeday.git
Cloning into 'discourse-cakeday'...
I, [2023-01-28T17:25:10.619083 #1] INFO -- :
I, [2023-01-28T17:25:10.620389 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-push-notifications.git
Cloning into 'discourse-push-notifications'...
I, [2023-01-28T17:25:11.341592 #1] INFO -- :
I, [2023-01-28T17:25:11.342323 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-assign.git
Cloning into 'discourse-assign'...
I, [2023-01-28T17:25:12.380392 #1] INFO -- :
I, [2023-01-28T17:25:12.381078 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-plugin-linkedin-auth.git
Cloning into 'discourse-plugin-linkedin-auth'...
I, [2023-01-28T17:25:12.737567 #1] INFO -- :
I, [2023-01-28T17:25:12.738337 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-adplugin.git
Cloning into 'discourse-adplugin'...
I, [2023-01-28T17:25:13.389728 #1] INFO -- :
I, [2023-01-28T17:25:13.390496 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Cloning into 'discourse-data-explorer'...
I, [2023-01-28T17:25:13.977333 #1] INFO -- :
I, [2023-01-28T17:25:13.978025 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-whos-online.git
Cloning into 'discourse-whos-online'...
I, [2023-01-28T17:25:14.453814 #1] INFO -- :
I, [2023-01-28T17:25:14.454499 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-chat-integration.git
Cloning into 'discourse-chat-integration'...
I, [2023-01-28T17:25:15.076264 #1] INFO -- :
I, [2023-01-28T17:25:15.076917 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-translator.git
Cloning into 'discourse-translator'...
I, [2023-01-28T17:25:15.628454 #1] INFO -- :
I, [2023-01-28T17:25:15.629521 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-01-28T17:25:15.634617 #1] INFO -- :
I, [2023-01-28T17:25:15.635642 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-01-28T17:25:15.640854 #1] INFO -- :
I, [2023-01-28T17:25:15.641650 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2023-01-28T17:25:15.645714 #1] INFO -- :
I, [2023-01-28T17:25:15.646666 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2023-01-28T17:25:15.647760 #1] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-01-28T17:25:15.648992 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-01-28T17:25:15.649851 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-01-28T17:25:15.650419 #1] INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2023-01-28T17:25:15.650869 #1] INFO -- : > echo "done configuring web"
I, [2023-01-28T17:25:15.653996 #1] INFO -- : done configuring web
I, [2023-01-28T17:25:15.654779 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
ERROR: Loading command: install (RuntimeError)
failed to get urandom
/usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `urandom'
/usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `singleton class'
/usr/local/lib/ruby/3.1.0/securerandom.rb:42:in `<module:SecureRandom>'
/usr/local/lib/ruby/3.1.0/securerandom.rb:41:in `<top (required)>'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/3.1.0/resolv.rb:8:in `<top (required)>'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/3.1.0/net/http.rb:25:in `<top (required)>'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/request.rb:2:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/remote_fetcher.rb:3:in `require_relative'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/remote_fetcher.rb:3:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/spec_fetcher.rb:2:in `require_relative'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/spec_fetcher.rb:2:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/dependency_installer.rb:6:in `require_relative'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/dependency_installer.rb:6:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/commands/install_command.rb:4:in `require_relative'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/commands/install_command.rb:4:in `<top (required)>'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:234:in `load_and_instantiate'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:135:in `[]'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:207:in `find_command'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:249:in `invoke_command'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:191:in `process_args'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:149:in `run'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/gem_runner.rb:51:in `run'
/usr/local/bin/gem:10:in `<main>'
ERROR: gemの実行中にエラーが発生しました ... (NoMethodError)
undefined method `deprecated?' for nil:NilClass
cmd.deprecation_warning if cmd.deprecated?
^^^^^^^^^^^^
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:250:in `invoke_command'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:191:in `process_args'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/command_manager.rb:149:in `run'
/usr/local/lib/ruby/site_ruby/3.1.0/rubygems/gem_runner.rb:51:in `run'
/usr/local/bin/gem:10:in `<main>'
I, [2023-01-28T17:25:16.033091 #1] INFO -- :
I, [2023-01-28T17:25:16.033997 #1] INFO -- : 非同期プロセスを終了しています
I, [2023-01-28T17:25:16.034360 #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 pid: 41 に INT を送信しています
2023-01-28 17:25:16.034 UTC [41] LOG: fast shutdown requestを受信しました
I, [2023-01-28T17:25:16.034914 #1] INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 102 に TERM を送信しています
102:signal-handler (1674926716) SIGTERMを受信し、シャットダウンをスケジュールしています...
2023-01-28 17:25:16.041 UTC [41] LOG: アクティブなトランザクションを中止しています
2023-01-28 17:25:16.050 UTC [41] LOG: background worker "logical replication launcher" (PID 50) は終了コード1で終了しました
2023-01-28 17:25:16.051 UTC [45] LOG: シャットダウンしています
102:M 28 Jan 2023 17:25:16.059 # ユーザーからシャットダウンがリクエストされました...
102:M 28 Jan 2023 17:25:16.059 * 退出前に最終RDBスナップショットを保存しています。
2023-01-28 17:25:16.122 UTC [41] LOG: データベースシステムはシャットダウンしました
102:M 28 Jan 2023 17:25:16.825 * DBがディスクに保存されました
102:M 28 Jan 2023 17:25:16.825 # Redisは退出の準備ができました、さようなら...
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock) が返り値 #<Process::Status: pid 319 exit 1> で失敗しました
失敗箇所: /usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec がパラメータ {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,\"\"); print $0 }' Gemfile.lock)", "find $home ! -user discourse -exec chown discourse {} \\+"]} で失敗しました
bootstrap が終了コード1で失敗しました
** ブートストラップに失敗しました ** 上にスクロールして、より多くのエラーメッセージがないか確認してください。
./discourse-doctor が問題の診断に役立つかもしれません。
ac268b32eab07a975103e7695259026306aec05d05d9804d92c2a76744a15930
==================== END REBUILD LOG ====================
アプリの再構築に失敗しました。
ドメイン名を確認しています . . .
ask.pharmaguideline.com への接続に成功しました。
おそらく、非標準のプラグインを削除して再構築する必要があります。
既存のコンテナの再起動を試みています . . .
x86_64 アーキテクチャが検出されました。
WARNING: containers/app.yml ファイルは誰でも読み取れます。このファイルを保護するには、次のコマンドを実行してください: chmod o-rwx containers/app.yml
既存のコンテナを起動しています
+ /usr/bin/docker start app
app
d8f0766fe33d local_discourse/app "/sbin/boot" 5 months ago Up Less than a second 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp app
コンテナを再起動しました。
==================== PLUGINS ====================
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-topic-group-button.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-cakeday.git
- git clone https://github.com/discourse/discourse-push-notifications.git
- git clone https://github.com/discourse/discourse-assign.git
- git clone https://github.com/discourse/discourse-plugin-linkedin-auth.git
- git clone https://github.com/discourse/discourse-adplugin.git
- git clone https://github.com/discourse/discourse-data-explorer.git
- git clone https://github.com/discourse/discourse-whos-online.git
- git clone https://github.com/discourse/discourse-chat-integration.git
- git clone https://github.com/discourse/discourse-translator.git
非公式のプラグインは検出されませんでした。
公式リストについては、https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb を参照してください。
========================================
ask.*******.com の Discourse バージョン: NOT FOUND
localhost の Discourse バージョン: NOT FOUND
==================== MEMORY INFORMATION ====================
RAM (MB): 2050
total used free shared buff/cache available
Mem: 2001 143 759 24 1098 1644
Swap: 2047 0 2047
==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem Size Used Avail Use% Mounted on
/dev/disk/by-label/DOROOT 50G 21G 27G 44% /
==================== DISK INFORMATION ====================
Disk /dev/vda: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 29B528BA-16C4-402E-BEE9-53555C8B6F10
Device Start End Sectors Size Type
/dev/vda1 2048 104855551 104853504 50G Linux filesystem
==================== END DISK INFORMATION ====================
==================== MAIL TEST ====================
堅牢なテストを行うには、http://www.mail-tester.com/ からアドレスを取得してください。
または、自分自身にテストメッセージを送信してください。
メールテスト用のメールアドレス? ('n' でスキップ) : n
メールテストをスキップしました。
置換: SMTP_PASSWORD
置換: LETSENCRYPT_ACCOUNT_EMAIL
置換: DEVELOPER_EMAILS
置換: DISCOURSE_DB_PASSWORD
置換: Sending mail to
==================== DONE! ====================
このファイルの公開バージョンを提供しますか? (Y/n)n
公開ログは生成されませんでした。
LESS=-Ri less /tmp/discourse-debug.txt
を使用して、このスクリプトの出力を確認できます。
ただし、まず、以下の最初の3つのコマンドを知っていることを確認してください!
上記のコマンド('less')でファイルを表示する際に知っておくべきコマンド:
q -- 終了
/error<ENTER> -- 単語 'error' を検索
n -- 次の出現箇所を検索
g -- ファイルの先頭に移動
f -- 1ページ進む
b -- 1ページ戻る
G -- ファイルの末尾に移動