Migration failed: relation "user_required_fields_versions" already exists

Hi, please can someone assist?

I updated my website from admin dashboard then it gave an error 500.
I then manually updated and rebuilt the app from console as suggested by this topic: Manually update Discourse and Docker image to latest

However, now it says the site can’t be reached (see code below).

6a2d56837370: Pull complete 
933885f686e0: Pull complete 
aecf6df6a6bb: Pull complete 
33fcdcfe61e2: Pull complete 
12726a4d34c8: Pull complete 
Digest: sha256:6de68cb49198b5281f79ed9401b3fe818c854d220dcf0238549fe2f2adb19146
Status: Downloaded newer image for discourse/base:2.0.20240825-0027
docker.io/discourse/base:2.0.20240825-0027
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.20240825-0027: Pulling from discourse/base
Digest: sha256:6de68cb49198b5281f79ed9401b3fe818c854d220dcf0238549fe2f2adb19146
Status: Image is up to date for discourse/base:2.0.20240825-0027
docker.io/discourse/base:2.0.20240825-0027
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-09-06T21:09:11.924233 #1]  INFO -- : Reading from stdin
I, [2024-09-06T21:09:11.948135 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2024-09-06T21:09:11.954933 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2024-09-06T21:09:11.962398 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2024-09-06T21:09:11.970316 #1]  INFO -- : File > /root/install_postgres  chmod: +x  chown: 
I, [2024-09-06T21:09:11.977886 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2024-09-06T21:09:11.978953 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.979881 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.980742 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.981529 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.982197 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.982796 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.983436 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.984111 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.989137 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:09:11.990088 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-09-06T21:09:11.990775 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-09-06T21:09:11.991225 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-09-06T21:09:11.991785 #1]  INFO -- : > if [ -f /root/install_postgres ]; then
  /root/install_postgres && rm -f /root/install_postgres
elif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then
  socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
fi

I, [2024-09-06T21:09:14.358212 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2024-09-06T21:09:14.358757 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2024-09-06T21:09:14.368506 #1]  INFO -- : File > /usr/local/bin/create_db  chmod: +x  chown: 
I, [2024-09-06T21:09:14.379487 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2024-09-06T21:09:14.383790 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2024-09-06T21:09:14.384318 #1]  INFO -- : > sleep 5
2024-09-06 21:09:14.499 UTC [36] LOG:  starting PostgreSQL 13.16 (Debian 13.16-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-09-06 21:09:14.501 UTC [36] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-09-06 21:09:14.501 UTC [36] LOG:  listening on IPv6 address "::", port 5432
2024-09-06 21:09:14.507 UTC [36] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-09-06 21:09:14.520 UTC [45] LOG:  database system was shut down at 2024-09-06 21:09:02 UTC
2024-09-06 21:09:14.536 UTC [36] LOG:  database system is ready to accept connections
I, [2024-09-06T21:09:19.389587 #1]  INFO -- : 
I, [2024-09-06T21:09:19.390196 #1]  INFO -- : > /usr/local/bin/create_db
2024-09-06 21:09:19.488 UTC [55] postgres@postgres ERROR:  database "discourse" already exists
2024-09-06 21:09:19.488 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-09-06 21:09:19.562 UTC [58] postgres@discourse ERROR:  role "discourse" already exists
2024-09-06 21:09:19.562 UTC [58] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
I, [2024-09-06T21:09:20.325777 #1]  INFO -- : GRANT
ALTER SCHEMA
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
ALTER EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
ALTER EXTENSION
UPDATE 0

I, [2024-09-06T21:09:20.326007 #1]  INFO -- : > echo postgres installed!
I, [2024-09-06T21:09:20.330120 #1]  INFO -- : postgres installed!

I, [2024-09-06T21:09:20.337776 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2024-09-06T21:09:20.344536 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2024-09-06T21:09:20.351809 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2024-09-06T21:09:20.352682 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2024-09-06T21:09:20.353953 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2024-09-06T21:09:20.355364 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-09-06T21:09:20.362199 #1]  INFO -- : 
I, [2024-09-06T21:09:20.363404 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-09-06T21:09:20.364252 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2024-09-06T21:09:20.365811 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-09-06T21:09:20.366936 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-09-06T21:09:20.368067 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-09-06T21:09:20.369481 #1]  INFO -- : > echo redis installed
I, [2024-09-06T21:09:20.372856 #1]  INFO -- : redis installed

I, [2024-09-06T21:09:20.373572 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-09-06T21:09:20.379893 #1]  INFO -- : logfile ""

I, [2024-09-06T21:09:20.380212 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-09-06T21:09:20.382757 #1]  INFO -- : > sleep 10
104:C 06 Sep 2024 21:09:20.400 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
104:C 06 Sep 2024 21:09:20.401 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=104, just started
104:C 06 Sep 2024 21:09:20.401 # Configuration loaded
104:M 06 Sep 2024 21:09:20.402 * monotonic clock: POSIX clock_gettime
104:M 06 Sep 2024 21:09:20.404 * Running mode=standalone, port=6379.
104:M 06 Sep 2024 21:09:20.404 # Server initialized
104:M 06 Sep 2024 21:09:20.405 # 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.
104:M 06 Sep 2024 21:09:20.406 * Loading RDB produced by version 7.0.7
104:M 06 Sep 2024 21:09:20.406 * RDB age 19 seconds
104:M 06 Sep 2024 21:09:20.406 * RDB memory usage when created 16.25 Mb
104:M 06 Sep 2024 21:09:20.464 * Done loading RDB, keys loaded: 3363, keys expired: 2.
104:M 06 Sep 2024 21:09:20.465 * DB loaded from disk: 0.059 seconds
104:M 06 Sep 2024 21:09:20.465 * Ready to accept connections
I, [2024-09-06T21:09:30.386531 #1]  INFO -- : 
I, [2024-09-06T21:09:30.387145 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-09-06T21:09:30.392326 #1]  INFO -- : thpoff is installed!

I, [2024-09-06T21:09:30.392856 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2024-09-06T21:09:30.507128 #1]  INFO -- : 
I, [2024-09-06T21:09:30.507386 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-09-06T21:09:30.595075 #1]  INFO -- : 
I, [2024-09-06T21:09:30.595318 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2024-09-06T21:09:30.680859 #1]  INFO -- : 
I, [2024-09-06T21:09:30.681407 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-09-06T21:09:30.684425 #1]  INFO -- : 
I, [2024-09-06T21:09:30.687845 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2024-09-06T21:09:30.693618 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2024-09-06T21:09:30.699134 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2024-09-06T21:09:30.704312 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2024-09-06T21:09:30.709358 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2024-09-06T21:09:30.713986 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2024-09-06T21:09:30.714205 #1]  INFO -- : Replacing # postgres with if [ -f /root/install_postgres ]; then
  /root/install_postgres
  rm /root/install_postgres
fi
sv start postgres || exit 1
 in /etc/service/unicorn/run
I, [2024-09-06T21:09:30.715803 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34680/34680), done.
I, [2024-09-06T21:09:34.830734 #1]  INFO -- : HEAD is now at 274e18622 FIX: Video uploads sometimes hang indefinitely (#28523)

I, [2024-09-06T21:09:34.831387 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-09-06T21:09:35.010034 #1]  INFO -- : 
I, [2024-09-06T21:09:35.010752 #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-a-gjs-ace
 - [deleted]             (none)     -> origin/better-respect-End-key-in-topics
 - [deleted]             (none)     -> origin/category-experts-approved-webhook-event
 - [deleted]             (none)     -> origin/chat-sound-respects-indicator-pref
 - [deleted]             (none)     -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.2
 - [deleted]             (none)     -> origin/dependabot/bundler/sass-embedded-1.77.8
 - [deleted]             (none)     -> origin/dependabot/bundler/sassc-embedded-1.77.8
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/ember-cli-deprecation-workflow-3.0.2
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/ember/test-helpers-4.0.1
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/eslint-9.7.0
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/sass-1.77.8
 - [deleted]             (none)     -> origin/detect-default-readonly
 - [deleted]             (none)     -> origin/dev/remove-header-widgets
 - [deleted]             (none)     -> origin/feature/site-text-result-selected-lang
 - [deleted]             (none)     -> origin/fix/add-user-to-user-directory-when-activated
 - [deleted]             (none)     -> origin/issue/fix-bookmark-clearing-reminder
 - [deleted]             (none)     -> origin/native-class-components-2
 - [deleted]             (none)     -> origin/native-class-components-3
 - [deleted]             (none)     -> origin/notifications_id_bigint
 - [deleted]             (none)     -> origin/prevent-desktop-notifications-on-mobile
 - [deleted]             (none)     -> origin/ux/admin-plugins-ui-guidelines
   274e18622..deb751dfe  main                    -> origin/main
 * [new branch]          0-a-testem              -> origin/0-a-testem
 * [new branch]          add-about-config-description -> origin/add-about-config-description
 * [new branch]          add-tag-group-log       -> origin/add-tag-group-log
 * [new branch]          burning-uppy-mixins     -> origin/burning-uppy-mixins
 * [new branch]          change-text-for-approved-post-webhook-event -> origin/change-text-for-approved-post-webhook-event
   7f254be61..488081d93  coco/generic-importer   -> origin/coco/generic-importer
 * [new branch]          dependabot/bundler/omniauth-google-oauth2-1.1.3 -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.3
 * [new branch]          dependabot/bundler/sass-embedded-1.78.0 -> origin/dependabot/bundler/sass-embedded-1.78.0
 * [new branch]          dependabot/bundler/sassc-embedded-1.78.0 -> origin/dependabot/bundler/sassc-embedded-1.78.0
 * [new branch]          dependabot/bundler/test-prof-1.4.2 -> origin/dependabot/bundler/test-prof-1.4.2
 * [new branch]          dependabot/npm_and_yarn/sass-1.78.0 -> origin/dependabot/npm_and_yarn/sass-1.78.0
 * [new branch]          dev-faster-tests        -> origin/dev-faster-tests
 * [new branch]          dev-migrate-user-password -> origin/dev-migrate-user-password
 * [new branch]          dev/add-outlet-to-categories-only -> origin/dev/add-outlet-to-categories-only
 * [new branch]          dev/bulk-import-chats   -> origin/dev/bulk-import-chats
 * [new branch]          dev/clear-trackers-for-uninstalled-checks -> origin/dev/clear-trackers-for-uninstalled-checks
 * [new branch]          dev/glimmer-post-menu   -> origin/dev/glimmer-post-menu
 * [new branch]          dev/port-outlet-wrapper-to-stable -> origin/dev/port-outlet-wrapper-to-stable
 * [new branch]          dev/remove-deprecated-respect-plugin-positional-argument -> origin/dev/remove-deprecated-respect-plugin-positional-argument
 * [new branch]          drop-old-notification-id-columns -> origin/drop-old-notification-id-columns
 * [new branch]          ember-native-class      -> origin/ember-native-class
 * [new branch]          feature/add-user-to-topic_tags_changed-event -> origin/feature/add-user-to-topic_tags_changed-event
 * [new branch]          fontawesome-6-framework -> origin/fontawesome-6-framework
 * [new branch]          fontawesome-6-upgrade   -> origin/fontawesome-6-upgrade
 * [new branch]          full-width-login-modal-mobile -> origin/full-width-login-modal-mobile
 * [new branch]          getting-started-fixes   -> origin/getting-started-fixes
 * [new branch]          glint                   -> origin/glint
 * [new branch]          issue/hide-historical-bpv-data -> origin/issue/hide-historical-bpv-data
 * [new branch]          loic-refactor-services  -> origin/loic-refactor-services
 + a25ac32bc...97bd38cf4 mt/converter            -> origin/mt/converter  (forced update)
 * [new branch]          revert-28587-revert-28321-dev/remove-create_post_for_category_and_tag_changes-setting -> origin/revert-28587-revert-28321-dev/remove-create_post_for_category_and_tag_changes-setting
   d3ad2ecda..381cf8548  stable                  -> origin/stable
   274e18622..deb751dfe  tests-passed            -> origin/tests-passed
 * [new branch]          ux-1pw-ignore           -> origin/ux-1pw-ignore
 * [new branch]          ux/convert-chat-plugin-ui -> origin/ux/convert-chat-plugin-ui
 * [new branch]          ux/getting-started-link-fix -> origin/ux/getting-started-link-fix
 t [tag update]          beta                    -> beta
 t [tag update]          latest-release          -> latest-release
 * [new tag]             v3.3.1                  -> v3.3.1
 * [new tag]             v3.4.0.beta1            -> v3.4.0.beta1
I, [2024-09-06T21:09:35.920328 #1]  INFO -- : 
I, [2024-09-06T21:09:35.920932 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout tests-passed
  fi
'
Switched to a new branch 'tests-passed'
I, [2024-09-06T21:09:40.293928 #1]  INFO -- : branch 'tests-passed' set up to track 'origin/tests-passed'.

I, [2024-09-06T21:09:40.294182 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-09-06T21:09:40.307374 #1]  INFO -- : 
I, [2024-09-06T21:09:40.307665 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-09-06T21:09:40.313403 #1]  INFO -- : 
I, [2024-09-06T21:09:40.313653 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-09-06T21:09:40.317917 #1]  INFO -- : 
I, [2024-09-06T21:09:40.318150 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-09-06T21:09:40.323052 #1]  INFO -- : 
I, [2024-09-06T21:09:40.323368 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-09-06T21:09:40.328389 #1]  INFO -- : 
I, [2024-09-06T21:09:40.328931 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-09-06T21:09:40.333819 #1]  INFO -- : 
I, [2024-09-06T21:09:40.334031 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2024-09-06T21:09:40.338273 #1]  INFO -- : 
I, [2024-09-06T21:09:40.338499 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-09-06T21:09:40.344500 #1]  INFO -- : 
I, [2024-09-06T21:09:40.345175 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2024-09-06T21:09:40.351488 #1]  INFO -- : 
I, [2024-09-06T21:09:40.351715 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2024-09-06T21:09:40.358369 #1]  INFO -- : 
I, [2024-09-06T21:09:40.358654 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-09-06T21:09:40.365209 #1]  INFO -- : 
I, [2024-09-06T21:09:40.365507 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2024-09-06T21:09:40.373210 #1]  INFO -- : 
I, [2024-09-06T21:09:40.373502 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-09-06T21:09:40.379740 #1]  INFO -- : 
I, [2024-09-06T21:09:40.379967 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-09-06T21:09:40.394263 #1]  INFO -- : 
I, [2024-09-06T21:09:40.394509 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-09-06T21:09:40.398136 #1]  INFO -- : 
I, [2024-09-06T21:09:40.398726 #1]  INFO -- : Replacing # redis with if [ ! -d /shared/redis_data ]; then
  install -d -m 0755 -o redis -g redis /shared/redis_data
fi
sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-09-06T21:09:40.401363 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2024-09-06T21:09:41.375371 #1]  INFO -- : 
I, [2024-09-06T21:09:41.375948 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-ai.git
Cloning into 'discourse-ai'...
I, [2024-09-06T21:09:43.378168 #1]  INFO -- : 
I, [2024-09-06T21:09:43.378418 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-cakeday.git
Cloning into 'discourse-cakeday'...
I, [2024-09-06T21:09:44.053579 #1]  INFO -- : 
I, [2024-09-06T21:09:44.053738 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-chat-integration.git
Cloning into 'discourse-chat-integration'...
I, [2024-09-06T21:09:44.792206 #1]  INFO -- : 
I, [2024-09-06T21:09:44.792555 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-checklist.git
Cloning into 'discourse-checklist'...
I, [2024-09-06T21:09:45.423200 #1]  INFO -- : 
I, [2024-09-06T21:09:45.423548 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-docs.git
Cloning into 'discourse-docs'...
I, [2024-09-06T21:09:46.034856 #1]  INFO -- : 
I, [2024-09-06T21:09:46.035347 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-footnote.git
Cloning into 'discourse-footnote'...
I, [2024-09-06T21:09:46.600352 #1]  INFO -- : 
I, [2024-09-06T21:09:46.600812 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-github.git
Cloning into 'discourse-github'...
I, [2024-09-06T21:09:47.223540 #1]  INFO -- : 
I, [2024-09-06T21:09:47.224027 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-graphviz.git
Cloning into 'discourse-graphviz'...
I, [2024-09-06T21:09:47.957830 #1]  INFO -- : 
I, [2024-09-06T21:09:47.958247 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git
Cloning into 'discourse-math'...
I, [2024-09-06T21:09:49.398988 #1]  INFO -- : 
I, [2024-09-06T21:09:49.399439 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-patreon.git
Cloning into 'discourse-patreon'...
I, [2024-09-06T21:09:50.128576 #1]  INFO -- : 
I, [2024-09-06T21:09:50.129164 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-reactions.git
Cloning into 'discourse-reactions'...
I, [2024-09-06T21:09:50.837034 #1]  INFO -- : 
I, [2024-09-06T21:09:50.838015 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2024-09-06T21:09:51.505606 #1]  INFO -- : 
I, [2024-09-06T21:09:51.505770 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-spoiler-alert.git
Cloning into 'discourse-spoiler-alert'...
I, [2024-09-06T21:09:52.085695 #1]  INFO -- : 
I, [2024-09-06T21:09:52.085899 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-subscriptions.git
Cloning into 'discourse-subscriptions'...
I, [2024-09-06T21:09:52.965401 #1]  INFO -- : 
I, [2024-09-06T21:09:52.965884 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-yearly-review.git
Cloning into 'discourse-yearly-review'...
I, [2024-09-06T21:09:53.543561 #1]  INFO -- : 
I, [2024-09-06T21:09:53.543968 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-adplugin.git
Cloning into 'discourse-adplugin'...
I, [2024-09-06T21:09:54.268697 #1]  INFO -- : 
I, [2024-09-06T21:09:54.269203 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
Cloning into 'discourse-akismet'...
I, [2024-09-06T21:09:54.896822 #1]  INFO -- : 
I, [2024-09-06T21:09:54.897057 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-assign.git
Cloning into 'discourse-assign'...
I, [2024-09-06T21:09:55.731145 #1]  INFO -- : 
I, [2024-09-06T21:09:55.731358 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-automation.git
Cloning into 'discourse-automation'...
I, [2024-09-06T21:09:56.428511 #1]  INFO -- : 
I, [2024-09-06T21:09:56.428721 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-calendar.git
Cloning into 'discourse-calendar'...
I, [2024-09-06T21:09:57.419699 #1]  INFO -- : 
I, [2024-09-06T21:09:57.419945 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Cloning into 'discourse-data-explorer'...
I, [2024-09-06T21:09:58.127555 #1]  INFO -- : 
I, [2024-09-06T21:09:58.127808 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-gamification.git
Cloning into 'discourse-gamification'...
I, [2024-09-06T21:09:58.795750 #1]  INFO -- : 
I, [2024-09-06T21:09:58.795963 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-policy.git
Cloning into 'discourse-policy'...
I, [2024-09-06T21:09:59.406532 #1]  INFO -- : 
I, [2024-09-06T21:09:59.406741 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-templates.git
Cloning into 'discourse-templates'...
I, [2024-09-06T21:10:00.118127 #1]  INFO -- : 
I, [2024-09-06T21:10:00.118374 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-topic-voting.git
Cloning into 'discourse-topic-voting'...
I, [2024-09-06T21:10:00.793006 #1]  INFO -- : 
I, [2024-09-06T21:10:00.793758 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-user-notes.git
Cloning into 'discourse-user-notes'...
I, [2024-09-06T21:10:01.363811 #1]  INFO -- : 
I, [2024-09-06T21:10:01.364096 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-zendesk-plugin.git
Cloning into 'discourse-zendesk-plugin'...
I, [2024-09-06T21:10:02.106845 #1]  INFO -- : 
I, [2024-09-06T21:10:02.107632 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:10:02.119479 #1]  INFO -- : 
I, [2024-09-06T21:10:02.120380 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-09-06T21:10:02.126777 #1]  INFO -- : 
I, [2024-09-06T21:10:02.127871 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2024-09-06T21:10:02.131941 #1]  INFO -- : 
I, [2024-09-06T21:10:02.133199 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-09-06T21:10:02.134392 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:10:02.134854 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:10:02.138746 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:10:02.139920 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2024-09-06T21:10:02.141496 #1]  INFO -- : > echo "done configuring web"
I, [2024-09-06T21:10:02.148744 #1]  INFO -- : done configuring web

I, [2024-09-06T21:10:02.149314 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-09-06T21:10:02.713680 #1]  INFO -- : 
I, [2024-09-06T21:10:02.713870 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-09-06T21:10:04.665686 #1]  INFO -- : 
I, [2024-09-06T21:10:04.666337 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2024-09-06T21:10:04.670072 #1]  INFO -- : 
I, [2024-09-06T21:10:04.670248 #1]  INFO -- : > cd /var/www/discourse && if [ -f yarn.lock ]; then
  su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
else
  su discourse -c 'CI=1 pnpm install --frozen-lockfile'
fi
I, [2024-09-06T21:10:40.806033 #1]  INFO -- : Detected yarn-managed node_modules. Performing one-time cleanup...
cleanup done
Scope: all 19 workspace projects
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1760
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1760, reused 0, downloaded 0, added 0
Progress: resolved 1760, reused 0, downloaded 56, added 48
Progress: resolved 1760, reused 0, downloaded 188, added 172
Progress: resolved 1760, reused 0, downloaded 308, added 295
Progress: resolved 1760, reused 0, downloaded 372, added 363
Progress: resolved 1760, reused 0, downloaded 377, added 366
Progress: resolved 1760, reused 0, downloaded 462, added 450
Progress: resolved 1760, reused 0, downloaded 547, added 536
Progress: resolved 1760, reused 0, downloaded 606, added 595
Progress: resolved 1760, reused 0, downloaded 678, added 667
Progress: resolved 1760, reused 0, downloaded 838, added 829
Progress: resolved 1760, reused 0, downloaded 931, added 916
Progress: resolved 1760, reused 0, downloaded 1057, added 1048
Progress: resolved 1760, reused 0, downloaded 1147, added 1136
Progress: resolved 1760, reused 0, downloaded 1165, added 1152
Progress: resolved 1760, reused 0, downloaded 1180, added 1164
Progress: resolved 1760, reused 0, downloaded 1219, added 1210
Progress: resolved 1760, reused 0, downloaded 1239, added 1225
Progress: resolved 1760, reused 0, downloaded 1389, added 1380
Progress: resolved 1760, reused 0, downloaded 1438, added 1433
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /home/discourse/.local/share/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 1760, reused 0, downloaded 1464, added 1452
Progress: resolved 1760, reused 0, downloaded 1533, added 1519
Progress: resolved 1760, reused 0, downloaded 1558, added 1546
Progress: resolved 1760, reused 0, downloaded 1651, added 1637
Progress: resolved 1760, reused 0, downloaded 1725, added 1721
Progress: resolved 1760, reused 0, downloaded 1759, added 1759
Progress: resolved 1760, reused 0, downloaded 1760, added 1759
Progress: resolved 1760, reused 0, downloaded 1760, added 1760, done
.../@fortawesome/fontawesome-free postinstall$ node attribution.js
.../core-js@3.33.0/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../core-js@2.6.12/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../node_modules/@swc/core postinstall$ node postinstall.js
.../esbuild@0.23.1/node_modules/esbuild postinstall$ node install.js
.../core-js@2.6.12/node_modules/core-js postinstall: Done
.../@fortawesome/fontawesome-free postinstall: Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
.../@fortawesome/fontawesome-free postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../@fortawesome/fontawesome-free postinstall: Done
.../core-js@3.33.0/node_modules/core-js postinstall: Done
.../esbuild@0.23.1/node_modules/esbuild postinstall: Done
.../node_modules/@swc/core postinstall: Done
.../node_modules/lefthook postinstall$ node postinstall.js
.../node_modules/lefthook postinstall: Done

devDependencies:
+ @babel/plugin-proposal-decorators 7.24.7
+ @discourse/lint-configs 1.3.9
+ @discourse/moment-timezone-names-translations 1.0.0
+ @fortawesome/fontawesome-free 5.15.4
+ @glint/core 1.4.1-unstable.ff9ea6c
+ @glint/environment-ember-loose 1.4.1-unstable.ff9ea6c
+ @glint/environment-ember-template-imports 1.4.1-unstable.ff9ea6c
+ @glint/template 1.4.1-unstable.ff9ea6c
+ @mixer/parallel-prettier 2.0.3
+ @swc/core 1.7.23
+ chart.js 3.5.1
+ chartjs-plugin-datalabels 2.2.0
+ chrome-launcher 1.1.2
+ chrome-remote-interface 0.33.2
+ concurrently 8.2.2
+ ember-template-lint 6.0.0
+ esbuild 0.23.1
+ eslint 8.57.0
+ jsdoc 4.0.3
+ lefthook 1.7.15
+ licensee 10.0.0
+ lint-to-the-future 2.0.0
+ lint-to-the-future-ember-template 1.2.0
+ lint-to-the-future-eslint 2.0.1
+ magnific-popup 1.1.0
+ moment 2.30.1
+ moment-timezone 0.5.45
+ pikaday 1.8.2
+ prettier 2.8.8
+ puppeteer-core 23.3.0
+ squoosh 2.0.0
+ terser 5.31.6
+ typescript 5.5.4

Done in 35.8s

I, [2024-09-06T21:10:40.806440 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --jobs $(($(nproc) - 1)) --retry 3'
I, [2024-09-06T21:10:48.675147 #1]  INFO -- : Fetching gem metadata from https://rubygems.org/........
Fetching net-imap 0.4.16
Installing net-imap 0.4.16
Fetching css_parser 1.19.0
Installing css_parser 1.19.0
Fetching uri 0.13.1
Installing uri 0.13.1
Fetching faraday-net_http 3.3.0
Installing faraday-net_http 3.3.0
Fetching logger 1.6.1
Installing logger 1.6.1
Fetching faraday 2.11.0
Installing faraday 2.11.0
Fetching google-protobuf 4.28.0 (x86_64-linux)
Installing google-protobuf 4.28.0 (x86_64-linux)
Fetching reline 0.5.10
Installing reline 0.5.10
Fetching highline 3.1.1
Installing highline 3.1.1
Fetching thor 1.3.2
Installing thor 1.3.2
Fetching zeitwerk 2.6.18
Installing zeitwerk 2.6.18
Fetching omniauth-oauth 1.2.1
Installing omniauth-oauth 1.2.1
Fetching rexml 3.3.7
Installing rexml 3.3.7
Fetching ruby-readability 0.7.2
Installing ruby-readability 0.7.2
Fetching tzinfo-data 1.2024.2
Installing tzinfo-data 1.2024.2
Bundle complete! 140 Gemfile dependencies, 183 gems now installed.
Gems in the groups 'test' and 'development' were not installed.
Bundled gems are installed into `./vendor/bundle`
1 installed gem you directly depend on is looking for funding.
  Run `bundle fund` for details

I, [2024-09-06T21:10:48.675878 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2024-09-06T21:10:53.593625 #1]  INFO -- : discourse-adplugin is already at latest compatible version
discourse-ai is already at latest compatible version
discourse-akismet is already at latest compatible version
discourse-assign is already at latest compatible version
discourse-automation is already at latest compatible version
discourse-cakeday is already at latest compatible version
discourse-calendar is already at latest compatible version
discourse-chat-integration is already at latest compatible version
discourse-checklist is already at latest compatible version
discourse-data-explorer is already at latest compatible version
discourse-docs is already at latest compatible version
discourse-footnote is already at latest compatible version
discourse-gamification is already at latest compatible version
discourse-github is already at latest compatible version
discourse-graphviz is already at latest compatible version
discourse-math is already at latest compatible version
discourse-patreon is already at latest compatible version
discourse-policy is already at latest compatible version
discourse-reactions is already at latest compatible version
discourse-solved is already at latest compatible version
discourse-spoiler-alert is already at latest compatible version
discourse-subscriptions is already at latest compatible version
discourse-templates is already at latest compatible version
discourse-topic-voting is already at latest compatible version
discourse-user-notes is already at latest compatible version
discourse-yearly-review is already at latest compatible version
discourse-zendesk-plugin is already at latest compatible version
docker_manager is already at latest compatible version

I, [2024-09-06T21:10:53.593955 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-09-06T21:10:53.596275 #1]  INFO -- : > sleep 10
860:C 06 Sep 2024 21:10:53.607 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
860:C 06 Sep 2024 21:10:53.607 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=860, just started
860:C 06 Sep 2024 21:10:53.607 # Configuration loaded
860:M 06 Sep 2024 21:10:53.608 * monotonic clock: POSIX clock_gettime
860:M 06 Sep 2024 21:10:53.609 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
860:M 06 Sep 2024 21:10:53.609 # Failed listening on port 6379 (TCP), aborting.
I, [2024-09-06T21:11:03.599469 #1]  INFO -- : 
I, [2024-09-06T21:11:03.600184 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
2024-09-06 21:11:19.267 UTC [988] discourse@discourse ERROR:  relation "user_required_fields_versions" already exists
2024-09-06 21:11:19.267 UTC [988] discourse@discourse STATEMENT:  CREATE TABLE "user_required_fields_versions" ("id" bigserial primary key, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

PG::DuplicateTable: ERROR:  relation "user_required_fields_versions" already exists
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rack-mini-profiler-3.3.1/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rack-mini-profiler-3.3.1/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:55:in `block (2 levels) in raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:1027:in `block in with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:999:in `with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `block in raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:1142:in `log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:521:in `internal_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:131:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/query_cache.rb:25:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:304:in `create_table'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration/default_strategy.rb:10:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1047:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1017:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1017:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1036:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:566:in `create_table'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration/compatibility.rb:115:in `create_table'
/var/www/discourse/db/migrate/20240531053226_create_user_required_fields_version.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:986: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.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:970:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:969:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:227:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:968:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1178:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1529:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:535:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:532:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:344:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1580:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1528:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1503:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1503:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1448:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1600:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1448:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1274:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1249:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/tasks/database_tasks.rb:251:in `migrate'
/var/www/discourse/lib/tasks/db.rake:259: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:234:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/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::DuplicateTable: ERROR:  relation "user_required_fields_versions" already exists (ActiveRecord::StatementInvalid)
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rack-mini-profiler-3.3.1/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rack-mini-profiler-3.3.1/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:55:in `block (2 levels) in raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:1027:in `block in with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:999:in `with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `block in raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:1142:in `log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:521:in `internal_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:131:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/query_cache.rb:25:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:304:in `create_table'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration/default_strategy.rb:10:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1047:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1017:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1017:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1036:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:566:in `create_table'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration/compatibility.rb:115:in `create_table'
/var/www/discourse/db/migrate/20240531053226_create_user_required_fields_version.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:986: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.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:970:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:969:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:227:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:968:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1178:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1529:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:535:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:532:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:344:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1580:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1528:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1503:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1503:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1448:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1600:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1448:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1274:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1249:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/tasks/database_tasks.rb:251:in `migrate'
/var/www/discourse/lib/tasks/db.rake:259: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:234:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'

Caused by:
PG::DuplicateTable: ERROR:  relation "user_required_fields_versions" already exists (PG::DuplicateTable)
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rack-mini-profiler-3.3.1/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rack-mini-profiler-3.3.1/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:55:in `block (2 levels) in raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:1027:in `block in with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:999:in `with_raw_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `block in raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/notifications/instrumenter.rb:58:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract_adapter.rb:1142:in `log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:53:in `raw_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:521:in `internal_execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:131:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/query_cache.rb:25:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/schema_statements.rb:304:in `create_table'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration/default_strategy.rb:10:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1047:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1017:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1017:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1036:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:566:in `create_table'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration/compatibility.rb:115:in `create_table'
/var/www/discourse/db/migrate/20240531053226_create_user_required_fields_version.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:986: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.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:970:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:969:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:227:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:968:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1178:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1529:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:535:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.4/lib/active_support/concurrency/null_lock.rb:9:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/transaction.rb:532:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:344:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1580:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1528:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1503:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1503:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1448:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1600:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1448:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1274:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/migration.rb:1249:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.4/lib/active_record/tasks/database_tasks.rb:251:in `migrate'
/var/www/discourse/lib/tasks/db.rake:259: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:234:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/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, [2024-09-06T21:11:19.326623 #1]  INFO -- : gem install tokenizers -v 0.4.4 -i /var/www/discourse/plugins/discourse-ai/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed tokenizers-0.4.4-x86_64-linux
1 gem installed
gem install tiktoken_ruby -v 0.0.9 -i /var/www/discourse/plugins/discourse-ai/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed tiktoken_ruby-0.0.9-x86_64-linux
1 gem installed
gem install sawyer -v 0.9.2 -i /var/www/discourse/plugins/discourse-github/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed sawyer-0.9.2
1 gem installed
gem install octokit -v 5.6.1 -i /var/www/discourse/plugins/discourse-github/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed octokit-5.6.1
1 gem installed
gem install stripe -v 11.1.0 -i /var/www/discourse/plugins/discourse-subscriptions/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed stripe-11.1.0
1 gem installed
gem install inflection -v 1.0.0 -i /var/www/discourse/plugins/discourse-zendesk-plugin/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed inflection-1.0.0
1 gem installed
gem install multipart-post -v 2.2.3 -i /var/www/discourse/plugins/discourse-zendesk-plugin/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed multipart-post-2.2.3
1 gem installed
gem install faraday-multipart -v 1.0.4 -i /var/www/discourse/plugins/discourse-zendesk-plugin/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed faraday-multipart-1.0.4
1 gem installed
gem install zendesk_api -v 1.38.0.rc1 -i /var/www/discourse/plugins/discourse-zendesk-plugin/gems/3.3.4 --no-document --ignore-dependencies --no-user-install
Successfully installed zendesk_api-1.38.0.rc1
1 gem installed
== 20240416105733 AddRankToPollVotes: migrating ===============================
-- add_column(:poll_votes, :rank, :integer, {:null=>false, :default=>0})
   -> 0.0075s
== 20240416105733 AddRankToPollVotes: migrated (0.0127s) ======================

== 20240528132059 AddCompanionUserToLlmModel: migrating =======================
-- add_column(:llm_models, :user_id, :integer)
   -> 0.0020s
-- add_column(:llm_models, :enabled_chat_bot, :boolean, {:null=>false, :default=>false})
   -> 0.0016s
== 20240528132059 AddCompanionUserToLlmModel: migrated (0.0044s) ==============

== 20240528144216 SeedOpenAiModels: migrating =================================
== 20240528144216 SeedOpenAiModels: migrated (0.0013s) ========================

== 20240531053226 CreateUserRequiredFieldsVersion: migrating ==================
-- create_table(:user_required_fields_versions)

I, [2024-09-06T21:11:19.327304 #1]  INFO -- : Terminating async processes
I, [2024-09-06T21:11:19.327364 #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: 36
I, [2024-09-06T21:11:19.327410 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 104
2024-09-06 21:11:19.327 UTC [36] LOG:  received fast shutdown request
104:signal-handler (1725657079) Received SIGTERM scheduling shutdown...
2024-09-06 21:11:19.332 UTC [36] LOG:  aborting any active transactions
2024-09-06 21:11:19.335 UTC [36] LOG:  background worker "logical replication launcher" (PID 51) exited with exit code 1
2024-09-06 21:11:19.341 UTC [46] LOG:  shutting down
104:M 06 Sep 2024 21:11:19.372 # User requested shutdown...
104:M 06 Sep 2024 21:11:19.373 * Saving the final RDB snapshot before exiting.
2024-09-06 21:11:19.379 UTC [36] LOG:  database system is shut down
104:M 06 Sep 2024 21:11:19.464 * DB saved on disk
104:M 06 Sep 2024 21:11:19.464 # 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 864 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "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.
11de27f0f4b363f5d4cce624f33cf6cfa9955eee9287915186f907810b3d19f5
root@hub:/var/discourse# ^C
root@hub:/var/discourse# 

I’m not a developer and the person who usually helps me is out of reach for the next week, so I don’t really know what else to try.
Any assistance would really be appreciated

I also ran ./discourse-doctor as recommended and this is the report:

Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-107-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Fri Sep  6 21:36:20 UTC 2024

  System load:  0.0                Processes:             108
  Usage of /:   40.3% of 77.35GB   Users logged in:       0
  Memory usage: 17%                IPv4 address for eth0: 64.23.137.24
  Swap usage:   0%                 IPv4 address for eth0: 10.48.0.6

Expanded Security Maintenance for Applications is not enabled.

29 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status


*** System restart required ***
********************************************************************************

Welcome to the DigitalOcean Discourse 1-Click Application

On your first login you will be prompted to configure your Discourse installation.

All Discourse scripts and files may be found in /var/discourse and the setup
utility can be run again by launching discourse-setup in that directory.

For help and more information, visit https://do.co/3dmapBw

********************************************************************************
To delete this message of the day: rm -rf /etc/update-motd.d/99-one-click
Last login: Fri Sep  6 21:24:04 2024 from 198.211.111.194
root@hub:~# cd /var/discourse
root@hub:/var/discourse# ./discourse-doctor
DISCOURSE DOCTOR Fri Sep 6 21:36:41 UTC 2024
OS: Linux hub 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux


Found containers/app.yml

==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=hub.sadocs.co.za
SMTP_ADDRESS=smtp-relay.brevo.com
DEVELOPER_EMAILS=info@sadocs.co.za
SMTP_PASSWORD=XXX
SMTP_PORT=587
SMTP_USER_NAME=info@sadocs.co.za
LETSENCRYPT_ACCOUNT_EMAIL=info@sadocs.co.za

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 26.1.3, build b72abbb

DOCKER PROCESSES (docker ps -a)

CONTAINER ID   IMAGE                 COMMAND        CREATED        STATUS                      PORTS     NAMES
85aa0e7127e3   local_discourse/app   "/sbin/boot"   3 months ago   Exited (5) 27 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.20240825-0027: Pulling from discourse/base
Digest: sha256:6de68cb49198b5281f79ed9401b3fe818c854d220dcf0238549fe2f2adb19146
Status: Image is up to date for discourse/base:2.0.20240825-0027
docker.io/discourse/base:2.0.20240825-0027
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-09-06T21:36:49.909967 #1]  INFO -- : Reading from stdin
I, [2024-09-06T21:36:49.923237 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown: 
I, [2024-09-06T21:36:49.928577 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown: 
I, [2024-09-06T21:36:49.934048 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown: 
I, [2024-09-06T21:36:49.939237 #1]  INFO -- : File > /root/install_postgres  chmod: +x  chown: 
I, [2024-09-06T21:36:49.945200 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown: 
I, [2024-09-06T21:36:49.946131 #1]  INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.947120 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.947910 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.948536 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.949612 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.950238 #1]  INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.950864 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.951422 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.952104 #1]  INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf
I, [2024-09-06T21:36:49.952901 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-09-06T21:36:49.953562 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-09-06T21:36:49.954110 #1]  INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf
I, [2024-09-06T21:36:49.954677 #1]  INFO -- : > if [ -f /root/install_postgres ]; then
  /root/install_postgres && rm -f /root/install_postgres
elif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then
  socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
fi

I, [2024-09-06T21:36:51.523687 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2024-09-06T21:36:51.524150 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main
I, [2024-09-06T21:36:51.530788 #1]  INFO -- : File > /usr/local/bin/create_db  chmod: +x  chown: 
I, [2024-09-06T21:36:51.537424 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2024-09-06T21:36:51.540306 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown: 
I, [2024-09-06T21:36:51.540844 #1]  INFO -- : > sleep 5
2024-09-06 21:36:51.583 UTC [36] LOG:  starting PostgreSQL 13.16 (Debian 13.16-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-09-06 21:36:51.584 UTC [36] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-09-06 21:36:51.584 UTC [36] LOG:  listening on IPv6 address "::", port 5432
2024-09-06 21:36:51.587 UTC [36] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-09-06 21:36:51.593 UTC [45] LOG:  database system was shut down at 2024-09-06 21:27:36 UTC
2024-09-06 21:36:51.601 UTC [36] LOG:  database system is ready to accept connections
I, [2024-09-06T21:36:56.543845 #1]  INFO -- : 
I, [2024-09-06T21:36:56.544290 #1]  INFO -- : > /usr/local/bin/create_db
2024-09-06 21:36:56.605 UTC [55] postgres@postgres ERROR:  database "discourse" already exists
2024-09-06 21:36:56.605 UTC [55] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-09-06 21:36:56.662 UTC [58] postgres@discourse ERROR:  role "discourse" already exists
2024-09-06 21:36:56.662 UTC [58] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  version "0.7.4" of extension "vector" is already installed
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  version "0.7.4" of extension "vector" is already installed
I, [2024-09-06T21:36:57.264131 #1]  INFO -- : GRANT
ALTER SCHEMA
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
ALTER EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
ALTER EXTENSION
UPDATE 0

I, [2024-09-06T21:36:57.264588 #1]  INFO -- : > echo postgres installed!
I, [2024-09-06T21:36:57.267146 #1]  INFO -- : postgres installed!

I, [2024-09-06T21:36:57.273401 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown: 
I, [2024-09-06T21:36:57.279101 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown: 
I, [2024-09-06T21:36:57.284884 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown: 
I, [2024-09-06T21:36:57.285580 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2024-09-06T21:36:57.286542 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2024-09-06T21:36:57.287885 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-09-06T21:36:57.291788 #1]  INFO -- : 
I, [2024-09-06T21:36:57.292546 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-09-06T21:36:57.293407 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2024-09-06T21:36:57.296263 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-09-06T21:36:57.298102 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-09-06T21:36:57.299410 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-09-06T21:36:57.300667 #1]  INFO -- : > echo redis installed
I, [2024-09-06T21:36:57.303754 #1]  INFO -- : redis installed

I, [2024-09-06T21:36:57.304221 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-09-06T21:36:57.309466 #1]  INFO -- : logfile ""

I, [2024-09-06T21:36:57.309923 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-09-06T21:36:57.311945 #1]  INFO -- : > sleep 10
104:C 06 Sep 2024 21:36:57.323 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
104:C 06 Sep 2024 21:36:57.323 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=104, just started
104:C 06 Sep 2024 21:36:57.323 # Configuration loaded
104:M 06 Sep 2024 21:36:57.324 * monotonic clock: POSIX clock_gettime
104:M 06 Sep 2024 21:36:57.325 * Running mode=standalone, port=6379.
104:M 06 Sep 2024 21:36:57.325 # Server initialized
104:M 06 Sep 2024 21:36:57.326 # 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.
104:M 06 Sep 2024 21:36:57.326 * Loading RDB produced by version 7.0.7
104:M 06 Sep 2024 21:36:57.326 * RDB age 561 seconds
104:M 06 Sep 2024 21:36:57.326 * RDB memory usage when created 15.02 Mb
104:M 06 Sep 2024 21:36:57.394 * Done loading RDB, keys loaded: 3327, keys expired: 13.
104:M 06 Sep 2024 21:36:57.394 * DB loaded from disk: 0.068 seconds
104:M 06 Sep 2024 21:36:57.394 * Ready to accept connections
I, [2024-09-06T21:37:07.314850 #1]  INFO -- : 
I, [2024-09-06T21:37:07.315449 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-09-06T21:37:07.320203 #1]  INFO -- : thpoff is installed!

I, [2024-09-06T21:37:07.320926 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
I, [2024-09-06T21:37:07.444232 #1]  INFO -- : 
I, [2024-09-06T21:37:07.444776 #1]  INFO -- : > /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
I, [2024-09-06T21:37:07.555544 #1]  INFO -- : 
I, [2024-09-06T21:37:07.555821 #1]  INFO -- : > /usr/local/bin/ruby -e 'if (ENV["DISCOURSE_CDN_URL"] || "")[0..1] == "//"; puts "Aborting! CDN must have a protocol specified. Once fixed you should rebake your posts now to correct all posts."; exit 1; end'
I, [2024-09-06T21:37:07.640646 #1]  INFO -- : 
I, [2024-09-06T21:37:07.641117 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-09-06T21:37:07.644277 #1]  INFO -- : 
I, [2024-09-06T21:37:07.647954 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown: 
I, [2024-09-06T21:37:07.654265 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown: 
I, [2024-09-06T21:37:07.660191 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown: 
I, [2024-09-06T21:37:07.666310 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown: 
I, [2024-09-06T21:37:07.671803 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown: 
I, [2024-09-06T21:37:07.677020 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown: 
I, [2024-09-06T21:37:07.677495 #1]  INFO -- : Replacing # postgres with if [ -f /root/install_postgres ]; then
  /root/install_postgres
  rm /root/install_postgres
fi
sv start postgres || exit 1
 in /etc/service/unicorn/run
I, [2024-09-06T21:37:07.678747 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34680/34680), done.
I, [2024-09-06T21:37:11.303485 #1]  INFO -- : HEAD is now at 274e18622 FIX: Video uploads sometimes hang indefinitely (#28523)

I, [2024-09-06T21:37:11.303686 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-09-06T21:37:11.484640 #1]  INFO -- : 
I, [2024-09-06T21:37:11.485238 #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-a-gjs-ace
 - [deleted]             (none)     -> origin/better-respect-End-key-in-topics
 - [deleted]             (none)     -> origin/category-experts-approved-webhook-event
 - [deleted]             (none)     -> origin/chat-sound-respects-indicator-pref
 - [deleted]             (none)     -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.2
 - [deleted]             (none)     -> origin/dependabot/bundler/sass-embedded-1.77.8
 - [deleted]             (none)     -> origin/dependabot/bundler/sassc-embedded-1.77.8
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/ember-cli-deprecation-workflow-3.0.2
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/ember/test-helpers-4.0.1
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/eslint-9.7.0
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/sass-1.77.8
 - [deleted]             (none)     -> origin/detect-default-readonly
 - [deleted]             (none)     -> origin/dev/remove-header-widgets
 - [deleted]             (none)     -> origin/feature/site-text-result-selected-lang
 - [deleted]             (none)     -> origin/fix/add-user-to-user-directory-when-activated
 - [deleted]             (none)     -> origin/issue/fix-bookmark-clearing-reminder
 - [deleted]             (none)     -> origin/native-class-components-2
 - [deleted]             (none)     -> origin/native-class-components-3
 - [deleted]             (none)     -> origin/notifications_id_bigint
 - [deleted]             (none)     -> origin/prevent-desktop-notifications-on-mobile
 - [deleted]             (none)     -> origin/ux/admin-plugins-ui-guidelines
   274e18622..deb751dfe  main                    -> origin/main
 * [new branch]          0-a-testem              -> origin/0-a-testem
 * [new branch]          add-about-config-description -> origin/add-about-config-description
 * [new branch]          add-tag-group-log       -> origin/add-tag-group-log
 * [new branch]          burning-uppy-mixins     -> origin/burning-uppy-mixins
 * [new branch]          change-text-for-approved-post-webhook-event -> origin/change-text-for-approved-post-webhook-event
   7f254be61..488081d93  coco/generic-importer   -> origin/coco/generic-importer
 * [new branch]          dependabot/bundler/omniauth-google-oauth2-1.1.3 -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.3
 * [new branch]          dependabot/bundler/sass-embedded-1.78.0 -> origin/dependabot/bundler/sass-embedded-1.78.0
 * [new branch]          dependabot/bundler/sassc-embedded-1.78.0 -> origin/dependabot/bundler/sassc-embedded-1.78.0
 * [new branch]          dependabot/bundler/test-prof-1.4.2 -> origin/dependabot/bundler/test-prof-1.4.2
 * [new branch]          dependabot/npm_and_yarn/sass-1.78.0 -> origin/dependabot/npm_and_yarn/sass-1.78.0
 * [new branch]          dev-faster-tests        -> origin/dev-faster-tests
 * [new branch]          dev-migrate-user-password -> origin/dev-migrate-user-password
 * [new branch]          dev/add-outlet-to-categories-only -> origin/dev/add-outlet-to-categories-only
 * [new branch]          dev/bulk-import-chats   -> origin/dev/bulk-import-chats
 * [new branch]          dev/clear-trackers-for-uninstalled-checks -> origin/dev/clear-trackers-for-uninstalled-checks
 * [new branch]          dev/glimmer-post-menu   -> origin/dev/glimmer-post-menu
 * [new branch]          dev/port-outlet-wrapper-to-stable -> origin/dev/port-outlet-wrapper-to-stable
 * [new branch]          dev/remove-deprecated-respect-plugin-positional-argument -> origin/dev/remove-deprecated-respect-plugin-positional-argument
 * [new branch]          drop-old-notification-id-columns -> origin/drop-old-notification-id-columns
 * [new branch]          ember-native-class      -> origin/ember-native-class
 * [new branch]          feature/add-user-to-topic_tags_changed-event -> origin/feature/add-user-to-topic_tags_changed-event
 * [new branch]          fontawesome-6-framework -> origin/fontawesome-6-framework
 * [new branch]          fontawesome-6-upgrade   -> origin/fontawesome-6-upgrade
 * [new branch]          full-width-login-modal-mobile -> origin/full-width-login-modal-mobile
 * [new branch]          getting-started-fixes   -> origin/getting-started-fixes
 * [new branch]          glint                   -> origin/glint
 * [new branch]          issue/hide-historical-bpv-data -> origin/issue/hide-historical-bpv-data
 * [new branch]          loic-refactor-services  -> origin/loic-refactor-services
 + a25ac32bc...97bd38cf4 mt/converter            -> origin/mt/converter  (forced update)
 * [new branch]          revert-28587-revert-28321-dev/remove-create_post_for_category_and_tag_changes-setting -> origin/revert-28587-revert-28321-dev/remove-create_post_for_category_and_tag_changes-setting
   d3ad2ecda..381cf8548  stable                  -> origin/stable
   274e18622..deb751dfe  tests-passed            -> origin/tests-passed
 * [new branch]          ux-1pw-ignore           -> origin/ux-1pw-ignore
 * [new branch]          ux/convert-chat-plugin-ui -> origin/ux/convert-chat-plugin-ui
 * [new branch]          ux/getting-started-link-fix -> origin/ux/getting-started-link-fix
 t [tag update]          beta                    -> beta
 t [tag update]          latest-release          -> latest-release
 * [new tag]             v3.3.1                  -> v3.3.1
 * [new tag]             v3.4.0.beta1            -> v3.4.0.beta1
I, [2024-09-06T21:37:12.258004 #1]  INFO -- : 
I, [2024-09-06T21:37:12.258158 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == tests-passed ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout tests-passed
  fi
'
Switched to a new branch 'tests-passed'
I, [2024-09-06T21:37:16.285783 #1]  INFO -- : branch 'tests-passed' set up to track 'origin/tests-passed'.

I, [2024-09-06T21:37:16.285925 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-09-06T21:37:16.298581 #1]  INFO -- : 
I, [2024-09-06T21:37:16.298765 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-09-06T21:37:16.302971 #1]  INFO -- : 
I, [2024-09-06T21:37:16.303112 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-09-06T21:37:16.306626 #1]  INFO -- : 
I, [2024-09-06T21:37:16.306792 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-09-06T21:37:16.310779 #1]  INFO -- : 
I, [2024-09-06T21:37:16.310932 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-09-06T21:37:16.314911 #1]  INFO -- : 
I, [2024-09-06T21:37:16.315049 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-09-06T21:37:16.318960 #1]  INFO -- : 
I, [2024-09-06T21:37:16.319108 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2024-09-06T21:37:16.322922 #1]  INFO -- : 
I, [2024-09-06T21:37:16.323051 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-09-06T21:37:16.328369 #1]  INFO -- : 
I, [2024-09-06T21:37:16.328626 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2024-09-06T21:37:16.334345 #1]  INFO -- : 
I, [2024-09-06T21:37:16.334488 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2024-09-06T21:37:16.340287 #1]  INFO -- : 
I, [2024-09-06T21:37:16.340496 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-09-06T21:37:16.345420 #1]  INFO -- : 
I, [2024-09-06T21:37:16.345582 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2024-09-06T21:37:16.350992 #1]  INFO -- : 
I, [2024-09-06T21:37:16.351094 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-09-06T21:37:16.356931 #1]  INFO -- : 
I, [2024-09-06T21:37:16.357169 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-09-06T21:37:16.366246 #1]  INFO -- : 
I, [2024-09-06T21:37:16.366403 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-09-06T21:37:16.369343 #1]  INFO -- : 
I, [2024-09-06T21:37:16.369627 #1]  INFO -- : Replacing # redis with if [ ! -d /shared/redis_data ]; then
  install -d -m 0755 -o redis -g redis /shared/redis_data
fi
sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-09-06T21:37:16.375997 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2024-09-06T21:37:19.095429 #1]  INFO -- : 
I, [2024-09-06T21:37:19.095594 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-ai.git
Cloning into 'discourse-ai'...
I, [2024-09-06T21:37:21.023719 #1]  INFO -- : 
I, [2024-09-06T21:37:21.023854 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-cakeday.git
Cloning into 'discourse-cakeday'...
I, [2024-09-06T21:37:21.641953 #1]  INFO -- : 
I, [2024-09-06T21:37:21.642083 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-chat-integration.git
Cloning into 'discourse-chat-integration'...
I, [2024-09-06T21:37:22.459490 #1]  INFO -- : 
I, [2024-09-06T21:37:22.459637 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-checklist.git
Cloning into 'discourse-checklist'...
I, [2024-09-06T21:37:23.112959 #1]  INFO -- : 
I, [2024-09-06T21:37:23.113088 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-docs.git
Cloning into 'discourse-docs'...
I, [2024-09-06T21:37:23.748093 #1]  INFO -- : 
I, [2024-09-06T21:37:23.748221 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-footnote.git
Cloning into 'discourse-footnote'...
I, [2024-09-06T21:37:24.298621 #1]  INFO -- : 
I, [2024-09-06T21:37:24.298751 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-github.git
Cloning into 'discourse-github'...
I, [2024-09-06T21:37:24.853962 #1]  INFO -- : 
I, [2024-09-06T21:37:24.854098 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-graphviz.git
Cloning into 'discourse-graphviz'...
I, [2024-09-06T21:37:25.533208 #1]  INFO -- : 
I, [2024-09-06T21:37:25.533362 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-math.git
Cloning into 'discourse-math'...
I, [2024-09-06T21:37:26.894967 #1]  INFO -- : 
I, [2024-09-06T21:37:26.895117 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-patreon.git
Cloning into 'discourse-patreon'...
I, [2024-09-06T21:37:27.577516 #1]  INFO -- : 
I, [2024-09-06T21:37:27.577649 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-reactions.git
Cloning into 'discourse-reactions'...
I, [2024-09-06T21:37:28.281186 #1]  INFO -- : 
I, [2024-09-06T21:37:28.281560 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2024-09-06T21:37:28.932109 #1]  INFO -- : 
I, [2024-09-06T21:37:28.932242 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-spoiler-alert.git
Cloning into 'discourse-spoiler-alert'...
I, [2024-09-06T21:37:29.527209 #1]  INFO -- : 
I, [2024-09-06T21:37:29.527346 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-subscriptions.git
Cloning into 'discourse-subscriptions'...
I, [2024-09-06T21:37:30.471655 #1]  INFO -- : 
I, [2024-09-06T21:37:30.472182 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-yearly-review.git
Cloning into 'discourse-yearly-review'...
I, [2024-09-06T21:37:31.054184 #1]  INFO -- : 
I, [2024-09-06T21:37:31.054324 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-adplugin.git
Cloning into 'discourse-adplugin'...
I, [2024-09-06T21:37:31.767421 #1]  INFO -- : 
I, [2024-09-06T21:37:31.767903 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
Cloning into 'discourse-akismet'...
I, [2024-09-06T21:37:32.402994 #1]  INFO -- : 
I, [2024-09-06T21:37:32.403476 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-assign.git
Cloning into 'discourse-assign'...
I, [2024-09-06T21:37:33.232770 #1]  INFO -- : 
I, [2024-09-06T21:37:33.232907 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-automation.git
Cloning into 'discourse-automation'...
I, [2024-09-06T21:37:33.867848 #1]  INFO -- : 
I, [2024-09-06T21:37:33.868109 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-calendar.git
Cloning into 'discourse-calendar'...
I, [2024-09-06T21:37:34.811986 #1]  INFO -- : 
I, [2024-09-06T21:37:34.812130 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Cloning into 'discourse-data-explorer'...
I, [2024-09-06T21:37:35.479966 #1]  INFO -- : 
I, [2024-09-06T21:37:35.480098 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-gamification.git
Cloning into 'discourse-gamification'...
I, [2024-09-06T21:37:36.095020 #1]  INFO -- : 
I, [2024-09-06T21:37:36.095148 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-policy.git
Cloning into 'discourse-policy'...
I, [2024-09-06T21:37:36.724910 #1]  INFO -- : 
I, [2024-09-06T21:37:36.725043 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-templates.git
Cloning into 'discourse-templates'...
I, [2024-09-06T21:37:37.421608 #1]  INFO -- : 
I, [2024-09-06T21:37:37.421735 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-topic-voting.git
Cloning into 'discourse-topic-voting'...
I, [2024-09-06T21:37:38.033770 #1]  INFO -- : 
I, [2024-09-06T21:37:38.033901 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-user-notes.git
Cloning into 'discourse-user-notes'...
I, [2024-09-06T21:37:38.575973 #1]  INFO -- : 
I, [2024-09-06T21:37:38.576133 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-zendesk-plugin.git
Cloning into 'discourse-zendesk-plugin'...
I, [2024-09-06T21:37:39.150224 #1]  INFO -- : 
I, [2024-09-06T21:37:39.150855 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:37:39.154128 #1]  INFO -- : 
I, [2024-09-06T21:37:39.154616 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-09-06T21:37:39.157020 #1]  INFO -- : 
I, [2024-09-06T21:37:39.157145 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2024-09-06T21:37:39.160154 #1]  INFO -- : 
I, [2024-09-06T21:37:39.160715 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-09-06T21:37:39.161633 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:37:39.162193 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:37:39.162692 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-09-06T21:37:39.163187 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2024-09-06T21:37:39.163623 #1]  INFO -- : > echo "done configuring web"
I, [2024-09-06T21:37:39.166068 #1]  INFO -- : done configuring web

I, [2024-09-06T21:37:39.166551 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-09-06T21:37:39.446842 #1]  INFO -- : 
I, [2024-09-06T21:37:39.446964 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-09-06T21:37:40.894119 #1]  INFO -- : 
I, [2024-09-06T21:37:40.894790 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2024-09-06T21:37:40.897433 #1]  INFO -- : 
I, [2024-09-06T21:37:40.897538 #1]  INFO -- : > cd /var/www/discourse && if [ -f yarn.lock ]; then
  su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
else
  su discourse -c 'CI=1 pnpm install --frozen-lockfile'
fi
I, [2024-09-06T21:38:13.363969 #1]  INFO -- : Detected yarn-managed node_modules. Performing one-time cleanup...
cleanup done
Scope: all 19 workspace projects
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1760
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1760, reused 0, downloaded 0, added 0
Progress: resolved 1760, reused 0, downloaded 90, added 82
Progress: resolved 1760, reused 0, downloaded 205, added 190
Progress: resolved 1760, reused 0, downloaded 337, added 330
Progress: resolved 1760, reused 0, downloaded 372, added 363
Progress: resolved 1760, reused 0, downloaded 399, added 386
Progress: resolved 1760, reused 0, downloaded 510, added 502
Progress: resolved 1760, reused 0, downloaded 594, added 592
Progress: resolved 1760, reused 0, downloaded 677, added 666
Progress: resolved 1760, reused 0, downloaded 859, added 849
Progress: resolved 1760, reused 0, downloaded 993, added 982
Progress: resolved 1760, reused 0, downloaded 1103, added 1094
Progress: resolved 1760, reused 0, downloaded 1165, added 1150
Progress: resolved 1760, reused 0, downloaded 1181, added 1165
Progress: resolved 1760, reused 0, downloaded 1218, added 1211
Progress: resolved 1760, reused 0, downloaded 1234, added 1218
Progress: resolved 1760, reused 0, downloaded 1386, added 1376
Progress: resolved 1760, reused 0, downloaded 1445, added 1434
Progress: resolved 1760, reused 0, downloaded 1530, added 1520
Progress: resolved 1760, reused 0, downloaded 1550, added 1535
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /home/discourse/.local/share/pnpm/store/v3
  Virtual store is at:             node_modules/.pnpm
Progress: resolved 1760, reused 0, downloaded 1576, added 1563
Progress: resolved 1760, reused 0, downloaded 1680, added 1668
Progress: resolved 1760, reused 0, downloaded 1729, added 1718
Progress: resolved 1760, reused 0, downloaded 1751, added 1742
Progress: resolved 1760, reused 0, downloaded 1760, added 1760, done
.../core-js@3.33.0/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../@fortawesome/fontawesome-free postinstall$ node attribution.js
.../core-js@2.6.12/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
.../node_modules/@swc/core postinstall$ node postinstall.js
.../core-js@3.33.0/node_modules/core-js postinstall: Done
.../esbuild@0.23.1/node_modules/esbuild postinstall$ node install.js
.../@fortawesome/fontawesome-free postinstall: Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
.../@fortawesome/fontawesome-free postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../@fortawesome/fontawesome-free postinstall: Done
.../core-js@2.6.12/node_modules/core-js postinstall: Done
.../node_modules/@swc/core postinstall: Done
.../esbuild@0.23.1/node_modules/esbuild postinstall: Done
.../node_modules/lefthook postinstall$ node postinstall.js
.../node_modules/lefthook postinstall: Done

devDependencies:
+ @babel/plugin-proposal-decorators 7.24.7
+ @discourse/lint-configs 1.3.9
+ @discourse/moment-timezone-names-translations 1.0.0
+ @fortawesome/fontawesome-free 5.15.4
+ @glint/core 1.4.1-unstable.ff9ea6c
+ @glint/environment-ember-loose 1.4.1-unstable.ff9ea6c
+ @glint/environment-ember-template-imports 1.4.1-unstable.ff9ea6c
+ @glint/template 1.4.1-unstable.ff9ea6c
+ @mixer/parallel-prettier 2.0.3
+ @swc/core 1.7.23
+ chart.js 3.5.1
+ chartjs-plugin-datalabels 2.2.0
+ chrome-launcher 1.1.2
+ chrome-remote-interface 0.33.2
+ concurrently 8.2.2
+ ember-template-lint 6.0.0
+ esbuild 0.23.1
+ eslint 8.57.0
+ jsdoc 4.0.3
+ lefthook 1.7.15
+ licensee 10.0.0
+ lint-to-the-future 2.0.0
+ lint-to-the-future-ember-template 1.2.0
+ lint-to-the-future-eslint 2.0.1
+ magnific-popup 1.1.0
+ moment 2.30.1
+ moment-timezone 0.5.45
+ pikaday 1.8.2
+ prettier 2.8.8
+ puppeteer-core 23.3.0
+ squoosh 2.0.0
+ terser 5.31.6
+ typescript 5.5.4

Done in 32.3s

I, [2024-09-06T21:38:13.365691 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --jobs $(($(nproc) - 1)) --retry 3'
I, [2024-09-06T21:38:20.913127 #1]  INFO -- : Fetching gem metadata from https://rubygems.org/........
Fetching net-imap 0.4.16
Installing net-imap 0.4.16
Fetching css_parser 1.19.0
Installing css_parser 1.19.0
Fetching uri 0.13.1
Installing uri 0.13.1
Fetching faraday-net_http 3.3.0
Installing faraday-net_http 3.3.0
Fetching logger 1.6.1
Installing logger 1.6.1
Fetching faraday 2.11.0
Installing faraday 2.11.0
Fetching google-protobuf 4.28.0 (x86_64-linux)
Installing google-protobuf 4.28.0 (x86_64-linux)
Fetching reline 0.5.10
Installing reline 0.5.10
Fetching highline 3.1.1
Installing highline 3.1.1
Fetching thor 1.3.2
Installing thor 1.3.2
Fetching zeitwerk 2.6.18
Installing zeitwerk 2.6.18
Fetching omniauth-oauth 1.2.1
Installing omniauth-oauth 1.2.1
Fetching rexml 3.3.7
Installing rexml 3.3.7
Fetching ruby-readability 0.7.2
Installing ruby-readability 0.7.2
Fetching tzinfo-data 1.2024.2
Installing tzinfo-data 1.2024.2
Bundle complete! 140 Gemfile dependencies, 183 gems now installed.
Gems in the groups 'test' and 'development' were not installed.
Bundled gems are installed into `./vendor/bundle`
1 installed gem you directly depend on is looking for funding.
  Run `bundle fund` for details

I, [2024-09-06T21:38:20.913873 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2024-09-06T21:38:25.407443 #1]  INFO -- : discourse-adplugin is already at latest compatible version
discourse-ai is already at latest compatible version
discourse-akismet is already at latest compatible version
discourse-assign is already at latest compatible version
discourse-automation is already at latest compatible version
discourse-cakeday is already at latest compatible version
discourse-calendar is already at latest compatible version
discourse-chat-integration is already at latest compatible version
discourse-checklist is already at latest compatible version
discourse-data-explorer is already at latest compatible version
discourse-docs is already at latest compatible version
discourse-footnote is already at latest compatible version
discourse-gamification is already at latest compatible version
discourse-github is already at latest compatible version
discourse-graphviz is already at latest compatible version
discourse-math is already at latest compatible version
discourse-patreon is already at latest compatible version
discourse-policy is already at latest compatible version
discourse-reactions is already at latest compatible version
discourse-solved is already at latest compatible version
discourse-spoiler-alert is already at latest compatible version
discourse-subscriptions is already at latest compatible version
discourse-templates is already at latest compatible version
discourse-topic-voting is already at latest compatible version
discourse-user-notes is already at latest compatible version
discourse-yearly-review is already at latest compatible version
discourse-zendesk-plugin is already at latest compatible version
docker_manager is already at latest compatible version

I, [2024-09-06T21:38:25.407885 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-09-06T21:38:25.410198 #1]  INFO -- : > sleep 10
861:C 06 Sep 2024 21:38:25.420 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
861:C 06 Sep 2024 21:38:25.420 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=861, just started
861:C 06 Sep 2024 21:38:25.420 # Configuration loaded
861:M 06 Sep 2024 21:38:25.421 * monotonic clock: POSIX clock_gettime
861:M 06 Sep 2024 21:38:25.421 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
861:M 06 Sep 2024 21:38:25.421 # Failed listening on port 6379 (TCP), aborting.
I, [2024-09-06T21:38:35.414012 #1]  INFO -- : 
I, [2024-09-06T21:38:35.414436 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
^C==================== END REBUILD LOG ====================
Failed to rebuild app.

Checking your domain name . . .

Connection to hub.sadocs.co.za 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 (c9b30df810f4cb7d45f509a9c10f774e21f07a595ee87b735ea423612e7be428): 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
          - git clone https://github.com/discourse/discourse-ai.git
          - git clone https://github.com/discourse/discourse-cakeday.git
          - git clone https://github.com/discourse/discourse-chat-integration.git
          - git clone https://github.com/discourse/discourse-checklist.git
          - git clone https://github.com/discourse/discourse-docs.git
          - git clone https://github.com/discourse/discourse-footnote.git
          - git clone https://github.com/discourse/discourse-github.git
          - git clone https://github.com/discourse/discourse-graphviz.git
          - git clone https://github.com/discourse/discourse-math.git
          - git clone https://github.com/discourse/discourse-patreon.git
          - git clone https://github.com/discourse/discourse-reactions.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-subscriptions.git
          - git clone https://github.com/discourse/discourse-yearly-review.git
          - git clone https://github.com/discourse/discourse-adplugin.git
          - git clone https://github.com/discourse/discourse-akismet.git
          - git clone https://github.com/discourse/discourse-assign.git
          - git clone https://github.com/discourse/discourse-automation.git
          - git clone https://github.com/discourse/discourse-calendar.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/discourse/discourse-gamification.git
          - git clone https://github.com/discourse/discourse-policy.git
          - git clone https://github.com/discourse/discourse-templates.git
          - git clone https://github.com/discourse/discourse-topic-voting.git
          - git clone https://github.com/discourse/discourse-user-notes.git
          - git clone https://github.com/discourse/discourse-zendesk-plugin.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 hub.sadocs.co.za: NOT FOUND
Discourse version at localhost: NOT FOUND


==================== MEMORY INFORMATION ====================
RAM (MB): 4101

               total        used        free      shared  buff/cache   available
Mem:            3911         344         643           4        2924        3272
Swap:              0           0           0

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        78G   33G   45G  43% /

==================== DISK INFORMATION ====================
Disk /dev/loop0: 63.95 MiB, 67051520 bytes, 130960 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: 63.29 MiB, 66359296 bytes, 129608 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: 87.03 MiB, 91258880 bytes, 178240 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: 38.73 MiB, 40615936 bytes, 79328 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/loop5: 87.04 MiB, 91267072 bytes, 178256 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/loop6: 38.83 MiB, 40714240 bytes, 79520 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: 80 GiB, 85899345920 bytes, 167772160 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: C2901603-FAE8-45CB-86FE-13D02E6B6DC6

Device      Start       End   Sectors  Size Type
/dev/vda1  227328 167772126 167544799 79.9G Linux filesystem
/dev/vda14   2048     10239      8192    4M BIOS boot
/dev/vda15  10240    227327    217088  106M EFI System

Partition table entries are not in disk order.


Disk /dev/vdb: 466 KiB, 477184 bytes, 932 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

==================== END DISK INFORMATION ====================

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Or just send a test message to yourself.
Email address for mail test? ('n' to skip) [info@sadocs.co.za]: 

That’s the salient error. I changed the title to get the attention of someone who might know more.

1 Like

Thanks @pfaffman

Do you think it will be possible to fix it without losing all my data?

I created a backup right before updating, but I didn’t download it to my local server before the site crashed so I’m concerned that I might have lost everything.
Or is it perhaps possible to roll back to the latest backup from the console, assuming that that last backup is still stored somewhere?

Absolutely.

Not a problem.

Perfect.

I don’t have any ideas that I can easily explain, but we can get you going again.

The team is off for the weekend, so it’ll likely be a bit before someone who knows about this will be online.

I might be able to fix it today for a fee. See Contact Us - Literate Computing

1 Like

Did you try to

./launcher start app

Just tried it and now it gives this error:

Oh. Darn. I guess it migrated too far for the old container to work.

You should be able to enter the container and restore the neck that you took just before the upgrade from the command line.
Restore a backup from the command line

1 Like

Even if I didn’t download the backup to my local server?

Yes. That command will restore the version on the server drive.

1 Like

Thanks. I followed the instructions but it still isn’t working, it just keeps giving either the error 500 page or the Site can’t be reached error page, depending on whether I commanded ./launcher rebuild app or ./launcher start app.
It once gave a 502 bad gateway error as well.

I also tried to update my dev/backup site so that I could try and upload the backup on there, but it has now gone the same route after trying to update. It gave an error saying the yarn is not up to date at one point, but when I checked it shows that the yarn is the same as the global version, so I’m stumped.

I also ran the discourse-doctor command on the main site console again and got this:
image

Could it perhaps be an issue with the new Discourse version?

Don’t rebuild. Just start the old container and follow the command line restore instructions.

Other things are too drop that table is trying to create, which is a bit complicated to explain.

Ok I tried to restore the previous backup from the command line following those instructions and it gave me this:

Enabling restore...
Restore are now permitted. Disable them with `disable_restore`
root@hub-app:/var/www/discourse# discourse restore sadocs-hub-2024-09-06-202428-v20240827064121.tar.gz
Starting restore: sadocs-hub-2024-09-06-202428-v20240827064121.tar.gz
[STARTED]
'system' has started the restore!
Marking restore as running...
Making sure /var/www/discourse/tmp/restores/default/2024-09-07-185238 exists...
Copying archive to tmp directory...
Unzipping archive, this may take a while...
Extracting dump file...
Validating metadata...
  Current version: 20240528144216
  Restored version: 20240827064121
EXCEPTION: You're trying to restore a more recent version of the schema. You should migrate first!
/var/www/discourse/lib/backup_restore/meta_data_handler.rb:31:in `validate'
/var/www/discourse/lib/backup_restore/restorer.rb:112:in `validate_backup_metadata'
/var/www/discourse/lib/backup_restore/restorer.rb:43:in `run'
script/discourse:157:in `restore'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/thor-1.3.2/lib/thor/base.rb:584:in `start'
script/discourse:291:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:58:in `load'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:23:in `run'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:451:in `exec'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor.rb:527:in `dispatch'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:34:in `dispatch'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:28:in `start'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.5.9/exe/bundle:28:in `block in <top (required)>'
/usr/local/lib/ruby/site_ruby/3.2.0/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/local/lib/ruby/gems/3.2.0/gems/bundler-2.5.9/exe/bundle:20:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Trying to rollback...
There was no need to rollback
Cleaning stuff up...
Removing tmp '/var/www/discourse/tmp/restores/default/2024-09-07-185238' directory...
Marking restore as finished...
Notifying 'system' of the end of the restore...
Finished!
[FAILED]
Restore done.
root@hub-app:/var/www/discourse# exit
logout

I then tried ./launcher start app but it still gives the Error 500 page.

Why does it tell me to migrate first?

Hmm. Perhaps you’d upgraded inside the container so the one you’re restarting is older somehow. I’m not quite sure.

just to note, if you can reach a command line, perhaps to run ./launcher, then there will be a way to copy that backup down to the machine you’re sitting at. (But as you realise, taking, and downloading, a backup before an update is the best plan.)

1 Like

Thank you.
I did luckily manage to download my backup from the server.
However, for some reason when I tried to upload that backup onto my dev/test site it didn’t have any of the new posts or users on it. Should these backups not have all that info?

Does the datestamp in the filename match up with the expected date? I wonder if somehow it’s an older backup file.

Yes it does.

I ended up destroying my backup dev site and reinstalling Discourse. It worked fine as the basic installation.

I then installed the plugins and it suddenly gave me the Bad Gateway error again.
I then started manually uninstalling the plugins to see if one of them might be causing the issue, but this is the error I get:

735:C 08 Sep 2024 18:08:02.491 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=735, just started
735:C 08 Sep 2024 18:08:02.492 # Configuration loaded
735:M 08 Sep 2024 18:08:02.492 * monotonic clock: POSIX clock_gettime
735:M 08 Sep 2024 18:08:02.493 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
735:M 08 Sep 2024 18:08:02.493 # Failed listening on port 6379 (TCP), aborting.
I, [2024-09-08T18:08:12.483662 #1]  INFO -- : 
I, [2024-09-08T18:08:12.484827 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Errno::EPIPE: Broken pipe @ rb_io_flush_raw - <STDOUT> (Errno::EPIPE)

It looks like the moment I try to install any plugin, it gives this error and I can’t undo it just by uninstalling the plugin.

Any idea what I should do?

I resolved this by deleting the existing postgres folders (actually I moved them to temporary storage and still need to delete them), rebuilding, and then restoring the recent backup.

Even after I deleted the database, I still got an error with the AI plugin, so I removed it and then was able to rebuild the empty site and restore the backup. I did a rebuild after that, just to be sure.

My hypothesis is that somehow the database and the migration record got out of sync.

This site was migrated from CDCK around June.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.