Ошибка при обновлении с 3.4.0.beta4-dev до 3.5.0.beta1

При обновлении моего Discourse возникла ошибка.

api_key = "a quick brown fox"
fetch("https://api.example.com/data", headers: { 'Authorization' => api_key })

Пожалуйста, помогите мне это исправить.Ошибка в ’
/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 `’
Задачи: TOP => s3:upload_assets
(Посмотрите полный трассировочный отчет, запустив задачу с --trace)
I, [2025-03-01T04:56:45.109871 #1] INFO – : Установка правил CORS…
пропуск
Пропуск: assets/break_string-cc617154cd957804f2f6a1f3bc68258c9cdca3d4b9a322bf777d145fed04790e.js
Пропуск: assets/break_string-cc617154cd957804f2f6a1f3bc68258c9cdca3d4b9a322bf777d145fed04790e.br.js
Пропуск: assets/break_string-cc617154cd957804f2f6a1f3bc68258c9cdca3d4b9a322bf777d145fed04790e.gz.js
Пропуск: assets/break_string-cc617154cd957804f2f6a1f3bc68258c9cdca3d4b9a322bf777d145fed04790e.js.map
Пропуск: assets/service-worker-fbf56c1f1cb8a800513b5a4ed1547f02092cad7286f37ae7ac90dbb6195524d9.js
Пропуск: assets/service-worker-fbf56c1f1cb8a800513b5a4ed1547f02092cad7286f37ae7ac90dbb6195524d9.br.js
Пропуск: assets/service-worker-fbf56c1f1cb8a800513b5a4ed1547f02092cad7286f37ae7ac90dbb6195524d9.gz.js
Пропуск: assets/service-worker-fbf56c1f1cb8a800513b5a4ed1547f02092cad7286f37ae7ac90dbb6195524d9.js.map
Пропуск: assets/locales/i18n-3b40e842fd72b9bcc74ea83e094c823cd9ca535e4ecc5e78722e6f99d3656137.js
Пропуск: assets/locales/i18n-3b40e842fd72b9bcc74ea83e094c823cd9ca535e4ecc5e78722e6f99d3656137.br.js
Пропуск: assets/locales/i18n-3b40e842fd72b9bcc74ea83e094c823cd9ca535e4ecc5e78722e6f99d3656137.gz.js
Загрузка: assets/scripts/discourse-test-listen-boot-c65930f97c9935680e942f8e32df616cc91ab7c9371b86db6e5ddf9ad868ae22.js

I, [2025-03-01T04:56:45.116353 #1] INFO – : Завершение асинхронных процессов
I, [2025-03-01T04:56:45.116811 #1] INFO – : Отправка INT для HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main pid: 42
I, [2025-03-01T04:56:45.117008 #1] INFO – : Отправка TERM для exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 109
109:signal-handler (1740805005) Получен сигнал SIGTERM, планирование завершения…
2025-03-01 04:56:45.117 UTC [42] LOG: получен запрос на быстрое завершение
2025-03-01 04:56:45.123 UTC [42] LOG: прерывание любых активных транзакций
2025-03-01 04:56:45.148 UTC [42] LOG: фоновый процесс “logical replication launcher” (PID 56) завершился с кодом 1
2025-03-01 04:56:45.171 UTC [51] LOG: контрольная точка завершена: записано 492 буфера (1.5%); 0 файлов WAL добавлено, 0 удалено, 0 переработано; write=36.273 с, sync=0.010 с, total=36.299 с; sync files=37, longest=0.002 с, average=0.001 с; distance=3327 кБ, estimate=5134 кБ
2025-03-01 04:56:45.171 UTC [51] LOG: завершение работы
2025-03-01 04:56:45.173 UTC [51] LOG: начало контрольной точки: немедленное завершение
2025-03-01 04:56:45.194 UTC [51] LOG: контрольная точка завершена: записано 184 буфера (0.6%); 0 файлов WAL добавлено, 0 удалено, 0 переработано; write=0.011 с, sync=0.005 с, total=0.023 с; sync files=16, longest=0.002 с, average=0.001 с; distance=657 кБ, estimate=4686 кБ
109:M 01 Mar 2025 04:56:45.200 # Пользователь запросил завершение…
109:M 01 Mar 2025 04:56:45.200 * Сохранение финального снимка RDB перед выходом.
2025-03-01 04:56:45.241 UTC [42] LOG: система базы данных остановлена
109:M 01 Mar 2025 04:56:45.413 * БД сохранена на диске
109:M 01 Mar 2025 04:56:45.413 # Redis готов к выходу, пока…

НЕ УДАЛОСЬ

Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake s3:upload_assets завершилась с кодом #<Process::Status: pid 3572 exit 1>
Место ошибки: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn’
exec завершился с параметрами {“cd”=>“$home”, “cmd”=>[“sudo -E -u discourse bundle exec rake s3:upload_assets”]}
bootstrap завершился с кодом 1
** НЕ УДАЛОСЬ ЗАГРУЗИТЬ ** прокрутите вверх и найдите предыдущие сообщения об ошибках, их может быть несколько.
./discourse-doctor может помочь в диагностике проблемы.
eac6e2aa68f89bf6bacb913658d5bbfa91c14fa17fba0045d7d2557d9796f8e5

мой app.yml

Контейнер Docker не сохраняет состояние; все данные хранятся в /shared

volumes:

  • volume:
    host: /var/www/docker-sites/discourse/shared/standalone
    guest: /shared
  • volume:
    host: /var/www/docker-sites/discourse/shared/standalone/log/var-log
    guest: /var/log

Плагины размещаются здесь

см. Install plugins on a self-hosted site для подробностей

hooks:
after_assets_precompile:
- exec:
cd: $home
cmd:
- sudo -E -u discourse bundle exec rake s3:upload_assets
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone GitHub - discourse/docker_manager: Plugin for use with discourse docker image · GitHub
- git clone GitHub - discourse/discourse-animated-avatars: A plugin to add gif avatars in Discourse · GitHub
- git clone GitHub - discourse/discourse-adplugin: Official Discourse Advertising Plugin. Install & Start Serving Ads on Your Discourse Forum · GitHub
- git clone GitHub - discourse/discourse-calendar: Adds the ability to create a dynamic calendar in the first post of a topic. · GitHub
- git clone GitHub - discourse/discourse-chart · GitHub
- git clone GitHub - discourse/discourse-math: Official MathJax support for Discourse · GitHub
- git clone GitHub - discourse/discourse-topic-voting: Adds the ability for voting on a topic within a specified category in Discourse. · GitHub
- git clone GitHub - discourse/discourse-signatures: A Discourse Plugin to show user signatures below posts · GitHub
- git clone GitHub - discourse/discourse-chat-integration · GitHub
- git clone GitHub - discourse/discourse-solved: Allow accepted answers on topics · GitHub
- git clone GitHub - discourse/discourse-graphviz: Adds the Viz.js library to discourse · GitHub
- git clone GitHub - discourse/discourse-tooltips: Show tooltips around Discourse on hover, including topic previews · GitHub
- git clone GitHub - discourse/discourse-bbcode: vBulletin BBCode plugin · GitHub
- git clone GitHub - discourse/discourse-affiliate · GitHub
- git clone GitHub - discourse/discourse-assign: Plugin for assigning users to a topic · GitHub
- git clone GitHub - discourse/discourse-templates: A plugin that allows users to use templates to insert frequently used content · GitHub
- git clone GitHub - discourse/discourse-cakeday: Show a birthday cake emoji beside the names of members on their join anniversary, or their actual birthday -- and a browsable directory of upcoming anniversaries / birthdays. · GitHub
- git clone GitHub - discourse/discourse-follow: A Discourse plugin that lets you follow other users. · GitHub
- git clone GitHub - discourse/discourse-perspective-api: Google Perspective API Plugin for Discourse · GitHub
- git clone GitHub - procourse/procourse-static-pages: Allows admins to create static pages in Discourse. · GitHub
- git clone GitHub - cpradio/discourse-plugin-composer-help-button: Add a Help Button to the Composer Window in Discourse · GitHub
- git clone GitHub - paviliondev/discourse-custom-wizard: A Discourse Plugin that allows you to create custom user wizards. · GitHub
- git clone GitHub - paviliondev/discourse-ratings: A Discourse plugin that lets you use topics to rate things · GitHub
- git clone GitHub - Ebsy/discourse-nationalflags: National Flags plugin for Discourse · GitHub
- git clone GitHub - discourse/discourse-gamification · GitHub
- git clone GitHub - discourse/discourse-ai: Discourse AI now lives in the discourse/discourse repo · GitHub
- git clone GitHub - discourse/discourse-reactions: Moved to https://github.com/discourse/discourse/tree/main/plugins/discourse-reactions · GitHub

Ошибка возникает во время выполнения вашего хука rake s3:upload_assets after_assets_precompile.

Aws::S3::Errors::InvalidArgument: Unsupported header 'x-amz-checksum-crc32' received for this API call. (Aws::S3::Errors::InvalidArgument)

Я не знаком с настройкой Amazon S3 для Discourse, но в заголовке репозитория Git для Discourse я не вижу упоминания этого заголовка. Возможно, вы где-то установили этот заголовок ранее? Если так, то, похоже, он больше не поддерживается, и его следует удалить.

Ознакомьтесь с этой темой: Can't rebuild due to AWS SDK gem bump and new AWS Data Integrity Protections - #7 by Yt.w

У меня только что возникла точно такая же проблема — мой форум использует Backblaze B2, а не Amazon S3, поэтому я подозреваю, что это часть проблемы. Чтобы исправить это, я раскомментировал эту строку в файле /var/discourse/containers/app.yml:

#version: test-passed

и изменил её на:

version: stable

затем снова выполнил /var/discourse/launcher rebuild app, и всё успешно пересобралось.