Migration from discourse v2.8.13 (on Ubuntu 20.04.6 LTS) to latest

Hi,

I’ve currently discourse v2.8.13 running on Ubuntu 20.04.6 LTS (on Digital Ocean). It’s an install with a web_only and data containers.
What’s the simplest strategy for this upgrade?

Context

Update via Admin or launcher rebuild web_only don’t work.

The update via ./launcher ends with:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 742 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params "cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate"
bootstrap failed with exit code 1

Here is the result of Discourse Doctor:

      git remote set-branches origin stable
      git fetch --depth 1 origin stable
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
'
From https://github.com/discourse/discourse
 - [deleted]             (none)     -> origin/0-bulk
 - [deleted]             (none)     -> origin/0-helpers
 - [deleted]             (none)     -> origin/a-e-c
 - [deleted]             (none)     -> origin/a-e-c-d
 - [deleted]             (none)     -> origin/add-ignored-to-mod-activity
 - [deleted]             (none)     -> origin/add-timeout-for-cache-download
 - [deleted]             (none)     -> origin/add_users_groups_to_community_section
 - [deleted]             (none)     -> origin/admin-component-codemod
 - [deleted]             (none)     -> origin/alt-multi-select
 - [deleted]             (none)     -> origin/angle-bracket-codemod-run
 - [deleted]             (none)     -> origin/api-safety
 - [deleted]             (none)     -> origin/avatar-uploader-test-martin
 - [deleted]             (none)     -> origin/avatar-utils
 - [deleted]             (none)     -> origin/capabilities-outside-service
 - [deleted]             (none)     -> origin/category-serialize-extension
 - [deleted]             (none)     -> origin/chat-drawer-unautofocus
 - [deleted]             (none)     -> origin/chat-messages-streaming
 - [deleted]             (none)     -> origin/chat-permission
 - [deleted]             (none)     -> origin/chat-thread-messages-basic
 - [deleted]             (none)     -> origin/chat-thread-panel-initial-skeleton
 - [deleted]             (none)     -> origin/chat-thread-panel-sketch
 - [deleted]             (none)     -> origin/chat/streaming
 - [deleted]             (none)     -> origin/chatable-index-werk
 - [deleted]             (none)     -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.4.1
 - [deleted]             (none)     -> origin/dev-api-table-buttons
 - [deleted]             (none)     -> origin/dev-remove-quick-access-profile
 - [deleted]             (none)     -> origin/dev/add-last-message-id-to-chat-channel-and-thread
 - [deleted]             (none)     -> origin/dev/add-plugin-api-for-additional-pretty-text-options
 - [deleted]             (none)     -> origin/dev/allow-hiding-chat-secondary-buttons
 - [deleted]             (none)     -> origin/dev/chat-message-actions-experiments
 - [deleted]             (none)     -> origin/dev/chat-transcript-system-spec-2
 - [deleted]             (none)     -> origin/dev/disable-threadsafe-capybara
 - [deleted]             (none)     -> origin/dev/disable-threadsafe-capybara-2
 - [deleted]             (none)     -> origin/dev/experimental-refactoring
 - [deleted]             (none)     -> origin/dev/extra-fields-saving-user-preferences
 - [deleted]             (none)     -> origin/dev/extract-methods-into-channel-model
 - [deleted]             (none)     -> origin/dev/flexible-quote-button
 - [deleted]             (none)     -> origin/dev/hashtag-system-spec-1
 - [deleted]             (none)     -> origin/dev/hashtag-system-spec-2
 - [deleted]             (none)     -> origin/dev/hashtag-system-spec-3
 - [deleted]             (none)     -> origin/dev/hashtag-system-spec-4
 - [deleted]             (none)     -> origin/dev/latest-rails-sys-spec-lock-branch
 - [deleted]             (none)     -> origin/dev/make-sure-we-stream-data-to-csv-files-when-running-exports
 - [deleted]             (none)     -> origin/dev/make-sure-we-stream-data-to-csv-files-when-running-exports-2
 - [deleted]             (none)     -> origin/dev/mention-notifications-expander
 - [deleted]             (none)     -> origin/dev/refactor-chat-notifier
 - [deleted]             (none)     -> origin/dev/refactor-create-dm-channel-into-service
 - [deleted]             (none)     -> origin/dev/refactor-dm-channel-creator-into-service
 - [deleted]             (none)     -> origin/dev/user-auto-group-fabricator
 - [deleted]             (none)     -> origin/dev/user-that-cant-chat-shouldnt-be-able-to-join-channel
 - [deleted]             (none)     -> origin/emoji-update-production
 - [deleted]             (none)     -> origin/experimental-refactoring
 - [deleted]             (none)     -> origin/feature-route-control
 - [deleted]             (none)     -> origin/feature/change-watched-word-uploader-to-use-uppy
 - [deleted]             (none)     -> origin/feature/chat-thread-client-skeleton
 - [deleted]             (none)     -> origin/feature/chat-thread-messages-part-1
 - [deleted]             (none)     -> origin/feature/dont-feed-the-trolls
 - [deleted]             (none)     -> origin/feature/go-to-last-unread-post-topic-bookmark
 - [deleted]             (none)     -> origin/feature/hashtag-no-icon-cook
 - [deleted]             (none)     -> origin/feature/markdown-block-changes-chat
 - [deleted]             (none)     -> origin/feature/resolve-outdated-translation
 - [deleted]             (none)     -> origin/feature/separate-topic-bookmarks-into-own-distinct-pattern
 - [deleted]             (none)     -> origin/feature/status-on-mentions-on-updated-chat-messages
 - [deleted]             (none)     -> origin/feature/thread-list-button-unread-count
 - [deleted]             (none)     -> origin/feature/thread-list-button-unread-counter-initial
 - [deleted]             (none)     -> origin/feature/tracking-unread-thread-in-sidebar
 - [deleted]             (none)     -> origin/feature/update-translations-block-prefs
 - [deleted]             (none)     -> origin/feature_boostrap_mode_usertip
 - [deleted]             (none)     -> origin/feature_bootstrap_mode
 - [deleted]             (none)     -> origin/feature_hide_user_tips
 - [deleted]             (none)     -> origin/feature_user_tips_backfill
 - [deleted]             (none)     -> origin/fix-select-kit-click-outside-regression
 - [deleted]             (none)     -> origin/fix-tag-and-category-routing
 - [deleted]             (none)     -> origin/fix-tests
 - [deleted]             (none)     -> origin/fix-tests-passed
 - [deleted]             (none)     -> origin/fix/chat-threading-no-echo-with-indicator
 - [deleted]             (none)     -> origin/fix/hide-alternate-email-button
 - [deleted]             (none)     -> origin/fix/reviewable-queued-posts
 - [deleted]             (none)     -> origin/fix/update-username-in-new-quote-format
 - [deleted]             (none)     -> origin/fix_flaky_test
 - [deleted]             (none)     -> origin/fix_media_elements
 - [deleted]             (none)     -> origin/fix_url_welcome
 - [deleted]             (none)     -> origin/generic-import
 - [deleted]             (none)     -> origin/generic-import-clean
 - [deleted]             (none)     -> origin/generic-import-cxl
 - [deleted]             (none)     -> origin/generic-import-v2
 - [deleted]             (none)     -> origin/generic-import-v3
 - [deleted]             (none)     -> origin/glimmer-lightbox
 - [deleted]             (none)     -> origin/headless-new
 - [deleted]             (none)     -> origin/hide-header-and-sidebar
 - [deleted]             (none)     -> origin/issue/allow-ensure-cors-to-add-more-than-one-rule
 - [deleted]             (none)     -> origin/issue/fix-forwarded-email-group-inbox-cc
 - [deleted]             (none)     -> origin/jancernik-replace-lazy-yt
 - [deleted]             (none)     -> origin/loic-max-size-for-text-columns
 - [deleted]             (none)     -> origin/loic-max-size-for-text-columns-chat-plugin
 - [deleted]             (none)     -> origin/loic-max-size-for-text-columns-poll-plugin
 - [deleted]             (none)     -> origin/loic-n+1-gem
 - [deleted]             (none)     -> origin/loic-refactor-user-email-job-as-class
 - [deleted]             (none)     -> origin/mobile-component-templates
 - [deleted]             (none)     -> origin/modal-atomicity
 - [deleted]             (none)     -> origin/pr/20421
 - [deleted]             (none)     -> origin/pr/21684
 - [deleted]             (none)     -> origin/pwa-offline-indicator
 - [deleted]             (none)     -> origin/revert-unaccent
 - [deleted]             (none)     -> origin/ruby-deprecate-test
 - [deleted]             (none)     -> origin/scroll-padding-top-take2
 - [deleted]             (none)     -> origin/search-chatable-extension
 - [deleted]             (none)     -> origin/separate-chat-system-tests
 - [deleted]             (none)     -> origin/serializer_api_changes
 - [deleted]             (none)     -> origin/test_message_bus_change
 - [deleted]             (none)     -> origin/tiktok-normalizing
 - [deleted]             (none)     -> origin/update-history-modal
 - [deleted]             (none)     -> origin/upgrade-group-default-notifcations-modal
 - [deleted]             (none)     -> origin/use-loofah-html5-frag
 - [deleted]             (none)     -> origin/user-preferences-spec
 - [deleted]             (none)     -> origin/ux-ac-user-metadata-alignment
 - [deleted]             (none)     -> origin/ux_user_tips
   3140a4b2c..e722a1470  main                    -> origin/main
 * [new branch]          0-app-events-revolution -> origin/0-app-events-revolution
 * [new branch]          0-constrain             -> origin/0-constrain
 * [new branch]          0-fast-edit-end         -> origin/0-fast-edit-end
 * [new branch]          0-flake-key             -> origin/0-flake-key
 * [new branch]          0-polls-still           -> origin/0-polls-still
 * [new branch]          0-sticky-service        -> origin/0-sticky-service
   bb2c5a053..ed8432c32  a-dejq-click            -> origin/a-dejq-click
 * [new branch]          a11y-contrast           -> origin/a11y-contrast
 * [new branch]          bulk-invite-expire-time-fix -> origin/bulk-invite-expire-time-fix
 * [new branch]          card-container-plugin-outlet -> origin/card-container-plugin-outlet
 * [new branch]          category-bullet-only    -> origin/category-bullet-only
 * [new branch]          chat-global-mentions-warning -> origin/chat-global-mentions-warning
 * [new branch]          cherrypick-5dc3a27      -> origin/cherrypick-5dc3a27
 * [new branch]          debug-macros-patch      -> origin/debug-macros-patch
 * [new branch]          demote-summarize-ai-button -> origin/demote-summarize-ai-button
 * [new branch]          dependabot/bundler/omniauth-github-and-sprockets-and-omniauth-and-omniauth-oauth2-and-omniauth-google-oauth2-and-shoulda-matchers-2.0.1 -> origin/dependabot/bundler/omniauth-github-and-sprockets-and-omniauth-and-omniauth-oauth2-and-omniauth-google-oauth2-and-shoulda-matchers-2.0.1
 * [new branch]          dependabot/bundler/selenium-webdriver-and-sprockets-and-shoulda-matchers-and-webdrivers-4.11.0 -> origin/dependabot/bundler/selenium-webdriver-and-sprockets-and-shoulda-matchers-and-webdrivers-4.11.0
 * [new branch]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.5.2 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/aws-s3-multipart-3.5.2
 * [new branch]          dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.4.3 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/utils-5.4.3
 + d06ce80d6...bed0c9ad6 dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.3.1 -> origin/dependabot/npm_and_yarn/app/assets/javascripts/uppy/xhr-upload-3.3.1  (forced update)
 * [new branch]          dev/convert-change-post-notice-to-glimmer-dmodal -> origin/dev/convert-change-post-notice-to-glimmer-dmodal
   6bb18917d..38caa4621  dev/minio-s3-system-specs -> origin/dev/minio-s3-system-specs
 * [new branch]          dev/no-need-to-track-status-of-deleted-user -> origin/dev/no-need-to-track-status-of-deleted-user
 * [new branch]          dev/no-need-to-wrap-export-methods-into-enumerator-anymore -> origin/dev/no-need-to-wrap-export-methods-into-enumerator-anymore
 * [new branch]          dev/rafactor-the-export-csv-file-job -> origin/dev/rafactor-the-export-csv-file-job
 * [new branch]          dev/s3-upload-system-specs-with-minio -> origin/dev/s3-upload-system-specs-with-minio
 * [new branch]          dev/switch-over-category-settings -> origin/dev/switch-over-category-settings
 * [new branch]          dev/using-find-each-in-csv-exports -> origin/dev/using-find-each-in-csv-exports
 * [new branch]          dev/we-dont-need-collection-of-entities -> origin/dev/we-dont-need-collection-of-entities
 * [new branch]          digest-suppression-by-tags -> origin/digest-suppression-by-tags
 * [new branch]          discovery-named-outlets -> origin/discovery-named-outlets
 * [new branch]          feature/bookmark-menu-and-modal-redesign -> origin/feature/bookmark-menu-and-modal-redesign
 * [new branch]          feature/hide-d-tooltip-when-scrolling-on-mobile -> origin/feature/hide-d-tooltip-when-scrolling-on-mobile
   2b7b460d7..953282535  feature/shift-auto-upload-dropped-files-chat -> origin/feature/shift-auto-upload-dropped-files-chat
   2be34487f..c59352b9f  feature/show-status-on-mentions-when-user-havent-used-autocomplete -> origin/feature/show-status-on-mentions-when-user-havent-used-autocomplete
 * [new branch]          fix-client-tests-for-status -> origin/fix-client-tests-for-status
 * [new branch]          fix/account-for-empty-string-site-settings -> origin/fix/account-for-empty-string-site-settings
 * [new branch]          fix/do-not-consider-codeblocks-when-parsing-mentions -> origin/fix/do-not-consider-codeblocks-when-parsing-mentions
 * [new branch]          fix/revert-removed-mentions-transformation-when-copking-message-on-the-client -> origin/fix/revert-removed-mentions-transformation-when-copking-message-on-the-client
 * [new branch]          generic-import-latest   -> origin/generic-import-latest
 + 6c044ab81...46ef32d0e loic-migrate-chat-message-creator-to-a-service -> origin/loic-migrate-chat-message-creator-to-a-service  (forced update)
 * [new branch]          new-topics-vs-replies-toggle -> origin/new-topics-vs-replies-toggle
 * [new branch]          readme-updates-release31 -> origin/readme-updates-release31
 * [new branch]          relative-sourcemap      -> origin/relative-sourcemap
 * [new branch]          rename-webauthn         -> origin/rename-webauthn
 * [new branch]          show-footer-refactor    -> origin/show-footer-refactor
 * [new branch]          smoke-test-click        -> origin/smoke-test-click
   cec7c05da..0467def2d  stable                  -> origin/stable
 * [new branch]          tag-description-links   -> origin/tag-description-links
   3140a4b2c..e722a1470  tests-passed            -> origin/tests-passed
 * [new branch]          upgrade-login-modal     -> origin/upgrade-login-modal
 t [tag update]          beta                    -> beta
 t [tag update]          latest-release          -> latest-release
 * [new tag]             v3.0.5                  -> v3.0.5
 * [new tag]             v3.0.6                  -> v3.0.6
 * [new tag]             v3.1.0                  -> v3.1.0
 * [new tag]             v3.1.0.beta6            -> v3.1.0.beta6
 * [new tag]             v3.1.0.beta7            -> v3.1.0.beta7
 * [new tag]             v3.1.0.beta8            -> v3.1.0.beta8
