YunoHost-Apps / discourse_ynh

Discourse package for YunoHost
https://www.discourse.org/
GNU General Public License v2.0
24 stars 12 forks source link

Upgrading to 2.6.0 fails and removes application #68

Closed arthurzenika closed 2 years ago

arthurzenika commented 3 years ago

Describe the bug

Upgrading to 2.6.0 fails and removes application

Versions

To Reproduce Once I've filed this issue, I'll try to restore backup and tell you if can reproduce.

Expected behavior

Fail is OK as long as it rolls back to working version.

Logs https://paste.yunohost.org/raw/ogawuwizor https://paste.yunohost.org/raw/fuwodefake

miloskroulik commented 3 years ago

I just would like to mention the problem is related to the solved plugin. And looking at https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155 it looks like it's an issue with this package.

arthurzenika commented 3 years ago

Good catch, that plugin was added manually (sorry for the absence of mention in the "special context" question, I totally forgot about it). Restore worked, I'll look into making sure the plugin is up-gradable. Do you think there is way to avoid the deletion of the app in this case ? Is it a yunohost core bug ?

yalh76 commented 2 years ago

In case of upgrade failure, it removes the app and try to restore it, as we can see in your logs, the restore failed because of /opt/rbenv/versions/2.6.5/bin/ruby: error while loading shared libraries: libjemalloc.so.1: cannot open shared object file: No such file or directory

The restore should be fixed for now