User uwe_keim encountered a failed Discourse upgrade due to an error updating a theme named ‘Dunkel’, which was imported from a ZIP file. The error indicated a failed Git clone, likely because the repository was private or nonexistent. Although no direct reference to ‘Dunkel’ was found in app.yml, uwe_keim discovered the theme had its ‘Automatically update theme when Discourse is updated’ checkbox enabled — an unexpected option for a ZIP-imported theme. Unchecking this option allowed the upgrade to succeed. pfaffman noted that allowing auto-update for ZIP themes is likely a bug and moved the thread accordingly. uwe_keim suggested improving logging to display the repository URL being accessed, as it was not visible in logs or the GUI, making troubleshooting harder.
cd /var/discourse
sudo git pull
sudo ./launcher rebuild app
It runs for some time and then fails. The last output lines look like this:
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 3766 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
c4da976a2f26c73ac3ea657689d16be28f54cd216c133ceb90af4898c8175010
** 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.
When then running
sudo ./discourse-doctor
The only meaningful entry I could find is:
I, [2021-07-23T05:33:02.903723 #1] INFO -- : Updating Dunkel...
Error updating Dunkel: Error cloning git repository, access is denied or repository is not found
My question
Could someone please give me some hints on how to resolve this?