DISCOURSE DOCTOR Wed Jul 19 23:47:21 UTC 2023 OS: Linux s-1vcpu-1gb-nyc3-01 5.15.0-76-generic #83-Ubuntu SMP Thu Jun 15 19:16:32 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux Found containers/app.yml ==================== YML SETTINGS ==================== DISCOURSE_HOSTNAME=distroleaders.club SMTP_ADDRESS=smtp.mailgun.org DEVELOPER_EMAILS=REDACTED SMTP_PASSWORD=REDACTED SMTP_PORT=587 SMTP_USER_NAME=postmaster@distroleaders.club LETSENCRYPT_ACCOUNT_EMAIL=REDACTED ==================== DOCKER INFO ==================== DOCKER VERSION: Docker version 24.0.4, build 3713ee1 DOCKER PROCESSES (docker ps -a) CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 316af05f95cc local_discourse/app "/sbin/boot" 2 months ago Exited (5) 2 minutes ago app ==================== SERIOUS PROBLEM!!!! ==================== app not running! Attempting to rebuild ==================== REBUILD LOG ==================== 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-19T23:47:30.216987 #1] INFO -- : Reading from stdin I, [2023-07-19T23:47:30.223949 #1] INFO -- : > locale-gen $LANG && update-locale I, [2023-07-19T23:47:30.293287 #1] INFO -- : Generating locales (this might take a while)... Generation complete. I, [2023-07-19T23:47:30.294401 #1] INFO -- : > mkdir -p /shared/postgres_run I, [2023-07-19T23:47:30.301086 #1] INFO -- : I, [2023-07-19T23:47:30.302485 #1] INFO -- : > chown postgres:postgres /shared/postgres_run I, [2023-07-19T23:47:30.308012 #1] INFO -- : I, [2023-07-19T23:47:30.309117 #1] INFO -- : > chmod 775 /shared/postgres_run I, [2023-07-19T23:47:30.313135 #1] INFO -- : I, [2023-07-19T23:47:30.314171 #1] INFO -- : > rm -fr /var/run/postgresql I, [2023-07-19T23:47:30.319245 #1] INFO -- : I, [2023-07-19T23:47:30.320253 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql I, [2023-07-19T23:47:30.324517 #1] INFO -- : I, [2023-07-19T23:47:30.325464 #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/19 23:47:30 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory I, [2023-07-19T23:47:30.341070 #1] INFO -- : I, [2023-07-19T23:47:30.342115 #1] INFO -- : > rm -fr /shared/postgres_run/.s* I, [2023-07-19T23:47:30.347417 #1] INFO -- : I, [2023-07-19T23:47:30.348459 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid I, [2023-07-19T23:47:30.353189 #1] INFO -- : I, [2023-07-19T23:47:30.354113 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp I, [2023-07-19T23:47:30.358474 #1] INFO -- : I, [2023-07-19T23:47:30.359589 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp I, [2023-07-19T23:47:30.371554 #1] INFO -- : I, [2023-07-19T23:47:30.380540 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown: I, [2023-07-19T23:47:30.386544 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown: I, [2023-07-19T23:47:30.392078 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown: I, [2023-07-19T23:47:30.398655 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown: I, [2023-07-19T23:47:30.399615 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main I, [2023-07-19T23:47:31.877793 #1] INFO -- : I, [2023-07-19T23:47:31.879238 #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-19T23:47:31.882929 #1] INFO -- : I, [2023-07-19T23:47:31.883787 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data I, [2023-07-19T23:47:31.933677 #1] INFO -- : I, [2023-07-19T23:47:31.934834 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql I, [2023-07-19T23:47:31.938121 #1] INFO -- : I, [2023-07-19T23:47:31.939012 #1] INFO -- : > /root/upgrade_postgres I, [2023-07-19T23:47:31.947589 #1] INFO -- : I, [2023-07-19T23:47:31.948595 #1] INFO -- : > rm /root/upgrade_postgres I, [2023-07-19T23:47:31.952677 #1] INFO -- : I, [2023-07-19T23:47:31.955082 #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-19T23:47:31.956613 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf I, [2023-07-19T23:47:31.957674 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf I, [2023-07-19T23:47:31.958775 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf I, [2023-07-19T23:47:31.959663 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf I, [2023-07-19T23:47:31.960492 #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-19T23:47:31.961263 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup I, [2023-07-19T23:47:31.968724 #1] INFO -- : I, [2023-07-19T23:47:31.970697 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf I, [2023-07-19T23:47:31.972323 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf I, [2023-07-19T23:47:31.973588 #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-19T23:47:31.975295 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf I, [2023-07-19T23:47:31.976510 #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-19T23:47:31.977359 #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-19T23:47:31.978202 #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-19T23:47:31.981741 #1] INFO -- : > sleep 5 2023-07-19 23:47:32.053 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-19 23:47:32.054 UTC [42] LOG: listening on IPv4 address "0.0.0.0", port 5432 2023-07-19 23:47:32.054 UTC [42] LOG: listening on IPv6 address "::", port 5432 2023-07-19 23:47:32.060 UTC [42] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-07-19 23:47:32.071 UTC [45] LOG: database system was shut down at 2023-07-19 23:46:44 UTC 2023-07-19 23:47:32.081 UTC [42] LOG: database system is ready to accept connections I, [2023-07-19T23:47:36.987531 #1] INFO -- : I, [2023-07-19T23:47:36.987808 #1] INFO -- : > su postgres -c 'createdb discourse' || true 2023-07-19 23:47:37.120 UTC [55] postgres@postgres ERROR: database "discourse" already exists 2023-07-19 23:47:37.120 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse; createdb: error: database creation failed: ERROR: database "discourse" already exists I, [2023-07-19T23:47:37.124793 #1] INFO -- : I, [2023-07-19T23:47:37.125519 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true 2023-07-19 23:47:37.231 UTC [59] postgres@discourse ERROR: role "discourse" already exists 2023-07-19 23:47:37.231 UTC [59] postgres@discourse STATEMENT: create user discourse; ERROR: role "discourse" already exists I, [2023-07-19T23:47:37.236675 #1] INFO -- : I, [2023-07-19T23:47:37.237883 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true I, [2023-07-19T23:47:37.360633 #1] INFO -- : GRANT I, [2023-07-19T23:47:37.361512 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' I, [2023-07-19T23:47:37.432452 #1] INFO -- : ALTER SCHEMA I, [2023-07-19T23:47:37.433330 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"' NOTICE: extension "hstore" already exists, skipping I, [2023-07-19T23:47:37.523419 #1] INFO -- : CREATE EXTENSION I, [2023-07-19T23:47:37.524452 #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-19T23:47:37.604962 #1] INFO -- : CREATE EXTENSION I, [2023-07-19T23:47:37.605978 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"' NOTICE: extension "hstore" already exists, skipping I, [2023-07-19T23:47:37.675442 #1] INFO -- : CREATE EXTENSION I, [2023-07-19T23:47:37.676416 #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-19T23:47:37.753668 #1] INFO -- : CREATE EXTENSION I, [2023-07-19T23:47:37.754639 #1] INFO -- : > sudo -u postgres psql discourse I, [2023-07-19T23:47:37.762498 #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-19T23:47:37.878948 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres I, [2023-07-19T23:47:37.884946 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown: I, [2023-07-19T23:47:37.885940 #1] INFO -- : > echo postgres installed! I, [2023-07-19T23:47:37.890460 #1] INFO -- : postgres installed! I, [2023-07-19T23:47:37.898622 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown: I, [2023-07-19T23:47:37.907208 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown: I, [2023-07-19T23:47:37.915622 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown: I, [2023-07-19T23:47:37.917543 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf I, [2023-07-19T23:47:37.919896 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf I, [2023-07-19T23:47:37.921351 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data I, [2023-07-19T23:47:37.926966 #1] INFO -- : I, [2023-07-19T23:47:37.928592 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf I, [2023-07-19T23:47:37.930041 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf I, [2023-07-19T23:47:37.931552 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf I, [2023-07-19T23:47:37.932721 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf I, [2023-07-19T23:47:37.934221 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf I, [2023-07-19T23:47:37.935613 #1] INFO -- : > echo redis installed I, [2023-07-19T23:47:37.939516 #1] INFO -- : redis installed I, [2023-07-19T23:47:37.940469 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile I, [2023-07-19T23:47:37.947786 #1] INFO -- : logfile "" I, [2023-07-19T23:47:37.948801 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf I, [2023-07-19T23:47:37.951597 #1] INFO -- : > sleep 10 103:C 19 Jul 2023 23:47:37.965 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 103:C 19 Jul 2023 23:47:37.966 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=103, just started 103:C 19 Jul 2023 23:47:37.966 # Configuration loaded 103:M 19 Jul 2023 23:47:37.968 * monotonic clock: POSIX clock_gettime 103:M 19 Jul 2023 23:47:37.971 * Running mode=standalone, port=6379. 103:M 19 Jul 2023 23:47:37.972 # Server initialized 103:M 19 Jul 2023 23:47:37.972 # 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 19 Jul 2023 23:47:37.973 * Loading RDB produced by version 7.0.7 103:M 19 Jul 2023 23:47:37.973 * RDB age 53 seconds 103:M 19 Jul 2023 23:47:37.974 * RDB memory usage when created 3.93 Mb 103:M 19 Jul 2023 23:47:37.985 * Done loading RDB, keys loaded: 2010, keys expired: 0. 103:M 19 Jul 2023 23:47:37.986 * DB loaded from disk: 0.013 seconds 103:M 19 Jul 2023 23:47:37.986 * Ready to accept connections I, [2023-07-19T23:47:47.957128 #1] INFO -- : I, [2023-07-19T23:47:47.958201 #1] INFO -- : > thpoff echo "thpoff is installed!" I, [2023-07-19T23:47:47.965498 #1] INFO -- : thpoff is installed! I, [2023-07-19T23:47:47.966423 #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-19T23:47:48.109086 #1] INFO -- : I, [2023-07-19T23:47:48.110054 #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-19T23:47:48.211827 #1] INFO -- : I, [2023-07-19T23:47:48.212696 #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-19T23:47:48.308126 #1] INFO -- : I, [2023-07-19T23:47:48.309067 #1] INFO -- : > rm -f /etc/cron.d/anacron I, [2023-07-19T23:47:48.314003 #1] INFO -- : I, [2023-07-19T23:47:48.319633 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown: I, [2023-07-19T23:47:48.328677 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown: I, [2023-07-19T23:47:48.335480 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown: I, [2023-07-19T23:47:48.341921 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown: I, [2023-07-19T23:47:48.348739 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown: I, [2023-07-19T23:47:48.354824 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown: I, [2023-07-19T23:47:48.355536 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run I, [2023-07-19T23:47:48.356256 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf I, [2023-07-19T23:47:48.359213 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard 130:C 19 Jul 2023 23:47:48.373 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 130:C 19 Jul 2023 23:47:48.373 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=130, just started 130:C 19 Jul 2023 23:47:48.374 # Configuration loaded 130:M 19 Jul 2023 23:47:48.375 * monotonic clock: POSIX clock_gettime 130:M 19 Jul 2023 23:47:48.375 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use 130:M 19 Jul 2023 23:47:48.376 # Failed listening on port 6379 (TCP), aborting. Updating files: 21% (7059/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: 46% (15527/33083) Updating files: 47% (15550/33083) Updating files: 48% (15880/33083) Updating files: 49% (16211/33083) Updating files: 50% (16542/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: 70% (23342/33083) Updating files: 71% (23489/33083) Updating files: 72% (23820/33083) Updating files: 73% (24151/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: 93% (30809/33083) Updating files: 94% (31099/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-19T23:47:54.112961 #1] INFO -- : HEAD is now at 768851920 DEV: Add `overflow-x: hidden` to chat message containers (#21030) I, [2023-07-19T23:47:54.114277 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f I, [2023-07-19T23:47:54.465279 #1] INFO -- : I, [2023-07-19T23:47:54.466299 #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..b105c6c51 tests-passed -> origin/tests-passed I, [2023-07-19T23:47:55.219090 #1] INFO -- : I, [2023-07-19T23:47:55.219932 #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-19T23:48:01.038199 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'. I, [2023-07-19T23:48:01.039344 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp I, [2023-07-19T23:48:01.049026 #1] INFO -- : I, [2023-07-19T23:48:01.050140 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp I, [2023-07-19T23:48:01.057656 #1] INFO -- : I, [2023-07-19T23:48:01.059056 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids I, [2023-07-19T23:48:01.066682 #1] INFO -- : I, [2023-07-19T23:48:01.067768 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets I, [2023-07-19T23:48:01.074846 #1] INFO -- : I, [2023-07-19T23:48:01.075813 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep I, [2023-07-19T23:48:01.083661 #1] INFO -- : I, [2023-07-19T23:48:01.084734 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails I, [2023-07-19T23:48:01.092192 #1] INFO -- : I, [2023-07-19T23:48:01.093336 #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-19T23:48:01.103833 #1] INFO -- : I, [2023-07-19T23:48:01.104765 #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-19T23:48:01.118287 #1] INFO -- : I, [2023-07-19T23:48:01.119607 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}" I, [2023-07-19T23:48:01.129104 #1] INFO -- : I, [2023-07-19T23:48:01.130710 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public" I, [2023-07-19T23:48:01.146345 #1] INFO -- : I, [2023-07-19T23:48:01.148020 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}" I, [2023-07-19T23:48:01.159863 #1] INFO -- : I, [2023-07-19T23:48:01.161438 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp" I, [2023-07-19T23:48:01.171321 #1] INFO -- : I, [2023-07-19T23:48:01.172407 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp I, [2023-07-19T23:48:01.227422 #1] INFO -- : I, [2023-07-19T23:48:01.228386 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete I, [2023-07-19T23:48:01.244156 #1] INFO -- : I, [2023-07-19T23:48:01.246330 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run I, [2023-07-19T23:48:01.247613 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git Cloning into 'docker_manager'... I, [2023-07-19T23:48:02.457413 #1] INFO -- : I, [2023-07-19T23:48:02.460363 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf I, [2023-07-19T23:48:02.470063 #1] INFO -- : I, [2023-07-19T23:48:02.471483 #1] INFO -- : > rm /etc/nginx/sites-enabled/default I, [2023-07-19T23:48:02.478860 #1] INFO -- : I, [2023-07-19T23:48:02.480170 #1] INFO -- : > mkdir -p /var/nginx/cache I, [2023-07-19T23:48:02.487221 #1] INFO -- : I, [2023-07-19T23:48:02.489262 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf I, [2023-07-19T23:48:02.492881 #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-19T23:48:02.494549 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf I, [2023-07-19T23:48:02.496361 #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-19T23:48:02.497547 #1] INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf I, [2023-07-19T23:48:02.498986 #1] INFO -- : > echo "done configuring web" I, [2023-07-19T23:48:02.503300 #1] INFO -- : done configuring web I, [2023-07-19T23:48:02.504493 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock) I, [2023-07-19T23:48:03.671962 #1] INFO -- : Successfully installed bundler-2.4.13 1 gem installed I, [2023-07-19T23:48:03.673064 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+ I, [2023-07-19T23:48:11.840043 #1] INFO -- : I, [2023-07-19T23:48:11.842116 #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-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > discourse-common > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > discourse-common > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > discourse-common > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > admin > ember-auto-import > babel-loader@8.3.0" has unmet peer dependency "webpack@>=2". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > admin > ember-auto-import > css-loader@5.2.7" has unmet peer dependency "webpack@^4.27.0 || ^5.0.0". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > admin > ember-auto-import > mini-css-extract-plugin@2.7.6" has unmet peer dependency "webpack@^5.0.0". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > admin > ember-auto-import > style-loader@2.0.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > discourse > ember-source > @babel/plugin-transform-block-scoping@7.22.5" has unmet peer dependency "@babel/core@^7.0.0-0". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > discourse > ember-source > @babel/plugin-transform-object-assign@7.22.5" has unmet peer dependency "@babel/core@^7.0.0-0". warning "workspace-aggregator-8fc3bc78-e0dc-492d-b13a-7a37f25979f6 > 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-19T23:49:22.382860 #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-19T23:49:22.405468 #1] INFO -- : Terminating async processes I, [2023-07-19T23:49:22.407781 #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-19T23:49:22.409521 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 103 2023-07-19 23:49:22.410 UTC [42] LOG: received fast shutdown request 103:signal-handler (1689810562) Received SIGTERM scheduling shutdown... 2023-07-19 23:49:22.420 UTC [42] LOG: aborting any active transactions 103:M 19 Jul 2023 23:49:22.429 # User requested shutdown... 103:M 19 Jul 2023 23:49:22.431 * Saving the final RDB snapshot before exiting. 2023-07-19 23:49:22.460 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1 2023-07-19 23:49:22.465 UTC [46] LOG: shutting down 2023-07-19 23:49:22.549 UTC [42] LOG: database system is shut down 103:M 19 Jul 2023 23:49:22.595 * DB saved on disk 103:M 19 Jul 2023 23:49:22.599 # 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. e8703241586f789727ff3996596e9ed3f63a6bf265328eae3fd5dda65d6817c8 ==================== END REBUILD LOG ==================== Failed to rebuild app. Checking your domain name . . . Connection to distroleaders.club succeeded. You should probably remove any non-standard plugins and rebuild. Attempting to restart existing container. . . x86_64 arch detected. starting up existing container + /usr/bin/docker start app Error response from daemon: driver failed programming external connectivity on endpoint app (06f0423514bb28771d1931e687d49986b7e5449a1656e3ce297714996c46bbcf): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use Error: failed to start containers: app Failed to restart the container. ==================== PLUGINS ==================== - git clone https://github.com/discourse/docker_manager.git No non-official plugins detected. See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list. ======================================== Discourse version at distroleaders.club: NOT FOUND Discourse version at localhost: NOT FOUND ==================== MEMORY INFORMATION ==================== OS: Linux RAM (MB): 1003 total used free shared buff/cache available Mem: 957 218 214 0 525 559 Swap: 2047 82 1965 ==================== DISK SPACE CHECK ==================== ---------- OS Disk Space ---------- Filesystem Size Used Avail Use% Mounted on /dev/vda1 25G 19G 5.5G 78% / /dev/sda 9.8G 345M 8.9G 4% /var/discourse /dev/vda1 25G 19G 5.5G 78% / ==================== DISK INFORMATION ==================== Disk /dev/loop0: 63.45 MiB, 66527232 bytes, 129936 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/loop1: 63.45 MiB, 66531328 bytes, 129944 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/loop2: 91.83 MiB, 96292864 bytes, 188072 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/loop3: 53.26 MiB, 55844864 bytes, 109072 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/loop4: 53.26 MiB, 55844864 bytes, 109072 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/vda: 25 GiB, 26843545600 bytes, 52428800 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 342D34D3-D2A6-4759-964E-7EA1CAAF8D47 Device Start End Sectors Size Type /dev/vda1 227328 52428766 52201439 24.9G Linux filesystem /dev/vda14 2048 10239 8192 4M BIOS boot /dev/vda15 10240 227327 217088 106M Microsoft basic data Partition table entries are not in disk order. Disk /dev/sda: 10 GiB, 10737418240 bytes, 20971520 sectors Disk model: Volume Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes ==================== END DISK INFORMATION ==================== ==================== MAIL TEST ==================== For a robust test, get an address from http://www.mail-tester.com/ Sending mail to REDACTED . . ==================== DONE! ==================== You can examine the output of this script with LESS=-Ri less /tmp/discourse-debug.txt BUT FIRST, make sure that you know the first three commands below!!! Commands to know when viewing the file with the above command (called 'less'): q -- quit /error -- search for the word 'error' n -- search for the next occurrence g -- go to the beginning of the file f -- go forward a page b -- go back a page G -- go to the end of the file