Hardware: VPS bought online YunoHost version: 11.0.10.2 I have access to my server : Through SSH Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : Yes, I’m fresh after updating to yunohost 11
Description of my issue
I was upgrading Mastodon, and the upgrade failed due to some permission issues:
Uhoh, unknown permission mastodon.main ? (Maybe we're in the process or deleting the perm for this app...)
Then Yunohost tried to revert the backup of Mastodon, but it failed, so I ended up with no working Mastodon version.
BTW, I seem to be getting this “something is wrong with permissions so yunohost fails disgracefully” sometimes, but I don’t see the problem reported elsewhere. Could there be something that I’m doing wrong that’s causing that to happen? See Failed synapse upgrade for context
The /var/www/mastodon directory is a mount root for an external volume, I can’t delete it. Is it possible to just have yunohost check if it’s an empty dir and proceed? I don’t have enough free space to make yuno install Mastodon on the root filesystem
I think one workaround would be to mount the external volume as /var/www/ instead of just /var/www/mastodon, but that may imply too many file movement if you have already a bunch of other apps installed
The other way would be to edit the app restore script inside the archive to remove the test ! -d $final_path check