500 error when attempting to update Mastodon from Webadmin

What app is this about, and its version: Mastodon 4.5.6~ynh1
What YunoHost version are you running: 12.1.39
What type of hardware are you using: VPS bought online

Describe your issue

When attempting to update Mastodon to the new version I get a 500 error.

Share relevant logs or error messages

There was no log entry for this app in Webadmin

Here is a screenshot I took of the error when it occurred

Try deleting that pre upgrade 2 file in backups

@jarod5001 backup file path?

In the webadmin go to backup and look for the pre upgrade backup and delete it

I see my other app backups there but Mastodon isn’t on the list

Go to /home/yunohost.backup

You’ll find two folders.

“archives“ contains the backups and “tmp” is the temp folder, it should be empty

What version is that?
This is not the Mastodon 4.5.9 version, it does not seem available at the moment.

current install is Mastodon 4.5.6~ynh1 - upgrade version is suppose to be Mastodon 4.5.8~ynh1.

This has been going for hours and I got past the back up phase caused by the API constantly going down by using the CLI and telling it to bypass the backup since a recent backup was completed today after deleting the old one.

It has been upgrading Ruby for hours now. Here is a snapshot of my server…. Not doing well at this point. I believe it is stuck but can’t actually confirm that.

You should first have 4.5.7~ynh1, and then 4.5.8~ynh1.
You skip an update, moving from version 4.5.6~ynh1 to version 4.5.8~ynh1 may be the problem?

It never prompted me for Mastodon 4.5.7~ynh1 update. I’m not sure what happened there. I check Webadmin weekly for new updates and install. The system jumped in update versions, not sure why.

I also stopped the stalled Updating Ruby process this morning. Uninstalled and reinstalled, Mastodon is now at 4.5.8. I need to now restore from the backup I created yesterday so I don’t lose any data. Can you help me with that process and how to install increment versions of the software using a version tag to systematically upgrade from 4.5.6>>4.5.7>>4.5.8?

If you are now in version 4.5.8, for the next updates, the advice I will give you is as follows:

  1. Save:
yunohost backup create --apps mastodon
  1. Update:
yunohost app upgrade mastodon

You can also backup the Mastodon database, Toward a folder of your choice that you have created before.

Ex: /var/www/masto_backup/

Do backup:

:information_source: The password is in the .env.production file, on the line:
PostgreSQL
DB_PASS=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”

nano /var/www/mastodon/live/.env.production

Then:

cd /var/www/mastodon/live
pg_dump -U mastodon -W -F t mastodon > /var/www/masto_backup/mastodon_backup.dump

For restore:

cd /var/www/mastodon/live
pg_restore -U mastodon -d mastodon < /var/www/masto_backup/mastodon_backup.dump

That’s it, if it helps