My YunoHost server
Hardware: VPS bought online
YunoHost version: 11.2.8.2
I have access to my server : Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : Only “tweaking” was that I added duplicity through a PIP package to do backups - this should be entirely outside of Yunohost
Description of my issue
A few days ago I started trying to figure out a good backup solution for my yunohost server. I already use duplicity on one of my other (standalone nextcloud) server and felt comfortable with it doing what I needed. My current VM is pretty small and I don’t have any excess space to create local archives. I wanted to be able to just kick the backups directly to another location.
Ever since I apparently made changes to the python install, I started getting error emails from my server saying
/etc/cron.daily/yunohost-fetch-apps-catalog:
Failed to read info for mastodon : Invalid version: ‘4.2.1~ynh1’
Now I’m seeing that in the “Applications” page in the yunohost admin portal it says that there are no applications installed. That said, Mastodon (my only installed application) has been running fine and normally the entire time. A big part of this was wanting decent backups before I embarked on an upgrade to the application.
After some poking around I found that Mastodon is still listed as an attached application in the domains page and was able to get this full error:
Error:
"500"
Action:"GET" /yunohost/api/apps/mastodon?full&locale=en
Error message:
Unexpected server error
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/moulinette/interfaces/api.py", line 453, in process
ret = self.actionsmap.process(arguments, timeout=30, route=_route)
File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 580, in process
return func(**arguments)
File "/usr/lib/python3/dist-packages/yunohost/app.py", line 159, in app_info
ret["upgradable"] = _app_upgradable({**ret, "from_catalog": from_catalog})
File "/usr/lib/python3/dist-packages/yunohost/app.py", line 258, in _app_upgradable
installed_version = version.parse(app_infos.get("version", "0~ynh0"))
File "/usr/local/lib/python3.9/dist-packages/packaging/version.py", line 54, in parse
return Version(version)
File "/usr/local/lib/python3.9/dist-packages/packaging/version.py", line 200, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '4.2.1~ynh1'
I am also open to doing the upgrades manually and moving to the main branch of Mastodon but I am getting git errors when I try to go that direction and I figured it might make the most sense to start here in case I accidentally caused more issues. Any pointers would be greatly appreciated. I’m also happy to post logs if that would be helpful but I wasn’t sure which yunopaste to actually paste.
Thanks in advance!