The latest (security) release upgrade works fine on single site instances, but fails on a multisite install.
Log does not give much clue about the exact error:
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 3978 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate"
617ffe76bfeb2b963c76d3205013104c31e050e9974c1b3feae790063767ea55
** 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.
It might be related to the code review plugin if it’s not configured…
Confirmed: commenting out the plugin makes the upgrade complete successfully. Not sure what happens though.