I, [2023-08-15T11:30:48.879539 #1]  INFO -- :
I, [2023-08-15T11:30:48.880719 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [[ $(git symbolic-ref --short HEAD) == stable ]] ; then
      git pull
  else
      git -c advice.detachedHead=false checkout stable
  fi
'
Switched to a new branch 'stable'
I, [2023-08-15T11:30:54.062804 #1]  INFO -- : Branch 'stable' set up to track remote branch 'stable' from 'origin'.

I, [2023-08-15T11:30:54.063557 #1]  INFO -- : > cd /var/www/discourse && sudo -H -E -u discourse git config user.discourse-version stable
I, [2023-08-15T11:30:54.081857 #1]  INFO -- :
I, [2023-08-15T11:30:54.082559 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp
I, [2023-08-15T11:30:54.089752 #1]  INFO -- :
I, [2023-08-15T11:30:54.090607 #1]  INFO -- : > cd /var/www/discourse && chown discourse:www-data tmp
I, [2023-08-15T11:30:54.098277 #1]  INFO -- :
I, [2023-08-15T11:30:54.099161 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/pids
I, [2023-08-15T11:30:54.105838 #1]  INFO -- :
I, [2023-08-15T11:30:54.106924 #1]  INFO -- : > cd /var/www/discourse && mkdir -p tmp/sockets
I, [2023-08-15T11:30:54.112334 #1]  INFO -- :
I, [2023-08-15T11:30:54.112960 #1]  INFO -- : > cd /var/www/discourse && touch tmp/.gitkeep
I, [2023-08-15T11:30:54.124386 #1]  INFO -- :
I, [2023-08-15T11:30:54.125023 #1]  INFO -- : > cd /var/www/discourse && mkdir -p                    /shared/log/rails
I, [2023-08-15T11:30:54.130161 #1]  INFO -- :
I, [2023-08-15T11:30:54.130876 #1]  INFO -- : > cd /var/www/discourse && bash -c "touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log"
I, [2023-08-15T11:30:54.138649 #1]  INFO -- :
I, [2023-08-15T11:30:54.139507 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log /var/www/discourse/log"
I, [2023-08-15T11:30:54.147161 #1]  INFO -- :
I, [2023-08-15T11:30:54.147988 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/{uploads,backups}"
I, [2023-08-15T11:30:54.165858 #1]  INFO -- :
I, [2023-08-15T11:30:54.166787 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/{uploads,backups} /var/www/discourse/public"
I, [2023-08-15T11:30:54.176051 #1]  INFO -- :
I, [2023-08-15T11:30:54.176954 #1]  INFO -- : > cd /var/www/discourse && bash -c "mkdir -p           /shared/tmp/{backups,restores}"
I, [2023-08-15T11:30:54.188077 #1]  INFO -- :
I, [2023-08-15T11:30:54.188871 #1]  INFO -- : > cd /var/www/discourse && bash -c "ln    -s           /shared/tmp/{backups,restores} /var/www/discourse/tmp"
I, [2023-08-15T11:30:54.196545 #1]  INFO -- :
I, [2023-08-15T11:30:54.197324 #1]  INFO -- : > cd /var/www/discourse && chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp
I, [2023-08-15T11:31:17.667135 #1]  INFO -- :
I, [2023-08-15T11:31:17.668072 #1]  INFO -- : > cd /var/www/discourse && [ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete
I, [2023-08-15T11:31:17.672757 #1]  INFO -- :
I, [2023-08-15T11:31:17.673979 #1]  INFO -- : > cd /var/www/discourse/plugins && mkdir -p plugins
I, [2023-08-15T11:31:17.681576 #1]  INFO -- :
I, [2023-08-15T11:31:17.682471 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/docker_manager.git
Cloning into 'docker_manager'...
I, [2023-08-15T11:31:19.601683 #1]  INFO -- :
I, [2023-08-15T11:31:19.602562 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-akismet.git
Cloning into 'discourse-akismet'...
I, [2023-08-15T11:31:20.480818 #1]  INFO -- :
I, [2023-08-15T11:31:20.481991 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-data-explorer.git
Cloning into 'discourse-data-explorer'...
I, [2023-08-15T11:31:21.452793 #1]  INFO -- :
I, [2023-08-15T11:31:21.453835 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/camilleroux/discourse-affiliate.git
Cloning into 'discourse-affiliate'...
I, [2023-08-15T11:31:22.087039 #1]  INFO -- :
I, [2023-08-15T11:31:22.087758 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/somoza/discourse-xorigin.git
Cloning into 'discourse-xorigin'...
I, [2023-08-15T11:31:22.690287 #1]  INFO -- :
I, [2023-08-15T11:31:22.691373 #1]  INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-chat-integration.git
Cloning into 'discourse-chat-integration'...
I, [2023-08-15T11:31:23.720578 #1]  INFO -- :
I, [2023-08-15T11:31:23.721513 #1]  INFO -- : > cp /var/www/discourse/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf
I, [2023-08-15T11:31:23.745071 #1]  INFO -- :
I, [2023-08-15T11:31:23.746322 #1]  INFO -- : > rm /etc/nginx/sites-enabled/default
I, [2023-08-15T11:31:23.752404 #1]  INFO -- :
I, [2023-08-15T11:31:23.753966 #1]  INFO -- : > mkdir -p /var/nginx/cache
I, [2023-08-15T11:31:23.760151 #1]  INFO -- :
I, [2023-08-15T11:31:23.769069 #1]  INFO -- : Replacing pid /run/nginx.pid; with daemon off; in /etc/nginx/nginx.conf
I, [2023-08-15T11:31:23.770727 #1]  INFO -- : Replacing (?m-ix:upstream[^\}]+\}) with upstream discourse { server 127.0.0.1:3000; } in /etc/nginx/conf.d/discourse.conf
I, [2023-08-15T11:31:23.772247 #1]  INFO -- : Replacing (?-mix:server_name.+$) with server_name _ ; in /etc/nginx/conf.d/discourse.conf
I, [2023-08-15T11:31:23.773347 #1]  INFO -- : Replacing (?-mix:client_max_body_size.+$) with client_max_body_size $upload_size ; in /etc/nginx/conf.d/discourse.conf
I, [2023-08-15T11:31:23.776497 #1]  INFO -- : Replacing (?-mix:worker_connections.+$) with worker_connections $nginx_worker_connections ; in /etc/nginx/nginx.conf
I, [2023-08-15T11:31:23.777710 #1]  INFO -- : > echo "done configuring web"
I, [2023-08-15T11:31:23.782364 #1]  INFO -- : done configuring web

I, [2023-08-15T11:31:23.783587 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-08-15T11:31:24.912273 #1]  INFO -- : Successfully installed bundler-2.4.13
1 gem installed

I, [2023-08-15T11:31:24.913280 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-08-15T11:31:37.818642 #1]  INFO -- :
I, [2023-08-15T11:31:37.819749 #1]  INFO -- : > cd /var/www/discourse && if [ "stable" != "tests-passed" ]; then
  rm -rf app/assets/javascripts/node_modules
fi
I, [2023-08-15T11:31:40.330766 #1]  INFO -- :
I, [2023-08-15T11:31:40.331448 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --frozen-lockfile && yarn cache clean'
warning " > @glint/environment-ember-loose@1.0.2" has unmet peer dependency "@glimmer/component@^1.1.2".
warning " > @glint/environment-ember-template-imports@1.0.2" has unmet peer dependency "ember-template-imports@^3.0.0".
warning " > @mixer/parallel-prettier@2.0.3" has unmet peer dependency "prettier@^2.0.0".
warning Resolution field "babel-plugin-ember-template-compilation@2.0.0" is incompatible with requested version "babel-plugin-ember-template-compilation@^2.0.1"
warning Resolution field "unset-value@2.0.1" is incompatible with requested version "unset-value@^1.0.0"
warning " > babel-plugin-debug-macros@0.4.0-pre1" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-26edfe63-3c40-4442-b382-b5d88c4c55ba > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-26edfe63-3c40-4442-b382-b5d88c4c55ba > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-26edfe63-3c40-4442-b382-b5d88c4c55ba > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-26edfe63-3c40-4442-b382-b5d88c4c55ba > discourse > @uppy/aws-s3 > @uppy/xhr-upload@3.3.0" has incorrect peer dependency "@uppy/core@^3.2.1".
I, [2023-08-15T11:34:59.486135 #1]  INFO -- : yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ yarn --cwd app/assets/javascripts $(node -e 'if(JSON.parse(process.env.npm_config_argv).original.includes(`--frozen-lockfile`)){console.log(`--frozen-lockfile`)}')
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ patch-package
patch-package 8.0.0
Applying patches...
@ember/jquery@2.0.0 ✔
ember-source@3.28.12 ✔
virtual-dom@2.1.1 ✔
Done in 78.38s.
Done in 183.11s.
yarn cache v1.22.19
success Cleared cache.
Done in 15.13s.

I, [2023-08-15T11:34:59.517743 #1]  INFO -- : File > /var/www/discourse/config/multisite.yml  chmod:   chown:
I, [2023-08-15T11:34:59.518863 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2023-08-15T11:35:00.069961 #1]  INFO -- :
I, [2023-08-15T11:35:00.070707 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2023-08-15T11:35:00.382565 #1]  INFO -- : You are replacing the current local value of without, which is currently "test:development"

I, [2023-08-15T11:35:00.383463 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
I, [2023-08-15T11:35:45.646023 #1]  INFO -- : Fetching gem metadata from https://rubygems.org/.........
Using rake 13.0.6
Using concurrent-ruby 1.2.2
Using erubi 1.12.0
Using crass 1.0.6
Fetching rack 2.2.8
Using builder 3.2.4
Fetching minitest 5.19.0
Using racc 1.7.1
Using date 3.3.3
Using timeout 0.4.0
Fetching public_suffix 5.0.3
Using mini_mime 1.1.2
Using aws-eventstream 1.2.0
Using aws-partitions 1.583.0
Using jmespath 1.6.2
Fetching msgpack 1.7.2
Installing msgpack 1.7.2 with native extensions
Installing public_suffix 5.0.3
Installing minitest 5.19.0
Installing rack 2.2.8
Using bundler 2.4.13
Using byebug 11.1.3
Using cbor 0.5.9.6
Using cgi 0.3.6
Using chunky_png 1.4.0
Using coderay 1.1.3
Using colored2 3.1.2
Using connection_pool 2.4.1
Using openssl 3.1.0
Using cppjieba_rb 0.4.2
Using google-protobuf 3.23.4 (x86_64-linux)
Using method_source 1.0.0
Using thor 1.2.2
Using tilt 2.2.0
Using diffy 3.4.2
Using digest 3.1.1
Using discourse-fonts 0.0.9
Using email_reply_trimmer 0.1.13
Using excon 0.100.0
Using execjs 2.8.1
Using exifr 1.4.0
Using faraday-net_http 3.0.2
Using ruby2_keywords 0.0.5
Using fast_blank 1.0.1
Using fast_xs 0.8.0
Using fastimage 2.2.7
Using ffi 1.15.5
Using fspath 3.1.2
Using gc_tracer 1.5.1
Using guess_html_encoding 0.0.11
Fetching zeitwerk 2.6.10
Using hana 1.3.7
Using hashie 5.0.0
Using highline 2.1.0
Using hkdf 1.0.0
Using htmlentities 4.3.4
Using http_accept_language 2.1.1
Using image_size 3.3.0
Using in_threads 1.6.0
Using progress 3.6.0
Using json 2.6.3
Using regexp_parser 2.8.1
Using unf_ext 0.0.8.2
Using jwt 2.7.1
Using kgio 2.11.4
Using libv8-node 18.16.0.0 (x86_64-linux)
Using logstash-event 1.2.02
Using logster 2.12.2
Using lru_redux 1.1.0
Using lz4-ruby 0.3.3
Using maxminddb 0.1.22
Using memory_profiler 1.0.1
Using redis 4.8.1
Using mini_sql 1.4.0
Using multi_json 1.15.0
Using multi_xml 0.6.0
Using mustache 1.1.1
Using uri 0.12.2
Using nio4r 2.5.9
Using version_gem 1.1.3
Fetching oj 3.15.1
Installing zeitwerk 2.6.10
Fetching optimist 3.1.0
Using pg 1.4.6
Installing optimist 3.1.0
Using raindrops 0.20.1
Using rchardet 1.8.0
Fetching rexml 3.2.6
Installing oj 3.15.1 with native extensions
Using rinku 2.0.6
Using rotp 6.2.2
Using rqrcode_core 1.2.0
Using rubyzip 2.3.2
Installing rexml 3.2.6
Using sshkey 2.0.0
Using stackprof 0.2.25
Using i18n 1.14.1
Using tzinfo 2.0.6
Using nokogiri 1.15.3 (x86_64-linux)
Using net-protocol 0.2.1
Using aws-sigv4 1.5.0
Using addressable 2.8.4
Using openssl-signature_algorithm 1.3.0
Fetching sass-embedded 1.64.1 (x86_64-linux-gnu)
Using faraday 2.7.10
Using mini_suffix 0.3.3
Using pry 0.14.2
Using uglifier 4.2.0
Using image_optim 0.31.3
Using unf 0.1.4
Using web-push 3.0.0
Using logstash-logger 0.26.1
Using mini_racer 0.8.0
Using redis-namespace 1.11.0
Using net-http 0.3.2
Using oauth-tty 1.0.5
Using snaky_hash 2.0.1
Using puma 6.3.0
Using rack-test 2.1.0
Using sprockets 3.7.2 from https://github.com/rails/sprockets (at 3.x@f4d3dae)
Using request_store 1.5.1
Using message_bus 4.3.7
Using sidekiq 6.5.9
Using omniauth 1.9.2
Using rack-mini-profiler 3.1.0
Using rack-protection 3.0.6
Using unicorn 6.1.0
Using activesupport 7.0.5.1
Using rqrcode 2.2.0
Using tzinfo-data 1.2023.3
Using loofah 2.21.3
Fetching net-imap 0.3.7
Installing net-imap 0.3.7
Using net-pop 0.1.2
Using net-smtp 0.3.3
Using aws-sdk-core 3.130.2
Using cose 1.3.0
Using css_parser 1.14.0
Using ruby-readability 0.7.0
Using sanitize 6.0.2
Using rss 0.2.9
Using faraday-retry 2.2.0
Using simpleidn 0.2.1
Using oauth 1.1.0
Using oauth2 1.4.11
Using pry-byebug 3.10.1
Using pry-rails 0.3.9
Using rtlcss 0.2.1
Using rails-dom-testing 2.1.1
Using rails-html-sanitizer 1.6.0
Using globalid 1.1.0
Using activemodel 7.0.5.1
Using mini_scheduler 0.16.0
Using mail 2.8.1
Using aws-sdk-kms 1.56.0
Using aws-sdk-sns 1.53.0
Using json_schemer 1.0.3
Using actionview 7.0.5.1
Using activejob 7.0.5.1
Using active_model_serializers 0.8.4
Using activerecord 7.0.5.1
Using omniauth-oauth2 1.7.3
Using omniauth-oauth 1.2.0
Using actionpack 7.0.5.1
Using actionview_precompiler 0.2.3
Using aws-sdk-s3 1.114.0
Using actionmailer 7.0.5.1
Using railties 7.0.5.1
Using sprockets-rails 3.4.2
Using discourse-seed-fu 2.3.12
Using omniauth-facebook 9.0.0
Using omniauth-github 1.4.0
Using omniauth-google-oauth2 0.8.2
Using omniauth-twitter 1.4.0
Fetching lograge 0.13.0
Installing lograge 0.13.0
Using rails_failover 2.0.1
Using rails_multisite 5.0.0
Installing sass-embedded 1.64.1 (x86_64-linux-gnu)
Using dartsass-ruby 3.0.1
Using dartsass-sprockets 3.0.0
Using bootsnap 1.16.0
Using rbtrace 0.4.14
Bundle complete! 136 Gemfile dependencies, 172 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`

I, [2023-08-15T11:35:45.648035 #1]  INFO -- : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate
Plugin name is 'Set X-Frame-Options correctly', but plugin directory is named 'discourse-xorigin'

--------------------------------------------------------------------------------
3 migrations failed!

Failed to migrate default
#<StandardError:"An error has occurred, this and all later migrations canceled:\n\nPG::InsufficientPrivilege: ERROR:  permission denied to create extension \"unaccent\"\nHINT:  Must be superuser to create this extension.\n">
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `block (2 levels) in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:767:in `block in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:769:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:760:in `log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:766:in `exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:745:in `execute_and_clear'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `exec_query'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:434:in `enable_extension'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:932:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `block in say_with_time'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:921:in `method_missing'
/var/www/discourse/db/migrate/20220304162250_enable_unaccent_extension.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:870:in `exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:853:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:852:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1046:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1411:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `each'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1117:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1092:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/var/www/discourse/lib/tasks/db.rake:196:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/db.rake:159:in `block (3 levels) in execute_concurrently'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:280:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:79:in `with_connection'
/var/www/discourse/lib/tasks/db.rake:157:in `block (2 levels) in execute_concurrently'


Failed to migrate secondsite
#<StandardError:"An error has occurred, this and all later migrations canceled:\n\nPG::InsufficientPrivilege: ERROR:  permission denied to create extension \"unaccent\"\nHINT:  Must be superuser to create this extension.\n">
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `block (2 levels) in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:767:in `block in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:769:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:760:in `log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:766:in `exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:745:in `execute_and_clear'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `exec_query'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:434:in `enable_extension'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:932:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `block in say_with_time'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:921:in `method_missing'
/var/www/discourse/db/migrate/20220304162250_enable_unaccent_extension.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:870:in `exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:853:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:852:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1046:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1411:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `each'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1117:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1092:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/var/www/discourse/lib/tasks/db.rake:196:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/db.rake:159:in `block (3 levels) in execute_concurrently'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:280:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:79:in `with_connection'
/var/www/discourse/lib/tasks/db.rake:157:in `block (2 levels) in execute_concurrently'


Failed to migrate passionsonore
#<StandardError:"An error has occurred, this and all later migrations canceled:\n\nPG::InsufficientPrivilege: ERROR:  permission denied to create extension \"unaccent\"\nHINT:  Must be superuser to create this extension.\n">
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:69:in `exec_params'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `block (2 levels) in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:767:in `block in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:769:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:760:in `log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:766:in `exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:745:in `execute_and_clear'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `exec_query'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:434:in `enable_extension'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:932:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `block in say_with_time'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:921:in `method_missing'
/var/www/discourse/db/migrate/20220304162250_enable_unaccent_extension.rb:5:in `change'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:870:in `exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:853:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:852:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1046:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:316:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/transactions.rb:209:in `transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1411:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `each'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1117:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1092:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/var/www/discourse/lib/tasks/db.rake:196:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/db.rake:159:in `block (3 levels) in execute_concurrently'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:280:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:79:in `with_connection'
/var/www/discourse/lib/tasks/db.rake:157:in `block (2 levels) in execute_concurrently'

I, [2023-08-15T11:35:59.503575 #1]  INFO -- : Multisite migrator is running using 1 threads

Migrating default
== 20220304162250 EnableUnaccentExtension: migrating ==========================
-- enable_extension("unaccent")
Migrating secondsite
== 20220304162250 EnableUnaccentExtension: migrating ==========================
-- enable_extension("unaccent")
Migrating passionsonore
== 20220304162250 EnableUnaccentExtension: migrating ==========================
-- enable_extension("unaccent")



FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 742 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params "cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite: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.
c8dad89d4efbea01a93007c1ff197be40e5f5b6c1807fc6639e7808ea73f672e
==================== END REBUILD LOG ====================
Failed to rebuild web_only.

Checking your domain name . . .

Connection to forum.pragmaticentrepreneurs.com succeeded.
You should probably remove any non-standard plugins and rebuild.
Attempting to restart existing container. . .
x86_64 arch detected.
WARNING: containers/web_only.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/web_only.yml

starting up existing container
+ /usr/bin/docker start web_only
Error response from daemon: driver failed programming external connectivity on endpoint web_only (ec7eac51ee6987f7d8fbd2fccd002d898da5966c5ab77ce86148cf109ef476e1): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use
Error: failed to start containers: web_only
Failed to restart the container.


==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-akismet.git
          - git clone https://github.com/discourse/discourse-data-explorer.git
          - git clone https://github.com/camilleroux/discourse-affiliate.git
          - git clone https://github.com/somoza/discourse-xorigin.git
          - git clone https://github.com/discourse/discourse-chat-integration.git

WARNING:
You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.

See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at forum.pragmaticentrepreneurs.com: NOT FOUND
Discourse version at localhost: NOT FOUND


==================== MEMORY INFORMATION ====================
OS: Linux
RAM (MB): 2067

              total        used        free      shared  buff/cache   available
Mem:           1971         248         877         102         845        1429
Swap:          2047          67        1980

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        49G   42G  6.5G  87% /

==================== DISK INFORMATION ====================
Disk /dev/loop0: 55.68 MiB, 58368000 bytes, 114000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 55.65 MiB, 58339328 bytes, 113944 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.46 MiB, 66531328 bytes, 129944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 63.46 MiB, 66527232 bytes, 129936 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 91.85 MiB, 96292864 bytes, 188072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 53.26 MiB, 55844864 bytes, 109072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 91.83 MiB, 96272384 bytes, 188032 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/loop7: 53.26 MiB, 55844864 bytes, 109072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/vda: 50 GiB, 53687091200 bytes, 104857600 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: 603625F3-7AE2-40CB-B05E-0BD7EA2D57E4

Device      Start       End   Sectors  Size Type
/dev/vda1  227328 104857566 104630239 49.9G Linux filesystem
/dev/vda14   2048     10239      8192    4M BIOS boot
/dev/vda15  10240    227327    217088  106M Microsoft basic data

Partition table entries are not in disk order.

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

==================== MAIL TEST ====================
For a robust test, get an address from http://www.mail-tester.com/
Sending mail to REDACTED  . .


==================== DONE! ====================

You can examine the output of this script with
LESS=-Ri less /tmp/discourse-debug.txt

BUT FIRST, make sure that you know the first three commands below!!!

Commands to know when viewing the file with the above command (called 'less'):
q              -- quit
/error<ENTER>  -- search for the word 'error'
n              -- search for the next occurrence
g              -- go to the beginning of the file
f              -- go forward a page
b              -- go back a page
G              -- go to the end of the file
root@forum:/var/discourse#

This is your error, You need to enter the data container, the user probably doesn’t have create extension permissions.

1 Like

Thank you very much! Now, I did postgres migration and I’ve got a new error… Do someone know how I can fix it too?

--------------------------------------------------------------------------------
1 migrations failed!

Failed to migrate default
#<StandardError:"An error has occurred, all later migrations canceled:\n\nPG::UniqueViolation: ERROR:  duplicate key value violates unique constraint \"index_users_on_username_lower\"\nDETAIL:  Key (username_lower)=(philippe) already exists.\n">
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:110:in `exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rack-mini-profiler-3.1.0/lib/patches/db/pg.rb:110:in `async_exec'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:48:in `block (2 levels) in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:47:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:769:in `block in log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.5.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract_adapter.rb:760:in `log'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:46:in `execute'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:932:in `block in method_missing'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `block in say_with_time'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:900:in `say_with_time'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:921:in `method_missing'
/var/www/discourse/db/migrate/20230405121453_add_password_algorithm_to_users.rb:23:in `block in up'
/var/www/discourse/db/migrate/20230405121453_add_password_algorithm_to_users.rb:22:in `loop'
/var/www/discourse/db/migrate/20230405121453_add_password_algorithm_to_users.rb:22:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:873:in `public_send'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:873:in `exec_migration'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `block in exec_migration'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/lib/freedom_patches/schema_migration_details.rb:8:in `exec_migration'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:854:in `block (2 levels) in migrate'
/usr/local/lib/ruby/3.2.0/benchmark.rb:296:in `measure'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:853:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:852:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1046:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1360:in `block in execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1413:in `ddl_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1359:in `execute_migration_in_transaction'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `each'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1333:in `migrate_without_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `block in migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1432:in `block in with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:215:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1447:in `with_advisory_lock_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1428:in `with_advisory_lock'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1282:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1117:in `up'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/migration.rb:1092:in `migrate'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.5.1/lib/active_record/tasks/database_tasks.rb:262:in `migrate'
/var/www/discourse/lib/tasks/db.rake:196:in `block (3 levels) in <main>'
/var/www/discourse/lib/tasks/db.rake:159:in `block (3 levels) in execute_concurrently'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:280:in `with_connection'
/var/www/discourse/vendor/bundle/ruby/3.2.0/gems/rails_multisite-5.0.0/lib/rails_multisite/connection_management.rb:79:in `with_connection'
/var/www/discourse/lib/tasks/db.rake:157:in `block (2 levels) in execute_concurrently'

I, [2023-08-15T12:36:49.036612 #1]  INFO -- : Multisite migrator is running using 1 threads

Migrating default
== 20230405121453 AddPasswordAlgorithmToUsers: migrating 

Key (username_lower)=(philippe) already exists.

:warning: Take a Full backup before trying to fix anything as there is a risk that you might end up breaking it even more.

There are a few topics that provide guidance on how to deal with duplication errors (you basically have to find and delete the duplicates before proceeding)

5 Likes

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