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=**************# 필수, 경고: 비밀번호에 포함된 '#' 문자는 문제를 일으킬 수 있습니다!
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 아키텍처 감지됨.
경고: containers/app.yml 파일이 모든 사용자에 의해 읽을 수 있습니다. chmod o-rwx containers/app.yml 명령을 실행하여 이 파일을 보호할 수 있습니다.
Launcher가 최신 상태인지 확인 중
Fetching 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: While executing 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: 빠른 종료 요청 수신
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: 백그라운드 워커 "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'
파라미터 {"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로 실패했습니다
** BOOTSTRAP 실패 ** 이전의 오류 메시지를 확인하십시오. 오류가 하나 이상 있을 수 있습니다.
./discourse-doctor가 문제를 진단하는 데 도움이 될 수 있습니다.
ac268b32eab07a975103e7695259026306aec05d05d9804d92c2a76744a15930
==================== 재구축 로그 종료 ====================
앱 재구축 실패.
도메인 이름 확인 중 . . .
ask.pharmaguideline.com에 대한 연결이 성공했습니다.
표준이 아닌 플러그인을 제거하고 재구축하는 것이 좋습니다.
기존 컨테이너 재시도 중 . . .
x86_64 아키텍처 감지됨.
경고: 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
컨테이너가 재시작되었습니다.
==================== 플러그인 ====================
- 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 버전: 찾을 수 없음
localhost의 Discourse 버전: 찾을 수 없음
==================== 메모리 정보 ====================
RAM (MB): 2050
total used free shared buff/cache available
Mem: 2001 143 759 24 1098 1644
Swap: 2047 0 2047
==================== 디스크 공간 확인 ====================
---------- OS 디스크 공간 ----------
Filesystem Size Used Avail Use% Mounted on
/dev/disk/by-label/DOROOT 50G 21G 27G 44% /
==================== 디스크 정보 ====================
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
==================== 디스크 정보 종료 ====================
==================== 메일 테스트 ====================
견고한 테스트를 위해 http://www.mail-tester.com/에서 주소를 가져오거나
단순히 자신에게 테스트 메시지를 보내십시오.
메일 테스트용 이메일 주소? (건너뛰려면 'n'): n
메일 테스트가 건너뛰었습니다.
대체 중: SMTP_PASSWORD
대체 중: LETSENCRYPT_ACCOUNT_EMAIL
대체 중: DEVELOPER_EMAILS
대체 중: DISCOURSE_DB_PASSWORD
대체 중: Sending mail to
==================== 완료! ====================
이 파일의 공개 버전을 제공하시겠습니까? (Y/n)n
공개 로그가 생성되지 않았습니다.
LESS=-Ri less /tmp/discourse-debug.txt 명령으로 이 스크립트의 출력을 검사할 수 있습니다.
그러나 먼저, 아래 세 가지 명령을 알고 있는지 확인하십시오!!!
위 명령(즉, 'less')으로 파일을 볼 때 알아야 할 명령:
q -- 종료
/error<ENTER> -- 'error' 단어 검색
n -- 다음 발생 위치 검색
g -- 파일의 처음으로 이동
f -- 한 페이지 앞으로 이동
b -- 한 페이지 뒤로 이동
G -- 파일의 끝으로 이동