FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1414 exit 1>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "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.
e0e2e2e1c65a3ca953eb44d052e2982b14799220bcf9863dc2b19ac01f035f02
看起来翻译插件对 Google 有内部映射。这是一种非常规的解决方法,但您可以尝试通过将以下代码片段附加到 plugin.rb 来修补它。
after_initialize do
if defined? DiscourseTranslator::Google::SUPPORTED_LANG_MAPPING
DiscourseTranslator::Google::SUPPORTED_LANG_MAPPING[:uz] = "uz"
end
end