Hello guys my discourse is dead
i can’t migrate
my logs
have you got an idea why ?
Thanks
DISCOURSE DOCTOR Thu Aug 31 08:35:14 UTC 2023
OS: Linux dd 5.10.0-10-cloud-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux
Found containers/app.yml
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=community.dd.com
SMTP_ADDRESS=smtp.sendgrid.net
DEVELOPER_EMAILS=REDACTED
SMTP_PASSWORD=REDACTED
SMTP_PORT=587
SMTP_USER_NAME=apikey
LETSENCRYPT_ACCOUNT_EMAIL=REDACTED
==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 20.10.17, build 100c701
DOCKER PROCESSES (docker ps -a)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f4176cf9e390 local_discourse/app "/sbin/boot" 8 months ago Exited (6) 14 minutes ago app
==================== 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
Stopping old container
+ /usr/bin/docker stop -t 600 app
app
2.0.20230825-1850: Pulling from discourse/base
Digest: sha256:3fd7032bbeb6f322ad7138ed154c0fc6177d75ebffba44871abea86620c0c7d5
Status: Image is up to date for discourse/base:2.0.20230825-1850
docker.io/discourse/base:2.0.20230825-1850
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2023-08-31T08:35:26.555562 #1] INFO -- : Reading from stdin
I, [2023-08-31T08:35:26.561449 #1] INFO -- : > locale-gen $LANG && update-locale
I, [2023-08-31T08:35:26.604980 #1] INFO -- : Generating locales (this might take a while)...
Generation complete.
I, [2023-08-31T08:35:26.605213 #1] INFO -- : > mkdir -p /shared/postgres_run
I, [2023-08-31T08:35:26.609320 #1] INFO -- :
I, [2023-08-31T08:35:26.609612 #1] INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2023-08-31T08:35:26.613899 #1] INFO -- :
I, [2023-08-31T08:35:26.614160 #1] INFO -- : > chmod 775 /shared/postgres_run
I, [2023-08-31T08:35:26.617665 #1] INFO -- :
I, [2023-08-31T08:35:26.617830 #1] INFO -- : > rm -fr /var/run/postgresql
I, [2023-08-31T08:35:26.620970 #1] INFO -- :
I, [2023-08-31T08:35:26.621143 #1] INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2023-08-31T08:35:26.624708 #1] INFO -- :
I, [2023-08-31T08:35:26.624936 #1] INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2023/08/31 08:35:26 socat[19] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2023-08-31T08:35:26.634206 #1] INFO -- :
I, [2023-08-31T08:35:26.634348 #1] INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2023-08-31T08:35:26.638617 #1] INFO -- :
I, [2023-08-31T08:35:26.638759 #1] INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2023-08-31T08:35:26.643459 #1] INFO -- :
I, [2023-08-31T08:35:26.643605 #1] INFO -- : > mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-08-31T08:35:26.646145 #1] INFO -- :
I, [2023-08-31T08:35:26.646327 #1] INFO -- : > chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
I, [2023-08-31T08:35:26.649311 #1] INFO -- :
I, [2023-08-31T08:35:26.657495 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:
I, [2023-08-31T08:35:26.665759 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2023-08-31T08:35:26.674516 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2023-08-31T08:35:26.681547 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:
I, [2023-08-31T08:35:26.682031 #1] INFO -- : > chown -R root /var/lib/postgresql/13/main
I, [2023-08-31T08:35:34.890497 #1] INFO -- :
I, [2023-08-31T08:35:34.890718 #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-08-31T08:35:34.893999 #1] INFO -- :
I, [2023-08-31T08:35:34.894113 #1] INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2023-08-31T08:35:34.925354 #1] INFO -- :
I, [2023-08-31T08:35:34.925542 #1] INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2023-08-31T08:35:34.930041 #1] INFO -- :
I, [2023-08-31T08:35:34.930396 #1] INFO -- : > /root/upgrade_postgres
I, [2023-08-31T08:35:34.936863 #1] INFO -- :
I, [2023-08-31T08:35:34.937100 #1] INFO -- : > rm /root/upgrade_postgres
I, [2023-08-31T08:35:34.940567 #1] INFO -- :
I, [2023-08-31T08:35:34.941194 #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-08-31T08:35:34.942402 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2023-08-31T08:35:34.943307 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2023-08-31T08:35:34.944070 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2023-08-31T08:35:34.944724 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2023-08-31T08:35:34.945378 #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-08-31T08:35:34.945986 #1] INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2023-08-31T08:35:34.951193 #1] INFO -- :
I, [2023-08-31T08:35:34.951951 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2023-08-31T08:35:34.952458 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2023-08-31T08:35:34.953147 #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-08-31T08:35:34.953771 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf
I, [2023-08-31T08:35:34.954130 #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-08-31T08:35:34.954560 #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-08-31T08:35:34.955046 #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-08-31T08:35:34.956891 #1] INFO -- : > sleep 5
2023-08-31 08:35:35.062 UTC [42] LOG: starting PostgreSQL 13.12 (Debian 13.12-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2023-08-31 08:35:35.063 UTC [42] LOG: listening on IPv4 address "0.0.0.0", port 5432
2023-08-31 08:35:35.063 UTC [42] LOG: listening on IPv6 address "::", port 5432
2023-08-31 08:35:35.075 UTC [42] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-08-31 08:35:35.095 UTC [45] LOG: database system was shut down at 2023-08-31 08:34:39 UTC
2023-08-31 08:35:35.111 UTC [42] LOG: database system is ready to accept connections
I, [2023-08-31T08:35:39.960420 #1] INFO -- :
I, [2023-08-31T08:35:39.961299 #1] INFO -- : > su postgres -c 'createdb discourse' || true
2023-08-31 08:35:40.039 UTC [55] postgres@postgres ERROR: database "discourse" already exists
2023-08-31 08:35:40.039 UTC [55] postgres@postgres STATEMENT: CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
I, [2023-08-31T08:35:40.042210 #1] INFO -- :
I, [2023-08-31T08:35:40.042729 #1] INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-08-31 08:35:40.108 UTC [59] postgres@discourse ERROR: role "discourse" already exists
2023-08-31 08:35:40.108 UTC [59] postgres@discourse STATEMENT: create user discourse;
ERROR: role "discourse" already exists
I, [2023-08-31T08:35:40.111111 #1] INFO -- :
I, [2023-08-31T08:35:40.111712 #1] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
I, [2023-08-31T08:35:40.174607 #1] INFO -- : GRANT
I, [2023-08-31T08:35:40.175117 #1] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
I, [2023-08-31T08:35:40.238028 #1] INFO -- : ALTER SCHEMA
I, [2023-08-31T08:35:40.238498 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2023-08-31T08:35:40.311857 #1] INFO -- : CREATE EXTENSION
I, [2023-08-31T08:35:40.312342 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2023-08-31T08:35:40.373807 #1] INFO -- : CREATE EXTENSION
I, [2023-08-31T08:35:40.374314 #1] INFO -- : > su postgres -c 'psql template1 -c "create extension if not exists vector;"'
NOTICE: extension "vector" already exists, skipping
I, [2023-08-31T08:35:40.433384 #1] INFO -- : CREATE EXTENSION
I, [2023-08-31T08:35:40.433856 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists hstore;"'
NOTICE: extension "hstore" already exists, skipping
I, [2023-08-31T08:35:40.504951 #1] INFO -- : CREATE EXTENSION
I, [2023-08-31T08:35:40.505563 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists pg_trgm;"'
NOTICE: extension "pg_trgm" already exists, skipping
I, [2023-08-31T08:35:40.568753 #1] INFO -- : CREATE EXTENSION
I, [2023-08-31T08:35:40.569274 #1] INFO -- : > su postgres -c 'psql discourse -c "create extension if not exists vector;"'
NOTICE: extension "vector" already exists, skipping
I, [2023-08-31T08:35:40.636062 #1] INFO -- : CREATE EXTENSION
I, [2023-08-31T08:35:40.636669 #1] INFO -- : > sudo -u postgres psql discourse
I, [2023-08-31T08:35:40.641229 #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-08-31T08:35:40.715970 #1] INFO -- : File > /var/lib/postgresql/take-database-backup chmod: +x chown: postgres:postgres
I, [2023-08-31T08:35:40.721104 #1] INFO -- : File > /var/spool/cron/crontabs/postgres chmod: chown:
I, [2023-08-31T08:35:40.721230 #1] INFO -- : > echo postgres installed!
I, [2023-08-31T08:35:40.724427 #1] INFO -- : postgres installed!
I, [2023-08-31T08:35:40.732134 #1] INFO -- : File > /etc/service/redis/run chmod: +x chown:
I, [2023-08-31T08:35:40.740461 #1] INFO -- : File > /etc/service/redis/log/run chmod: +x chown:
I, [2023-08-31T08:35:40.748893 #1] INFO -- : File > /etc/runit/3.d/10-redis chmod: +x chown:
I, [2023-08-31T08:35:40.749338 #1] INFO -- : Replacing daemonize yes with in /etc/redis/redis.conf
I, [2023-08-31T08:35:40.750366 #1] INFO -- : Replacing (?-mix:^pidfile.*$) with in /etc/redis/redis.conf
I, [2023-08-31T08:35:40.800459 #1] INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2023-08-31T08:35:40.808359 #1] INFO -- :
I, [2023-08-31T08:35:40.809411 #1] INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2023-08-31T08:35:40.810885 #1] INFO -- : Replacing (?-mix:^bind .*$) with in /etc/redis/redis.conf
I, [2023-08-31T08:35:40.812602 #1] INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2023-08-31T08:35:40.814581 #1] INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2023-08-31T08:35:40.815449 #1] INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2023-08-31T08:35:40.816427 #1] INFO -- : > echo redis installed
I, [2023-08-31T08:35:40.820624 #1] INFO -- : redis installed
I, [2023-08-31T08:35:40.820905 #1] INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2023-08-31T08:35:40.827510 #1] INFO -- : logfile ""
I, [2023-08-31T08:35:40.827699 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-08-31T08:35:40.831038 #1] INFO -- : > sleep 10
111:C 31 Aug 2023 08:35:40.842 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
111:C 31 Aug 2023 08:35:40.842 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=111, just started
111:C 31 Aug 2023 08:35:40.842 # Configuration loaded
111:M 31 Aug 2023 08:35:40.842 * monotonic clock: POSIX clock_gettime
111:M 31 Aug 2023 08:35:40.843 * Running mode=standalone, port=6379.
111:M 31 Aug 2023 08:35:40.843 # Server initialized
111:M 31 Aug 2023 08:35:40.843 # 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.
111:M 31 Aug 2023 08:35:40.844 * Loading RDB produced by version 7.0.7
111:M 31 Aug 2023 08:35:40.844 * RDB age 61 seconds
111:M 31 Aug 2023 08:35:40.844 * RDB memory usage when created 145.50 Mb
111:M 31 Aug 2023 08:35:41.532 * Done loading RDB, keys loaded: 53513, keys expired: 45.
111:M 31 Aug 2023 08:35:41.532 * DB loaded from disk: 0.688 seconds
111:M 31 Aug 2023 08:35:41.532 * Ready to accept connections
I, [2023-08-31T08:35:50.835489 #1] INFO -- :
I, [2023-08-31T08:35:50.835987 #1] INFO -- : > thpoff echo "thpoff is installed!"
I, [2023-08-31T08:35:50.843987 #1] INFO -- : thpoff is installed!
I, [2023-08-31T08:35:50.844350 #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-08-31T08:35:50.961398 #1] INFO -- :
I, [2023-08-31T08:35:50.961834 #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-08-31T08:35:51.049783 #1] INFO -- :
I, [2023-08-31T08:35:51.050173 #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-08-31T08:35:51.139594 #1] INFO -- :
I, [2023-08-31T08:35:51.140003 #1] INFO -- : > rm -f /etc/cron.d/anacron
I, [2023-08-31T08:35:51.143395 #1] INFO -- :
I, [2023-08-31T08:35:51.148330 #1] INFO -- : File > /etc/cron.d/anacron chmod: chown:
I, [2023-08-31T08:35:51.157517 #1] INFO -- : File > /etc/runit/1.d/copy-env chmod: +x chown:
I, [2023-08-31T08:35:51.165210 #1] INFO -- : File > /etc/service/unicorn/run chmod: +x chown:
I, [2023-08-31T08:35:51.172967 #1] INFO -- : File > /etc/service/nginx/run chmod: +x chown:
I, [2023-08-31T08:35:51.180182 #1] INFO -- : File > /etc/runit/3.d/01-nginx chmod: +x chown:
I, [2023-08-31T08:35:51.187224 #1] INFO -- : File > /etc/runit/3.d/02-unicorn chmod: +x chown:
I, [2023-08-31T08:35:51.187454 #1] INFO -- : Replacing # postgres with sv start postgres || exit 1 in /etc/service/unicorn/run
I, [2023-08-31T08:35:51.187803 #1] INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2023-08-31T08:35:51.191810 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
138:C 31 Aug 2023 08:35:51.202 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
138:C 31 Aug 2023 08:35:51.202 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=138, just started
138:C 31 Aug 2023 08:35:51.202 # Configuration loaded
138:M 31 Aug 2023 08:35:51.203 * monotonic clock: POSIX clock_gettime
138:M 31 Aug 2023 08:35:51.203 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
138:M 31 Aug 2023 08:35:51.203 # Failed listening on port 6379 (TCP), aborting.
Updating files: 31% (10747/33693)
Updating files: 32% (10782/33693)
Updating files: 33% (11119/33693)
Updating files: 34% (11456/33693)
Updating files: 35% (11793/33693)
Updating files: 36% (12130/33693)
Updating files: 37% (12467/33693)
Updating files: 38% (12804/33693)
Updating files: 39% (13141/33693)
Updating files: 40% (13478/33693)
Updating files: 41% (13815/33693)
Updating files: 42% (14152/33693)
Updating files: 43% (14488/33693)
Updating files: 44% (14825/33693)
Updating files: 45% (15162/33693)
Updating files: 46% (15499/33693)
Updating files: 47% (15836/33693)
Updating files: 48% (16173/33693)
Updating files: 49% (16510/33693)
Updating files: 50% (16847/33693)
Updating files: 51% (17184/33693)
Updating files: 52% (17521/33693)
Updating files: 53% (17858/33693)
Updating files: 54% (18195/33693)
Updating files: 55% (18532/33693)
Updating files: 56% (18869/33693)
Updating files: 57% (19206/33693)
Updating files: 58% (19542/33693)
Updating files: 59% (19879/33693)
Updating files: 60% (20216/33693)
Updating files: 61% (20553/33693)
Updating files: 62% (20890/33693)
Updating files: 63% (21227/33693)
Updating files: 64% (21564/33693)
Updating files: 65% (21901/33693)
Updating files: 66% (22238/33693)
Updating files: 67% (22575/33693)
Updating files: 68% (22912/33693)
Updating files: 68% (22985/33693)
Updating files: 69% (23249/33693)
Updating files: 70% (23586/33693)
Updating files: 71% (23923/33693)
Updating files: 72% (24259/33693)
Updating files: 73% (24596/33693)
Updating files: 74% (24933/33693)
Updating files: 75% (25270/33693)
Updating files: 76% (25607/33693)
Updating files: 77% (25944/33693)
Updating files: 78% (26281/33693)
Updating files: 79% (26618/33693)
Updating files: 80% (26955/33693)
Updating files: 81% (27292/33693)
Updating files: 82% (27629/33693)
Updating files: 83% (27966/33693)
Updating files: 84% (28303/33693)
Updating files: 85% (28640/33693)
Updating files: 86% (28976/33693)
Updating files: 87% (29313/33693)
Updating files: 88% (29650/33693)
Updating files: 89% (29987/33693)
Updating files: 90% (30324/33693)
Updating files: 91% (30661/33693)
Updating files: 92% (30998/33693)
Updating files: 93% (31335/33693)
Updating files: 94% (31672/33693)
Updating files: 95% (32009/33693)
Updating files: 96% (32346/33693)
Updating files: 97% (32683/33693)
Updating files: 98% (33020/33693)
Updating files: 99% (33357/33693)
Updating files: 100% (33693/33693)
Updating files: 100% (33693/33693), done.
I, [2023-08-31T08:35:54.396340 #1] INFO -- : HEAD is now at 058c8496f DEV: Convert explain-reviewable modal to component-based API (#23274)
I, [2023-08-31T08:35:54.396705 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2023-08-31T08:35:54.558909 #1] INFO -- :
I, [2023-08-31T08:35:54.559266 #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-sadd
- [deleted] (none) -> origin/a11y-topic-navigation
- [deleted] (none) -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.2.1
- [deleted] (none) -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.4.3
- [deleted] (none) -> origin/dev/change-custom-modal-api-reviewable-item
- [deleted] (none) -> origin/dev/move-delete-user-action-to-agree-menu-part-2
- [deleted] (none) -> origin/issue/admin-plugin-improvements-modernization
- [deleted] (none) -> origin/revert-23267-ux-chat-composer-divider-fix
- [deleted] (none) -> origin/uploads-in-backup
058c8496f..253d4a154 main -> origin/main
* [new branch] 0-d-button -> origin/0-d-button
* [new branch] 0-reviewable-gjs -> origin/0-reviewable-gjs
* [new branch] 0-tooltip -> origin/0-tooltip
249b97ce9..f4d8ff71d a11y-contrast -> origin/a11y-contrast
+ 275649a88...fc7927faf cache-theme-fields-once -> origin/cache-theme-fields-once (forced update)
3163362ba..38c53a993 composer-warnings-use-notice -> origin/composer-warnings-use-notice
* [new branch] composer-warnings-use-notice-alt -> origin/composer-warnings-use-notice-alt
* [new branch] create-personal-chat-notifications -> origin/create-personal-chat-notifications
* [new branch] dependabot/bundler/rotp-6.3.0 -> origin/dependabot/bundler/rotp-6.3.0
* [new branch] dependabot/npm_and_yarn/app/assets/javascripts/babel-4d92ddd36d -> origin/dependabot/npm_and_yarn/app/assets/javascripts/babel-4d92ddd36d
+ f1f0facbc...28f0dfab0 dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.2.3 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-3.2.3 (forced update)
+ 43d5cf3b2...7b753422f dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.5.4 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.5.4 (forced update)
* [new branch] dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.4.0 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/core-3.4.0
+ edbba4f1d...9c5935748 dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.3.2 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.3.2 (forced update)
a4bb515c3..d9dfbda61 discovery-named-outlets -> origin/discovery-named-outlets
5cee6ec88..800592d0a feature/show-status-on-mentions-when-user-havent-used-autocomplete -> origin/feature/show-status-on-mentions-when-user-havent-used-autocomplete
+ 78f0fe6fb...2df695255 fix/do-not-consider-codeblocks-when-parsing-mentions -> origin/fix/do-not-consider-codeblocks-when-parsing-mentions (forced update)
* [new branch] fix/include-context-question-for-chat-reviewables -> origin/fix/include-context-question-for-chat-reviewables
+ 3ce70aa3f...8b93bedca generic-import-latest -> origin/generic-import-latest (forced update)
+ ee8cdf200...438addf97 loic-chat-specs-refactor -> origin/loic-chat-specs-refactor (forced update)
* [new branch] noised -> origin/noised
f81ed652f..714bae7f9 stable -> origin/stable
* [new branch] test-bundle -> origin/test-bundle
* [new branch] test-mentions-duplicates -> origin/test-mentions-duplicates
058c8496f..253d4a154 tests-passed -> origin/tests-passed
* [new branch] topic-noindex -> origin/topic-noindex
* [new branch] update-login-modal-mark -> origin/update-login-modal-mark
+ 1c3e3950b...b3786fa1d upgrade-login-modal -> origin/upgrade-login-modal (forced update)
* [new branch] webauthn-challenge-minor-refactor -> origin/webauthn-challenge-minor-refactor
I, [2023-08-31T08:35:55.437668 #1] INFO -- :
I, [2023-08-31T08:35:55.437892 #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, [2023-08-31T08:36:01.596211 #1] INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.
I, [2023-08-31T08:36:01.596507 #1] INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2023-08-31T08:36:01.625193 #1] INFO -- :
I, [2023-08-31T08:36:01.625333 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-08-31T08:36:01.630954 #1] INFO -- :
I, [2023-08-31T08:36:01.631122 #1] INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-08-31T08:36:01.636689 #1] INFO -- :
I, [2023-08-31T08:36:01.636927 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-08-31T08:36:01.643101 #1] INFO -- :
I, [2023-08-31T08:36:01.643330 #1] INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-08-31T08:36:01.650528 #1] INFO -- :
I, [2023-08-31T08:36:01.650905 #1] INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-08-31T08:36:01.656777 #1] INFO -- :
I, [2023-08-31T08:36:01.657041 #1] INFO -- : > cd /var/www/discourse && mkdir -p /shared/log/rails
I, [2023-08-31T08:36:01.663232 #1] INFO -- :
I, [2023-08-31T08:36:01.663376 #1] INFO -- : > cd /var/www/discourse && bash -c "touch -a /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-08-31T08:36:01.671458 #1] INFO -- :
I, [2023-08-31T08:36:01.671605 #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-08-31T08:36:01.680678 #1] INFO -- :
I, [2023-08-31T08:36:01.680922 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/{uploads,backups}"
I, [2023-08-31T08:36:01.690062 #1] INFO -- :
I, [2023-08-31T08:36:01.690259 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-08-31T08:36:01.699970 #1] INFO -- :
I, [2023-08-31T08:36:01.700298 #1] INFO -- : > cd /var/www/discourse && bash -c "mkdir -p /shared/tmp/{backups,restores}"
I, [2023-08-31T08:36:01.711674 #1] INFO -- :
I, [2023-08-31T08:36:01.711960 #1] INFO -- : > cd /var/www/discourse && bash -c "ln -s /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-08-31T08:36:01.722954 #1] INFO -- :
I, [2023-08-31T08:36:01.723272 #1] INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-08-31T08:36:04.916876 #1] INFO -- :
I, [2023-08-31T08:36:04.917132 #1] INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-08-31T08:36:04.921138 #1] INFO -- :
I, [2023-08-31T08:36:04.921477 #1] INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2023-08-31T08:36:04.922061 #1] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2023-08-31T08:36:06.004446 #1] INFO -- :
I, [2023-08-31T08:36:06.005080 #1] INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-08-31T08:36:06.010803 #1] INFO -- :
I, [2023-08-31T08:36:06.011015 #1] INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-08-31T08:36:06.014181 #1] INFO -- :
I, [2023-08-31T08:36:06.014321 #1] INFO -- : > mkdir -p /var/nginx/cache
I, [2023-08-31T08:36:06.018521 #1] INFO -- :
I, [2023-08-31T08:36:06.018751 #1] INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2023-08-31T08:36:06.019172 #1] INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-08-31T08:36:06.019522 #1] INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-08-31T08:36:06.019952 #1] INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-08-31T08:36:06.020390 #1] INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2023-08-31T08:36:06.020626 #1] INFO -- : > echo "done configuring web"
I, [2023-08-31T08:36:06.023865 #1] INFO -- : done configuring web
I, [2023-08-31T08:36:06.024228 #1] INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-08-31T08:36:06.741766 #1] INFO -- : Successfully installed bundler-2.4.13
1 gem installed
I, [2023-08-31T08:36:06.742064 #1] INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-08-31T08:36:07.806763 #1] INFO -- :
I, [2023-08-31T08:36:07.807371 #1] INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
rm -rf app/assets/javascripts/node_modules
fi
I, [2023-08-31T08:36:07.811363 #1] INFO -- :
I, [2023-08-31T08:36:07.811531 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
warning " > babel-plugin-debug-macros@0.4.0-pre1" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-af239f57-b83d-4134-8491-3d512e92e15c > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-af239f57-b83d-4134-8491-3d512e92e15c > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-af239f57-b83d-4134-8491-3d512e92e15c > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-af239f57-b83d-4134-8491-3d512e92e15c > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
I, [2023-08-31T08:36:47.146607 #1] INFO -- : yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ yarn --cwd app/assets/javascripts $(node -e 'const argv = JSON.parse(process.env.npm_config_argv).original; const passthrough = [`--frozen-lockfile`, `-s`].filter(arg => argv.includes(arg)); console.log(passthrough.join(` `));')
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ patch-package
patch-package 8.0.0
Applying patches...
@ember/jquery@2.0.0 ✔
ember-source@3.28.12 ✔
virtual-dom@2.1.1 ✔
Done in 35.10s.
Done in 35.92s.
yarn cache v1.22.19
success Cleared cache.
Done in 2.87s.
I, [2023-08-31T08:36:47.147217 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2023-08-31T08:36:47.387234 #1] INFO -- :
I, [2023-08-31T08:36:47.387568 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2023-08-31T08:36:47.615151 #1] INFO -- : You are replacing the current local value of without, which is currently "test:development"
I, [2023-08-31T08:36:47.615386 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
I, [2023-08-31T08:36:51.347795 #1] INFO -- : Fetching gem metadata from https://rubygems.org/.........
Using rake 13.0.6
Using concurrent-ruby 1.2.2
Using minitest 5.19.0
Using builder 3.2.4
Using erubi 1.12.0
Using crass 1.0.6
Using rack 2.2.8
Using mini_mime 1.1.5
Using date 3.3.3
Using timeout 0.4.0
Using public_suffix 5.0.3
Using aws-eventstream 1.2.0
Using jmespath 1.6.2
Using racc 1.7.1
Using aws-partitions 1.583.0
Using msgpack 1.7.2
Using bundler 2.4.13
Using cbor 0.5.9.6
Using byebug 11.1.3
Using cgi 0.3.6
Using chunky_png 1.4.0
Using coderay 1.1.3
Using colored2 4.0.0
Using connection_pool 2.4.1
Using openssl 3.1.0
Using method_source 1.0.0
Using cppjieba_rb 0.4.2
Fetching google-protobuf 3.24.2 (x86_64-linux)
Using thor 1.2.2
Using zeitwerk 2.6.11
Using tilt 2.2.0
Using digest 3.1.1
Using diffy 3.4.2
Using discourse-fonts 0.0.9
Using email_reply_trimmer 0.1.13
Using excon 0.102.0
Using execjs 2.8.1
Using exifr 1.4.0
Using faraday-net_http 3.0.2
Using ruby2_keywords 0.0.5
Using fast_blank 1.0.1
Using fast_xs 0.8.0
Using fastimage 2.2.7
Using ffi 1.15.5
Using fspath 3.1.2
Using gc_tracer 1.5.1
Using guess_html_encoding 0.0.11
Using hana 1.3.7
Using hashie 5.0.0
Using highline 2.1.0
Using hkdf 1.0.0
Using htmlentities 4.3.4
Using http_accept_language 2.1.1
Using image_size 3.3.0
Using in_threads 1.6.0
Using json 2.6.3
Using progress 3.6.0
Using unf_ext 0.0.8.2
Using regexp_parser 2.8.1
Using jwt 2.7.1
Using kgio 2.11.4
Using logstash-event 1.2.02
Using logster 2.12.2
Using libv8-node 18.16.0.0 (x86_64-linux)
Using lru_redux 1.1.0
Using maxminddb 0.1.22
Using memory_profiler 1.0.1
Using redis 4.8.1
Using mini_sql 1.5.0
Using multi_json 1.15.0
Using multi_xml 0.6.0
Using mustache 1.1.1
Using uri 0.12.2
Using version_gem 1.1.3
Using lz4-ruby 0.3.3
Using nio4r 2.5.9
Using optimist 3.1.0
Using oj 3.16.0
Using pg 1.4.6
Using raindrops 0.20.1
Using rchardet 1.8.0
Using rexml 3.2.6
Using rinku 2.0.6
Using rotp 6.2.2
Using rqrcode_core 1.2.0
Using rubyzip 2.3.2
Using stackprof 0.2.25
Using i18n 1.14.1
Using tzinfo 2.0.6
Using rack-test 2.1.0
Using net-protocol 0.2.1
Using addressable 2.8.5
Using sprockets 3.7.2 from https://github.com/rails/sprockets (at 3.x@f4d3dae)
Using sshkey 3.0.0
Using request_store 1.5.1
Using rack-mini-profiler 3.1.1
Using rack-protection 3.1.0
Using aws-sigv4 1.5.0
Using nokogiri 1.15.4 (x86_64-linux)
Using message_bus 4.3.8
Using bootsnap 1.16.0
Using openssl-signature_algorithm 1.3.0
Using pry 0.14.2
Using faraday 2.7.10
Using mini_suffix 0.3.3
Using omniauth 1.9.2
Using uglifier 4.2.0
Using image_optim 0.31.3
Using unf 0.1.4
Using logstash-logger 0.26.1
Using web-push 3.0.0
Using mini_racer 0.8.0
Using sidekiq 6.5.9
Using net-http 0.3.2
Using redis-namespace 1.11.0
Using oauth-tty 1.0.5
Using snaky_hash 2.0.1
Using puma 6.3.1
Using rss 0.3.0
Using unicorn 6.1.0
Using rqrcode 2.2.0
Using activesupport 7.0.7
Using rbtrace 0.4.14
Using net-pop 0.1.2
Using net-imap 0.3.7
Using net-smtp 0.3.3
Fetching css_parser 1.15.0
Using tzinfo-data 1.2023.3
Using loofah 2.21.3
Using aws-sdk-core 3.130.2
Using ruby-readability 0.7.0
Using sanitize 6.0.2
Using pry-byebug 3.10.1
Using pry-rails 0.3.9
Using faraday-retry 2.2.0
Using cose 1.3.0
Using simpleidn 0.2.1
Using oauth2 1.4.11
Using mini_scheduler 0.16.0
Using rtlcss 0.2.1
Using rails-dom-testing 2.2.0
Using globalid 1.1.0
Using oauth 1.1.0
Using activemodel 7.0.7
Using mail 2.8.1
Using rails-html-sanitizer 1.6.0
Using aws-sdk-kms 1.56.0
Using aws-sdk-sns 1.53.0
Using json_schemer 2.0.0
Using activejob 7.0.7
Using omniauth-oauth2 1.7.3
Using omniauth-oauth 1.2.0
Using active_model_serializers 0.8.4
Using activerecord 7.0.7
Using aws-sdk-s3 1.114.0
Using actionview 7.0.7
Using discourse-seed-fu 2.3.12
Using omniauth-github 1.4.0
Using omniauth-facebook 9.0.0
Using omniauth-google-oauth2 0.8.2
Using omniauth-twitter 1.4.0
Using actionpack 7.0.7
Using actionview_precompiler 0.3.0
Using actionmailer 7.0.7
Using railties 7.0.7
Using sprockets-rails 3.4.2
Installing css_parser 1.15.0
Using lograge 0.13.0
Using rails_failover 2.0.1
Using rails_multisite 5.0.0
Installing google-protobuf 3.24.2 (x86_64-linux)
Using sass-embedded 1.66.1 (x86_64-linux-gnu)
Using dartsass-ruby 3.0.1
Using dartsass-sprockets 3.0.0
Bundle complete! 136 Gemfile dependencies, 172 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`
I, [2023-08-31T08:36:51.348871 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2023-08-31T08:36:54.269828 #1] INFO -- : docker_manager is already at latest compatible version
I, [2023-08-31T08:36:54.270639 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
2023-08-31 08:36:58.412 UTC [523] discourse@discourse ERROR: type "hotlinked_media_status" already exists
2023-08-31 08:36:58.412 UTC [523] discourse@discourse STATEMENT: CREATE TYPE hotlinked_media_status AS ENUM('downloaded', 'too_large', 'download_failed', 'upload_create_failed')
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
PG::DuplicateObject: ERROR: type "hotlinked_media_status" already exists
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.1/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.1/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:932:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:921:in `method_missing'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:6:in `block (2 levels) in change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:754:in `up'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:6:in `block in change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:790:in `block in reversible'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1025:in `execute_block'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:790:in `reversible'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:870:in `exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:853:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:852:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1046:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1411:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `each'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1117:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1092:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/var/www/discourse/lib/tasks/db.rake:250:in `block (2 levels) in <main>'
/var/www/discourse/lib/distributed_mutex.rb:53:in `block in synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:34:in `synchronize'
/var/www/discourse/lib/tasks/db.rake:225:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Caused by:
ActiveRecord::StatementInvalid: PG::DuplicateObject: ERROR: type "hotlinked_media_status" already exists
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.1/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.1/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:932:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:921:in `method_missing'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:6:in `block (2 levels) in change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:754:in `up'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:6:in `block in change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:790:in `block in reversible'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1025:in `execute_block'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:790:in `reversible'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:870:in `exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:853:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:852:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1046:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1411:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `each'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1117:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1092:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/var/www/discourse/lib/tasks/db.rake:250:in `block (2 levels) in <main>'
/var/www/discourse/lib/distributed_mutex.rb:53:in `block in synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:34:in `synchronize'
/var/www/discourse/lib/tasks/db.rake:225:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Caused by:
PG::DuplicateObject: ERROR: type "hotlinked_media_status" already exists
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.1/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.1/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:932:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:900:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:921:in `method_missing'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:6:in `block (2 levels) in change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:754:in `up'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:6:in `block in change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:790:in `block in reversible'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1025:in `execute_block'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:790:in `reversible'
/var/www/discourse/db/migrate/20220428094026_create_post_hotlinked_media.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:870:in `exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:853:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:852:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1046:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1411:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `each'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1282:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1117:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/migration.rb:1092:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/var/www/discourse/lib/tasks/db.rake:250:in `block (2 levels) in <main>'
/var/www/discourse/lib/distributed_mutex.rb:53:in `block in synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:49:in `synchronize'
/var/www/discourse/lib/distributed_mutex.rb:34:in `synchronize'
/var/www/discourse/lib/tasks/db.rake:225:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I, [2023-08-31T08:36:58.444293 #1] INFO -- : Compiled js-processor: tmp/js-processor.js
== 20220428094026 CreatePostHotlinkedMedia: migrating =========================
-- execute("CREATE TYPE hotlinked_media_status AS ENUM('downloaded', 'too_large', 'download_failed', 'upload_create_failed')\n")
I, [2023-08-31T08:36:58.445146 #1] INFO -- : Terminating async processes
I, [2023-08-31T08:36:58.445227 #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-08-31T08:36:58.445403 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111
2023-08-31 08:36:58.445 UTC [42] LOG: received fast shutdown request
111:signal-handler (1693471018) Received SIGTERM scheduling shutdown...
2023-08-31 08:36:58.459 UTC [42] LOG: aborting any active transactions
2023-08-31 08:36:58.462 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
2023-08-31 08:36:58.465 UTC [46] LOG: shutting down
111:M 31 Aug 2023 08:36:58.484 # User requested shutdown...
111:M 31 Aug 2023 08:36:58.484 * Saving the final RDB snapshot before exiting.
2023-08-31 08:36:58.530 UTC [42] LOG: database system is shut down
111:M 31 Aug 2023 08:36:59.255 * DB saved on disk
111:M 31 Aug 2023 08:36:59.255 # Redis is now ready to exit, bye bye...
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 465 exit 1>
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", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
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.
ecf5b625313ed1a86dd76756fef6919ab0aa9fa957a7b86d56517c5d614d4061
==================== END REBUILD LOG ====================
Failed to rebuild app.
Checking your domain name . . .
Connection to community.dd.com 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
app
Restarted the container.
==================== PLUGINS ====================
- git clone https://github.com/discourse/docker_manager.git
# - git clone https://github.com/discourse/discourse-solved.git
# - git clone https://github.com/discourse/discourse-voting.git
# - git clone https://github.com/discourse/discourse-reactions.git
# - git clone https://github.com/discourse/discourse-data-explorer.git
# - git clone https://github.com/angusmcleod/discourse-custom-wizard.git
# - git clone https://github.com/angusmcleod/discourse-ratings.git
WARNING:
You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.
See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.
========================================
Discourse version at community.dd.com: NOT FOUND
Discourse version at localhost: NOT FOUND
==================== MEMORY INFORMATION ====================
OS: Linux
RAM (MB): 30815
total used free shared buff/cache available
Mem: 29388 525 8248 65 20614 28283
Swap: 0 0 0
==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 197G 127G 62G 68% /
==================== DISK INFORMATION ====================
Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors
Disk model: QEMU HARDDISK
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: 958BE602-7EB6-E749-BC55-BD0258111B97
Device Start End Sectors Size Type
/dev/sda1 262144 419430366 419168223 199.9G Linux filesystem
/dev/sda14 2048 8191 6144 3M BIOS boot
/dev/sda15 8192 262143 253952 124M EFI System
Partition table entries are not in disk order.
==================== END DISK INFORMATION ====================
==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Sending mail to REDACTED . .
==================== DONE! ====================
Publicly available log not generated.
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<ENTER> -- 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