x86_64 arch detected. fatal: not a git repository (or any parent up to mount point /var) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: not a git repository (or any parent up to mount point /var) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). Stopping old container + /usr/bin/docker stop -t 60 app app 2.0.20230409-0052: Pulling from discourse/base Digest: sha256:dd75ceb9322f79629f8b0bf78cfb0f79ad6bb366b7ead3e1cd32dcb8712ec46f Status: Image is up to date for discourse/base:2.0.20230409-0052 docker.io/discourse/base:2.0.20230409-0052 /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups.rb /usr/local/bin/pups --stdin I, [2023-07-20T01:41:19.362264 #1] INFO -- : Reading from stdin I, [2023-07-20T01:41:19.370662 #1] INFO -- : > locale-gen $LANG && update-locale I, [2023-07-20T01:41:19.421532 #1] INFO -- : Generating locales (this might take a while)... Generation complete. I, [2023-07-20T01:41:19.422728 #1] INFO -- : > mkdir -p /shared/postgres_run I, [2023-07-20T01:41:19.429084 #1] INFO -- : I, [2023-07-20T01:41:19.430770 #1] INFO -- : > chown postgres:postgres /shared/postgres_run I, [2023-07-20T01:41:19.436865 #1] INFO -- : I, [2023-07-20T01:41:19.438477 #1] INFO -- : > chmod 775 /shared/postgres_run I, [2023-07-20T01:41:19.443903 #1] INFO -- : I, [2023-07-20T01:41:19.444987 #1] INFO -- : > rm -fr /var/run/postgresql I, [2023-07-20T01:41:19.450057 #1] INFO -- : I, [2023-07-20T01:41:19.451482 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql I, [2023-07-20T01:41:19.457715 #1] INFO -- : I, [2023-07-20T01:41:19.459093 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1 2023/07/20 01:41:19 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory I, [2023-07-20T01:41:19.478004 #1] INFO -- : I, [2023-07-20T01:41:19.479030 #1] INFO -- : > rm -fr /shared/postgres_run/.s* I, [2023-07-20T01:41:19.484580 #1] INFO -- : I, [2023-07-20T01:41:19.485529 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid I, [2023-07-20T01:41:19.491107 #1] INFO -- : I, [2023-07-20T01:41:19.492143 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp I, [2023-07-20T01:41:19.496615 #1] INFO -- : I, [2023-07-20T01:41:19.497890 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp I, [2023-07-20T01:41:19.502042 #1] INFO -- : I, [2023-07-20T01:41:19.511193 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown: I, [2023-07-20T01:41:19.520052 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown: I, [2023-07-20T01:41:19.528716 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown: I, [2023-07-20T01:41:19.539815 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown: I, [2023-07-20T01:41:19.541200 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main I, [2023-07-20T01:41:21.175372 #1] INFO -- : I, [2023-07-20T01:41:21.176642 #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-07-20T01:41:21.180639 #1] INFO -- : I, [2023-07-20T01:41:21.181473 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data I, [2023-07-20T01:41:21.236912 #1] INFO -- : I, [2023-07-20T01:41:21.238570 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql I, [2023-07-20T01:41:21.244890 #1] INFO -- : I, [2023-07-20T01:41:21.246056 #1] INFO -- : > /root/upgrade_postgres I, [2023-07-20T01:41:21.257752 #1] INFO -- : I, [2023-07-20T01:41:21.258924 #1] INFO -- : > rm /root/upgrade_postgres I, [2023-07-20T01:41:21.263572 #1] INFO -- : I, [2023-07-20T01:41:21.265995 #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-07-20T01:41:21.267607 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf I, [2023-07-20T01:41:21.268759 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf I, [2023-07-20T01:41:21.270163 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf I, [2023-07-20T01:41:21.271248 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf I, [2023-07-20T01:41:21.272193 #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-07-20T01:41:21.273200 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup I, [2023-07-20T01:41:21.281579 #1] INFO -- : I, [2023-07-20T01:41:21.283165 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf I, [2023-07-20T01:41:21.284901 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf I, [2023-07-20T01:41:21.286015 #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-07-20T01:41:21.287447 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf I, [2023-07-20T01:41:21.288671 #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-07-20T01:41:21.289563 #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-07-20T01:41:21.290492 #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-07-20T01:41:21.294493 #1] INFO -- : > sleep 5 2023-07-20 01:41:21.374 UTC [42] LOG: starting PostgreSQL 13.10 (Debian 13.10-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit 2023-07-20 01:41:21.375 UTC [42] LOG: listening on IPv4 address "0.0.0.0", port 5432 2023-07-20 01:41:21.376 UTC [42] LOG: listening on IPv6 address "::", port 5432 2023-07-20 01:41:21.383 UTC [42] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-07-20 01:41:21.392 UTC [45] LOG: database system was shut down at 2023-07-20 01:41:08 UTC 2023-07-20 01:41:21.404 UTC [42] LOG: database system is ready to accept connections I, [2023-07-20T01:41:26.301904 #1] INFO -- : I, [2023-07-20T01:41:26.302466 #1] INFO -- : > su postgres -c 'createdb discourse' || true 2023-07-20 01:41:26.462 UTC [55] postgres@postgres ERROR: database "discourse" already exists 2023-07-20 01:41:26.462 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse; createdb: error: database creation failed: ERROR: database "discourse" already exists I, [2023-07-20T01:41:26.467633 #1] INFO -- : I, [2023-07-20T01:41:26.468708 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true 2023-07-20 01:41:26.582 UTC [59] postgres@discourse ERROR: role "discourse" already exists 2023-07-20 01:41:26.582 UTC [59] postgres@discourse STATEMENT: create user discourse; ERROR: role "discourse" already exists I, [2023-07-20T01:41:26.586950 #1] INFO -- : I, [2023-07-20T01:41:26.587892 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true I, [2023-07-20T01:41:26.669993 #1] INFO -- : GRANT I, [2023-07-20T01:41:26.672113 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' I, [2023-07-20T01:41:26.756630 #1] INFO -- : ALTER SCHEMA I, [2023-07-20T01:41:26.757697 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"' NOTICE: extension "hstore" already exists, skipping I, [2023-07-20T01:41:26.865618 #1] INFO -- : CREATE EXTENSION I, [2023-07-20T01:41:26.866713 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"' NOTICE: extension "pg_trgm" already exists, skipping I, [2023-07-20T01:41:26.949941 #1] INFO -- : CREATE EXTENSION I, [2023-07-20T01:41:26.950945 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"' NOTICE: extension "hstore" already exists, skipping I, [2023-07-20T01:41:27.039972 #1] INFO -- : CREATE EXTENSION I, [2023-07-20T01:41:27.041055 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"' NOTICE: extension "pg_trgm" already exists, skipping I, [2023-07-20T01:41:27.125201 #1] INFO -- : CREATE EXTENSION I, [2023-07-20T01:41:27.126500 #1] INFO -- : > sudo -u postgres psql discourse I, [2023-07-20T01:41:27.134763 #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-07-20T01:41:27.282354 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres I, [2023-07-20T01:41:27.287664 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown: I, [2023-07-20T01:41:27.288769 #1] INFO -- : > echo postgres installed! I, [2023-07-20T01:41:27.295019 #1] INFO -- : postgres installed! I, [2023-07-20T01:41:27.304130 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown: I, [2023-07-20T01:41:27.312386 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown: I, [2023-07-20T01:41:27.319350 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown: I, [2023-07-20T01:41:27.321249 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf I, [2023-07-20T01:41:27.323155 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf I, [2023-07-20T01:41:27.324479 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data I, [2023-07-20T01:41:27.329851 #1] INFO -- : I, [2023-07-20T01:41:27.331305 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf I, [2023-07-20T01:41:27.332814 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf I, [2023-07-20T01:41:27.334440 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf I, [2023-07-20T01:41:27.335850 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf I, [2023-07-20T01:41:27.337133 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf I, [2023-07-20T01:41:27.338396 #1] INFO -- : > echo redis installed I, [2023-07-20T01:41:27.342068 #1] INFO -- : redis installed I, [2023-07-20T01:41:27.343084 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile I, [2023-07-20T01:41:27.350116 #1] INFO -- : logfile "" I, [2023-07-20T01:41:27.351294 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf I, [2023-07-20T01:41:27.354855 #1] INFO -- : > sleep 10 103:C 20 Jul 2023 01:41:27.373 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 103:C 20 Jul 2023 01:41:27.374 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=103, just started 103:C 20 Jul 2023 01:41:27.375 # Configuration loaded 103:M 20 Jul 2023 01:41:27.376 * monotonic clock: POSIX clock_gettime 103:M 20 Jul 2023 01:41:27.377 * Running mode=standalone, port=6379. 103:M 20 Jul 2023 01:41:27.378 # Server initialized 103:M 20 Jul 2023 01:41:27.379 # 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. 103:M 20 Jul 2023 01:41:27.379 * Loading RDB produced by version 7.0.7 103:M 20 Jul 2023 01:41:27.380 * RDB age 21 seconds 103:M 20 Jul 2023 01:41:27.380 * RDB memory usage when created 5.53 Mb 103:M 20 Jul 2023 01:41:27.393 * Done loading RDB, keys loaded: 2026, keys expired: 0. 103:M 20 Jul 2023 01:41:27.394 * DB loaded from disk: 0.014 seconds 103:M 20 Jul 2023 01:41:27.394 * Ready to accept connections I, [2023-07-20T01:41:37.365801 #1] INFO -- : I, [2023-07-20T01:41:37.366970 #1] INFO -- : > thpoff echo "thpoff is installed!" I, [2023-07-20T01:41:37.374261 #1] INFO -- : thpoff is installed! I, [2023-07-20T01:41:37.375416 #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-07-20T01:41:37.483712 #1] INFO -- : I, [2023-07-20T01:41:37.484729 #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-07-20T01:41:37.585078 #1] INFO -- : I, [2023-07-20T01:41:37.586214 #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-07-20T01:41:37.694637 #1] INFO -- : I, [2023-07-20T01:41:37.695460 #1] INFO -- : > rm -f /etc/cron.d/anacron I, [2023-07-20T01:41:37.700203 #1] INFO -- : I, [2023-07-20T01:41:37.705149 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown: I, [2023-07-20T01:41:37.713939 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown: I, [2023-07-20T01:41:37.723290 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown: I, [2023-07-20T01:41:37.733521 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown: I, [2023-07-20T01:41:37.742366 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown: I, [2023-07-20T01:41:37.751329 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown: I, [2023-07-20T01:41:37.752278 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run I, [2023-07-20T01:41:37.753230 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf I, [2023-07-20T01:41:37.757930 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard 130:C 20 Jul 2023 01:41:37.776 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 130:C 20 Jul 2023 01:41:37.777 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=130, just started 130:C 20 Jul 2023 01:41:37.777 # Configuration loaded 130:M 20 Jul 2023 01:41:37.778 * monotonic clock: POSIX clock_gettime 130:M 20 Jul 2023 01:41:37.780 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use 130:M 20 Jul 2023 01:41:37.783 # Failed listening on port 6379 (TCP), aborting. Updating files: 21% (7183/33083) Updating files: 22% (7279/33083) Updating files: 23% (7610/33083) Updating files: 24% (7940/33083) Updating files: 25% (8271/33083) Updating files: 26% (8602/33083) Updating files: 27% (8933/33083) Updating files: 28% (9264/33083) Updating files: 29% (9595/33083) Updating files: 30% (9925/33083) Updating files: 31% (10256/33083) Updating files: 32% (10587/33083) Updating files: 33% (10918/33083) Updating files: 34% (11249/33083) Updating files: 35% (11580/33083) Updating files: 36% (11910/33083) Updating files: 37% (12241/33083) Updating files: 38% (12572/33083) Updating files: 39% (12903/33083) Updating files: 40% (13234/33083) Updating files: 41% (13565/33083) Updating files: 42% (13895/33083) Updating files: 43% (14226/33083) Updating files: 44% (14557/33083) Updating files: 45% (14888/33083) Updating files: 46% (15219/33083) Updating files: 47% (15550/33083) Updating files: 48% (15880/33083) Updating files: 49% (16211/33083) Updating files: 50% (16542/33083) Updating files: 50% (16823/33083) Updating files: 51% (16873/33083) Updating files: 52% (17204/33083) Updating files: 53% (17534/33083) Updating files: 54% (17865/33083) Updating files: 55% (18196/33083) Updating files: 56% (18527/33083) Updating files: 57% (18858/33083) Updating files: 58% (19189/33083) Updating files: 59% (19519/33083) Updating files: 60% (19850/33083) Updating files: 61% (20181/33083) Updating files: 62% (20512/33083) Updating files: 63% (20843/33083) Updating files: 64% (21174/33083) Updating files: 65% (21504/33083) Updating files: 66% (21835/33083) Updating files: 67% (22166/33083) Updating files: 68% (22497/33083) Updating files: 69% (22828/33083) Updating files: 70% (23159/33083) Updating files: 71% (23489/33083) Updating files: 72% (23820/33083) Updating files: 73% (24151/33083) Updating files: 73% (24417/33083) Updating files: 74% (24482/33083) Updating files: 75% (24813/33083) Updating files: 76% (25144/33083) Updating files: 77% (25474/33083) Updating files: 78% (25805/33083) Updating files: 79% (26136/33083) Updating files: 80% (26467/33083) Updating files: 81% (26798/33083) Updating files: 82% (27129/33083) Updating files: 83% (27459/33083) Updating files: 84% (27790/33083) Updating files: 85% (28121/33083) Updating files: 86% (28452/33083) Updating files: 87% (28783/33083) Updating files: 88% (29114/33083) Updating files: 89% (29444/33083) Updating files: 90% (29775/33083) Updating files: 91% (30106/33083) Updating files: 92% (30437/33083) Updating files: 93% (30768/33083) Updating files: 94% (31099/33083) Updating files: 94% (31303/33083) Updating files: 95% (31429/33083) Updating files: 96% (31760/33083) Updating files: 97% (32091/33083) Updating files: 98% (32422/33083) Updating files: 99% (32753/33083) Updating files: 100% (33083/33083) Updating files: 100% (33083/33083), done. I, [2023-07-20T01:41:43.700069 #1] INFO -- : HEAD is now at 768851920 DEV: Add `overflow-x: hidden` to chat message containers (#21030) I, [2023-07-20T01:41:43.700930 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f I, [2023-07-20T01:41:43.941292 #1] INFO -- : I, [2023-07-20T01:41:43.942062 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c ' 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 --prune --prune-tags origin tests-passed fi ' From https://github.com/discourse/discourse * branch tests-passed -> FETCH_HEAD 768851920..117f6d92a tests-passed -> origin/tests-passed I, [2023-07-20T01:41:44.664986 #1] INFO -- : I, [2023-07-20T01:41:44.665753 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c ' 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, [2023-07-20T01:41:50.952447 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'. I, [2023-07-20T01:41:50.953272 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp I, [2023-07-20T01:41:50.960422 #1] INFO -- : I, [2023-07-20T01:41:50.961329 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp I, [2023-07-20T01:41:50.969140 #1] INFO -- : I, [2023-07-20T01:41:50.969985 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids I, [2023-07-20T01:41:50.977077 #1] INFO -- : I, [2023-07-20T01:41:50.978308 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets I, [2023-07-20T01:41:50.986017 #1] INFO -- : I, [2023-07-20T01:41:50.986901 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep I, [2023-07-20T01:41:50.993625 #1] INFO -- : I, [2023-07-20T01:41:50.994521 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails I, [2023-07-20T01:41:50.999824 #1] INFO -- : I, [2023-07-20T01:41:51.000720 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log" I, [2023-07-20T01:41:51.012435 #1] INFO -- : I, [2023-07-20T01:41:51.013357 #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-07-20T01:41:51.023492 #1] INFO -- : I, [2023-07-20T01:41:51.024436 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}" I, [2023-07-20T01:41:51.034956 #1] INFO -- : I, [2023-07-20T01:41:51.035901 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public" I, [2023-07-20T01:41:51.044904 #1] INFO -- : I, [2023-07-20T01:41:51.045834 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}" I, [2023-07-20T01:41:51.056706 #1] INFO -- : I, [2023-07-20T01:41:51.057768 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp" I, [2023-07-20T01:41:51.066969 #1] INFO -- : I, [2023-07-20T01:41:51.067887 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp I, [2023-07-20T01:41:51.100428 #1] INFO -- : I, [2023-07-20T01:41:51.101375 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete I, [2023-07-20T01:41:51.112440 #1] INFO -- : I, [2023-07-20T01:41:51.113957 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run I, [2023-07-20T01:41:51.115315 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git Cloning into 'docker_manager'... I, [2023-07-20T01:41:52.121030 #1] INFO -- : I, [2023-07-20T01:41:52.122267 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf I, [2023-07-20T01:41:52.130280 #1] INFO -- : I, [2023-07-20T01:41:52.131471 #1] INFO -- : > rm /etc/nginx/sites-enabled/default I, [2023-07-20T01:41:52.136165 #1] INFO -- : I, [2023-07-20T01:41:52.137036 #1] INFO -- : > mkdir -p /var/nginx/cache I, [2023-07-20T01:41:52.141812 #1] INFO -- : I, [2023-07-20T01:41:52.143187 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf I, [2023-07-20T01:41:52.146905 #1] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf I, [2023-07-20T01:41:52.148107 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf I, [2023-07-20T01:41:52.149021 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf I, [2023-07-20T01:41:52.149769 #1] INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf I, [2023-07-20T01:41:52.150565 #1] INFO -- : > echo "done configuring web" I, [2023-07-20T01:41:52.154288 #1] INFO -- : done configuring web I, [2023-07-20T01:41:52.155520 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock) I, [2023-07-20T01:41:53.172714 #1] INFO -- : Successfully installed bundler-2.4.13 1 gem installed I, [2023-07-20T01:41:53.173721 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+ I, [2023-07-20T01:42:03.983189 #1] INFO -- : I, [2023-07-20T01:42:03.987323 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean' warning " > @mixer/parallel-prettier@2.0.3" has unmet peer dependency "prettier@^2.0.0". warning Resolution field "babel-plugin-ember-template-compilation@2.0.0" is incompatible with requested version "babel-plugin-ember-template-compilation@^2.0.1" warning " > babel-plugin-debug-macros@0.4.0-pre1" has unmet peer dependency "@babel/core@^7.0.0". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > discourse-common > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > discourse-common > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > discourse-common > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > admin > ember-auto-import > babel-loader@8.3.0" has unmet peer dependency "webpack@>=2". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > admin > ember-auto-import > css-loader@5.2.7" has unmet peer dependency "webpack@^4.27.0 || ^5.0.0". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > admin > ember-auto-import > mini-css-extract-plugin@2.7.6" has unmet peer dependency "webpack@^5.0.0". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > admin > ember-auto-import > style-loader@2.0.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > discourse > ember-source > @babel/plugin-transform-block-scoping@7.22.5" has unmet peer dependency "@babel/core@^7.0.0-0". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > discourse > ember-source > @babel/plugin-transform-object-assign@7.22.5" has unmet peer dependency "@babel/core@^7.0.0-0". warning "workspace-aggregator-46b5e639-b941-4187-ac52-a6e935211c90 > discourse-common > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1". error /var/www/discourse/app/assets/javascripts/node_modules/discourse: Command failed. Exit code: 1 Command: yarn --silent --cwd .. patch-package Arguments: Directory: /var/www/discourse/app/assets/javascripts/node_modules/discourse Output: error Command "patch-package" not found. error Command failed with exit code 1. I, [2023-07-20T01:43:16.597313 #1] INFO -- : yarn install v1.22.19 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... [4/5] Linking dependencies... [5/5] Building fresh packages... $ yarn --cwd app/assets/javascripts $(node -e 'if(JSON.parse(process.env.npm_config_argv).original.includes(`--frozen-lockfile`)){console.log(`--frozen-lockfile`)}') yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. I, [2023-07-20T01:43:16.612987 #1] INFO -- : Terminating async processes I, [2023-07-20T01:43:16.613793 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 42 I, [2023-07-20T01:43:16.615523 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103 2023-07-20 01:43:16.616 UTC [42] LOG: received fast shutdown request 103:signal-handler (1689817396) Received SIGTERM scheduling shutdown... 2023-07-20 01:43:16.625 UTC [42] LOG: aborting any active transactions 2023-07-20 01:43:16.649 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1 103:M 20 Jul 2023 01:43:16.650 # User requested shutdown... 103:M 20 Jul 2023 01:43:16.651 * Saving the final RDB snapshot before exiting. 2023-07-20 01:43:16.654 UTC [46] LOG: shutting down 2023-07-20 01:43:16.768 UTC [42] LOG: database system is shut down 103:M 20 Jul 2023 01:43:16.897 * DB saved on disk 103:M 20 Jul 2023 01:43:16.898 # Redis is now ready to exit, bye bye... FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean' failed with return # Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn' exec failed with the params {"cd"=>"$home", "cmd"=>["su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'"]} bootstrap failed with exit code 1 ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one. ./discourse-doctor may help diagnose the problem. cec228385715f5abad06ea7d6c7d0ad9525c95e4843c272edee2aa30e2502b06