YunoHost-Apps / mastodon_ynh

Free, open-source social network for YunoHost
https://joinmastodon.org/
GNU Affero General Public License v3.0
84 stars 36 forks source link

Regression : Upgrade failed because not enought free space in /var #457

Open HugoPoi opened 2 months ago

HugoPoi commented 2 months ago

Describe the bug

  1. we need to keep public/system
  2. we change the code to use --keep but It does a copy behind the hood

https://github.com/YunoHost-Apps/mastodon_ynh/blob/c3c4416b24aaec57b8ec04f7479be84033259134/scripts/upgrade#L101

before

https://github.com/YunoHost-Apps/mastodon_ynh/blame/17d9f373c9c8d2d443e561bfd39f8a9690e8ff43/scripts/upgrade#L169-L187

Steps to reproduce

/var free space is smaller than the size of public/system

Workaround

Move public/system before upgrading

madmaxlamenace commented 1 month ago

Hello, I've got the same issue.

Even if i added 40GB of more disk space the result is the same and all the space is used 196GB The last line is this one. Info : [########++..........] > Upgrading source files...

hopefully for me i always use virtualisation and always make snapshots before upgrades.

HugoPoi commented 1 month ago

probably worth to fix it in the core so every app can benefit from this