サーバーでDiscourseをデプロイするために、🇨🇳 Detailed installation guide + control panel | 超级详细教学安装discourse+控制面板 のチュートリアルに従いました。Dockerをインストールし、指示通りにコンテナを開始しました。しかし、設定を完了した後、アプリのビルドフェーズ(ログが途切れる場所)中に、サーバーへのSSH接続が応答しなくなります。サーバーのステータスはディスク読み取り100%を示し、フリーズします。コントロールパネルから再起動することしかできません。この問題を解決する方法を知っている人はいますか?
ログは以下の返信で投稿します。
./launcher のログ
x86_64 arch detected.
2.0.20231218-0429: Pulling from discourse/base
Digest: sha256:468f70b9bb4c6d0c6c2bbb3efc1a5e12d145eae57bdb6946b7fe5558beb52dc1
Status: Image is up to date for discourse/base:2.0.20231218-0429
docker.io/discourse/base:2.0.20231218-0429
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-02-15T10:27:53.783742 #1] INFO -- : Reading from stdin
I, [2024-02-15T10:27:53.788732 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2024-02-15T10:27:53.819777 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2024-02-15T10:27:53.819971 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2024-02-15T10:27:53.822342 #1] INFO -- :
I, [2024-02-15T10:27:53.822640 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2024-02-15T10:27:53.824680 #1] INFO -- :
I, [2024-02-15T10:27:53.824924 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2024-02-15T10:27:53.826606 #1] INFO -- :
I, [2024-02-15T10:27:53.826773 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2024-02-15T10:27:53.828655 #1] INFO -- :
I, [2024-02-15T10:27:53.828815 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2024-02-15T10:27:53.831027 #1] INFO -- :
I, [2024-02-15T10:27:53.831176 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2024/02/15 10:27:53 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2024-02-15T10:27:53.838657 #1] INFO -- :
I, [2024-02-15T10:27:53.838799 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2024-02-15T10:27:53.841286 #1] INFO -- :
I, [2024-02-15T10:27:53.841411 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2024-02-15T10:27:53.843857 #1] INFO -- :
I, [2024-02-15T10:27:53.844057 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-02-15T10:27:53.845883 #1] INFO -- :
I, [2024-02-15T10:27:53.846049 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-02-15T10:27:53.847952 #1] INFO -- :
I, [2024-02-15T10:27:53.852041 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2024-02-15T10:27:53.855952 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2024-02-15T10:27:53.859781 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2024-02-15T10:27:53.863808 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2024-02-15T10:27:53.864070 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2024-02-15T10:27:55.115302 #1] INFO -- :
I, [2024-02-15T10:27:55.115451 #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, [2024-02-15T10:27:55.117522 #1] INFO -- :
I, [2024-02-15T10:27:55.117656 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2024-02-15T10:27:55.128602 #1] INFO -- :
I, [2024-02-15T10:27:55.128937 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2024-02-15T10:27:55.131289 #1] INFO -- :
I, [2024-02-15T10:27:55.131550 #1] INFO -- : > /root/upgrade_postgres
I, [2024-02-15T10:27:55.136105 #1] INFO -- :
I, [2024-02-15T10:27:55.136339 #1] INFO -- : > rm /root/upgrade_postgres
I, [2024-02-15T10:27:55.138143 #1] INFO -- :
I, [2024-02-15T10:27:55.138557 #1] INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:27:55.139064 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:27:55.142593 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:27:55.143215 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:27:55.143821 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:27:55.144347 #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, [2024-02-15T10:27:55.144822 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2024-02-15T10:27:55.149060 #1] INFO -- :
I, [2024-02-15T10:27:55.149426 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:27:55.149729 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:27:55.150305 #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, [2024-02-15T10:27:55.150833 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-02-15T10:27:55.151186 #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, [2024-02-15T10:27:55.151662 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-02-15T10:27:55.152088 #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, [2024-02-15T10:27:55.155843 #1] INFO -- : > sleep 5
2024-02-15 10:27:55.190 UTC [42] LOG: starting PostgreSQL 13.13 (Debian 13.13-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-02-15 10:27:55.190 UTC [42] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-02-15 10:27:55.191 UTC [42] LOG: listening on IPv6 address "::", port 5432
2024-02-15 10:27:55.194 UTC [42] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-02-15 10:27:55.200 UTC [45] LOG: database system was shut down at 2024-02-15 10:26:58 UTC
2024-02-15 10:27:55.204 UTC [42] LOG: database system is ready to accept connections
I, [2024-02-15T10:28:00.163378 #1] INFO -- :
I, [2024-02-15T10:28:00.163700 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2024-02-15 10:28:00.223 UTC [55] postgres@postgres ERROR: database "discourse" already exists
2024-02-15 10:28:00.223 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2024-02-15T10:28:00.224612 #1] INFO -- :
I, [2024-02-15T10:28:00.225093 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2024-02-15 10:28:00.273 UTC [59] postgres@discourse ERROR: role "discourse" already exists
2024-02-15 10:28:00.273 UTC [59] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2024-02-15T10:28:00.274926 #1] INFO -- :
I, [2024-02-15T10:28:00.275392 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2024-02-15T10:28:00.321218 #1] INFO -- : GRANT
I, [2024-02-15T10:28:00.321681 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2024-02-15T10:28:00.368758 #1] INFO -- : ALTER SCHEMA
I, [2024-02-15T10:28:00.369222 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2024-02-15T10:28:00.419312 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:28:00.419764 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2024-02-15T10:28:00.467914 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:28:00.468449 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists vector;"'
NOTICE: extension "vector" already exists, skipping
I, [2024-02-15T10:28:00.517577 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:28:00.518046 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2024-02-15T10:28:00.563004 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:28:00.563470 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2024-02-15T10:28:00.618027 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:28:00.618552 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists vector;"'
NOTICE: extension "vector" already exists, skipping
I, [2024-02-15T10:28:00.669078 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:28:00.670057 #1] INFO -- : > sudo -u postgres psql discourse
I, [2024-02-15T10:28:00.672371 #1] INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');
I, [2024-02-15T10:28:00.730978 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2024-02-15T10:28:00.733740 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2024-02-15T10:28:00.733836 #1] INFO -- : > echo postgres installed!
I, [2024-02-15T10:28:00.735684 #1] INFO -- : postgres installed!
I, [2024-02-15T10:28:00.740680 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2024-02-15T10:28:00.745130 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2024-02-15T10:28:00.749422 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2024-02-15T10:28:00.749951 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf
I, [2024-02-15T10:28:00.750813 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf
I, [2024-02-15T10:28:00.751445 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-02-15T10:28:00.756305 #1] INFO -- :
I, [2024-02-15T10:28:00.756731 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-02-15T10:28:00.757237 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf
I, [2024-02-15T10:28:00.758178 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-02-15T10:28:00.758990 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-02-15T10:28:00.759791 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-02-15T10:28:00.760914 #1] INFO -- : > echo redis installed
I, [2024-02-15T10:28:00.763943 #1] INFO -- : redis installed
I, [2024-02-15T10:28:00.764240 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-02-15T10:28:00.769404 #1] INFO -- : logfile ""
I, [2024-02-15T10:28:00.769851 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-02-15T10:28:00.771248 #1] INFO -- : > sleep 10
111:C 15 Feb 2024 10:28:00.779 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
111:C 15 Feb 2024 10:28:00.779 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=111, just started
111:C 15 Feb 2024 10:28:00.779 # Configuration loaded
111:M 15 Feb 2024 10:28:00.780 * monotonic clock: POSIX clock_gettime
111:M 15 Feb 2024 10:28:00.781 * Running mode=standalone, port=6379.
111:M 15 Feb 2024 10:28:00.781 # Server initialized
111:M 15 Feb 2024 10:28:00.782 * Loading RDB produced by version 7.0.7
111:M 15 Feb 2024 10:28:00.782 * RDB age 62 seconds
111:M 15 Feb 2024 10:28:00.782 * RDB memory usage when created 0.98 Mb
111:M 15 Feb 2024 10:28:00.782 * Done loading RDB, keys loaded: 34, keys expired: 0.
111:M 15 Feb 2024 10:28:00.782 * DB loaded from disk: 0.001 seconds
111:M 15 Feb 2024 10:28:00.782 * Ready to accept connections
I, [2024-02-15T10:28:10.773983 #1] INFO -- :
I, [2024-02-15T10:28:10.774312 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-02-15T10:28:10.777770 #1] INFO -- : thpoff is installed!
I, [2024-02-15T10:28:10.777992 #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, [2024-02-15T10:28:10.841325 #1] INFO -- :
I, [2024-02-15T10:28:10.841704 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-02-15T10:28:10.912056 #1] INFO -- :
I, [2024-02-15T10:28:10.912495 #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, [2024-02-15T10:28:10.975717 #1] INFO -- :
I, [2024-02-15T10:28:10.976065 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-02-15T10:28:10.980294 #1] INFO -- :
I, [2024-02-15T10:28:10.983044 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown:
I, [2024-02-15T10:28:10.987324 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2024-02-15T10:28:10.991444 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown:
I, [2024-02-15T10:28:10.995677 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown:
I, [2024-02-15T10:28:10.999661 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2024-02-15T10:28:11.003463 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2024-02-15T10:28:11.003703 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2024-02-15T10:28:11.004008 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-02-15T10:28:11.005833 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
138:C 15 Feb 2024 10:28:11.012 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
138:C 15 Feb 2024 10:28:11.012 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=138, just started
138:C 15 Feb 2024 10:28:11.012 # Configuration loaded
138:M 15 Feb 2024 10:28:11.012 * monotonic clock: POSIX clock_gettime
138:M 15 Feb 2024 10:28:11.014 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
138:M 15 Feb 2024 10:28:11.014 # Failed listening on port 6379 (TCP), aborting.
Updating files: 36% (12265/33715)
Updating files: 37% (12475/33715)
Updating files: 38% (12812/33715)
Updating files: 39% (13149/33715)
Updating files: 40% (13486/33715)
Updating files: 41% (13824/33715)
Updating files: 42% (14161/33715)
Updating files: 43% (14498/33715)
Updating files: 44% (14835/33715)
Updating files: 45% (15172/33715)
Updating files: 46% (15509/33715)
Updating files: 47% (15847/33715)
Updating files: 48% (16184/33715)
Updating files: 49% (16521/33715)
Updating files: 50% (16858/33715)
Updating files: 51% (17195/33715)
Updating files: 52% (17532/33715)
Updating files: 53% (17869/33715)
Updating files: 54% (18207/33715)
Updating files: 55% (18544/33715)
Updating files: 56% (18881/33715)
Updating files: 57% (19218/33715)
Updating files: 58% (19555/33715)
Updating files: 59% (19892/33715)
Updating files: 60% (20229/33715)
Updating files: 61% (20567/33715)
Updating files: 62% (20904/33715)
Updating files: 63% (21241/33715)
Updating files: 64% (21578/33715)
Updating files: 65% (21915/33715)
Updating files: 66% (22252/33715)
Updating files: 67% (22590/33715)
Updating files: 68% (22927/33715)
Updating files: 69% (23264/33715)
Updating files: 70% (23601/33715)
Updating files: 71% (23938/33715)
Updating files: 72% (24275/33715)
Updating files: 73% (24612/33715)
Updating files: 74% (24950/33715)
Updating files: 75% (25287/33715)
Updating files: 76% (25624/33715)
Updating files: 77% (25961/33715)
Updating files: 78% (26298/33715)
Updating files: 79% (26635/33715)
Updating files: 80% (26972/33715)
Updating files: 81% (27310/33715)
Updating files: 82% (27647/33715)
Updating files: 82% (27668/33715)
Updating files: 83% (27984/33715)
Updating files: 84% (28321/33715)
Updating files: 85% (28658/33715)
Updating files: 86% (28995/33715)
Updating files: 87% (29333/33715)
Updating files: 88% (29670/33715)
Updating files: 89% (30007/33715)
Updating files: 90% (30344/33715)
Updating files: 91% (30681/33715)
Updating files: 92% (31018/33715)
Updating files: 93% (31355/33715)
Updating files: 94% (31693/33715)
Updating files: 95% (32030/33715)
Updating files: 96% (32367/33715)
Updating files: 97% (32704/33715)
Updating files: 98% (33041/33715)
Updating files: 99% (33378/33715)
Updating files: 100% (33715/33715)
Updating files: 100% (33715/33715), done.
I, [2024-02-15T10:28:13.867424 #1] INFO -- : HEAD is now at 6ab1a19e9 DEV: Convert min_trust_level_to_allow_invite to groups (#24893)
I, [2024-02-15T10:28:13.870245 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-02-15T10:28:14.033356 #1] INFO -- :
I, [2024-02-15T10:28:14.033496 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
set -o errexit
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
git remote set-branches --add origin main
git remote set-branches origin tests-passed
git fetch --depth 1 origin tests-passed
else
git fetch --tags --prune-tags --prune --force origin
fi
'
From https://github.com/discourse/discourse
- [deleted] (none) -> origin/0-drop-code
- [deleted] (none) -> origin/bulk-button-class
- [deleted] (none) -> origin/dependabot/bundler/excon-0.108.0
- [deleted] (none) -> origin/dependabot/bundler/hashdiff-1.1.0
- [deleted] (none) -> origin/dependabot/bundler/parallel-1.24.0
- [deleted] (none) -> origin/dependabot/bundler/rubocop-discourse-3.6.0
- [deleted] (none) -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/drop-target-2.0.2
- [deleted] (none) -> origin/dev/add-new-chat-metrics
- [deleted] (none) -> origin/dev/allow-chat-mentions-to-have-several-notifications
- [deleted] (none) -> origin/dev/convert-min-trust-level-to-create-tag-to-group
- [deleted] (none) -> origin/dev/convert-min-trust-level-to-ignore-to-groups
- [deleted] (none) -> origin/dev/rethink-mass-mentions-polymorphic
- [deleted] (none) -> origin/feature/migrations-schema-generator
- [deleted] (none) -> origin/fix-join-filter-upload
- [deleted] (none) -> origin/fix-modal-flash-minor
- [deleted] (none) -> origin/global-notice-reactive
- [deleted] (none) -> origin/labeler
- [deleted] (none) -> origin/low-ram-help
- [deleted] (none) -> origin/multi-invite
- [deleted] (none) -> origin/plugin-extra-js
- [deleted] (none) -> origin/table-builder-modal-modifier
- [deleted] (none) -> origin/tests-passed-broken
- [deleted] (none) -> origin/wip_categories
- [deleted] (none) -> origin/wizard-split
6ab1a19e9..c30aeafd9 main -> origin/main
* [new branch] 0-ember-bump -> origin/0-ember-bump
* [new branch] 0-event-helper -> origin/0-event-helper
* [new branch] 0-extend-native -> origin/0-extend-native
* [new branch] 0-fix-perf-watched-words -> origin/0-fix-perf-watched-words
* [new branch] 0-rev -> origin/0-rev
* [new branch] 0-screen-track -> origin/0-screen-track
* [new branch] add-api-for-forced-auth -> origin/add-api-for-forced-auth
* [new branch] asciinema-iframe -> origin/asciinema-iframe
* [new branch] async-category-search -> origin/async-category-search
* [new branch] bulk-select-dropdown-items -> origin/bulk-select-dropdown-items
* [new branch] convert-header-to-glimmer -> origin/convert-header-to-glimmer
* [new branch] csp-strict-dynamic -> origin/csp-strict-dynamic
* [new branch] decorator-transforms -> origin/decorator-transforms
* [new branch] dependabot/bundler/omniauth-2.0.0 -> origin/dependabot/bundler/omniauth-2.0.0
* [new branch] dependabot/bundler/parallel_tests-4.4.0 -> origin/dependabot/bundler/parallel_tests-4.4.0
* [new branch] dependabot/bundler/rack-mini-profiler-3.3.1 -> origin/dependabot/bundler/rack-mini-profiler-3.3.1
* [new branch] dev-convert-topic-map-expanded-widget-to-component -> origin/dev-convert-topic-map-expanded-widget-to-component
* [new branch] dev/add-modifier-user-action-stream-builder -> origin/dev/add-modifier-user-action-stream-builder
* [new branch] dev/check-whether-online-user-ids-may-be-memoized-between-job-runs -> origin/dev/check-whether-online-user-ids-may-be-memoized-between-job-runs
+ 79ea38776...bd0faffec dev/drop-notification_id-column-on-chat-mentions -> origin/dev/drop-notification_id-column-on-chat-mentions (forced update)
* [new branch] dev/drop-the-user-id-column-from-chat-mentions -> origin/dev/drop-the-user-id-column-from-chat-mentions
+ e0c0191bb...6751ac529 dev/dry-up-user-status-serializers -> origin/dev/dry-up-user-status-serializers (forced update)
* [new branch] dev/experiment-theme-settings-free-ui -> origin/dev/experiment-theme-settings-free-ui
* [new branch] dev/groundwork-theme-settings-editor -> origin/dev/groundwork-theme-settings-editor
* [new branch] dev/make-admins-tl4-in-tests -> origin/dev/make-admins-tl4-in-tests
* [new branch] dev/promote-plugin-post-deploy-migrations -> origin/dev/promote-plugin-post-deploy-migrations
* [new branch] dev/proof-of-concept-rewriting-mentions-notification-logic -> origin/dev/proof-of-concept-rewriting-mentions-notification-logic
* [new branch] dev_category_order_database -> origin/dev_category_order_database
* [new branch] dev_update_category_position -> origin/dev_update_category_position
* [new branch] discover_enrollment -> origin/discover_enrollment
* [new branch] extra-js-revert -> origin/extra-js-revert
* [new branch] fast-edit-expand-regex -> origin/fast-edit-expand-regex
8780daeee..d92b6b19b feature/bookmark-menu-and-modal-redesign -> origin/feature/bookmark-menu-and-modal-redesign
* [new branch] feature/custom-date-range -> origin/feature/custom-date-range
* [new branch] feature/paste-upload-on-first-upload-input-templates -> origin/feature/paste-upload-on-first-upload-input-templates
* [new branch] feature_async_load_colors -> origin/feature_async_load_colors
* [new branch] feature_track_mentions -> origin/feature_track_mentions
* [new branch] fix_category_chooser -> origin/fix_category_chooser
* [new branch] fix_in_any_groups -> origin/fix_in_any_groups
* [new branch] fix_reviewable_translation -> origin/fix_reviewable_translation
7f2bdca65..4db506cea generic-import-latest -> origin/generic-import-latest
* [new branch] hijacks -> origin/hijacks
* [new branch] issue/respect-homepage-admin-sidebar-back -> origin/issue/respect-homepage-admin-sidebar-back
* [new branch] issue/run-admin-sidebar-init-after-logs-notice -> origin/issue/run-admin-sidebar-init-after-logs-notice
* [new branch] loic-rubocop-plugin-rules -> origin/loic-rubocop-plugin-rules
+ 90a3535b7...54d0135bc migrations-convert -> origin/migrations-convert (forced update)
* [new branch] promote-migration-tweak -> origin/promote-migration-tweak
* [new branch] redesign-my-threads-index -> origin/redesign-my-threads-index
* [new branch] revert-25009-dev/convert-min-trust-to-allow-self-wiki-to-groups -> origin/revert-25009-dev/convert-min-trust-to-allow-self-wiki-to-groups
* [new branch] revert-bulk-topic-actions -> origin/revert-bulk-topic-actions
* [new branch] scrolling -> origin/scrolling
* [new branch] sidebar-above-outlet -> origin/sidebar-above-outlet
* [new branch] site-logo-height -> origin/site-logo-height
d7f7f79b6..92749b738 stable -> origin/stable
* [new branch] system-test-for-soft-load-search -> origin/system-test-for-soft-load-search
6ab1a19e9..c30aeafd9 tests-passed -> origin/tests-passed
* [new branch] tmp/move-notifiers-specs -> origin/tmp/move-notifiers-specs
* [new branch] unhide_lazy_load_categories -> origin/unhide_lazy_load_categories
* [new branch] universal-nonce -> origin/universal-nonce
* [new branch] user-menu-full-name -> origin/user-menu-full-name
* [new branch] ux-label-bold -> origin/ux-label-bold
* [new branch] virtual-scroll-list -> origin/virtual-scroll-list
t [tag update] beta -> beta
t [tag update] latest-release -> latest-release
* [new tag] v3.1.4 -> v3.1.4
* [new tag] v3.1.5 -> v3.1.5
* [new tag] v3.2.0 -> v3.2.0
* [new tag] v3.2.0.beta4 -> v3.2.0.beta4
* [new tag] v3.2.0.beta5 -> v3.2.0.beta5
I, [2024-02-15T10:28:16.245050 #1] INFO -- :
I, [2024-02-15T10:28:16.245159 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
set -o errexit
if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
git pull
else
git -c advice.detachedHead=false checkout tests-passed
fi
'
Switched to a new branch 'tests-passed'
I, [2024-02-15T10:28:23.253872 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.
I, [2024-02-15T10:28:23.254007 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-02-15T10:28:23.264578 #1] INFO -- :
I, [2024-02-15T10:28:23.264750 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-02-15T10:28:23.268499 #1] INFO -- :
I, [2024-02-15T10:28:23.268683 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-02-15T10:28:23.272081 #1] INFO -- :
I, [2024-02-15T10:28:23.272162 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-02-15T10:28:23.275033 #1] INFO -- :
I, [2024-02-15T10:28:23.275255 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-02-15T10:28:23.278006 #1] INFO -- :
I, [2024-02-15T10:28:23.278205 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-02-15T10:28:23.281859 #1] INFO -- :
I, [2024-02-15T10:28:23.281991 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2024-02-15T10:28:23.284816 #1] INFO -- :
I, [2024-02-15T10:28:23.284885 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-02-15T10:28:23.288517 #1] INFO -- :
I, [2024-02-15T10:28:23.288699 #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, [2024-02-15T10:28:23.292668 #1] INFO -- :
I, [2024-02-15T10:28:23.292739 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2024-02-15T10:28:23.296906 #1] INFO -- :
I, [2024-02-15T10:28:23.296988 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-02-15T10:28:23.300824 #1] INFO -- :
I, [2024-02-15T10:28:23.301054 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2024-02-15T10:28:23.305107 #1] INFO -- :
I, [2024-02-15T10:28:23.305304 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-02-15T10:28:23.309337 #1] INFO -- :
I, [2024-02-15T10:28:23.309640 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-02-15T10:28:23.313054 #1] INFO -- :
I, [2024-02-15T10:28:23.313172 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-02-15T10:28:23.315102 #1] INFO -- :
I, [2024-02-15T10:28:23.316685 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-02-15T10:28:23.317733 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2024-02-15T10:28:26.376448 #1] INFO -- :
I, [2024-02-15T10:28:26.377014 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:28:26.382672 #1] INFO -- :
I, [2024-02-15T10:28:26.382999 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-02-15T10:28:26.385923 #1] INFO -- :
I, [2024-02-15T10:28:26.386108 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2024-02-15T10:28:26.388292 #1] INFO -- :
I, [2024-02-15T10:28:26.388901 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-02-15T10:28:26.391324 #1] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:28:26.391633 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:28:26.392107 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:28:26.392579 #1] INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2024-02-15T10:28:26.392893 #1] INFO -- : > echo "done configuring web"
I, [2024-02-15T10:28:26.394573 #1] INFO -- : done configuring web
I, [2024-02-15T10:28:26.394967 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-02-15T10:28:27.261440 #1] INFO -- : Successfully installed bundler-2.5.3
1 gem installed
I, [2024-02-15T10:28:27.261620 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-02-15T10:28:31.381167 #1] INFO -- :
I, [2024-02-15T10:28:31.381815 #1] INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
rm -rf app/assets/javascripts/node_modules
fi
I, [2024-02-15T10:28:31.385573 #1] INFO -- :
I, [2024-02-15T10:28:31.385994 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning "@discourse/lint-configs > eslint-plugin-ember > ember-eslint-parser@0.2.5" has unmet peer dependency "@typescript-eslint/parser@^6.15.0".
warning "@discourse/lint-configs > eslint-plugin-ember > ember-eslint-parser@0.2.5" has incorrect peer dependency "typescript@^5.3.3".
warning " > @glint/environment-ember-loose@1.3.0" has unmet peer dependency "@glimmer/component@^1.1.2"..
I, [2024-02-15T10:30:20.264448 #1] INFO -- : 非同期プロセスを終了しています
I, [2024-02-15T10:30:20.265295 #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: 42 に INT を送信しています
2024-02-15 10:30:20.265 UTC [42] LOG: 高速シャットダウン要求を受信しました
I, [2024-02-15T10:30:20.265390 #1] INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111 に TERM を送信しています
111:signal-handler (1707993020) SIGTERM を受信し、シャットダウンをスケジュールしています...
111:M 15 Feb 2024 10:30:20.284 # ユーザーがシャットダウンをリクエストしました...
111:M 15 Feb 2024 10:30:20.285 * 終了前に最終 RDB スナップショットを保存しています。
2024-02-15 10:30:20.303 UTC [42] LOG: アクティブなトランザクションを中止しています
2024-02-15 10:30:20.307 UTC [42] LOG: バックグラウンドワーカー "logical replication launcher" (PID 51) が終了コード 1 で終了しました
2024-02-15 10:30:20.309 UTC [46] LOG: シャットダウンしています
111:M 15 Feb 2024 10:30:20.335 * DB がディスクに保存されました
111:M 15 Feb 2024 10:30:20.344 # Redis は現在終了の準備ができました。さようなら...
2024-02-15 10:30:20.463 UTC [42] LOG: データベースシステムはシャットダウンしました
bootstrap が終了コード 1 で失敗しました
** ブートストラップに失敗しました ** 上にスクロールして以前のエラーメッセージを確認してください。複数のエラーがある可能性があります。
./discourse-doctor が問題の診断に役立つかもしれません。
c861827aef2d0dda3f1fc07c2cfe615a91eef803ab3fb36b5d71698adadc21e1
./discourse-doctor のログ
DISCOURSE DOCTOR Thu 15 Feb 2024 06:32:48 PM CST
OS: Linux iZj6cgi365ov99veqodfgnZ 5.4.0-171-generic #189-Ubuntu SMP Fri Jan 5 14:23:02 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Found containers/app.yml
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=*
SMTP_ADDRESS=*
DEVELOPER_EMAILS=*
SMTP_PASSWORD=*
SMTP_PORT=*
SMTP_USER_NAME=*
LETSENCRYPT_ACCOUNT_EMAIL=*
==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 25.0.3, build 4debf41
DOCKER PROCESSES (docker ps -a)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e34a707c2cba discourse/base:2.0.20231218-0429 "/bin/bash -c '/usr/…" 2 hours ago Exited (255) 18 minutes ago quirky_fermat
==================== SERIOUS PROBLEM!!!! ====================
app not running!
Attempting to rebuild
==================== REBUILD LOG ====================
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
2.0.20231218-0429: Pulling from discourse/base
Digest: sha256:468f70b9bb4c6d0c6c2bbb3efc1a5e12d145eae57bdb6946b7fe5558beb52dc1
Status: Image is up to date for discourse/base:2.0.20231218-0429
docker.io/discourse/base:2.0.20231218-0429
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-02-15T10:32:58.066976 #1] INFO -- : Reading from stdin
I, [2024-02-15T10:32:58.072322 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2024-02-15T10:32:58.144173 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2024-02-15T10:32:58.144356 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2024-02-15T10:32:58.151295 #1] INFO -- :
I, [2024-02-15T10:32:58.152268 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2024-02-15T10:32:58.155924 #1] INFO -- :
I, [2024-02-15T10:32:58.156188 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2024-02-15T10:32:58.159244 #1] INFO -- :
I, [2024-02-15T10:32:58.159572 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2024-02-15T10:32:58.162267 #1] INFO -- :
I, [2024-02-15T10:32:58.162579 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2024-02-15T10:32:58.165310 #1] INFO -- :
I, [2024-02-15T10:32:58.165607 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2024/02/15 10:32:58 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2024-02-15T10:32:58.188054 #1] INFO -- :
I, [2024-02-15T10:32:58.188429 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2024-02-15T10:32:58.191661 #1] INFO -- :
I, [2024-02-15T10:32:58.191844 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2024-02-15T10:32:58.194737 #1] INFO -- :
I, [2024-02-15T10:32:58.195096 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-02-15T10:32:58.197379 #1] INFO -- :
I, [2024-02-15T10:32:58.197747 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2024-02-15T10:32:58.199854 #1] INFO -- :
I, [2024-02-15T10:32:58.204841 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2024-02-15T10:32:58.209036 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2024-02-15T10:32:58.214787 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2024-02-15T10:32:58.218929 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2024-02-15T10:32:58.219263 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2024-02-15T10:32:59.721972 #1] INFO -- :
I, [2024-02-15T10:32:59.722380 #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, [2024-02-15T10:32:59.724421 #1] INFO -- :
I, [2024-02-15T10:32:59.724554 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2024-02-15T10:32:59.751357 #1] INFO -- :
I, [2024-02-15T10:32:59.751770 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2024-02-15T10:32:59.754527 #1] INFO -- :
I, [2024-02-15T10:32:59.754836 #1] INFO -- : > /root/upgrade_postgres
I, [2024-02-15T10:32:59.760384 #1] INFO -- :
I, [2024-02-15T10:32:59.760719 #1] INFO -- : > rm /root/upgrade_postgres
I, [2024-02-15T10:32:59.762618 #1] INFO -- :
I, [2024-02-15T10:32:59.763346 #1] INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:32:59.763898 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:32:59.764407 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:32:59.764961 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:32:59.765445 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:32:59.765966 #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, [2024-02-15T10:32:59.766437 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2024-02-15T10:32:59.772080 #1] INFO -- :
I, [2024-02-15T10:32:59.772535 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:32:59.772939 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-02-15T10:32:59.773467 #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, [2024-02-15T10:32:59.774259 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-02-15T10:32:59.774561 #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, [2024-02-15T10:32:59.775081 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-02-15T10:32:59.775507 #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, [2024-02-15T10:32:59.778511 #1] INFO -- : > sleep 5
2024-02-15 10:32:59.875 UTC [42] LOG: starting PostgreSQL 13.13 (Debian 13.13-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-02-15 10:32:59.876 UTC [42] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-02-15 10:32:59.877 UTC [42] LOG: listening on IPv6 address "::", port 5432
2024-02-15 10:32:59.880 UTC [42] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-02-15 10:32:59.886 UTC [45] LOG: database system was shut down at 2024-02-15 10:30:20 UTC
2024-02-15 10:32:59.891 UTC [42] LOG: database system is ready to accept connections
I, [2024-02-15T10:33:04.781190 #1] INFO -- :
I, [2024-02-15T10:33:04.781481 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2024-02-15 10:33:04.885 UTC [55] postgres@postgres ERROR: database "discourse" already exists
2024-02-15 10:33:04.885 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2024-02-15T10:33:04.887989 #1] INFO -- :
I, [2024-02-15T10:33:04.888519 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2024-02-15 10:33:04.950 UTC [59] postgres@discourse ERROR: role "discourse" already exists
2024-02-15 10:33:04.950 UTC [59] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2024-02-15T10:33:04.952839 #1] INFO -- :
I, [2024-02-15T10:33:04.953301 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2024-02-15T10:33:05.002768 #1] INFO -- : GRANT
I, [2024-02-15T10:33:05.003148 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2024-02-15T10:33:05.053723 #1] INFO -- : ALTER SCHEMA
I, [2024-02-15T10:33:05.053931 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2024-02-15T10:33:05.110606 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:33:05.111079 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2024-02-15T10:33:05.156719 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:33:05.157309 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists vector;"'
NOTICE: extension "vector" already exists, skipping
I, [2024-02-15T10:33:05.202622 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:33:05.202859 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2024-02-15T10:33:05.253597 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:33:05.254116 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2024-02-15T10:33:05.298429 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:33:05.298902 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists vector;"'
NOTICE: extension "vector" already exists, skipping
I, [2024-02-15T10:33:05.348357 #1] INFO -- : CREATE EXTENSION
I, [2024-02-15T10:33:05.348865 #1] INFO -- : > sudo -u postgres psql discourse
I, [2024-02-15T10:33:05.352505 #1] INFO -- : update pg_database set encoding = pg_char_to_encoding('UTF8') where datname = 'discourse' AND encoding = pg_char_to_encoding('SQL_ASCII');
I, [2024-02-15T10:33:05.434503 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2024-02-15T10:33:05.439741 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2024-02-15T10:33:05.439953 #1] INFO -- : > echo postgres installed!
I, [2024-02-15T10:33:05.442035 #1] INFO -- : postgres installed!
I, [2024-02-15T10:33:05.447602 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2024-02-15T10:33:05.453493 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2024-02-15T10:33:05.458965 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2024-02-15T10:33:05.459960 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf
I, [2024-02-15T10:33:05.460629 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf
I, [2024-02-15T10:33:05.461384 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-02-15T10:33:05.465040 #1] INFO -- :
I, [2024-02-15T10:33:05.465645 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-02-15T10:33:05.466438 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf
I, [2024-02-15T10:33:05.467357 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-02-15T10:33:05.468322 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-02-15T10:33:05.469224 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-02-15T10:33:05.469833 #1] INFO -- : > echo redis installed
I, [2024-02-15T10:33:05.473332 #1] INFO -- : redis installed
I, [2024-02-15T10:33:05.473556 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-02-15T10:33:05.482371 #1] INFO -- : logfile ""
I, [2024-02-15T10:33:05.482879 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-02-15T10:33:05.486036 #1] INFO -- : > sleep 10
111:C 15 Feb 2024 10:33:05.494 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
111:C 15 Feb 2024 10:33:05.494 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=111, just started
111:C 15 Feb 2024 10:33:05.494 # Configuration loaded
111:M 15 Feb 2024 10:33:05.495 * monotonic clock: POSIX clock_gettime
111:M 15 Feb 2024 10:33:05.496 * Running mode=standalone, port=6379.
111:M 15 Feb 2024 10:33:05.496 # Server initialized
111:M 15 Feb 2024 10:33:05.497 * Loading RDB produced by version 7.0.7
111:M 15 Feb 2024 10:33:05.497 * RDB age 165 seconds
111:M 15 Feb 2024 10:33:05.497 * RDB memory usage when created 0.96 Mb
111:M 15 Feb 2024 10:33:05.498 * Done loading RDB, keys loaded: 34, keys expired: 0.
111:M 15 Feb 2024 10:33:05.498 * DB loaded from disk: 0.001 seconds
111:M 15 Feb 2024 10:33:05.498 * Ready to accept connections
I, [2024-02-15T10:33:15.489334 #1] INFO -- :
I, [2024-02-15T10:33:15.489635 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-02-15T10:33:15.493689 #1] INFO -- : thpoff is installed!
I, [2024-02-15T10:33:15.493894 #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, [2024-02-15T10:33:15.558077 #1] INFO -- :
I, [2024-02-15T10:33:15.558490 #1] INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-02-15T10:33:15.637632 #1] INFO -- :
I, [2024-02-15T10:33:15.638063 #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, [2024-02-15T10:33:15.705466 #1] INFO -- :
I, [2024-02-15T10:33:15.705909 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-02-15T10:33:15.710220 #1] INFO -- :
I, [2024-02-15T10:33:15.713372 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown:
I, [2024-02-15T10:33:15.718596 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2024-02-15T10:33:15.722935 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown:
I, [2024-02-15T10:33:15.727457 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown:
I, [2024-02-15T10:33:15.732032 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2024-02-15T10:33:15.736451 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2024-02-15T10:33:15.736788 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2024-02-15T10:33:15.737110 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-02-15T10:33:15.739873 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
138:C 15 Feb 2024 10:33:15.744 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
138:C 15 Feb 2024 10:33:15.744 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=138, just started
138:C 15 Feb 2024 10:33:15.744 # Configuration loaded
138:M 15 Feb 2024 10:33:15.746 * monotonic clock: POSIX clock_gettime
138:M 15 Feb 2024 10:33:15.746 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
138:M 15 Feb 2024 10:33:15.746 # Failed listening on port 6379 (TCP), aborting.
Updating files: 39% (13472/33715)
Updating files: 40% (13486/33715)
Updating files: 41% (13824/33715)
Updating files: 42% (14161/33715)
Updating files: 43% (14498/33715)
Updating files: 44% (14835/33715)
Updating files: 45% (15172/33715)
Updating files: 46% (15509/33715)
Updating files: 47% (15847/33715)
Updating files: 48% (16184/33715)
Updating files: 49% (16521/33715)
Updating files: 50% (16858/33715)
Updating files: 51% (17195/33715)
Updating files: 52% (17532/33715)
Updating files: 53% (17869/33715)
Updating files: 54% (18207/33715)
Updating files: 55% (18544/33715)
Updating files: 56% (18881/33715)
Updating files: 57% (19218/33715)
Updating files: 58% (19555/33715)
Updating files: 59% (19892/33715)
Updating files: 60% (20229/33715)
Updating files: 61% (20567/33715)
Updating files: 62% (20904/33715)
Updating files: 63% (21241/33715)
Updating files: 64% (21578/33715)
Updating files: 65% (21915/33715)
Updating files: 66% (22252/33715)
Updating files: 67% (22590/33715)
Updating files: 68% (22927/33715)
Updating files: 69% (23264/33715)
Updating files: 70% (23601/33715)
Updating files: 71% (23938/33715)
Updating files: 72% (24275/33715)
Updating files: 73% (24612/33715)
Updating files: 74% (24950/33715)
Updating files: 75% (25287/33715)
Updating files: 76% (25624/33715)
Updating files: 77% (25961/33715)
Updating files: 78% (26298/33715)
Updating files: 79% (26635/33715)
Updating files: 80% (26972/33715)
Updating files: 81% (27310/33715)
Updating files: 82% (27647/33715)
Updating files: 83% (27984/33715)
Updating files: 84% (28321/33715)
Updating files: 85% (28658/33715)
Updating files: 86% (28995/33715)
Updating files: 87% (29333/33715)
Updating files: 88% (29670/33715)
Updating files: 89% (30007/33715)
Updating files: 90% (30344/33715)
Updating files: 91% (30681/33715)
Updating files: 92% (31018/33715)
Updating files: 93% (31355/33715)
Updating files: 94% (31693/33715)
Updating files: 94% (32000/33715)
Updating files: 95% (32030/33715)
Updating files: 96% (32367/33715)
Updating files: 97% (32704/33715)
Updating files: 98% (33041/33715)
Updating files: 99% (33378/33715)
Updating files: 100% (33715/33715)
Updating files: 100% (33715/33715), done.
I, [2024-02-15T10:33:18.782143 #1] INFO -- : HEAD is now at 6ab1a19e9 DEV: Convert min_trust_level_to_allow_invite to groups (#24893)
I, [2024-02-15T10:33:18.782611 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-02-15T10:33:18.995525 #1] INFO -- :
I, [2024-02-15T10:33:18.995981 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
set -o errexit
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
git remote set-branches --add origin main
git remote set-branches origin tests-passed
git fetch --depth 1 origin tests-passed
else
git fetch --tags --prune-tags --prune --force origin
fi
'
From https://github.com/discourse/discourse
- [deleted] (none) -> origin/0-drop-code
- [deleted] (none) -> origin/bulk-button-class
- [deleted] (none) -> origin/dependabot/bundler/excon-0.108.0
- [deleted] (none) -> origin/dependabot/bundler/hashdiff-1.1.0
- [deleted] (none) -> origin/dependabot/bundler/parallel-1.24.0
- [deleted] (none) -> origin/dependabot/bundler/rubocop-discourse-3.6.0
- [deleted] (none) -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/drop-target-2.0.2
- [deleted] (none) -> origin/dev/add-new-chat-metrics
- [deleted] (none) -> origin/dev/allow-chat-mentions-to-have-several-notifications
- [deleted] (none) -> origin/dev/convert-min-trust-level-to-create-tag-to-group
- [deleted] (none) -> origin/dev/convert-min-trust-level-to-ignore-to-groups
- [deleted] (none) -> origin/dev/rethink-mass-mentions-polymorphic
- [deleted] (none) -> origin/feature/migrations-schema-generator
- [deleted] (none) -> origin/fix-join-filter-upload
- [deleted] (none) -> origin/fix-modal-flash-minor
- [deleted] (none) -> origin/global-notice-reactive
- [deleted] (none) -> origin/labeler
- [deleted] (none) -> origin/low-ram-help
- [deleted] (none) -> origin/multi-invite
- [deleted] (none) -> origin/plugin-extra-js
- [deleted] (none) -> origin/table-builder-modal-modifier
- [deleted] (none) -> origin/tests-passed-broken
- [deleted] (none) -> origin/wip_categories
- [deleted] (none) -> origin/wizard-split
6ab1a19e9..cb8958f20 main -> origin/main
* [new branch] 0-ember-bump -> origin/0-ember-bump
* [new branch] 0-event-helper -> origin/0-event-helper
* [new branch] 0-extend-native -> origin/0-extend-native
* [new branch] 0-fix-perf-watched-words -> origin/0-fix-perf-watched-words
* [new branch] 0-rev -> origin/0-rev
* [new branch] 0-screen-track -> origin/0-screen-track
* [new branch] add-api-for-forced-auth -> origin/add-api-for-forced-auth
* [new branch] asciinema-iframe -> origin/asciinema-iframe
* [new branch] async-category-search -> origin/async-category-search
* [new branch] bulk-select-dropdown-items -> origin/bulk-select-dropdown-items
* [new branch] convert-header-to-glimmer -> origin/convert-header-to-glimmer
* [new branch] csp-strict-dynamic -> origin/csp-strict-dynamic
* [new branch] decorator-transforms -> origin/decorator-transforms
* [new branch] dependabot/bundler/omniauth-2.0.0 -> origin/dependabot/bundler/omniauth-2.0.0
* [new branch] dependabot/bundler/parallel_tests-4.4.0 -> origin/dependabot/bundler/parallel_tests-4.4.0
* [new branch] dev-convert-topic-map-expanded-widget-to-component -> origin/dev-convert-topic-map-expanded-widget-to-component
* [new branch] dev/add-modifier-user-action-stream-builder -> origin/dev/add-modifier-user-action-stream-builder
* [new branch] dev/check-whether-online-user-ids-may-be-memoized-between-job-runs -> origin/dev/check-whether-online-user-ids-may-be-memoized-between-job-runs
+ 79ea38776...bd0faffec dev/drop-notification_id-column-on-chat-mentions -> origin/dev/drop-notification_id-column-on-chat-mentions (forced update)
* [new branch] dev/drop-the-user-id-column-from-chat-mentions -> origin/dev/drop-the-user-id-column-from-chat-mentions
+ e0c0191bb...6751ac529 dev/dry-up-user-status-serializers -> origin/dev/dry-up-user-status-serializers (forced update)
* [new branch] dev/experiment-theme-settings-free-ui -> origin/dev/experiment-theme-settings-free-ui
* [new branch] dev/groundwork-theme-settings-editor -> origin/dev/groundwork-theme-settings-editor
* [new branch] dev/make-admins-tl4-in-tests -> origin/dev/make-admins-tl4-in-tests
* [new branch] dev/promote-plugin-post-deploy-migrations -> origin/dev/promote-plugin-post-deploy-migrations
* [new branch] dev/proof-of-concept-rewriting-mentions-notification-logic -> origin/dev/proof-of-concept-rewriting-mentions-notification-logic
* [new branch] dev_category_order_database -> origin/dev_category_order_database
* [new branch] dev_update_category_position -> origin/dev_update_category_position
* [new branch] discover_enrollment -> origin/discover_enrollment
* [new branch] extra-js-revert -> origin/extra-js-revert
* [new branch] fast-edit-expand-regex -> origin/fast-edit-expand-regex
8780daeee..d92b6b19b feature/bookmark-menu-and-modal-redesign -> origin/feature/bookmark-menu-and-modal-redesign
* [new branch] feature/custom-date-range -> origin/feature/custom-date-range
* [new branch] feature/paste-upload-on-first-upload-input-templates -> origin/feature/paste-upload-on-first-upload-input-templates
* [new branch] feature_async_load_colors -> origin/feature_async_load_colors
* [new branch] feature_track_mentions -> origin/feature_track_mentions
* [new branch] fix_category_chooser -> origin/fix_category_chooser
* [new branch] fix_in_any_groups -> origin/fix_in_any_groups
* [new branch] fix_reviewable_translation -> origin/fix_reviewable_translation
7f2bdca65..4db506cea generic-import-latest -> origin/generic-import-latest
* [new branch] hijacks -> origin/hijacks
* [new branch] issue/respect-homepage-admin-sidebar-back -> origin/issue/respect-homepage-admin-sidebar-back
* [new branch] issue/run-admin-sidebar-init-after-logs-notice -> origin/issue/run-admin-sidebar-init-after-logs-notice
* [new branch] loic-rubocop-plugin-rules -> origin/loic-rubocop-plugin-rules
+ 90a3535b7...54d0135bc migrations-convert -> origin/migrations-convert (forced update)
* [new branch] promote-migration-tweak -> origin/promote-migration-tweak
* [new branch] redesign-my-threads-index -> origin/redesign-my-threads-index
* [new branch] revert-25009-dev/convert-min-trust-to-allow-self-wiki-to-groups -> origin/revert-25009-dev/convert-min-trust-to-allow-self-wiki-to-groups
* [new branch] revert-bulk-topic-actions -> origin/revert-bulk-topic-actions
* [new branch] scrolling -> origin/scrolling
* [new branch] sidebar-above-outlet -> origin/sidebar-above-outlet
* [new branch] site-logo-height -> origin/site-logo-height
d7f7f79b6..92749b738 stable -> origin/stable
* [new branch] system-test-for-soft-load-search -> origin/system-test-for-soft-load-search
6ab1a19e9..c30aeafd9 tests-passed -> origin/tests-passed
* [new branch] tmp/move-notifiers-specs -> origin/tmp/move-notifiers-specs
* [new branch] unhide_lazy_load_categories -> origin/unhide_lazy_load_categories
* [new branch] universal-nonce -> origin/universal-nonce
* [new branch] user-menu-full-name -> origin/user-menu-full-name
* [new branch] ux-label-bold -> origin/ux-label-bold
* [new branch] virtual-scroll-list -> origin/virtual-scroll-list
t [tag update] beta -> beta
t [tag update] latest-release -> latest-release
* [new tag] v3.1.4 -> v3.1.4
* [new tag] v3.1.5 -> v3.1.5
* [new tag] v3.2.0 -> v3.2.0
* [new tag] v3.2.0.beta4 -> v3.2.0.beta4
* [new tag] v3.2.0.beta5 -> v3.2.0.beta5
I, [2024-02-15T10:33:21.020697 #1] INFO -- :
I, [2024-02-15T10:33:21.020828 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
set -o errexit
if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
git pull
else
git -c advice.detachedHead=false checkout tests-passed
fi
'
Switched to a new branch 'tests-passed'
I, [2024-02-15T10:33:27.398231 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.
I, [2024-02-15T10:33:27.398367 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-02-15T10:33:27.409709 #1] INFO -- :
I, [2024-02-15T10:33:27.409806 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-02-15T10:33:27.414863 #1] INFO -- :
I, [2024-02-15T10:33:27.415285 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-02-15T10:33:27.419956 #1] INFO -- :
I, [2024-02-15T10:33:27.420033 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-02-15T10:33:27.423192 #1] INFO -- :
I, [2024-02-15T10:33:27.423258 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-02-15T10:33:27.426439 #1] INFO -- :
I, [2024-02-15T10:33:27.426506 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-02-15T10:33:27.437513 #1] INFO -- :
I, [2024-02-15T10:33:27.437625 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2024-02-15T10:33:27.443985 #1] INFO -- :
I, [2024-02-15T10:33:27.444072 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-02-15T10:33:27.448513 #1] INFO -- :
I, [2024-02-15T10:33:27.448609 #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, [2024-02-15T10:33:27.452785 #1] INFO -- :
I, [2024-02-15T10:33:27.452858 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2024-02-15T10:33:27.456712 #1] INFO -- :
I, [2024-02-15T10:33:27.456788 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-02-15T10:33:27.460782 #1] INFO -- :
I, [2024-02-15T10:33:27.460919 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2024-02-15T10:33:27.464865 #1] INFO -- :
I, [2024-02-15T10:33:27.465167 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-02-15T10:33:27.468963 #1] INFO -- :
I, [2024-02-15T10:33:27.469128 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-02-15T10:33:27.474059 #1] INFO -- :
I, [2024-02-15T10:33:27.474159 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-02-15T10:33:27.476508 #1] INFO -- :
I, [2024-02-15T10:33:27.476825 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-02-15T10:33:27.477168 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2024-02-15T10:33:29.856181 #1] INFO -- :
I, [2024-02-15T10:33:29.856587 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:33:29.860625 #1] INFO -- :
I, [2024-02-15T10:33:29.860903 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-02-15T10:33:29.864710 #1] INFO -- :
I, [2024-02-15T10:33:29.864911 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2024-02-15T10:33:29.868193 #1] INFO -- :
I, [2024-02-15T10:33:29.868767 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-02-15T10:33:29.869091 #1] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:33:29.869415 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:33:29.869918 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-02-15T10:33:29.870365 #1] INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2024-02-15T10:33:29.870684 #1] INFO -- : > echo "done configuring web"
I, [2024-02-15T10:33:29.872978 #1] INFO -- : done configuring web
I, [2024-02-15T10:33:29.873275 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-02-15T10:33:30.711167 #1] INFO -- : Successfully installed bundler-2.5.3
1 gem installed
アップデート中にエラーが発生しました
```ruby
api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })
修正にご協力ください。
私のサーバーは論理コアが2つ、RAMが2GBで、4GBのスワップを有効にしています。
Ubuntu 20.04で実行しています。
以前のビルドでは、完全なログを保存しませんでしたが、次のログを取得しました。
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.
指示通りに実行しましたが、まだ動作しません。
これはSSHで見た最後の行で、その後サーバーはディスク読み込み100%でフリーズしました。再起動後にログファイルで見つかった2行は以下の通りです。
詳細をありがとうございます。この情報を提供していただき、ありがとうございます。
しかし、これは再起動までしか持たないと思います。再起動後は再度実行する必要があります。これを永続化する方法については、MKJ’s Opinionated Discourse Deployment Configuration を参照してください。
メモリ(RAM + swap)が不足している可能性がありますが、2+4であれば十分なはずです。以下の簡単な診断を実行し、結果を投稿してください。
cat /etc/lsb-release
uptime
df -h /
free
swapon
vmstat 5 5
dmesg|egrep -i "memory|oom|kill"
ps auxrc
app.yml ファイルもここに共有してください。ただし、パスワードや秘密トークンは含めないでください。
SSH接続を2つ設定できる場合は、1つでアプリの再構築を実行し、もう1つでマシンの状態を確認できます。私は交互に実行することをお勧めします。
vmstat 5 5
ps auxrc
リモートディスク(ネットワーク接続ストレージ)へのスワップが発生している可能性があります。これは問題があることが知られています。非常に遅くなるでしょう。タイムアウトが発生し、それが問題の原因となっているのかもしれません。タイムアウトを調整する方法があるかもしれません。
こちら を見つけました。役立つかもしれません。
(systemd のデフォルトのタイムアウトは、少なくとも systemd の一部のリリースでは 90 秒であり、これはかなりよく適合します)。
postgresql の systemd ユニット(またはグローバル)で TimeoutStartSec を増やすことで、これを回避しようとすることができます。これは、サービスが突然起動しなくなった場合にのみ問題が隠されるだけかもしれません。
編集:もしそうであれば、このアドバイス が良いかもしれません。
/etc/systemd/system.confで以下の行のコメントを解除できます。DefaultTimeoutStartSec=90s DefaultTimeoutStopSec=90sそして、値を適切なものに変更してください。
ご協力いただきありがとうございます!
結果:
root@iZj6cgi365ov99veqodfgnZ:/# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
root@iZj6cgi365ov99veqodfgnZ:/# uptime
09:24:47 up 12:57, 0 users, load average: 0.04, 0.08, 0.07
root@iZj6cgi365ov99veqodfgnZ:/# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 59G 14G 43G 24% /
root@iZj6cgi365ov99veqodfgnZ:/# free
total used free shared buff/cache available
Mem: 1912944 536564 85752 2120 1290628 1186896
Swap: 2097148 3584 2093564
root@iZj6cgi365ov99veqodfgnZ:/# swapon
NAME TYPE SIZE USED PRIO
/swapfile file 2G 3.5M -2
root@iZj6cgi365ov99veqodfgnZ:/# vmstat 5 5
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 3868 98444 398504 870220 0 0 10 5 90 125 1 0 99 0 0
0 0 3868 100300 398512 870424 0 0 1 3 1188 2171 1 1 98 0 0
2 0 3868 99828 398520 870424 0 0 0 4 1117 2067 1 1 98 0 0
0 0 3868 99324 398528 870428 0 0 0 5 1181 2186 1 0 98 0 0
0 0 3868 104112 398584 870428 0 0 0 41 1144 2104 1 1 98 0 0
root@iZj6cgi365ov99veqodfgnZ:/# dmesg|egrep -i "memory|oom|kill"
[ 0.005681] check: Scanning 1 areas for low memory corruption
[ 0.005904] ACPI: Reserving FACP table memory at [mem 0x7a9e0bfe-0x7a9e0c71]
[ 0.005905] ACPI: Reserving DSDT table memory at [mem 0x7a9e0040-0x7a9e0bfd]
[ 0.005905] ACPI: Reserving FACS table memory at [mem 0x7a9e0000-0x7a9e003f]
[ 0.005906] ACPI: Reserving SSDT table memory at [mem 0x7a9e0c72-0x7a9e18d7]
[ 0.005906] ACPI: Reserving APIC table memory at [mem 0x7a9e18d8-0x7a9e1957]
[ 0.005907] ACPI: Reserving SRAT table memory at [mem 0x7a9e1958-0x7a9e1a1f]
[ 0.006464] Early memory node ranges
[ 0.013922] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.013924] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.013925] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.013926] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.013928] PM: Registered nosave memory: [mem 0x14000000-0x1511ffff]
[ 0.018845] Memory: 1851216K/1990960K available (14339K kernel code, 2395K rwdata, 9288K rodata, 2768K init, 17228K bss, 139744K reserved, 0K cma-reserved)
[ 0.039645] Freeing SMP alternatives memory: 40K
[ 0.042284] x86/mm: Memory block size: 128MB
[ 0.275835] Freeing initrd memory: 53892K
[ 0.276020] check: Scanning for low memory corruption every 60 seconds
[ 0.658145] Freeing unused decrypted memory: 2040K
[ 0.658779] Freeing unused kernel image memory: 2768K
[ 0.659406] Freeing unused kernel image memory: 2036K
[ 0.659689] Freeing unused kernel image memory: 952K
root@iZj6cgi365ov99veqodfgnZ:/# ps auxrc
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 8756 0.1 3.0 684704 58528 ? Rl 09:16 0:00 node
root 9225 0.0 0.1 11488 3248 pts/0 R+ 09:26 0:00 ps
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"
## Uncomment the next line to enable the IPv6 listener
#- "templates/web.ipv6.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:
- "80:80" # http
- "443: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"
upload_size: 300m
## 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: tests-passed
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LANGUAGE: en_US.UTF-8
DISCOURSE_DEFAULT_LOCALE: zh_CN
## 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: 2
## TODO: The domain name this Discourse instance will respond to
## Required. Discourse will not work with a bare IP number.
DISCOURSE_HOSTNAME: *
## 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: *
## 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!
DISCOURSE_SMTP_ADDRESS: *
DISCOURSE_SMTP_PORT: *
DISCOURSE_SMTP_USER_NAME: *
DISCOURSE_SMTP_PASSWORD: *
#DISCOURSE_SMTP_ENABLE_START_TLS: true # (optional, default true)
DISCOURSE_SMTP_DOMAIN: *
DISCOURSE_NOTIFICATION_EMAIL: *
## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
LETSENCRYPT_ACCOUNT_EMAIL: me@example.com
## The http or https CDN address for this Discourse instance (configured to pull)
## see https://meta.discourse.org/t/14857 for details
#DISCOURSE_CDN_URL: https://discourse-cdn.example.com
## The maxmind geolocation IP address key for IP address lookup
## see https://meta.discourse.org/t/-/137387/23 for details
#DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456
## The Docker container is stateless; all data is stored in /shared
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/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
## 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"
前述したように、クラウドサーバーを使用しています。実際、クラウドサーバーのダッシュボードはサーバーの状態をリアルタイムで監視しており、ダッシュボードのデータに基づいてサーバーがフリーズしてからディスクの読み取り100%に気づきました。通常の利用時には、別のターミナルを開いてtopを実行することが多いです。クラッシュ前は、topでCPUのwaが90以上に達しているのを確認できました。
ディスクについては…クラウドサービスプロバイダーがどのようにディスクを接続しているのか分かりません。ダッシュボードでは、ディスクが約2500 IOPSでフルロードで動作していることがわかりました。
さらに、すべてのサービスがシステムディスク上で実行されているため、タイムアウトを引き起こすほどレイテンシが高くなるとは思えませんよね?結局のところ、システム自体が極端に高いレイテンシに耐えることはできません。
Linuxにはあまり詳しくないので、上記は私の推測にすぎません。何か提案があれば、いつでもお気軽にお知らせください。コミュニティからのあらゆる助けに本当に感謝しています。
(翻訳ソフトを使用しているため、私の言葉に不正確な点や不自然な表現がある場合はご容赦ください。)
ログでOOM関連のコンテンツを検索しているようですが、前回クラッシュしてから再起動したので、前回の実行からの記録がログに残っているか分かりません。
実際には、このコマンドは実行しませんでした。代わりに、sysctl.confを編集しました。これは永続的かもしれないと思いますか?
Aliyunダッシュボードからの監視データは以下の通りです。
クラッシュ後、「cpu_total」データは断続的になり、時折しか取得できなくなったため、グラフの線ははっきりとしたギザギザの線として表示されます。しかし、IOPSデータは比較的連続したままです。
この時点で、RAM使用率はほぼ100%のままです。しかし、公式のDiscourseドキュメントでは、小規模コミュニティには1GBで十分だと記載されていませんでしたか?
- 1 GB のRAMのデフォルト設定は、小規模なDiscourseコミュニティで問題なく動作します。大規模なコミュニティには2 GBのRAMをお勧めします。
discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub より
全く理解できません。
コミュニティには十分ですが、再構築には少なくとも2GB必要です。メモリ不足に関する質問が多すぎるため、更新する必要があります。
ただし、それが原因かどうかはわかりません。
そのような話は初めて聞きました。1GBのRAMサーバーでコンソール再構築に成功したことはありますが、UXアプデッターの試みはいくつか失敗しました。
RAMの代わりにメモリ用のスワップを追加すると役立つかもしれません。
新しい現在のバージョンのDiscourseは、コアシステムに最近いくつかの大きな変更があったと書かれているため、以前のものよりも多くのメモリを必要とする可能性があります。
一時的にDiscourseの古いバージョンをインストールすることは可能かもしれませんが、それで現在の問題が解決するのでしょうか?あるいは、古いバージョンを正常にインストールできた場合、それは最新バージョンのDiscourseをビルドするには2GBのRAMでは不十分であることを意味するのでしょうか?
新規ユーザーの1日の返信上限に達してしまったため、この返信を編集して追加情報を提供することしかできません。申し訳ありません。
AliyunのSimple Application Serverを使用しており、構成を4GBのRAMにアップグレードすることは可能です。しかし、パッケージの価格設定のため、ネットワーク構成もアップグレードされてしまい、特に価格が倍近くになることを考えると、それは必要ありません。さらに、このサーバーはデータをバックアップした後に構成をダウングレードすることをサポートしていないため、2コア2GB RAMの構成しか使用できない可能性があります。あるいは、一時的に月額以外の方法で高構成のサーバーを開設してビルドを完了し、その後、ビルドされたアプリ全体をどこかにアップロードして、自分のサーバーに直接ダウンロードして実行する方法はありますか?システムソフトウェア環境が同一であることを保証すれば、これは可能でしょうか?Dockerとビルドプロセスについてはあまり理解していないため、同様の解決策があれば、誰かが明確にしてくれるとありがたいです。
別の行…
現在、2コア、2GB RAM、60GB ESSDシステムディスク、2TBトラフィック、ピーク帯域幅30Mbps(パブリックIPを含む)のサーバーを所有しています。月額料金は34人民元(約4.78米ドル)で、非常に安いと思います。
その非常に低い価格を考えると、構成項目をパッケージとして変更できない、またはアップグレード後にダウングレードできないという欠点を許容しなければなりません🤣。
区切り…
OK、サーバーを再起動しました。驚いたことに、保存されたログの最後に、以前見たことがないこの行がありました。
3440:C 16 Feb 2024 03:03:04.088 * DB saved on disk
3440:C 16 Feb 2024 03:03:04.088 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
111:M 16 Feb 2024 03:03:04.167 * Background saving terminated with success
111:M 16 Feb 2024 03:58:50.500 * Replication backlog freed after 3600 seconds without connected replicas.
これでスワップファイルサイズを増やして、vmstatを実行しながらもう一度試してみます。
お待ちください… VSCodeを使用してサーバーに接続しており、ワークスペースとしてルートディレクトリ「/」を直接設定していることに突然気づきました。VSCodeは、大きなワークスペースの場合、ファイル変更を追跡できない可能性があると警告していましたが、それでもいくらかのIOとディスクリソースを消費しているはずですよね…?ワークスペースを開かずに、ターミナル経由で接続するだけでビルドを試してみます。今回はスワップを増やさずに、これが問題かどうかを確認します。
すべての回答と詳細情報、ありがとうございます。
確かに、再起動する前に OOM や類似のものを検索する方がおそらく役立つでしょう。したがって、まだ再起動していない場合は、はい、お願いします。
再構築がクリティカルセクションに達したときに、別の接続で vmstat 5 を同時に実行すると、情報が得られる可能性があります。
しかし、私には仮説が 2 つしかありません。
- メモリ不足。これにより進行が遅くなったり、何かが終了したりする可能性があります。
- 進行が遅いために時間がなくなる。
プロバイダーが RAM の増減の両方を許可していないのは残念です。
初期インストールと、1〜2 か月ごとに再構築が必要になるその後の更新では、以前よりも多くのメモリが必要になるのは事実です。しかし、
メモリ = RAM + スワップ
なので、時間的な制約がなければ、スワップを追加すれば成功するはずです。
ディスクはたくさんあります。2 番目と 3 番目のスワップファイルを追加することをお勧めします。ここにある指示を、新しいファイルを作成するように変更して参照してください。
すでに /swapfile があるので、代わりに /swapfile.1 と /swapfile.2 でこれらのコマンドを実行してください。
その後、swapon は使用中または使用準備完了の 3 つのファイルを表示し、free は約 2G の RAM と約 6G のスワップを表示するはずです。
それからもう一度試してください!
編集: 1G RAM インスタンスに db_shared_buffers: "128MB" が app.yml にあることに気づきました。
app.yml を変更する際は、スペースを追加または削除しないように、細心の注意を払ってください!
本当にありがとうございました!問題は解決し、ブートストラップは成功しました!問題はやはりVSCodeにあったようです。おそらく、ワークスペースとしてルートディレクトリを直接設定したため、VSCodeがインストールプロセス全体でファイルの変更をすべて追跡しようとしたのではないでしょうか?それが私の推測です。以前もクラッシュ時にディスクの読み込みがピークに達し、書き込みが少なかったため困惑していました。もしスワップ使用量が多いことが原因であれば、書き込みも多くなるはずです。今となっては、VSCodeが継続的にファイル変更を読み取っていたことが原因だったようです。システムに変更を加えすぎたため、クラウドサーバーをリセットし、最初からインストールをやり直す予定です。助けてくれた皆さん、本当にありがとうございました!すべて私のせいです。
これでアプリを正常にビルドでき、ビルド中の最大メモリ使用量は2GB RAM + 約2GBのスワップでした。ビルド中にSSH接続でいくつかの遅延がありましたが、切断はなく、全体的に比較的速かったです。スワップ使用量のピーク時には、ESSDの最大読み込み速度制限に達しましたが、それは非常に短時間で、大きな影響はありませんでした。
おめでとう、Tumbleweed @tumbleweed !!
![]()



