Вот сообщение.
Я, [2023-03-23T15:14:16.270826 #1] INFO – : > cd /var/www/discourse && su discourse -c ‘bundle install --deployment --retry 3 --jobs 4 --verbose --without test development’
[УСТАРЕВШИЙ] Флаг --deployment устарел, так как он зависит от сохранения между вызовами bundler, чего bundler в будущих версиях делать больше не будет. Вместо этого используйте bundle config set --local deployment 'true' и прекратите использовать этот флаг.
[УСТАРЕВШИЙ] Флаг --without устарел, так как он зависит от сохранения между вызовами bundler, чего bundler в будущих версиях делать больше не будет. Вместо этого используйте bundle config set --local without 'test development' и прекратите использовать этот флаг.
Bundler::InstallError: web-push-3.0.0 требует версию ruby >= 3.0, что несовместимо с текущей версией 2.7.6
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer.rb:233:inblock in ensure_specs_are_compatible!' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/spec_set.rb:155:ineach’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/spec_set.rb:155:ineach' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer.rb:231:inensure_specs_are_compatible!’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer.rb:83:inblock in run' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/process_lock.rb:12:inblock in lock’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/process_lock.rb:9:inopen' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/process_lock.rb:9:inlock’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer.rb:71:inrun' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer.rb:23:ininstall’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/cli/install.rb:62:inrun' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/cli.rb:260:inblock in install’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/settings.rb:131:intemporary' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/cli.rb:259:ininstall’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:inrun' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:ininvoke_command’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor.rb:392:indispatch' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/cli.rb:34:indispatch’
/usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/vendor/thor/lib/thor/base.rb:485:instart' /usr/local/lib/ruby/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/cli.rb:28:instart’
Поиск gems [“powerbar”, “middleware”, “pattern-match”, “coffee-script-source”, “virtus”, “needle”, “jruby-pageant”, “bcrypt_pbkdf”, “rbnacl”, “rbnacl-libsodium”]
HTTP GET https://index.rubygems.org/info/middleware
HTTP 200 OK https://index.rubygems.org/info/middleware
Поиск gems [“ansi”, “descendants_tracker”, “axiom-types”, “coercible”, “equalizer”]
Поиск gems [“ice_nine”, “adamantium”]
Поиск gems [“memoizable”]
FAILED
Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle install --deployment --retry 3 --jobs 4 --verbose --without test development’ завершился с ошибкой, код возврата #<Process::Status: pid 324 exit 5>
Место возникновения ошибки: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn’
Выполнение не удалось с параметрами {“cd”=>“$home”, “hook”=>“bundle_exec”, “cmd”=>[“su discourse -c ‘bundle install --deployment --retry 3 --jobs 4 --verbose --without test development’”]}
Инициализация завершилась с кодом выхода 5
** ИНИЦИАЛИЗАЦИЯ НЕ УДАЛАСЬ ** Пожалуйста, прокрутите вверх и найдите более ранние сообщения об ошибках; их может быть несколько.
./discourse-doctor может помочь в диагностике проблемы.
58f4a7f8ec4aa127e0b28260dd525155e6d18554aa5a8bbd4b8036374e5b2fe5
make: *** [Makefile:44: build] Ошибка 1
Как мы можем обновить версию ruby до >= 3.0?