Mastodon Upgrade takes hours over hours

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.13
What app is this about: Mastodon

Describe your issue

Hi!
I’ve got a problem updating Mastodon.
Started the upgrade via CLI… everything was fine at the beginning.
But when it comes to the step “Upgrading source files…”, it’s taking many hours.
What I see is that all the data is copied to “/var/cache/yunohost/files_to_keep_during_setup_source”.
And this takes hours over hours… after it copied the 22GB of mastodon-data to the directory above, nothing
further happens. The whole progress took over 10 hours until this point.
So I interrupted the update process and restored old mastodon from the backup.

But now, I really don’t know, how I’m able to successfully upgrade Mastodon.

Many thanks in advance for your answers.

Best greetings from Austria
Andi

Share relevant logs or error messages

https://paste.yunohost.org/raw/ukewitujar

Start by doing a little cleaning:

sudo apt autoclean -y & sudo apt autoremove -y

This command cleans up storage:

sudo yunohost tools basic-space-cleanup

Clean the server and swap cover.
sync; echo 3 > /proc/sys/vm/drop_caches & swapoff -a & swapon -a

Think about cleaning Mastodon

And try again to update.
It worked for me.

Hi,

thank you for your hints here.
I’m regularly cleaning Mastodon with this script-tool:

I’ll try the hints you gave me here, and will report here, if it worked for me.

Many greetings
Andi

Thanks for the link, I didn’t know that at all.

Good luck :wink:

You’re welcome… :slight_smile:

And many, many thanks… you made my day!
Update now has finished in under 10 mins.

Thanks a lot… your hints did the trick!

1 Like

Cool, it’s great… :smiley:

Remember to put resolved :wink: