Update Not Completed and Discourse not opening

Hello community
Yesterday I got an error during the update. I tried to do the update from the admin panel via the forum.
I have tried this from the SSH terminal with the ./launcher rebuild app method, but my problem is not solved and the Discourse forum does not open.
Thanks in advance for any ideas on what I can do to fix this problem.

Here is the ./launcher rebuild app ouput

./launcher rebuild app
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.20240602-0023: Pulling from discourse/base
Digest: sha256:5e0c30da851a00e824a58b033d59b8f3dd840b513a7694a7a5d0674285c0ee3c
Status: Image is up to date for discourse/base:2.0.20240602-0023
docker.io/discourse/base:2.0.20240602-0023
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-06-17T16:08:17.285530 #1]  INFO -- : Reading from stdin
I, [2024-06-17T16:08:17.297046 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2024-06-17T16:08:17.301027 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2024-06-17T16:08:17.305216 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2024-06-17T16:08:17.308815 #1]  INFO -- : File > /root/install_postgres  chmod: +x  chown:
I, [2024-06-17T16:08:17.312189 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2024-06-17T16:08:17.313462 #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-06-17T16:08:17.314212 #1]  INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T16:08:17.314843 #1]  INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T16:08:17.315328 #1]  INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T16:08:17.315935 #1]  INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T16:08:17.316338 #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-06-17T16:08:17.316830 #1]  INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T16:08:17.317304 #1]  INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf
I, [2024-06-17T16:08:17.317733 #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-06-17T16:08:17.318366 #1]  INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres  peer in /etc/postgresql/13/main/pg_hba.conf
I, [2024-06-17T16:08:17.318750 #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-06-17T16:08:17.319106 #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-06-17T16:08:17.319479 #1]  INFO -- : > [ -f /root/install_postgres ] && /root/install_postgres && rm -f /root/install_postgres
I, [2024-06-17T16:08:18.602699 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2024-06-17T16:08:18.603323 #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-06-17T16:08:18.612773 #1]  INFO -- : File > /usr/local/bin/create_db  chmod: +x  chown:
I, [2024-06-17T16:08:18.628668 #1]  INFO -- : File > /var/lib/postgresql/take-database-backup  chmod: +x  chown: postgres:postgres
I, [2024-06-17T16:08:18.634635 #1]  INFO -- : File > /var/spool/cron/crontabs/postgres  chmod:   chown:
I, [2024-06-17T16:08:18.635318 #1]  INFO -- : > sleep 5
2024-06-17 16:08:18.658 UTC [35] LOG:  starting PostgreSQL 13.15 (Debian 13.15-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2024-06-17 16:08:18.660 UTC [35] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-06-17 16:08:18.661 UTC [35] LOG:  listening on IPv6 address "::", port 5432
2024-06-17 16:08:18.663 UTC [35] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-06-17 16:08:18.669 UTC [44] LOG:  database system was shut down at 2024-06-17 16:05:38 UTC
2024-06-17 16:08:18.675 UTC [35] LOG:  database system is ready to accept connections
I, [2024-06-17T16:08:23.647182 #1]  INFO -- :
I, [2024-06-17T16:08:23.647301 #1]  INFO -- : > /usr/local/bin/create_db
2024-06-17 16:08:23.710 UTC [54] postgres@postgres ERROR:  database "discourse" already exists
2024-06-17 16:08:23.710 UTC [54] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-06-17 16:08:23.772 UTC [57] postgres@discourse ERROR:  role "discourse" already exists
2024-06-17 16:08:23.772 UTC [57] 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-06-17T16:08:24.294166 #1]  INFO -- : GRANT
ALTER SCHEMA
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
CREATE EXTENSION
UPDATE 0

I, [2024-06-17T16:08:24.294652 #1]  INFO -- : > echo postgres installed!
I, [2024-06-17T16:08:24.298622 #1]  INFO -- : postgres installed!

I, [2024-06-17T16:08:24.302605 #1]  INFO -- : File > /etc/service/redis/run  chmod: +x  chown:
I, [2024-06-17T16:08:24.306046 #1]  INFO -- : File > /etc/service/redis/log/run  chmod: +x  chown:
I, [2024-06-17T16:08:24.309275 #1]  INFO -- : File > /etc/runit/3.d/10-redis  chmod: +x  chown:
I, [2024-06-17T16:08:24.310345 #1]  INFO -- : Replacing daemonize yes with  in /etc/redis/redis.conf
I, [2024-06-17T16:08:24.311097 #1]  INFO -- : Replacing (?-mix:^pidfile.*$) with  in /etc/redis/redis.conf
I, [2024-06-17T16:08:24.312152 #1]  INFO -- : > install -d -m 0755 -o redis -g redis /shared/redis_data
I, [2024-06-17T16:08:24.314275 #1]  INFO -- :
I, [2024-06-17T16:08:24.314858 #1]  INFO -- : Replacing (?-mix:^logfile.*$) with logfile "" in /etc/redis/redis.conf
I, [2024-06-17T16:08:24.315506 #1]  INFO -- : Replacing (?-mix:^bind .*$) with  in /etc/redis/redis.conf
I, [2024-06-17T16:08:24.316713 #1]  INFO -- : Replacing (?-mix:^dir .*$) with dir /shared/redis_data in /etc/redis/redis.conf
I, [2024-06-17T16:08:24.317728 #1]  INFO -- : Replacing (?-mix:^protected-mode yes) with protected-mode no in /etc/redis/redis.conf
I, [2024-06-17T16:08:24.318675 #1]  INFO -- : Replacing # io-threads 4 with io-threads $redis_io_threads in /etc/redis/redis.conf
I, [2024-06-17T16:08:24.319685 #1]  INFO -- : > echo redis installed
I, [2024-06-17T16:08:24.321468 #1]  INFO -- : redis installed

I, [2024-06-17T16:08:24.321845 #1]  INFO -- : > cat /etc/redis/redis.conf | grep logfile
I, [2024-06-17T16:08:24.326830 #1]  INFO -- : logfile ""

I, [2024-06-17T16:08:24.327174 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-17T16:08:24.328336 #1]  INFO -- : > sleep 10
97:C 17 Jun 2024 16:08:24.335 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
97:C 17 Jun 2024 16:08:24.336 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=97, just started
97:C 17 Jun 2024 16:08:24.336 # Configuration loaded
97:M 17 Jun 2024 16:08:24.336 * monotonic clock: POSIX clock_gettime
97:M 17 Jun 2024 16:08:24.337 * Running mode=standalone, port=6379.
97:M 17 Jun 2024 16:08:24.337 # Server initialized
97:M 17 Jun 2024 16:08:24.337 # 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.
97:M 17 Jun 2024 16:08:24.338 * Loading RDB produced by version 7.0.7
97:M 17 Jun 2024 16:08:24.338 * RDB age 166 seconds
97:M 17 Jun 2024 16:08:24.338 * RDB memory usage when created 14.37 Mb
97:M 17 Jun 2024 16:08:24.368 * Done loading RDB, keys loaded: 3068, keys expired: 1.
97:M 17 Jun 2024 16:08:24.368 * DB loaded from disk: 0.031 seconds
97:M 17 Jun 2024 16:08:24.368 * Ready to accept connections
I, [2024-06-17T16:08:34.335810 #1]  INFO -- :
I, [2024-06-17T16:08:34.336449 #1]  INFO -- : > thpoff echo "thpoff is installed!"
I, [2024-06-17T16:08:34.339763 #1]  INFO -- : thpoff is installed!

I, [2024-06-17T16:08:34.340366 #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-06-17T16:08:34.417961 #1]  INFO -- :
I, [2024-06-17T16:08:34.418428 #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-06-17T16:08:34.502683 #1]  INFO -- :
I, [2024-06-17T16:08:34.503261 #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-06-17T16:08:34.621798 #1]  INFO -- :
I, [2024-06-17T16:08:34.622499 #1]  INFO -- : > rm -f /etc/cron.d/anacron
I, [2024-06-17T16:08:34.626876 #1]  INFO -- :
I, [2024-06-17T16:08:34.630934 #1]  INFO -- : File > /etc/cron.d/anacron  chmod:   chown:
I, [2024-06-17T16:08:34.636874 #1]  INFO -- : File > /etc/runit/1.d/copy-env  chmod: +x  chown:
I, [2024-06-17T16:08:34.641947 #1]  INFO -- : File > /etc/service/unicorn/run  chmod: +x  chown:
I, [2024-06-17T16:08:34.647022 #1]  INFO -- : File > /etc/service/nginx/run  chmod: +x  chown:
I, [2024-06-17T16:08:34.651820 #1]  INFO -- : File > /etc/runit/3.d/01-nginx  chmod: +x  chown:
I, [2024-06-17T16:08:34.656581 #1]  INFO -- : File > /etc/runit/3.d/02-unicorn  chmod: +x  chown:
I, [2024-06-17T16:08:34.657142 #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-06-17T16:08:34.658915 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34508/34508), done.
I, [2024-06-17T16:08:38.036810 #1]  INFO -- : HEAD is now at 62b1b69e8 UX: constrain width of chat transcripts in posts (#27288)

I, [2024-06-17T16:08:38.037412 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-06-17T16:08:38.195567 #1]  INFO -- :
I, [2024-06-17T16:08:38.196073 #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/add_filter_webhook_events_by_status
 - [deleted]             (none)     -> origin/add_lifecycle_rule_for_inventories
 - [deleted]             (none)     -> origin/application-route-actions
 - [deleted]             (none)     -> origin/avoid_unformatted_logs
 - [deleted]             (none)     -> origin/categories-modal-fix
 - [deleted]             (none)     -> origin/decorator-transforms-take-2
 - [deleted]             (none)     -> origin/dependabot/bundler/rails_failover-2.1.0
 - [deleted]             (none)     -> origin/dev/ember-58-upgrade-playground
 - [deleted]             (none)     -> origin/dev/rfc-value-modifier-plugin-api
 - [deleted]             (none)     -> origin/dev/standalone-home-logo-contents-component
 - [deleted]             (none)     -> origin/discourse-route-actions
 - [deleted]             (none)     -> origin/discourse-url-native-class
 - [deleted]             (none)     -> origin/fix-group-chat-member-count
 - [deleted]             (none)     -> origin/ghost-button
 - [deleted]             (none)     -> origin/issue/bulk-action-pm-fixes
 - [deleted]             (none)     -> origin/migrations-tooling/converter
 - [deleted]             (none)     -> origin/permalinks
 - [deleted]             (none)     -> origin/route-native-class
 - [deleted]             (none)     -> origin/search-result-consistency
 - [deleted]             (none)     -> origin/support_alternate_bucket_s3_inventory
 - [deleted]             (none)     -> origin/update-official-plugin-list
 - [deleted]             (none)     -> origin/user-posts-stream-native-class
 - [deleted]             (none)     -> origin/ux-account-disclaimer
   62b1b69e8..676413400  main                    -> origin/main
 * [new branch]          0-a-fix-bread           -> origin/0-a-fix-bread
 * [new branch]          0-a-z-index-cards       -> origin/0-a-z-index-cards
 * [new branch]          add_mechanism_to_redeliver_all_webhook_events -> origin/add_mechanism_to_redeliver_all_webhook_events
 * [new branch]          add_mechanism_to_redeliver_all_webhook_events_wip -> origin/add_mechanism_to_redeliver_all_webhook_events_wip
 + 098e99e83...f82803b6a coco/generic-importer   -> origin/coco/generic-importer  (forced update)
 * [new branch]          dependabot/bundler/libv8-node-21.7.2.0 -> origin/dependabot/bundler/libv8-node-21.7.2.0
 * [new branch]          dependabot/bundler/oauth2-2.0.9 -> origin/dependabot/bundler/oauth2-2.0.9
 * [new branch]          dependabot/bundler/omniauth-2.1.2 -> origin/dependabot/bundler/omniauth-2.1.2
 * [new branch]          dependabot/bundler/omniauth-google-oauth2-1.1.2 -> origin/dependabot/bundler/omniauth-google-oauth2-1.1.2
 + 01982d4eb...58a828d0b dependabot/bundler/sqlite3-2.0.2 -> origin/dependabot/bundler/sqlite3-2.0.2  (forced update)
 * [new branch]          detect-default-readonly -> origin/detect-default-readonly
 * [new branch]          dev-strict-dynamic-csp-as-default -> origin/dev-strict-dynamic-csp-as-default
 * [new branch]          dev/add-behavior-transformers -> origin/dev/add-behavior-transformers
 * [new branch]          dev/backend-for-admin-config-area-about -> origin/dev/backend-for-admin-config-area-about
 * [new branch]          dev/ember-source-5.9.0-upgrade -> origin/dev/ember-source-5.9.0-upgrade
 * [new branch]          dev/enable-admin-notice-glimmer-header -> origin/dev/enable-admin-notice-glimmer-header
 * [new branch]          feature/requires-confirmation-site-settings -> origin/feature/requires-confirmation-site-settings
 + fc63df2f0...2f9e84fcf feature/user-fields-required-for-existing-users-2 -> origin/feature/user-fields-required-for-existing-users-2  (forced update)
 * [new branch]          fix-custom-homepage-preloading -> origin/fix-custom-homepage-preloading
 * [new branch]          fix-password-reset-security-key -> origin/fix-password-reset-security-key
 * [new branch]          fix-post-revision-tags-serializer -> origin/fix-post-revision-tags-serializer
   b3d6801e8..1a6dc2a43  formtoolkit             -> origin/formtoolkit
 * [new branch]          grant-admin-fetch-user  -> origin/grant-admin-fetch-user
 * [new branch]          issue/do-not-enforce-2fa-on-social-logins -> origin/issue/do-not-enforce-2fa-on-social-logins
 * [new branch]          jjaffeux-otp-validation -> origin/jjaffeux-otp-validation
 + b2b6b4468...152b487ca loic-update-to-rails-7.1 -> origin/loic-update-to-rails-7.1  (forced update)
 * [new branch]          mt/converter            -> origin/mt/converter
 * [new branch]          remove-summarization    -> origin/remove-summarization
 * [new branch]          remove_hostname         -> origin/remove_hostname
   5558028f8..1ba06b544  stable                  -> origin/stable
   62b1b69e8..676413400  tests-passed            -> origin/tests-passed
 * [new branch]          tobiaseigen-patch-3     -> origin/tobiaseigen-patch-3
I, [2024-06-17T16:08:39.145205 #1]  INFO -- :
I, [2024-06-17T16:08:39.145648 #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-06-17T16:08:44.793262 #1]  INFO -- : Branch 'tests-passed' set up to track remote branch 'tests-passed' from 'origin'.

I, [2024-06-17T16:08:44.793723 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version tests-passed
I, [2024-06-17T16:08:44.805104 #1]  INFO -- :
I, [2024-06-17T16:08:44.805558 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2024-06-17T16:08:44.808352 #1]  INFO -- :
I, [2024-06-17T16:08:44.808668 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2024-06-17T16:08:44.811313 #1]  INFO -- :
I, [2024-06-17T16:08:44.811631 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2024-06-17T16:08:44.813994 #1]  INFO -- :
I, [2024-06-17T16:08:44.814263 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2024-06-17T16:08:44.816493 #1]  INFO -- :
I, [2024-06-17T16:08:44.816739 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2024-06-17T16:08:44.820101 #1]  INFO -- :
I, [2024-06-17T16:08:44.820387 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2024-06-17T16:08:44.822736 #1]  INFO -- :
I, [2024-06-17T16:08:44.823001 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2024-06-17T16:08:44.826331 #1]  INFO -- :
I, [2024-06-17T16:08:44.826604 #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-06-17T16:08:44.830147 #1]  INFO -- :
I, [2024-06-17T16:08:44.830476 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2024-06-17T16:08:44.837481 #1]  INFO -- :
I, [2024-06-17T16:08:44.837959 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2024-06-17T16:08:44.842299 #1]  INFO -- :
I, [2024-06-17T16:08:44.842659 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2024-06-17T16:08:44.846700 #1]  INFO -- :
I, [2024-06-17T16:08:44.847024 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2024-06-17T16:08:44.850433 #1]  INFO -- :
I, [2024-06-17T16:08:44.850771 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2024-06-17T16:08:45.006057 #1]  INFO -- :
I, [2024-06-17T16:08:45.006655 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2024-06-17T16:08:45.008855 #1]  INFO -- :
I, [2024-06-17T16:08:45.009315 #1]  INFO -- : Replacing # redis with sv start redis || exit 1 in /etc/service/unicorn/run
I, [2024-06-17T16:08:45.010252 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2024-06-17T16:08:46.051571 #1]  INFO -- :
I, [2024-06-17T16:08:46.052084 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-solved.git
Cloning into 'discourse-solved'...
I, [2024-06-17T16:08:46.632946 #1]  INFO -- :
I, [2024-06-17T16:08:46.633408 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-whos-online.git
Cloning into 'discourse-whos-online'...
I, [2024-06-17T16:08:47.170552 #1]  INFO -- :
I, [2024-06-17T16:08:47.171033 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-bbcode-color.git
Cloning into 'discourse-bbcode-color'...
I, [2024-06-17T16:08:47.938117 #1]  INFO -- :
I, [2024-06-17T16:08:47.938690 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-apple-auth.git
Cloning into 'discourse-apple-auth'...
I, [2024-06-17T16:08:48.410120 #1]  INFO -- :
I, [2024-06-17T16:08:48.410585 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-push-notifications.git
Cloning into 'discourse-push-notifications'...
I, [2024-06-17T16:08:48.945803 #1]  INFO -- :
I, [2024-06-17T16:08:48.946478 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/disclosetv/plugin-check-email.git
Cloning into 'plugin-check-email'...
I, [2024-06-17T16:08:49.389442 #1]  INFO -- :
I, [2024-06-17T16:08:49.389969 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-user-notes.git
Cloning into 'discourse-user-notes'...
I, [2024-06-17T16:08:49.867010 #1]  INFO -- :
I, [2024-06-17T16:08:49.867491 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/paviliondev/discourse-locations.git
Cloning into 'discourse-locations'...
I, [2024-06-17T16:08:50.521709 #1]  INFO -- :
I, [2024-06-17T16:08:50.522240 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/merefield/discourse-ai-topic-summary.git
Cloning into 'discourse-ai-topic-summary'...
I, [2024-06-17T16:08:51.176880 #1]  INFO -- :
I, [2024-06-17T16:08:51.177364 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-docs.git
Cloning into 'discourse-docs'...
I, [2024-06-17T16:08:51.708936 #1]  INFO -- :
I, [2024-06-17T16:08:51.709521 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-ai.git
Cloning into 'discourse-ai'...
I, [2024-06-17T16:08:53.418139 #1]  INFO -- :
I, [2024-06-17T16:08:53.418635 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/thoka/discourse-mail-daily-summary.git
Cloning into 'discourse-mail-daily-summary'...
I, [2024-06-17T16:08:53.867113 #1]  INFO -- :
I, [2024-06-17T16:08:53.867882 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T16:08:53.872168 #1]  INFO -- :
I, [2024-06-17T16:08:53.872778 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2024-06-17T16:08:53.875312 #1]  INFO -- :
I, [2024-06-17T16:08:53.875739 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2024-06-17T16:08:53.877715 #1]  INFO -- :
I, [2024-06-17T16:08:53.878412 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2024-06-17T16:08:53.878960 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T16:08:53.879412 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T16:08:53.879841 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2024-06-17T16:08:53.880223 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2024-06-17T16:08:53.880566 #1]  INFO -- : > echo "done configuring web"
I, [2024-06-17T16:08:53.882078 #1]  INFO -- : done configuring web

I, [2024-06-17T16:08:53.882451 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2024-06-17T16:08:54.109989 #1]  INFO -- :
I, [2024-06-17T16:08:54.110500 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2024-06-17T16:08:56.142169 #1]  INFO -- :
I, [2024-06-17T16:08:56.142827 #1]  INFO -- : > cd /var/www/discourse && if [ "tests-passed" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2024-06-17T16:08:56.144758 #1]  INFO -- :
I, [2024-06-17T16:08:56.145061 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
warning " > @discourse/lint-configs@1.3.9" has incorrect peer dependency "ember-template-lint@6.0.0".
warning " > @glint/environment-ember-loose@1.4.0" has unmet peer dependency "@glimmer/component@^1.1.2".
warning " > discourse-markdown-it@1.0.0" has unmet peer dependency "xss@*".
warning "workspace-aggregator-69beb48d-f22d-40e6-bcbd-4f87b3f84bf4 > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-69beb48d-f22d-40e6-bcbd-4f87b3f84bf4 > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-69beb48d-f22d-40e6-bcbd-4f87b3f84bf4 > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-69beb48d-f22d-40e6-bcbd-4f87b3f84bf4 > discourse-plugins > ember-this-fallback@0.4.0" has unmet peer dependency "ember-source@^3.28.11 || ^4.0.0".
warning "workspace-aggregator-69beb48d-f22d-40e6-bcbd-4f87b3f84bf4 > admin > ember-source > router_js@8.0.3" has unmet peer dependency "rsvp@^4.8.5".
warning "workspace-aggregator-69beb48d-f22d-40e6-bcbd-4f87b3f84bf4 > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
I, [2024-06-17T16:11:03.718734 #1]  INFO -- : yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ ./app/assets/javascripts/run-patch-package && rm -rf app/assets/javascripts/node_modules
patch-package 8.0.0
Applying patches...
babel-plugin-debug-macros@0.3.4 ✔
content-tag@2.0.1 ✔
decorator-transforms@2.0.0 ✔
ember-this-fallback@0.4.0 (1 deprecation-name) ✔
ember-this-fallback@0.4.0 (2 themes) ✔
ember-this-fallback@0.4.0 (3 exclude-strict-mode) ✔
virtual-dom@2.1.1 ✔
Done in 117.59s.
yarn cache v1.22.22
success Cleared cache.
Done in 9.36s.

I, [2024-06-17T16:11:03.723151 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2024-06-17T16:11:04.008119 #1]  INFO -- :
I, [2024-06-17T16:11:04.008595 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2024-06-17T16:11:04.207895 #1]  INFO -- : You are replacing the current local value of without, which is currently "test:development"

I, [2024-06-17T16:11:04.208345 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
I, [2024-06-17T16:11:28.773030 #1]  INFO -- : Fetching gem metadata from https://rubygems.org/.........
Fetching builder 3.3.0
Fetching erubi 1.13.0
Fetching concurrent-ruby 1.3.3
Fetching public_suffix 5.1.0
Installing builder 3.3.0
Installing erubi 1.13.0
Installing public_suffix 5.1.0
Fetching ffi 1.17.0 (x86_64-linux-gnu)
Installing concurrent-ruby 1.3.3
Fetching zeitwerk 2.6.16
Installing zeitwerk 2.6.16
Fetching nokogiri 1.16.6 (x86_64-linux)
Fetching google-protobuf 4.27.1 (x86_64-linux)
Installing ffi 1.17.0 (x86_64-linux-gnu)
Fetching oj 3.16.4
Installing google-protobuf 4.27.1 (x86_64-linux)
Installing oj 3.16.4 with native extensions
Fetching rexml 3.3.0
Fetching net-imap 0.4.13
Installing rexml 3.3.0
Installing net-imap 0.4.13
Fetching sass-embedded 1.77.5 (x86_64-linux-gnu)
Fetching activesupport 7.0.8.4
Installing nokogiri 1.16.6 (x86_64-linux)
Installing activesupport 7.0.8.4
Fetching faraday 2.9.1
Installing faraday 2.9.1
Fetching activemodel 7.0.8.4
Installing activemodel 7.0.8.4
Installing sass-embedded 1.77.5 (x86_64-linux-gnu)
Fetching activejob 7.0.8.4
Installing activejob 7.0.8.4
Fetching activerecord 7.0.8.4
Fetching ruby-readability 0.7.1
Installing activerecord 7.0.8.4
Installing ruby-readability 0.7.1
Fetching sanitize 6.1.1
Installing sanitize 6.1.1
Fetching actionview 7.0.8.4
Installing actionview 7.0.8.4
Fetching actionpack 7.0.8.4
Installing actionpack 7.0.8.4
Fetching actionmailer 7.0.8.4
Fetching sprockets-rails 3.5.1
Fetching railties 7.0.8.4
Installing sprockets-rails 3.5.1
Installing actionmailer 7.0.8.4
Installing railties 7.0.8.4
Fetching rails_failover 2.1.0
Installing rails_failover 2.1.0
Bundle complete! 141 Gemfile dependencies, 174 gems now installed.
Gems in the groups 'development' and 'test' 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-06-17T16:11:28.774078 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2024-06-17T16:11:33.100136 #1]  INFO -- : discourse-ai is already at latest compatible version
discourse-ai-topic-summary is already at latest compatible version
discourse-apple-auth is already at latest compatible version
discourse-bbcode-color is already at latest compatible version
discourse-docs is already at latest compatible version
discourse-locations is already at latest compatible version
discourse-mail-daily-summary is already at latest compatible version
discourse-push-notifications is already at latest compatible version
discourse-solved is already at latest compatible version
discourse-user-notes is already at latest compatible version
discourse-whos-online is already at latest compatible version
docker_manager is already at latest compatible version
plugin-check-email is already at latest compatible version

I, [2024-06-17T16:11:33.100982 #1]  INFO -- : > exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf
I, [2024-06-17T16:11:33.103122 #1]  INFO -- : > sleep 10
937:C 17 Jun 2024 16:11:33.116 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
937:C 17 Jun 2024 16:11:33.117 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=937, just started
937:C 17 Jun 2024 16:11:33.117 # Configuration loaded
937:M 17 Jun 2024 16:11:33.118 * monotonic clock: POSIX clock_gettime
937:M 17 Jun 2024 16:11:33.118 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
937:M 17 Jun 2024 16:11:33.119 # Failed listening on port 6379 (TCP), aborting.
I, [2024-06-17T16:11:43.110812 #1]  INFO -- :
I, [2024-06-17T16:11:43.111629 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
2024-06-17 16:11:54.655 UTC [1029] discourse@discourse ERROR:  access method "hnsw" does not exist
2024-06-17 16:11:54.655 UTC [1029] discourse@discourse STATEMENT:        CREATE INDEX pgv_hnsw_index_on_ai_topic_summary_tag_embeddings ON ai_topic_summary_tag_embeddings USING hnsw (embedding vector_cosine_ops)
              WITH (m = 16, ef_construction = 32);

rake aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

PG::UndefinedObject: ERROR:  access method "hnsw" does not exist
/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.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:965:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:935:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:935:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:954:in `method_missing'
/var/www/discourse/plugins/discourse-ai-topic-summary/db/migrate/20240605010105_create_ai_topic_summary_tag_embeddings_index.rb:5:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:908:in `public_send'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:908: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.0.8.4/lib/active_record/migration.rb:889:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:888:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:887:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1095:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1409:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1460:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1408:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1382:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1382:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1331:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1481:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1496:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1477:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1331:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1166:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1141:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/tasks/database_tasks.rb:262: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::UndefinedObject: ERROR:  access method "hnsw" does not exist (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.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:965:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:935:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:935:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:954:in `method_missing'
/var/www/discourse/plugins/discourse-ai-topic-summary/db/migrate/20240605010105_create_ai_topic_summary_tag_embeddings_index.rb:5:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:908:in `public_send'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:908: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.0.8.4/lib/active_record/migration.rb:889:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:888:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:887:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1095:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1409:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1460:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1408:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1382:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1382:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1331:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1481:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1496:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1477:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1331:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1166:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1141:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/tasks/database_tasks.rb:262: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::UndefinedObject: ERROR:  access method "hnsw" does not exist (PG::UndefinedObject)
/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.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:965:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:935:in `block in say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:935:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:954:in `method_missing'
/var/www/discourse/plugins/discourse-ai-topic-summary/db/migrate/20240605010105_create_ai_topic_summary_tag_embeddings_index.rb:5:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:908:in `public_send'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:908: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.0.8.4/lib/active_record/migration.rb:889:in `block (2 levels) in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:888:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:887:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1095:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1409:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activesupport-7.0.8.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1460:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1408:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1382:in `each'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1382:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1331:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1481:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1496:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1477:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1331:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1166:in `up'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/migration.rb:1141:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.8.4/lib/active_record/tasks/database_tasks.rb:262: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-06-17T16:11:54.697115 #1]  INFO -- : gem install multipart-post -v 2.4.0 -i /var/www/discourse/plugins/discourse-ai-topic-summary/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed multipart-post-2.4.0
1 gem installed
gem install faraday-multipart -v 1.0.4 -i /var/www/discourse/plugins/discourse-ai-topic-summary/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed faraday-multipart-1.0.4
1 gem installed
gem install event_stream_parser -v 1.0.0 -i /var/www/discourse/plugins/discourse-ai-topic-summary/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed event_stream_parser-1.0.0
1 gem installed
gem install ruby-openai -v 7.0.0 -i /var/www/discourse/plugins/discourse-ai-topic-summary/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed ruby-openai-7.0.0
1 gem installed
gem install tokenizers -v 0.4.4 -i /var/www/discourse/plugins/discourse-ai/gems/3.3.2 --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.7 -i /var/www/discourse/plugins/discourse-ai/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed tiktoken_ruby-0.0.7-x86_64-linux
1 gem installed
gem install geocoder -v 1.8.2 -i /var/www/discourse/plugins/discourse-locations/gems/3.3.2 --no-document --ignore-dependencies --no-user-install
Successfully installed geocoder-1.8.2
1 gem installed
== 20240605010105 CreateAiTopicSummaryTagEmbeddingsIndex: migrating ===========
-- execute("      CREATE INDEX pgv_hnsw_index_on_ai_topic_summary_tag_embeddings ON ai_topic_summary_tag_embeddings USING hnsw (embedding vector_cosine_ops)\n      WITH (m = 16, ef_construction = 32);\n")

I, [2024-06-17T16:11:54.697973 #1]  INFO -- : Terminating async processes
I, [2024-06-17T16:11:54.698185 #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: 35
I, [2024-06-17T16:11:54.698358 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 97
2024-06-17 16:11:54.698 UTC [35] LOG:  received fast shutdown request
97:signal-handler (1718640714) Received SIGTERM scheduling shutdown...
2024-06-17 16:11:54.706 UTC [35] LOG:  aborting any active transactions
2024-06-17 16:11:54.709 UTC [35] LOG:  background worker "logical replication launcher" (PID 50) exited with exit code 1
2024-06-17 16:11:54.713 UTC [45] LOG:  shutting down
2024-06-17 16:11:54.728 UTC [35] LOG:  database system is shut down
97:M 17 Jun 2024 16:11:54.783 # User requested shutdown...
97:M 17 Jun 2024 16:11:54.784 * Saving the final RDB snapshot before exiting.
97:M 17 Jun 2024 16:11:54.840 * DB saved on disk
97:M 17 Jun 2024 16:11:54.841 # 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 941 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.
6e496dc172b326c7ee57d60d5b1265358116b516674da71227d34375c085590b

Hmm. Seems to be this one, but it’s not one I’m familiar with.

1 Like

Sometimes I experience these problems during updates. And sometimes I can solve it by rebuilding from the Terminal. When updating, I generally prefer times when visitors are not active and I do it from the forum management panel. What other things should I pay attention to during the update ?

To build with Chatbot or AI Topic Summary you need at least pgvector 0.5.1 postgres extension. Yours must be really old - it’s now up to 0.7.0!

First make sure your container is running:

./launcher restart app

then enter your container

./launcher enter app

then go into the database and update the version of pgvector:

:/var/www/discourse# su postgres -c 'psql discourse'
\dx
ALTER EXTENSION vector UPDATE;
\dx
exit

(paste the results of these last commands here).

now leave the container with exit

You should now be able to rebuild.

2 Likes

Here is the result :


discourse-# su postgres -c 'psql discourse'
\dx
ALTER EXTENSION vector UPDATE;
\dx
exit
     List of installed extensions
 Name | Version | Schema | Description
------+---------+--------+-------------
(0 rows)

\dx: extra argument "EXTENSION" ignored
\dx: extra argument "vector" ignored
\dx: extra argument "UPDATE;" ignored
     List of installed extensions
 Name | Version | Schema | Description
------+---------+--------+-------------
(0 rows)

No extensions? Then something even more problematic is going on which is not specific to my plugins

This is what it should return:

discourse=# \dx
                                    List of installed extensions
   Name   | Version |   Schema   |                            Description
----------+---------+------------+-------------------------------------------------------------------
 hstore   | 1.7     | public     | data type for storing sets of (key, value) pairs
 pg_trgm  | 1.5     | public     | text similarity measurement and index searching based on trigrams
 plpgsql  | 1.0     | pg_catalog | PL/pgSQL procedural language
 unaccent | 1.1     | public     | text search dictionary that removes accents
 vector   | 0.5.1   | public     | vector data type and ivfflat access method
(5 rows)

If you don’t even have hstore installed (very core to Discourse) then all bets are off.

I have the following plugins, but I have no idea why they are not listed…

        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-whos-online.git
          - git clone https://github.com/discourse/discourse-bbcode-color.git
          - git clone https://github.com/discourse/discourse-apple-auth.git
          - git clone https://github.com/discourse/discourse-push-notifications.git
          - git clone https://github.com/disclosetv/plugin-check-email.git
          - git clone https://github.com/discourse/discourse-user-notes.git
          - git clone https://github.com/paviliondev/discourse-locations.git
          - git clone https://github.com/merefield/discourse-ai-topic-summary.git
          - git clone https://github.com/discourse/discourse-docs.git
          - git clone https://github.com/discourse/discourse-ai.git
          - git clone https://github.com/thoka/discourse-mail-daily-summary.git
1 Like

These are psql extensions - ie plugins for postgres, not Discourse specific plugins.

I’m confused personally by this in your log:

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-06-17T16:08:24.294166 #1]  INFO -- : GRANT

which suggests they exist, so why is \dx not returning anything … :thinking:

discourse-# su postgres -c 'psql discourse'

this is not correct.

you shouldn’t be running that command inside the database, that command gets you into the database from inside the container

please run that from the container prompt, e.g.:

:/var/www/discourse# su postgres -c 'psql discourse'

This is the error that happened to me too

so follow these same instructions.

1 Like

I think I made a mistake because I pasted the commands in bulk.
I share the new result below.


discourse=# \dx
                                    List of installed extensions
   Name   | Version |   Schema   |                            Description
----------+---------+------------+-------------------------------------------------------------------
 hstore   | 1.7     | public     | data type for storing sets of (key, value) pairs
 pg_trgm  | 1.5     | public     | text similarity measurement and index searching based on trigrams
 plpgsql  | 1.0     | pg_catalog | PL/pgSQL procedural language
 unaccent | 1.1     | public     | text search dictionary that removes accents
 vector   | 0.7.0   | public     | vector data type and ivfflat access method
(5 rows)
1 Like

Looks good now.

so go back to /var/discourse
and rebuild as normal:

./launcher rebuild app

1 Like

I am trying again now, I will share the result.

1 Like

Thank you. I appreciate your concern.
This solved my problem and everything seems to be fine now.

Is there anything I should be aware of to avoid this problem in the future?
Does the Discourse software team need to update the Discourse Update feature?

1 Like

Just keep an eye on my plugin topics. Very very occasionally there are breaking changes you need to be aware of and I will post instructions at the time.

I will update the OP of my plugins to include these instructions.

2 Likes

Done, instructions added to Chatbot and AI Topic Summary OPs

2 Likes

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