funkwhale_ynh icon indicating copy to clipboard operation
funkwhale_ynh copied to clipboard

Upgrade from 1.1~ynh1 to 1.1.1~ynh1 tries to backup remote linked music library to /home/yunohost.app/funkwhale/data/music

Open lightnin opened this issue 3 years ago • 2 comments

Describe the bug

In the process of upgrading from 1.1~ynh1 to 1.1.1~ynh1 via admin interface, the system appears to attempt to "backup" music data that is mounted via NFS on a remote server by copying it to: /home/yunohost.app/funkwhale/data/music. When this data is too large to fit on the SD card, the copy fills up the entire SD card, the upgrade fails and the system becomes unstable for lack of storage space.

Workaround: Delete contents of: /home/yunohost.app/funkwhale/data/music to restore space to the system.

Context

  • Hardware: Rpi 4
  • YunoHost version: 4.1.8 (stable).
  • I have access to my server: Through SSH | and through the webadmin |
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch:

Steps to reproduce

Symlink remote library NFS share to /var/www/funkwhale/import (greater than size of SD card) Import remote music files by clicking Import on library tab. (Default behavior should be in place import) Attempt to upgrade from 1.1~ynh1 to 1.1.1~ynh1 via admin interface

Expected behavior

The upgrade should be successful. The upgrade script should not try to backup music files on a remote drive.

lightnin avatar Apr 28 '21 12:04 lightnin

It don't try to backup the music files on a remote drive, it try to move music to a a definitive path, outside of the application.

yalh76 avatar May 19 '21 18:05 yalh76

Thanks. But there will still be problem if it tries to move a large collection of files from a remote drive (where there is space) to the SD Card (where there is not enough space), right?

lightnin avatar May 20 '21 12:05 lightnin

another option would be to unmount the music data, do the upgrade and the remount it at /home/yunohost.app/funkwhale/data/music

yalh76 avatar Oct 03 '22 22:10 yalh76