nextcloud_ynh icon indicating copy to clipboard operation
nextcloud_ynh copied to clipboard

upgrade fails because of customize data_dir

Open niko2 opened this issue 4 months ago • 2 comments

Describe the bug

Running nextcloud 28.0.2~ynh1 with custom data_dir Upgrade to 28.0.3~ynh1 starts by moving data from custom data_dir to default deta_dir Then fails and leave nextcloud uninstalled The step that failed was restauration because data has been moved during upgrade (see logs below)

Several actions should not occured, so not sure where is the bug

Context

  • Hardware: VM
  • YunoHost version: 11.2.10.3 (latest)
  • I have access to my server: Through SSH + through the webadmin + direct access via console
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • nextcloud custom data_dir
  • If upgrading, current package version: can be found in the admin, or with yunohost app info $app_id
  • nextcloud has been removed during upgrade

Steps to reproduce

Upgrade nextcloud from 28.0.2~ynh1 to 28.0.3~ynh1 with custom data_dir

Expected behavior

  • Don't move data to defaut data_dir
  • Eventually fails but leave nextcloud intact in version 28.0.2~ynh1

Logs

Backup creation (OK): https://paste.yunohost.org/raw/wepetegacu Upgrade (KO): https://paste.yunohost.org/raw/iwimagifig Restore (KO): https://paste.yunohost.org/raw/atiyetubih Remove app (OK): https://paste.yunohost.org/raw/etadacicej

niko2 avatar Mar 03 '24 01:03 niko2