לא ניתן לשדרג מכיוון שקובץ ה-zip של ערכת הנושא מסומן כעדכון בעת השדרוג

סיכום מבוסס בינה מלאכותית

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.

Doing the following:

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?

לייק 1

The repository for Dunkel is either private or no longer around.

2 לייקים

Thanks. I already looked through “app.yml” and did not find any references to “Dunkel”.

The only thing I can see is a theme called “Dunkel” (German for “dark”) that says

This theme was imported from a ZIP file

There is a checkbox at the theme saying

Automatically update theme when Discourse is updated

I’ve unchecked this checkbox now.

Then, running

cd /var/discourse
sudo git pull
sudo ./launcher rebuild app

after that actually succeeds now. :white_check_mark:

לייק 1

Being able to check the auto update box on a zip file theme sounds like a bug to me. I’m moving this.

2 לייקים

Maybe the logging should also print the repository URL it is about to try to reach to better see what’s going on?

I found no way to actually see the repository URL at all, not in the log files, not in the GUI.

לייק 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.