Nextcloud - Mise-à-jour impossible

Impossible de mettre à jour Nextcloud…

Attention : 9028 Data dir will not be saved, because backup_core_only is set.
Attention : Packagers ! Please do not use a separate php ini file, merge your directives in the pool file instead.
Attention :
Attention : Upgrade to nextcloud 14.0.0
Attention : /tmp/tmp.m3Z5jZFdRZ wasn’t deleted because it doesn’t exist.
Attention : Starting …
Attention : 0/0 [>---------------------------] 0%
Attention : Upgrade to nextcloud 15.0.0
Attention : /tmp/tmp.dIL5N39Ry3 wasn’t deleted because it doesn’t exist.
Attention : Unable to upgrade Nextcloud
Attention : !!
Attention : nextcloud’s script has encountered an error. Its execution was cancelled.
Attention : !!
Attention : Upgrade failed.

Attention : 9028 Data dir will not be saved, because backup_core_only is set.
Attention : Packagers ! Please do not use a separate php ini file, merge your directives in the pool file instead.
Attention :
Attention : Upgrade to nextcloud 14.0.0
Attention : /tmp/tmp.m3Z5jZFdRZ wasn’t deleted because it doesn’t exist.
Attention : Starting …
Attention : 0/0 [>---------------------------] 0%
Attention : Upgrade to nextcloud 15.0.0
Attention : /tmp/tmp.dIL5N39Ry3 wasn’t deleted because it doesn’t exist.
Attention : Unable to upgrade Nextcloud
Attention : !!
Attention : nextcloud’s script has encountered an error. Its execution was cancelled.
Attention : !!
Attention : Upgrade failed.
Attention : Removing database nextcloud
Attention : Remove the user nextcloud

Pareil pour moi:

root@YunoHost:~# yunohost app upgrade nextcloud
Info: Upgrading app nextcloud…
Warning: 19819 Data dir will not be saved, because backup_core_only is set.
Warning: Packagers ! Please do not use a separate php ini file, merge your directives in the pool file instead.
Warning:
Warning: Upgrade to nextcloud 14.0.0
Warning: /tmp/tmp.NpeR6DsPKz wasn’t deleted because it doesn’t exist.
Warning: Starting …
Warning: 0/0 [>---------------------------] 0%
Warning: Upgrade to nextcloud 15.0.0
Warning: /tmp/tmp.18L3h2w84X wasn’t deleted because it doesn’t exist.
Warning: Unable to upgrade Nextcloud
Warning: !!
Warning: nextcloud’s script has encountered an error. Its execution was cancelled.
Warning: !!
Warning: Upgrade failed.
Warning: Removing database nextcloud
Warning: Remove the user nextcloud
Warning: 420375 2019-02-23 13:10:09 URL:https://codeload.github.com/YunoHost-Apps/yunohost.multimedia/tar.gz/v1.0 [15907] -> “v1.0.tar.gz” [1]
Warning: The app was restored to the way it was before the failed upgrade.
Error: Unable to upgrade nextcloud
Info: The operation ‘Upgrade ‘nextcloud’ application’ has failed! To get help, please share the full log of this operation using the command ‘yunohost log display 20190223-124216-app_upgrade-nextcloud --share’
root@YunoHost:~# yunohost log display 20190223-124216-app_upgrade-nextcloud --share
Error: Something wrong happened while trying to paste data on paste.yunohost.org : 502,

502 Bad Gateway

502 Bad Gateway


nginx

root@YunoHost:~#

Et même pour patarger le log.
Une idée?

Et le pire, c’est que l’interface est maintenant toute bizarre, tout est en mode texte… Un peu d’aide serait la bienvenue !

@alexandre75 CTRL+F5 sur l’interface dans ton navigateur ?

Ca ressemble à un soucis de connexion internet non ?

que donne:

ping wikipedia.org

(CTRL+C pour arrêter la commande)

PING wikipedia.org(text-lb.esams.wikimedia.org (2620:0:862:ed1a::1)) 56 data bytes
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=1 ttl=60 time=26.1 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=2 ttl=60 time=25.6 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=3 ttl=60 time=25.4 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=4 ttl=60 time=25.6 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=5 ttl=60 time=25.5 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=6 ttl=60 time=25.5 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=7 ttl=60 time=25.5 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=8 ttl=60 time=25.2 ms
64 bytes from text-lb.esams.wikimedia.org (2620:0:862:ed1a::1): icmp_seq=9 ttl=60 time=25.6 ms
^C
wikipedia.org ping statistics —
9 packets transmitted, 9 received, 0% packet loss, time 8016ms
rtt min/avg/max/mdev = 25.280/25.607/26.189/0.253 ms

@alexandre75 could you share your log about Upgrade Nextcloud. You can find it in Tools > Logs (in the webadmin) or with yunohost log list and yunohost log display

2019-02-23 14:15:50,168: DEBUG - 306615 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade1 2019-02-23 14:15:50,168: DEBUG - 306616 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/etc/logrotate.d/nextcloud /etc/logrotate.d/nextcloud 2019-02-23 14:15:50,269: DEBUG - 306717 + datadir=/home/yunohost.app/nextcloud/data 2019-02-23 14:15:50,270: DEBUG - 306718 + ‘[’ -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade1/apps/nextcloud/backup/home/yunohost.app/nextcloud ‘]’ 2019-02-23 14:15:50,271: DEBUG - 306719 + mkdir -p /home/yunohost.app/nextcloud/data 2019-02-23 14:15:50,272: DEBUG - 306719 + ynh_app_setting_delete nextcloud backup_core_only 2019-02-23 14:15:50,272: DEBUG - 306720 + sudo yunohost app setting -d nextcloud backup_core_only --quiet 2019-02-23 14:15:51,377: DEBUG - 307824 + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data 2019-02-23 14:15:53,584: DEBUG - 310032 + chmod 640 /var/www/nextcloud/config/config.php 2019-02-23 14:15:53,585: DEBUG - 310033 + chmod 755 /home/yunohost.app 2019-02-23 14:15:53,586: DEBUG - 310034 ++ ynh_user_list 2019-02-23 14:15:53,586: DEBUG - 310034 ++ sudo yunohost user list --output-as plain --quiet 2019-02-23 14:15:53,587: DEBUG - 310035 ++ awk ‘/^##username$/{getline; print}’ 2019-02-23 14:15:54,892: DEBUG - 311340 + for u in $(ynh_user_list) 2019-02-23 14:15:54,893: DEBUG - 311341 + mkdir -p /home/yunohost.app/nextcloud/data/jeremy 2019-02-23 14:15:54,894: DEBUG - 311341 + setfacl -m g:nextcloud:rwx /home/jeremy 2019-02-23 14:15:54,894: DEBUG - 311342 + ynh_multimedia_build_main_dir 2019-02-23 14:15:54,895: DEBUG - 311343 + local ynh_media_release=v1.0 2019-02-23 14:15:54,895: DEBUG - 311343 + local checksum=4852c8607db820ad51f348da0dcf0c88 2019-02-23 14:15:54,896: DEBUG - 311344 + wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/v1.0.tar.gz 2019-02-23 14:15:56,002: DEBUG - 312453 + echo ‘4852c8607db820ad51f348da0dcf0c88 v1.0.tar.gz’ 2019-02-23 14:15:56,002: WARNING - 312450 2019-02-23 14:15:55 URL:https://codeload.github.com/YunoHost-Apps/yunohost.multimedia/tar.gz/v1.0 [15907] -> “v1.0.tar.gz” [1] 2019-02-23 14:15:56,103: DEBUG - 312557 + md5sum -c --status 2019-02-23 14:15:56,104: DEBUG - 312558 + mkdir yunohost.multimedia-master 2019-02-23 14:15:56,105: DEBUG - 312559 + tar -xf v1.0.tar.gz -C yunohost.multimedia-master --strip-components 1 2019-02-23 14:15:56,106: DEBUG - 312559 + ./yunohost.multimedia-master/script/ynh_media_build.sh 2019-02-23 14:15:59,321: DEBUG - 315772 hook: /etc/yunohost/hooks.d/post_user_create/50-ynh_media 2019-02-23 14:16:00,325: DEBUG - 316776 hook: /etc/yunohost/hooks.d/post_user_delete/50-ynh_media 2019-02-23 14:16:00,527: DEBUG - 316978 + ynh_multimedia_addaccess nextcloud 2019-02-23 14:16:00,528: DEBUG - 316979 + local user_name=nextcloud 2019-02-23 14:16:00,529: DEBUG - 316979 + groupadd -f multimedia 2019-02-23 14:16:00,529: DEBUG - 316980 + usermod -a -G multimedia nextcloud 2019-02-23 14:16:00,731: DEBUG - 317182 + systemctl reload php7.0-fpm 2019-02-23 14:16:00,832: DEBUG - 317283 + systemctl reload nginx 2019-02-23 14:16:01,435: DEBUG - 317886 + ynh_exit_properly 2019-02-23 14:16:01,435: DEBUG - 317887 + local exit_code=0 2019-02-23 14:16:01,436: DEBUG - 317888 + ‘[’ 0 -eq 0 ‘]’ 2019-02-23 14:16:01,437: DEBUG - 317889 + exit 0 2019-02-23 14:16:01,544: DEBUG - 318068 Pour voir le log de cette opération « Restaurer « nextcloud » depuis une sauvegarde », utiliser la commande « yunohost log display 20190223-131333-backup_restore_app-nextcloud » 2019-02-23 14:16:04,056: DEBUG - La configuration de SSOwat a été générée 2019-02-23 14:16:04,158: DEBUG - 320645 Restauration terminée 2019-02-23 14:16:04,159: DEBUG - 320646 action [11790.1] executed in 319.633s 2019-02-23 14:16:04,159: DEBUG - apps: 2019-02-23 14:16:04,160: DEBUG - nextcloud: Success 2019-02-23 14:16:04,161: DEBUG - system: 2019-02-23 14:16:04,264: DEBUG - + ynh_die ‘The app was restored to the way it was before the failed upgrade.’ 2019-02-23 14:16:04,265: WARNING - The app was restored to the way it was before the failed upgrade. 2019-02-23 14:16:04,267: DEBUG - + echo ‘The app was restored to the way it was before the failed upgrade.’ 2019-02-23 14:16:04,267: DEBUG - + exit 1 2019-02-23 14:16:04,481: ERROR - Impossible de mettre à jour nextcloud

L’instruction avant le ynh_exit_properly est celle qui échoue (en général).

Que donne :

systemctl status nginx
journalctl -u nginx

Tout a l’air de bien fonctionner avec la 1ère commande. Pastille verte.
Pour la 2ème, j’ai que des lignes de “Reloaded A high performance web server and a reverse proxy server.”

On parle bien de l’interface nextcloud ?

Oui, l’interface Nextcloud : elle s’affiche uniquement en mode texte dégradé.

Mon log d’upgrade de nextcloud:

root@YunoHost:~# yunohost log display 20190223-133247-app_upgrade-nextcloud
description: Upgrade ‘nextcloud’ application
log_path: /var/log/yunohost/categories/operation/20190223-133247-app_upgrade-nextcloud.log
logs:

  • 2019-02-23 13:57:39,750: DEBUG - 339175 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
  • 2019-02-23 13:57:39,753: DEBUG - 339177 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/logrotate.d/nextcloud /etc/logrotate.d/nextcloud
  • 2019-02-23 13:57:39,755: DEBUG - 339179 + datadir=/home/yunohost.app/nextcloud/data
  • 2019-02-23 13:57:39,758: DEBUG - 339184 + ‘[’ -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/home/yunohost.app/nextcloud ‘]’
  • 2019-02-23 13:57:39,760: DEBUG - 339185 + mkdir -p /home/yunohost.app/nextcloud/data
  • 2019-02-23 13:57:39,762: DEBUG - 339187 + ynh_app_setting_delete nextcloud backup_core_only
  • 2019-02-23 13:57:39,765: DEBUG - 339189 + sudo yunohost app setting -d nextcloud backup_core_only --quiet
  • 2019-02-23 13:57:41,171: DEBUG - 340595 + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
  • 2019-02-23 13:58:23,118: DEBUG - 382536 + chmod 640 /var/www/nextcloud/config/config.php
  • 2019-02-23 13:58:23,167: DEBUG - 382567 + chmod 755 /home/yunohost.app
  • 2019-02-23 13:58:23,269: DEBUG - 382669 ++ ynh_user_list
  • 2019-02-23 13:58:23,271: DEBUG - 382671 ++ sudo yunohost user list --output-as plain --quiet
  • 2019-02-23 13:58:23,273: DEBUG - 382672 ++ awk ‘/^##username$/{getline; print}’
  • 2019-02-23 13:58:26,091: DEBUG - 385485 + for u in $(ynh_user_list)
  • 2019-02-23 13:58:26,092: DEBUG - 385486 + mkdir -p /home/yunohost.app/nextcloud/data/bubuadmin
  • 2019-02-23 13:58:26,193: DEBUG - 385588 + setfacl -m g:nextcloud:rwx /home/bubuadmin
  • 2019-02-23 13:58:26,194: DEBUG - 385589 + ynh_multimedia_build_main_dir
  • 2019-02-23 13:58:26,195: DEBUG - 385589 + local ynh_media_release=v1.0
  • 2019-02-23 13:58:26,196: DEBUG - 385590 + local checksum=4852c8607db820ad51f348da0dcf0c88
  • 2019-02-23 13:58:26,197: DEBUG - 385591 + wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/v1.0.tar.gz
  • 2019-02-23 13:58:27,702: DEBUG - 387095 + echo ‘4852c8607db820ad51f348da0dcf0c88 v1.0.tar.gz’
  • 2019-02-23 13:58:27,705: WARNING - 387097 2019-02-23 13:58:27 URL:https://codeload.github.com/YunoHost-Apps/yunohost.multimedia/tar.gz/v1.0 [15907] -> “v1.0.tar.gz” [1]
  • 2019-02-23 13:58:27,706: DEBUG - 387100 + md5sum -c --status
  • 2019-02-23 13:58:27,809: DEBUG - 387201 + mkdir yunohost.multimedia-master
  • 2019-02-23 13:58:27,811: DEBUG - 387203 + tar -xf v1.0.tar.gz -C yunohost.multimedia-master --strip-components 1
  • 2019-02-23 13:58:27,914: DEBUG - 387305 + ./yunohost.multimedia-master/script/ynh_media_build.sh
  • 2019-02-23 13:58:32,128: DEBUG - 391519 hook: /etc/yunohost/hooks.d/post_user_create/50-ynh_media
  • 2019-02-23 13:58:33,333: DEBUG - 392723 hook: /etc/yunohost/hooks.d/post_user_delete/50-ynh_media
  • 2019-02-23 13:58:33,635: DEBUG - 393025 + ynh_multimedia_addaccess nextcloud
  • 2019-02-23 13:58:33,636: DEBUG - 393026 + local user_name=nextcloud
  • 2019-02-23 13:58:33,637: DEBUG - 393027 + groupadd -f multimedia
  • 2019-02-23 13:58:33,638: DEBUG - 393027 + usermod -a -G multimedia nextcloud
  • 2019-02-23 13:58:33,940: DEBUG - 393329 + systemctl reload php7.0-fpm
  • 2019-02-23 13:58:34,344: DEBUG - 393732 + systemctl reload nginx
  • 2019-02-23 13:58:39,169: DEBUG - 398551 + ynh_exit_properly
  • 2019-02-23 13:58:39,170: DEBUG - 398553 + local exit_code=0
  • 2019-02-23 13:58:39,171: DEBUG - 398555 + ‘[’ 0 -eq 0 ‘]’
  • 2019-02-23 13:58:39,172: DEBUG - 398556 + exit 0
  • 2019-02-23 13:58:39,374: DEBUG - 398724 To view the log of the operation ‘Restore ‘nextcloud’ from a backup archive’, use the command ‘yunohost log display 20190223-135516-backup_restore_app-nextcloud’
  • 2019-02-23 13:58:42,986: DEBUG - The SSOwat configuration has been generated
  • 2019-02-23 13:58:43,289: DEBUG - 402701 Restore complete
  • 2019-02-23 13:58:43,290: DEBUG - 402702 action [14000.1] executed in 401.102s
  • 2019-02-23 13:58:43,291: DEBUG - apps:
  • 2019-02-23 13:58:43,292: DEBUG - nextcloud: Success
  • 2019-02-23 13:58:43,293: DEBUG - system:
  • 2019-02-23 13:58:43,494: DEBUG - + ynh_die ‘The app was restored to the way it was before the failed upgrade.’
  • 2019-02-23 13:58:43,496: WARNING - The app was restored to the way it was before the failed upgrade.
  • 2019-02-23 13:58:43,496: DEBUG - + echo ‘The app was restored to the way it was before the failed upgrade.’
  • 2019-02-23 13:58:43,497: DEBUG - + exit 1
  • 2019-02-23 13:58:43,652: ERROR - Unable to upgrade nextcloud
    metadata:
    ended_at: 2019-02-23 13:58:43
    env:
    YNH_APP_ID: nextcloud
    YNH_APP_INSTANCE_NAME: nextcloud
    YNH_APP_INSTANCE_NUMBER: 1
    YNH_CWD: /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts
    YNH_STDINFO: /tmp/tmpkoJZRE/stdinfo
    error: Unable to upgrade nextcloud
    operation: app_upgrade
    related_to:
    • app
    • nextcloud
      started_at: 2019-02-23 13:32:47
      success: False
      metadata_path: /var/log/yunohost/categories/operation/20190223-133247-app_upgrade-nextcloud.yml
      name: 20190223-133247-app_upgrade-nextcloud
      root@YunoHost:~#

Pour les commandes

systemctl status nginx
journalctl -u nginx

pareil que @alexandre75.

Pour moi l’interface est OK.
Mais j’ai toujours des avertissements “en-tête HTTP”.
de plus, j’ai déjà eu des problèmes avec nginx, genre “502 bad gateway”, obligé de redémarrer le serveur pour que ça reparte. Si ça peut mettre sur une piste…

Toujours pas possible de faire la mise-à-jour ?
J’ai besoin de mon cloud… Je peux rien faire !

Bon, pour debugger il va nous falloir les logs complets (là on a qu’une partie, qui corresponds en fait au restore…)

Vous pouvez normalement les trouver dans l’inteface web, section Outils, puis Logs. Enfin, trouver l’opération " Mettre à jour l’application « nextcloud »" la plus récente.

Puis dedans, cliquer sur le bouton vert Share With YunoPaste (ou Partager avec YunoPaste)

Voilà ce que donne l’upgrade avec la commande debug (c’est suffisant?):

root@YunoHost:~# yunohost app upgrade nextcloud --debug
508  DEBUG loading actions map namespace 'yunohost'
602  DEBUG extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
603  DEBUG initializing base actions map parser for cli
608  DEBUG registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
966  DEBUG initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
977  DEBUG lock has been acquired
1085 DEBUG loading python module yunohost.app took 0.108s
1087 INFO processing action [10379.1]: yunohost.app.upgrade with args={'url': None, 'app': ['nextcloud'], 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x76467f70>, 'file': None}
1305 INFO Upgrading apps nextcloud
1306 INFO Upgrading app nextcloud…
1462 DEBUG Downloading…
7684 DEBUG Extracting…
7752 DEBUG Done
7756 DEBUG Checking required packages for nextcloud…
10121 DEBUG no arguments found for 'upgrade' in manifest
10450 DEBUG Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=nextcloud YNH_CWD=/var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts YNH_APP_INSTANCE_NAME=nextcloud YNH_STDINFO=/tmp/tmpkoJZRE/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./upgrade" nextcloud 7>&1'…
10451 DEBUG About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=nextcloud YNH_CWD=/var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts YNH_APP_INSTANCE_NAME=nextcloud YNH_STDINFO=/tmp/tmpkoJZRE/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./upgrade" nextcloud 7>&1']'
10588 DEBUG + source _common.sh
10592 DEBUG ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient at'
10593 DEBUG +++ lsb_release --codename --short
11999 DEBUG ++ '[' stretch '!=' jessie ']'
12000 DEBUG ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient at php-zip php-apcu php-mbstring php-xml'
12002 DEBUG + source /usr/share/yunohost/helpers
12003 DEBUG +++ run-parts --list /usr/share/yunohost/helpers.d
12105 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12106 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
12107 DEBUG ++ . /usr/share/yunohost/helpers.d/backend
12108 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12110 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
12111 DEBUG ++ . /usr/share/yunohost/helpers.d/filesystem
12112 DEBUG +++ CAN_BIND=1
12113 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12115 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
12116 DEBUG ++ . /usr/share/yunohost/helpers.d/getopts
12118 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12120 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
12121 DEBUG ++ . /usr/share/yunohost/helpers.d/ip
12123 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12124 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
12125 DEBUG ++ . /usr/share/yunohost/helpers.d/mysql
12127 DEBUG +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
12128 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12129 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
12130 DEBUG ++ . /usr/share/yunohost/helpers.d/network
12132 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12133 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
12135 DEBUG ++ . /usr/share/yunohost/helpers.d/nodejs
12136 DEBUG +++ n_install_dir=/opt/node_n
12137 DEBUG +++ node_version_path=/opt/node_n/n/versions/node
12138 DEBUG +++ export N_PREFIX=/opt/node_n
12139 DEBUG +++ N_PREFIX=/opt/node_n
12140 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12142 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
12144 DEBUG ++ . /usr/share/yunohost/helpers.d/package
12146 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12148 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
12149 DEBUG ++ . /usr/share/yunohost/helpers.d/print
12151 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12153 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
12154 DEBUG ++ . /usr/share/yunohost/helpers.d/psql
12155 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12157 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
12160 DEBUG ++ . /usr/share/yunohost/helpers.d/setting
12161 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12163 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
12163 DEBUG ++ . /usr/share/yunohost/helpers.d/string
12165 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12167 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
12168 DEBUG ++ . /usr/share/yunohost/helpers.d/system
12170 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12172 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
12173 DEBUG ++ . /usr/share/yunohost/helpers.d/user
12174 DEBUG ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
12176 DEBUG ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
12178 DEBUG ++ . /usr/share/yunohost/helpers.d/utils
12179 DEBUG + app=nextcloud
12181 DEBUG ++ ynh_app_setting_get nextcloud domain
12183 DEBUG ++ sudo yunohost app setting nextcloud domain --output-as plain --quiet
13588 DEBUG + domain=mitakuye-oyasin.noho.st
13589 DEBUG ++ ynh_app_setting_get nextcloud path
13590 DEBUG ++ sudo yunohost app setting nextcloud path --output-as plain --quiet
14895 DEBUG + path_url=/nextcloud
14896 DEBUG ++ ynh_app_setting_get nextcloud admin
14897 DEBUG ++ sudo yunohost app setting nextcloud admin --output-as plain --quiet
16202 DEBUG + admin=bubuadmin
16203 DEBUG ++ ynh_app_setting_get nextcloud final_path
16205 DEBUG ++ sudo yunohost app setting nextcloud final_path --output-as plain --quiet
17511 DEBUG + final_path=/var/www/nextcloud
17512 DEBUG ++ ynh_app_setting_get nextcloud db_name
17514 DEBUG ++ sudo yunohost app setting nextcloud db_name --output-as plain --quiet
18919 DEBUG + db_name=nextcloud
18920 DEBUG ++ ynh_app_setting_get nextcloud user_home
18921 DEBUG ++ sudo yunohost app setting nextcloud user_home --output-as plain --quiet
20326 DEBUG + user_home=0
20327 DEBUG + '[' -z nextcloud ']'
20329 DEBUG + '[' -z /var/www/nextcloud ']'
20330 DEBUG ++ grep OC_VersionString /var/www/nextcloud/version.php
20331 DEBUG ++ cut '-d'\''' -f2
20332 DEBUG + current_version=13.0.6
20333 DEBUG + current_major_version=13
20334 DEBUG + '[' 13 -gt 11 ']'
20335 DEBUG + ynh_app_setting_set nextcloud backup_core_only 1
20336 DEBUG + sudo yunohost app setting nextcloud backup_core_only --value=1 --quiet
21741 DEBUG + ynh_backup_before_upgrade
21742 DEBUG + '[' '!' -e /etc/yunohost/apps/nextcloud/scripts/backup ']'
21743 DEBUG + backup_number=1
21744 DEBUG + local old_backup_number=2
21745 DEBUG + local app_bck=nextcloud
21746 DEBUG + NO_BACKUP_UPGRADE=0
21747 DEBUG + '[' 0 -eq 0 ']'
21748 DEBUG + grep -q nextcloud-pre-upgrade1
21749 DEBUG + sudo yunohost backup list
23254 DEBUG + backup_number=2
23255 DEBUG + old_backup_number=1
23256 DEBUG + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps nextcloud --name nextcloud-pre-upgrade2 --debug
23959 DEBUG 515  loading actions map namespace 'yunohost'
24061 DEBUG 611  extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
24062 DEBUG 611  initializing base actions map parser for cli
24063 DEBUG 616  registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
24666 DEBUG 1179 loading python module yunohost.backup took 0.245s
24667 DEBUG 1179 processing action [10517.1]: yunohost.backup.create with args={'description': None, 'apps': ['nextcloud'], 'system': None, 'output_directory': None, 'methods': None, 'no_compress': False, 'name': 'nextcloud-pre-upgrade2'}
24667 DEBUG 1182 custom hook folder not found for action 'backup' in /etc/yunohost/hooks.d/
24668 DEBUG 1194 Running backup script of app 'nextcloud'…
26374 DEBUG 2889 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpW6_014/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_adq1u8 YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2 YNH_APP_INSTANCE_NAME=nextcloud YNH_APP_ID=nextcloud YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_Uo7FP2" /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup nextcloud 7>&1'…
26376 DEBUG 2891 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpW6_014/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_adq1u8 YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2 YNH_APP_INSTANCE_NAME=nextcloud YNH_APP_ID=nextcloud YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_Uo7FP2" /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup nextcloud 7>&1']'
26478 DEBUG 3037 + '[' '!' -e _common.sh ']'
26479 DEBUG 3038 + cp ../settings/scripts/_common.sh ./_common.sh
26480 DEBUG 3039 + chmod a+rx _common.sh
26481 DEBUG 3040 + source _common.sh
26482 DEBUG 3041 ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient'
26483 DEBUG 3041 +++ lsb_release --codename --short
26785 DEBUG 3343 ++ '[' stretch '!=' jessie ']'
26786 DEBUG 3344 ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml'
26787 DEBUG 3348 + source /usr/share/yunohost/helpers
26788 DEBUG 3349 +++ run-parts --list /usr/share/yunohost/helpers.d
26789 DEBUG 3350 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26790 DEBUG 3350 ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
26791 DEBUG 3351 ++ . /usr/share/yunohost/helpers.d/backend
26792 DEBUG 3352 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26793 DEBUG 3353 ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
26794 DEBUG 3354 ++ . /usr/share/yunohost/helpers.d/filesystem
26795 DEBUG 3355 +++ CAN_BIND=1
26796 DEBUG 3355 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26798 DEBUG 3356 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
26799 DEBUG 3357 ++ . /usr/share/yunohost/helpers.d/getopts
26799 DEBUG 3358 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26801 DEBUG 3358 ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
26802 DEBUG 3359 ++ . /usr/share/yunohost/helpers.d/ip
26803 DEBUG 3360 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26804 DEBUG 3360 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
26806 DEBUG 3361 ++ . /usr/share/yunohost/helpers.d/mysql
26807 DEBUG 3361 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
26809 DEBUG 3362 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26810 DEBUG 3362 ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
26811 DEBUG 3363 ++ . /usr/share/yunohost/helpers.d/network
26813 DEBUG 3364 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26814 DEBUG 3364 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
26817 DEBUG 3365 ++ . /usr/share/yunohost/helpers.d/nodejs
26819 DEBUG 3365 +++ n_install_dir=/opt/node_n
26820 DEBUG 3366 +++ node_version_path=/opt/node_n/n/versions/node
26822 DEBUG 3367 +++ export N_PREFIX=/opt/node_n
26825 DEBUG 3368 +++ N_PREFIX=/opt/node_n
26827 DEBUG 3369 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26830 DEBUG 3370 ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
26831 DEBUG 3371 ++ . /usr/share/yunohost/helpers.d/package
26833 DEBUG 3372 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26834 DEBUG 3373 ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
26836 DEBUG 3375 ++ . /usr/share/yunohost/helpers.d/print
26840 DEBUG 3376 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26842 DEBUG 3377 ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
26843 DEBUG 3378 ++ . /usr/share/yunohost/helpers.d/psql
26844 DEBUG 3379 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26846 DEBUG 3380 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
26847 DEBUG 3381 ++ . /usr/share/yunohost/helpers.d/setting
26848 DEBUG 3382 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26849 DEBUG 3383 ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
26850 DEBUG 3384 ++ . /usr/share/yunohost/helpers.d/string
26851 DEBUG 3396 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26852 DEBUG 3397 ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
26854 DEBUG 3398 ++ . /usr/share/yunohost/helpers.d/system
26855 DEBUG 3400 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26856 DEBUG 3402 ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
26858 DEBUG 3403 ++ . /usr/share/yunohost/helpers.d/user
26859 DEBUG 3405 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
26860 DEBUG 3406 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
26861 DEBUG 3408 ++ . /usr/share/yunohost/helpers.d/utils
26862 DEBUG 3410 + ynh_abort_if_errors
26864 DEBUG 3412 + set -eu
26865 DEBUG 3413 + trap ynh_exit_properly EXIT
26866 DEBUG 3414 + app=nextcloud
26867 DEBUG 3415 ++ ynh_app_setting_get nextcloud final_path
26868 DEBUG 3417 ++ sudo yunohost app setting nextcloud final_path --output-as plain --quiet
28173 DEBUG 4722 + final_path=/var/www/nextcloud
28175 DEBUG 4723 ++ ynh_app_setting_get nextcloud domain
28176 DEBUG 4724 ++ sudo yunohost app setting nextcloud domain --output-as plain --quiet
29481 DEBUG 6029 + domain=mitakuye-oyasin.noho.st
29482 DEBUG 6030 ++ ynh_app_setting_get nextcloud db_name
29483 DEBUG 6030 ++ sudo yunohost app setting nextcloud db_name --output-as plain --quiet
30787 DEBUG 7334 + db_name=nextcloud
30788 DEBUG 7335 + ynh_backup /var/www/nextcloud
30789 DEBUG 7336 + local SRC_PATH=/var/www/nextcloud
30790 DEBUG 7336 + local DEST_PATH=
30791 DEBUG 7337 + local IS_BIG=0
30792 DEBUG 7337 + local NOT_MANDATORY=0
30792 DEBUG 7338 + BACKUP_CORE_ONLY=1
30793 DEBUG 7338 + '[' 0 == 1 ']'
30794 DEBUG 7339 + [[ -e /var/www/nextcloud ]]
30795 DEBUG 7339 ++ realpath /var/www/nextcloud
30896 DEBUG 7440 + SRC_PATH=/var/www/nextcloud
30897 DEBUG 7441 + [[ -z '' ]]
30898 DEBUG 7442 + DEST_PATH=var/www/nextcloud
30899 DEBUG 7443 + [[ ! -e var/www/nextcloud ]]
30901 DEBUG 7443 + local REL_DIR=/apps/nextcloud/backup
30902 DEBUG 7444 + REL_DIR=/apps/nextcloud/backup/
30903 DEBUG 7445 + DEST_PATH=/apps/nextcloud/backup/var/www/nextcloud
30904 DEBUG 7446 + DEST_PATH=apps/nextcloud/backup/var/www/nextcloud
30905 DEBUG 7446 ++ echo /var/www/nextcloud
30907 DEBUG 7447 ++ sed -r 's/"/\"\"/g'
30908 DEBUG 7448 + local SRC=/var/www/nextcloud
30910 DEBUG 7448 ++ echo apps/nextcloud/backup/var/www/nextcloud
30911 DEBUG 7449 ++ sed -r 's/"/\"\"/g'
30913 DEBUG 7450 + local DEST=apps/nextcloud/backup/var/www/nextcloud
30914 DEBUG 7451 + echo '"/var/www/nextcloud","apps/nextcloud/backup/var/www/nextcloud"'
30915 DEBUG 7452 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/var/www/nextcloud
30917 DEBUG 7452 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/var/www
30918 DEBUG 7453 + ynh_backup /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30920 DEBUG 7454 + local SRC_PATH=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30921 DEBUG 7455 + local DEST_PATH=
30922 DEBUG 7456 + local IS_BIG=0
30923 DEBUG 7457 + local NOT_MANDATORY=0
30925 DEBUG 7458 + BACKUP_CORE_ONLY=1
30926 DEBUG 7459 + '[' 0 == 1 ']'
30927 DEBUG 7459 + [[ -e /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf ]]
30928 DEBUG 7460 ++ realpath /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30929 DEBUG 7461 + SRC_PATH=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30931 DEBUG 7462 + [[ -z '' ]]
30932 DEBUG 7462 + DEST_PATH=etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30933 DEBUG 7463 + [[ ! -e etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf ]]
30935 DEBUG 7464 + local REL_DIR=/apps/nextcloud/backup
30936 DEBUG 7465 + REL_DIR=/apps/nextcloud/backup/
30938 DEBUG 7466 + DEST_PATH=/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30939 DEBUG 7467 + DEST_PATH=apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30940 DEBUG 7467 ++ echo /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30942 DEBUG 7468 ++ sed -r 's/"/\"\"/g'
30943 DEBUG 7469 + local SRC=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30944 DEBUG 7470 ++ echo apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30945 DEBUG 7470 ++ sed -r 's/"/\"\"/g'
30946 DEBUG 7471 + local DEST=apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30947 DEBUG 7472 + echo '"/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf","apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf"'
30948 DEBUG 7473 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
30949 DEBUG 7474 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d
30950 DEBUG 7474 + ynh_backup /etc/php/7.0/fpm/pool.d/nextcloud.conf
30951 DEBUG 7475 + local SRC_PATH=/etc/php/7.0/fpm/pool.d/nextcloud.conf
30953 DEBUG 7478 + local DEST_PATH=
30954 DEBUG 7479 + local IS_BIG=0
30955 DEBUG 7480 + local NOT_MANDATORY=0
30956 DEBUG 7481 + BACKUP_CORE_ONLY=1
30957 DEBUG 7482 + '[' 0 == 1 ']'
30958 DEBUG 7482 + [[ -e /etc/php/7.0/fpm/pool.d/nextcloud.conf ]]
30959 DEBUG 7483 ++ realpath /etc/php/7.0/fpm/pool.d/nextcloud.conf
30961 DEBUG 7484 + SRC_PATH=/etc/php/7.0/fpm/pool.d/nextcloud.conf
30963 DEBUG 7485 + [[ -z '' ]]
30964 DEBUG 7485 + DEST_PATH=etc/php/7.0/fpm/pool.d/nextcloud.conf
30966 DEBUG 7486 + [[ ! -e etc/php/7.0/fpm/pool.d/nextcloud.conf ]]
30967 DEBUG 7488 + local REL_DIR=/apps/nextcloud/backup
30968 DEBUG 7490 + REL_DIR=/apps/nextcloud/backup/
30969 DEBUG 7490 + DEST_PATH=/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf
30971 DEBUG 7491 + DEST_PATH=apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf
30973 DEBUG 7492 ++ echo /etc/php/7.0/fpm/pool.d/nextcloud.conf
30974 DEBUG 7493 ++ sed -r 's/"/\"\"/g'
30976 DEBUG 7494 + local SRC=/etc/php/7.0/fpm/pool.d/nextcloud.conf
30977 DEBUG 7495 ++ echo apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf
30978 DEBUG 7496 ++ sed -r 's/"/\"\"/g'
30980 DEBUG 7496 + local DEST=apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf
30982 DEBUG 7497 + echo '"/etc/php/7.0/fpm/pool.d/nextcloud.conf","apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf"'
30983 DEBUG 7498 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf
30985 DEBUG 7499 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d
30986 DEBUG 7500 + ynh_backup /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
30988 DEBUG 7501 + local SRC_PATH=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
30989 DEBUG 7502 + local DEST_PATH=
30990 DEBUG 7502 + local IS_BIG=0
30991 DEBUG 7503 + local NOT_MANDATORY=0
30992 DEBUG 7504 + BACKUP_CORE_ONLY=1
30994 DEBUG 7505 + '[' 0 == 1 ']'
30995 DEBUG 7505 + [[ -e /etc/php/7.0/fpm/conf.d/20-nextcloud.ini ]]
30997 DEBUG 7506 ++ realpath /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
30999 DEBUG 7507 + SRC_PATH=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31000 DEBUG 7507 + [[ -z '' ]]
31002 DEBUG 7508 + DEST_PATH=etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31003 DEBUG 7509 + [[ ! -e etc/php/7.0/fpm/conf.d/20-nextcloud.ini ]]
31004 DEBUG 7509 + local REL_DIR=/apps/nextcloud/backup
31005 DEBUG 7510 + REL_DIR=/apps/nextcloud/backup/
31006 DEBUG 7511 + DEST_PATH=/apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31007 DEBUG 7512 + DEST_PATH=apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31008 DEBUG 7512 ++ echo /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31010 DEBUG 7513 ++ sed -r 's/"/\"\"/g'
31012 DEBUG 7514 + local SRC=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31013 DEBUG 7515 ++ echo apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31015 DEBUG 7516 ++ sed -r 's/"/\"\"/g'
31016 DEBUG 7516 + local DEST=apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31018 DEBUG 7517 + echo '"/etc/php/7.0/fpm/conf.d/20-nextcloud.ini","apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini"'
31019 DEBUG 7518 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
31021 DEBUG 7519 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/conf.d
31022 DEBUG 7520 + ynh_mysql_dump_db nextcloud
31024 DEBUG 7520 ++ sudo cat /etc/yunohost/mysql
31126 DEBUG 7622 + mysqldump -u root -pGjxXdPt4z5 --single-transaction --skip-dump-date nextcloud
37455 DEBUG 13939 + ynh_backup /etc/logrotate.d/nextcloud
37456 DEBUG 13939 + local SRC_PATH=/etc/logrotate.d/nextcloud
37457 DEBUG 13940 + local DEST_PATH=
37458 DEBUG 13940 + local IS_BIG=0
37459 DEBUG 13941 + local NOT_MANDATORY=0
37461 DEBUG 13942 + BACKUP_CORE_ONLY=1
37462 DEBUG 13943 + '[' 0 == 1 ']'
37464 DEBUG 13944 + [[ -e /etc/logrotate.d/nextcloud ]]
37465 DEBUG 13945 ++ realpath /etc/logrotate.d/nextcloud
37566 DEBUG 14046 + SRC_PATH=/etc/logrotate.d/nextcloud
37567 DEBUG 14047 + [[ -z '' ]]
37568 DEBUG 14048 + DEST_PATH=etc/logrotate.d/nextcloud
37569 DEBUG 14049 + [[ ! -e etc/logrotate.d/nextcloud ]]
37570 DEBUG 14050 + local REL_DIR=/apps/nextcloud/backup
37571 DEBUG 14051 + REL_DIR=/apps/nextcloud/backup/
37571 DEBUG 14052 + DEST_PATH=/apps/nextcloud/backup/etc/logrotate.d/nextcloud
37572 DEBUG 14053 + DEST_PATH=apps/nextcloud/backup/etc/logrotate.d/nextcloud
37573 DEBUG 14054 ++ echo /etc/logrotate.d/nextcloud
37574 DEBUG 14054 ++ sed -r 's/"/\"\"/g'
37574 DEBUG 14055 + local SRC=/etc/logrotate.d/nextcloud
37575 DEBUG 14056 ++ echo apps/nextcloud/backup/etc/logrotate.d/nextcloud
37576 DEBUG 14056 ++ sed -r 's/"/\"\"/g'
37577 DEBUG 14057 + local DEST=apps/nextcloud/backup/etc/logrotate.d/nextcloud
37577 DEBUG 14060 + echo '"/etc/logrotate.d/nextcloud","apps/nextcloud/backup/etc/logrotate.d/nextcloud"'
37578 DEBUG 14062 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/logrotate.d/nextcloud
37579 DEBUG 14063 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/logrotate.d
37579 DEBUG 14064 + ynh_backup /etc/cron.d/nextcloud
37580 DEBUG 14065 + local SRC_PATH=/etc/cron.d/nextcloud
37581 DEBUG 14065 + local DEST_PATH=
37582 DEBUG 14066 + local IS_BIG=0
37584 DEBUG 14067 + local NOT_MANDATORY=0
37585 DEBUG 14068 + BACKUP_CORE_ONLY=1
37586 DEBUG 14069 + '[' 0 == 1 ']'
37587 DEBUG 14070 + [[ -e /etc/cron.d/nextcloud ]]
37589 DEBUG 14071 ++ realpath /etc/cron.d/nextcloud
37590 DEBUG 14072 + SRC_PATH=/etc/cron.d/nextcloud
37591 DEBUG 14073 + [[ -z '' ]]
37593 DEBUG 14074 + DEST_PATH=etc/cron.d/nextcloud
37594 DEBUG 14074 + [[ ! -e etc/cron.d/nextcloud ]]
37595 DEBUG 14075 + local REL_DIR=/apps/nextcloud/backup
37596 DEBUG 14076 + REL_DIR=/apps/nextcloud/backup/
37598 DEBUG 14077 + DEST_PATH=/apps/nextcloud/backup/etc/cron.d/nextcloud
37598 DEBUG 14078 + DEST_PATH=apps/nextcloud/backup/etc/cron.d/nextcloud
37599 DEBUG 14079 ++ echo /etc/cron.d/nextcloud
37601 DEBUG 14080 ++ sed -r 's/"/\"\"/g'
37602 DEBUG 14081 + local SRC=/etc/cron.d/nextcloud
37603 DEBUG 14082 ++ echo apps/nextcloud/backup/etc/cron.d/nextcloud
37604 DEBUG 14082 ++ sed -r 's/"/\"\"/g'
37605 DEBUG 14083 + local DEST=apps/nextcloud/backup/etc/cron.d/nextcloud
37606 DEBUG 14084 + echo '"/etc/cron.d/nextcloud","apps/nextcloud/backup/etc/cron.d/nextcloud"'
37607 DEBUG 14085 ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/cron.d/nextcloud
37609 DEBUG 14086 + mkdir -p /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/cron.d
37611 DEBUG 14086 ++ ynh_app_setting_get nextcloud backup_core_only
37612 DEBUG 14087 ++ sudo yunohost app setting nextcloud backup_core_only --output-as plain --quiet
38922 DEBUG 15405 + backup_core_only=1
38923 WARNING 15405 Data dir will not be saved, because backup_core_only is set.
38924 DEBUG 15406 + '[' -z 1 ']'
38925 DEBUG 15406 + echo 'Data dir will not be saved, because backup_core_only is set.'
38926 DEBUG 15407 + ynh_exit_properly
38926 DEBUG 15407 + local exit_code=0
38927 DEBUG 15408 + '[' 0 -eq 0 ']'
38928 DEBUG 15408 + exit 0
42338 DEBUG 18849 Creating the backup tar archive…
473625 DEBUG 450158 Backup tar archive created
473658 DEBUG 450159 Backup created
473660 DEBUG 450159 action [10517.1] executed in 448.979s
473661 DEBUG name: nextcloud-pre-upgrade2
473663 DEBUG results:
473664 DEBUG   apps:
473665 DEBUG     nextcloud: Success
473666 DEBUG   system:
473668 DEBUG size: 696805033
474471 DEBUG + '[' 0 -eq 0 ']'
474505 DEBUG + sudo yunohost backup list
474506 DEBUG + grep -q nextcloud-pre-upgrade1
477917 DEBUG + sudo yunohost backup delete nextcloud-pre-upgrade1
479524 DEBUG + ynh_abort_if_errors
479525 DEBUG + set -eu
479526 DEBUG + trap ynh_exit_properly EXIT
479527 DEBUG + ynh_handle_app_migration owncloud owncloud_migration
479528 DEBUG + old_app=nextcloud
479530 DEBUG + local old_app_id=nextcloud
479532 DEBUG + local old_app_number=1
479534 DEBUG + local migration_id=owncloud
479535 DEBUG + local migration_list=owncloud_migration
479537 DEBUG ++ grep '"id":' ../manifest.json
479539 DEBUG ++ cut '-d"' -f4
479541 DEBUG + local new_app_id=nextcloud
479542 DEBUG + '[' 1 -eq 1 ']'
479543 DEBUG + local new_app=nextcloud
479544 DEBUG + migration_process=0
479546 DEBUG + '[' nextcloud == nextcloud ']'
479547 DEBUG + echo 0
479548 DEBUG 0
479549 DEBUG + return 0
479551 DEBUG + '[' 0 -eq 1 ']'
479553 DEBUG ++ ynh_normalize_url_path /nextcloud
479554 DEBUG ++ local path_url=/nextcloud
479555 DEBUG ++ test -n /nextcloud
479557 DEBUG ++ '[' / '!=' / ']'
479558 DEBUG ++ '[' d == / ']'
479559 DEBUG ++ echo /nextcloud
479561 DEBUG + path_url=/nextcloud
479562 DEBUG + ynh_remove_nginx_config
479563 DEBUG + ynh_secure_remove /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
479564 DEBUG + local path_to_remove=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
479565 DEBUG + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
479566 DEBUG + [[  	/var/www 	/home/yunohost.app =~ /etc/nginx/conf\.d/mitakuye-oyasin\.noho\.st\.d/nextcloud\.conf ]]
479567 DEBUG + [[ /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf =~ ^/[[:alnum:]]+$ ]]
479569 DEBUG + [[ f = \/ ]]
479570 DEBUG + '[' -e /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf ']'
479571 DEBUG + sudo rm -R /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
479673 DEBUG + sudo systemctl reload nginx
481581 DEBUG + ynh_app_setting_delete nextcloud checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf
481583 DEBUG + sudo yunohost app setting -d nextcloud checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf --quiet
483091 DEBUG + is_url_handled https://mitakuye-oyasin.noho.st/.well-known/caldav
483092 DEBUG + output=($(curl -k -s -o /dev/null       -w 'x%{redirect_url} %{http_code}' "$1"))
483092 DEBUG ++ curl -k -s -o /dev/null -w 'x%{redirect_url} %{http_code}' https://mitakuye-oyasin.noho.st/.well-known/caldav
483696 DEBUG + local output
483698 DEBUG + [[ ! x =~ /yunohost/sso/ ]]
483699 DEBUG + [[ 404 != 404 ]]
483701 DEBUG + path_url_slash_less=/nextcloud
483703 DEBUG + ynh_replace_string __PATH__/ /nextcloud/ ../conf/nginx.conf
483705 DEBUG + local delimit=@
483707 DEBUG + local match_string=__PATH__/
483709 DEBUG + local replace_string=/nextcloud/
483711 DEBUG + local workfile=../conf/nginx.conf
483714 DEBUG + match_string=__PATH__/
483716 DEBUG + replace_string=/nextcloud/
483718 DEBUG + sudo sed --in-place s@__PATH__/@/nextcloud/@g ../conf/nginx.conf
483821 DEBUG + ynh_add_nginx_config
483822 DEBUG + finalnginxconf=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
483823 DEBUG + local others_var=
483824 DEBUG + ynh_backup_if_checksum_is_different /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
483825 DEBUG + local file=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
483826 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf
483826 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf
483827 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf --output-as plain --quiet
485232 DEBUG + local checksum_value=
485233 DEBUG + '[' -n '' ']'
485234 DEBUG + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485335 DEBUG + test -n /nextcloud
485336 DEBUG + local path_url_slash_less=/nextcloud
485337 DEBUG + ynh_replace_string __PATH__/ /nextcloud/ /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485337 DEBUG + local delimit=@
485338 DEBUG + local match_string=__PATH__/
485339 DEBUG + local replace_string=/nextcloud/
485339 DEBUG + local workfile=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485340 DEBUG + match_string=__PATH__/
485340 DEBUG + replace_string=/nextcloud/
485347 DEBUG + sudo sed --in-place s@__PATH__/@/nextcloud/@g /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485450 DEBUG + ynh_replace_string __PATH__ /nextcloud /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485452 DEBUG + local delimit=@
485453 DEBUG + local match_string=__PATH__
485454 DEBUG + local replace_string=/nextcloud
485455 DEBUG + local workfile=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485456 DEBUG + match_string=__PATH__
485457 DEBUG + replace_string=/nextcloud
485458 DEBUG + sudo sed --in-place s@__PATH__@/nextcloud@g /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485459 DEBUG + test -n mitakuye-oyasin.noho.st
485461 DEBUG + ynh_replace_string __DOMAIN__ mitakuye-oyasin.noho.st /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485462 DEBUG + local delimit=@
485463 DEBUG + local match_string=__DOMAIN__
485464 DEBUG + local replace_string=mitakuye-oyasin.noho.st
485465 DEBUG + local workfile=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485466 DEBUG + match_string=__DOMAIN__
485467 DEBUG + replace_string=mitakuye-oyasin.noho.st
485468 DEBUG + sudo sed --in-place s@__DOMAIN__@mitakuye-oyasin.noho.st@g /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485571 DEBUG + test -n ''
485573 DEBUG + test -n nextcloud
485575 DEBUG + ynh_replace_string __NAME__ nextcloud /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485579 DEBUG + local delimit=@
485581 DEBUG + local match_string=__NAME__
485583 DEBUG + local replace_string=nextcloud
485585 DEBUG + local workfile=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485586 DEBUG + match_string=__NAME__
485588 DEBUG + replace_string=nextcloud
485589 DEBUG + sudo sed --in-place s@__NAME__@nextcloud@g /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485691 DEBUG + test -n /var/www/nextcloud
485693 DEBUG + ynh_replace_string __FINALPATH__ /var/www/nextcloud /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485694 DEBUG + local delimit=@
485695 DEBUG + local match_string=__FINALPATH__
485696 DEBUG + local replace_string=/var/www/nextcloud
485697 DEBUG + local workfile=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485698 DEBUG + match_string=__FINALPATH__
485699 DEBUG + replace_string=/var/www/nextcloud
485700 DEBUG + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485702 DEBUG + '[' /nextcloud '!=' / ']'
485703 DEBUG + ynh_replace_string '^#sub_path_only' '' /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485704 DEBUG + local delimit=@
485706 DEBUG + local 'match_string=^#sub_path_only'
485707 DEBUG + local replace_string=
485708 DEBUG + local workfile=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485709 DEBUG + match_string='^#sub_path_only'
485710 DEBUG + replace_string=
485712 DEBUG + sudo sed --in-place 's@^#sub_path_only@@g' /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485813 DEBUG + ynh_store_file_checksum /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485814 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf
485815 DEBUG ++ sudo md5sum /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
485816 DEBUG ++ cut '-d ' -f1
485918 DEBUG + ynh_app_setting_set nextcloud checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf 43a147b3f6bcecc9ede756076dddb7fa
485922 DEBUG + sudo yunohost app setting nextcloud checksum__etc_nginx_conf.d_mitakuye-oyasin.noho.st.d_nextcloud.conf --value=43a147b3f6bcecc9ede756076dddb7fa --quiet
487328 DEBUG + sudo systemctl reload nginx
487631 DEBUG + ynh_system_user_create nextcloud
487632 DEBUG + local legacy_args=uh
487633 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
487634 DEBUG + declare -Ar args_array
487635 DEBUG + local username
487636 DEBUG + local home_dir
487637 DEBUG + local use_shell
487638 DEBUG + ynh_handle_getopts_args nextcloud
487639 DEBUG + set +x
487640 DEBUG + echo '! Helper used in legacy mode !'
487641 DEBUG + set +x
487642 DEBUG + use_shell=0
487643 DEBUG + home_dir=
487644 DEBUG + ynh_system_user_exists nextcloud
487645 DEBUG + getent passwd nextcloud
487646 DEBUG + ynh_add_fpm_config
487647 DEBUG + local fpm_config_dir=/etc/php/7.0/fpm
487649 DEBUG + local fpm_service=php7.0-fpm
487650 DEBUG ++ ynh_get_debian_release
487651 DEBUG +++ lsb_release --codename --short
489157 DEBUG ++ echo stretch
489158 DEBUG + '[' stretch == jessie ']'
489160 DEBUG + ynh_app_setting_set nextcloud fpm_config_dir /etc/php/7.0/fpm
489161 DEBUG + sudo yunohost app setting nextcloud fpm_config_dir --value=/etc/php/7.0/fpm --quiet
490567 DEBUG + ynh_app_setting_set nextcloud fpm_service php7.0-fpm
490569 DEBUG + sudo yunohost app setting nextcloud fpm_service --value=php7.0-fpm --quiet
491975 DEBUG + finalphpconf=/etc/php/7.0/fpm/pool.d/nextcloud.conf
491976 DEBUG + ynh_backup_if_checksum_is_different /etc/php/7.0/fpm/pool.d/nextcloud.conf
491977 DEBUG + local file=/etc/php/7.0/fpm/pool.d/nextcloud.conf
491978 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
491979 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
491980 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf --output-as plain --quiet
493286 DEBUG + local checksum_value=0ea535d3c58a711067615674add57e8d
493294 DEBUG + '[' -n 0ea535d3c58a711067615674add57e8d ']'
493295 DEBUG + sudo md5sum -c --status
493296 DEBUG + echo '0ea535d3c58a711067615674add57e8d /etc/php/7.0/fpm/pool.d/nextcloud.conf'
493400 DEBUG + sudo cp ../conf/php-fpm.conf /etc/php/7.0/fpm/pool.d/nextcloud.conf
493501 DEBUG + ynh_replace_string __NAMETOCHANGE__ nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
493502 DEBUG + local delimit=@
493503 DEBUG + local match_string=__NAMETOCHANGE__
493505 DEBUG + local replace_string=nextcloud
493507 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
493509 DEBUG + match_string=__NAMETOCHANGE__
493510 DEBUG + replace_string=nextcloud
493511 DEBUG + sudo sed --in-place s@__NAMETOCHANGE__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
493613 DEBUG + ynh_replace_string __FINALPATH__ /var/www/nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
493614 DEBUG + local delimit=@
493615 DEBUG + local match_string=__FINALPATH__
493616 DEBUG + local replace_string=/var/www/nextcloud
493616 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
493618 DEBUG + match_string=__FINALPATH__
493619 DEBUG + replace_string=/var/www/nextcloud
493620 DEBUG + sudo sed --in-place s@__FINALPATH__@/var/www/nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
493621 DEBUG + ynh_replace_string __USER__ nextcloud /etc/php/7.0/fpm/pool.d/nextcloud.conf
493622 DEBUG + local delimit=@
493623 DEBUG + local match_string=__USER__
493624 DEBUG + local replace_string=nextcloud
493625 DEBUG + local workfile=/etc/php/7.0/fpm/pool.d/nextcloud.conf
493625 DEBUG + match_string=__USER__
493626 DEBUG + replace_string=nextcloud
493627 DEBUG + sudo sed --in-place s@__USER__@nextcloud@g /etc/php/7.0/fpm/pool.d/nextcloud.conf
493728 DEBUG + sudo chown root: /etc/php/7.0/fpm/pool.d/nextcloud.conf
493830 DEBUG + ynh_store_file_checksum /etc/php/7.0/fpm/pool.d/nextcloud.conf
493831 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf
493832 DEBUG ++ sudo md5sum /etc/php/7.0/fpm/pool.d/nextcloud.conf
493832 DEBUG ++ cut '-d ' -f1
493934 DEBUG + ynh_app_setting_set nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf 0ea535d3c58a711067615674add57e8d
493935 DEBUG + sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_pool.d_nextcloud.conf --value=0ea535d3c58a711067615674add57e8d --quiet
495245 DEBUG + '[' -e ../conf/php-fpm.ini ']'
495246 WARNING Packagers ! Please do not use a separate php ini file, merge your directives in the pool file instead.
495246 DEBUG + echo 'Packagers ! Please do not use a separate php ini file, merge your directives in the pool file instead.'
495247 DEBUG + finalphpini=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
495248 DEBUG + ynh_backup_if_checksum_is_different /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
495249 DEBUG + local file=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
495250 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
495251 DEBUG ++ ynh_app_setting_get nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
495252 DEBUG ++ sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini --output-as plain --quiet
496656 DEBUG + local checksum_value=7cc18daa488e0a723d4d06d09a294dee
496657 DEBUG + '[' -n 7cc18daa488e0a723d4d06d09a294dee ']'
496658 DEBUG + echo '7cc18daa488e0a723d4d06d09a294dee /etc/php/7.0/fpm/conf.d/20-nextcloud.ini'
496659 DEBUG + sudo md5sum -c --status
496660 DEBUG + sudo cp ../conf/php-fpm.ini /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
496762 DEBUG + sudo chown root: /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
496867 DEBUG + ynh_store_file_checksum /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
496870 DEBUG + local checksum_setting_name=checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini
496871 DEBUG ++ sudo md5sum /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
496872 DEBUG ++ cut '-d ' -f1
496974 DEBUG + ynh_app_setting_set nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini 7cc18daa488e0a723d4d06d09a294dee
496975 DEBUG + sudo yunohost app setting nextcloud checksum__etc_php_7.0_fpm_conf.d_20-nextcloud.ini --value=7cc18daa488e0a723d4d06d09a294dee --quiet
498280 DEBUG + sudo systemctl reload php7.0-fpm
498489 DEBUG + ynh_install_app_dependencies php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient at php-zip php-apcu php-mbstring php-xml
498491 DEBUG + local 'dependencies=php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient at php-zip php-apcu php-mbstring php-xml'
498492 DEBUG + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, at, php-zip, php-apcu, php-mbstring, php-xml'
498493 DEBUG + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, at, php-zip, php-apcu, php-mbstring, php-xml'
498494 DEBUG + local manifest_path=../manifest.json
498496 DEBUG + '[' '!' -e ../manifest.json ']'
498497 DEBUG ++ grep '\"version\": ' ../manifest.json
498498 DEBUG ++ cut -d '"' -f 4
498499 DEBUG + local version=15.0.4~ynh1
498501 DEBUG + '[' 11 -eq 0 ']'
498503 DEBUG + local dep_app=nextcloud
498504 DEBUG + cat
498505 DEBUG + ynh_package_install_from_equivs /tmp/nextcloud-ynh-deps.control
498506 DEBUG + local controlfile=/tmp/nextcloud-ynh-deps.control
498507 DEBUG ++ grep '^Package: ' /tmp/nextcloud-ynh-deps.control
498508 DEBUG ++ cut '-d ' -f 2
498510 DEBUG + local pkgname=nextcloud-ynh-deps
498512 DEBUG ++ grep '^Version: ' /tmp/nextcloud-ynh-deps.control
498513 DEBUG ++ cut '-d ' -f 2
498515 DEBUG + local pkgversion=15.0.4~ynh1
498516 DEBUG + [[ -z nextcloud-ynh-deps ]]
498518 DEBUG + [[ -z 15.0.4~ynh1 ]]
498520 DEBUG + ynh_package_update
498521 DEBUG + ynh_apt update
498523 DEBUG + ynh_wait_dpkg_free
498524 DEBUG + local try
498524 DEBUG ++ seq 1 17
498526 DEBUG + for try in `seq 1 17`
498527 DEBUG + sudo lsof /var/lib/dpkg/lock
499129 DEBUG + return 0
499131 DEBUG + DEBIAN_FRONTEND=noninteractive
499133 DEBUG + sudo apt-get -y update
499737 DEBUG Hit:1 http://forge.yunohost.org/debian stretch InRelease
504666 DEBUG Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
504668 DEBUG Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
510085 DEBUG Reading package lists...
510287 DEBUG ++ mktemp -d
510289 DEBUG + local TMPDIR=/tmp/tmp.gI71adWpuB
510290 DEBUG + echo 10
510592 DEBUG + ynh_wait_dpkg_free
510594 DEBUG + local try
510595 DEBUG ++ seq 1 17
510596 DEBUG + for try in `seq 1 17`
510598 DEBUG + sudo lsof /var/lib/dpkg/lock
511101 DEBUG + return 0
511102 DEBUG + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.gI71adWpuB/control
511104 DEBUG + cd /tmp/tmp.gI71adWpuB
511105 DEBUG + equivs-build ./control
517333 DEBUG + dpkg --force-depends -i ./nextcloud-ynh-deps_15.0.4~ynh1_all.deb
523251 DEBUG (Reading database ... 60278 files and directories currently installed.)
523252 DEBUG Preparing to unpack .../nextcloud-ynh-deps_15.0.4~ynh1_all.deb ...
523353 DEBUG Unpacking nextcloud-ynh-deps (15.0.4~ynh1) over (13.0.6~ynh1) ...
523455 DEBUG dpkg: nextcloud-ynh-deps: dependency problems, but configuring anyway as you requested:
523456 DEBUG  nextcloud-ynh-deps depends on at; however:
523457 DEBUG   Package at is not installed.
523458 DEBUG 
523459 DEBUG Setting up nextcloud-ynh-deps (15.0.4~ynh1) ...
523560 DEBUG + ynh_package_install -f
523561 DEBUG + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
523563 DEBUG + ynh_wait_dpkg_free
523564 DEBUG + local try
523565 DEBUG ++ seq 1 17
523567 DEBUG + for try in `seq 1 17`
523569 DEBUG + sudo lsof /var/lib/dpkg/lock
524071 DEBUG + return 0
524073 DEBUG + DEBIAN_FRONTEND=noninteractive
524074 DEBUG + sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
524978 DEBUG Reading package lists...
525881 DEBUG Building dependency tree...
525882 DEBUG Reading state information...
526686 DEBUG Correcting dependencies... Done
527690 DEBUG The following additional packages will be installed:
527691 DEBUG   at
527792 DEBUG The following NEW packages will be installed:
527794 DEBUG   at
536625 DEBUG 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                                                                           536627 DEBUG Need to get 0 B/44.4 kB of archives.
                                                                                                                            536628 DEBUG After this operation, 130 kB of additional disk space will be used.
                                                                       536729 DEBUG Selecting previously unselected package at.
                                                                                                                               536831(Reading database ... 60278 files and directories currently installed.)
                                                                       536833 DEBUG Preparing to unpack .../archives/at_3.1.20-3_armhf.deb ...
         536835 DEBUG Unpacking at (3.1.20-3) ...
                                                 537339 DEBUG Setting up at (3.1.20-3) ...
                                                                                          538242 DEBUG Created symlink /etc/systemd/system/multi-user.target.wants/atd.service → /lib/systemd/system/atd.service.
                                                                            542757 DEBUG Processing triggers for systemd (232-25+deb9u9) ...
       543260 DEBUG Processing triggers for man-db (2.7.6.1-2) ...
                                                                  546774 DEBUG + [[ -n /tmp/tmp.gI71adWpuB ]]
546775 DEBUG + rm -rf /tmp/tmp.gI71adWpuB
546776 DEBUG + ynh_package_is_installed nextcloud-ynh-deps
546777 DEBUG + ynh_wait_dpkg_free
546778 DEBUG + local try
546779 DEBUG ++ seq 1 17
546780 DEBUG + for try in `seq 1 17`
546782 DEBUG + sudo lsof /var/lib/dpkg/lock
547285 DEBUG + return 0
547287 DEBUG + grep -c 'ok installed'
547288 DEBUG + dpkg-query -W -f '${Status}' nextcloud-ynh-deps
547390 DEBUG + rm /tmp/nextcloud-ynh-deps.control
547392 DEBUG + ynh_app_setting_set nextcloud apt_dependencies php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, at, php-zip, php-apcu, php-mbstring, php-xml
547395 DEBUG + sudo yunohost app setting nextcloud apt_dependencies --value=php7.0-gd, --quiet
548801 DEBUG + source upgrade.d/upgrade.last.sh
548903 DEBUG ++ next_version=15.0.4
548904 DEBUG ++ nextcloud_source_sha256=f87db047c174f563e391a22c959d9ace767ca14ef0f97fc394f3061fc63d8f77
548906 DEBUG + last_version=15.0.4
548907 DEBUG + datadir=/home/yunohost.app/nextcloud/data
548908 DEBUG + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
588725 DEBUG + exec_occ -V
588727 DEBUG + cd /var/www/nextcloud
588728 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi -V
588729 DEBUG + local USER=nextcloud
588730 DEBUG + shift 1
588731 DEBUG ++ whoami
588833 DEBUG + [[ nextcloud = root ]]
588834 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi -V
590942 DEBUG Nextcloud 13.0.6
591044 DEBUG + '[' 15.0.4 '!=' 13.0.6 ']'
591151 WARNING 
591154 DEBUG + major_version=15
591156 WARNING Upgrade to nextcloud 14.0.0
591156 WARNING Upgrade to nextcloud 14.0.0
591159 DEBUG + current_major_version=13
591161 DEBUG + '[' 15 -eq 13 ']'
591164 DEBUG + source upgrade.d/upgrade.13.sh
591166 DEBUG ++ next_version=14.0.0
591168 DEBUG ++ nextcloud_source_sha256=f965c14286e7aabbfe49c947d86af59597af302c35d10e0b5440e7e6c53b8f47
591171 DEBUG + echo -e '\nUpgrade to nextcloud 14.0.0'
591174 DEBUG + cp ../conf/app.src.default ../conf/app.src
591179 DEBUG + ynh_replace_string __VERSION__ 14.0.0 ../conf/app.src
591182 DEBUG + local delimit=@
591185 DEBUG + local match_string=__VERSION__
591187 DEBUG + local replace_string=14.0.0
591190 DEBUG + local workfile=../conf/app.src
591193 DEBUG + match_string=__VERSION__
591195 DEBUG + replace_string=14.0.0
591197 DEBUG + sudo sed --in-place s@__VERSION__@14.0.0@g ../conf/app.src
591302 DEBUG + ynh_replace_string __SHA256_SUM__ f965c14286e7aabbfe49c947d86af59597af302c35d10e0b5440e7e6c53b8f47 ../conf/app.src
591305 DEBUG + local delimit=@
591306 DEBUG + local match_string=__SHA256_SUM__
591308 DEBUG + local replace_string=f965c14286e7aabbfe49c947d86af59597af302c35d10e0b5440e7e6c53b8f47
591309 DEBUG + local workfile=../conf/app.src
591311 DEBUG + match_string=__SHA256_SUM__
591312 DEBUG + replace_string=f965c14286e7aabbfe49c947d86af59597af302c35d10e0b5440e7e6c53b8f47
591313 DEBUG + sudo sed --in-place s@__SHA256_SUM__@f965c14286e7aabbfe49c947d86af59597af302c35d10e0b5440e7e6c53b8f47@g ../conf/app.src
591415 DEBUG ++ ynh_smart_mktemp 300
591416 DEBUG ++ local min_size=300
591418 DEBUG ++ min_size=307200
591420 DEBUG ++ is_there_enough_space /tmp
591421 DEBUG +++ df --output=avail /tmp
591423 DEBUG +++ sed 1d
591424 DEBUG ++ local free_space=96141404
591425 DEBUG ++ test 96141404 -ge 307200
591426 DEBUG ++ local tmpdir=/tmp
591428 DEBUG +++ sudo mktemp --directory --tmpdir=/tmp
591529 DEBUG ++ echo /tmp/tmp.2w9n2XehBp
591531 DEBUG + tmpdir=/tmp/tmp.2w9n2XehBp
591532 DEBUG + ynh_setup_source /tmp/tmp.2w9n2XehBp
591533 DEBUG + local dest_dir=/tmp/tmp.2w9n2XehBp
591534 DEBUG + local src_id=app
591534 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
591535 DEBUG ++ cut -d= -f2-
591537 DEBUG + local src_url=https://download.nextcloud.com/server/releases/nextcloud-14.0.0.tar.bz2
591538 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
591540 DEBUG ++ cut -d= -f2-
591541 DEBUG + local src_sum=f965c14286e7aabbfe49c947d86af59597af302c35d10e0b5440e7e6c53b8f47
591543 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
591544 DEBUG ++ cut -d= -f2-
591545 DEBUG + local src_sumprg=sha256sum
591547 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
591549 DEBUG ++ cut -d= -f2-
591551 DEBUG + local src_format=tar.bz2
591552 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
591553 DEBUG ++ cut -d= -f2-
591555 DEBUG + local src_extract=
591556 DEBUG ++ cut -d= -f2-
591558 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
591560 DEBUG + local src_in_subdir=true
591562 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
591563 DEBUG ++ cut -d= -f2-
591564 DEBUG + local src_filename=
591565 DEBUG + src_sumprg=sha256sum
591566 DEBUG + src_in_subdir=true
591567 DEBUG + src_format=tar.bz2
591568 DEBUG ++ echo tar.bz2
591569 DEBUG ++ tr '[:upper:]' '[:lower:]'
591670 DEBUG + src_format=tar.bz2
591671 DEBUG + src_extract=true
591672 DEBUG + '[' '' = '' ']'
591673 DEBUG + src_filename=app.tar.bz2
591674 DEBUG + local local_src=/opt/yunohost-apps-src/nextcloud/app.tar.bz2
591675 DEBUG + test -e /opt/yunohost-apps-src/nextcloud/app.tar.bz2
591675 DEBUG ++ wget -nv -O app.tar.bz2 https://download.nextcloud.com/server/releases/nextcloud-14.0.0.tar.bz2
599906 DEBUG + local 'out=2019-02-23 13:42:37 URL:https://download.nextcloud.com/server/releases/nextcloud-14.0.0.tar.bz2 [49762528/49762528] -> "app.tar.bz2" [1]'
599908 DEBUG + echo 'f965c14286e7aabbfe49c947d86af59597af302c35d10e0b5440e7e6c53b8f47 app.tar.bz2'
599909 DEBUG + sha256sum -c --status
600812 DEBUG + mkdir -p /tmp/tmp.2w9n2XehBp
600814 DEBUG + true
600815 DEBUG + '[' tar.bz2 = zip ']'
600815 DEBUG + local strip=
600816 DEBUG + true
600817 DEBUG + strip='--strip-components 1'
600818 DEBUG + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]]
600819 DEBUG + tar -xf app.tar.bz2 -C /tmp/tmp.2w9n2XehBp --strip-components 1
638878 DEBUG ++ wc -l
638951 DEBUG ++ find /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../sources/patches/ -type f -name 'app-*.patch'
639052 DEBUG + ((  0 > 0  ))
639053 DEBUG + test -e /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../sources/extra_files/app
639054 DEBUG + exec_occ maintenance:mode --on
639055 DEBUG + cd /var/www/nextcloud
639055 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi maintenance:mode --on
639056 DEBUG + local USER=nextcloud
639057 DEBUG + shift 1
639057 DEBUG ++ whoami
639058 DEBUG + [[ nextcloud = root ]]
639059 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi maintenance:mode --on
643172 DEBUG Maintenance mode enabled
643273 DEBUG + cp -a /var/www/nextcloud/config/config.php /tmp/tmp.2w9n2XehBp/config/config.php
643275 DEBUG + cp -a --update /var/www/nextcloud/apps /tmp/tmp.2w9n2XehBp
728473 DEBUG + ynh_secure_remove /var/www/nextcloud
728545 DEBUG + local path_to_remove=/var/www/nextcloud
728546 DEBUG + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
728547 DEBUG + [[  	/var/www 	/home/yunohost.app =~ /var/www/nextcloud ]]
728548 DEBUG + [[ /var/www/nextcloud =~ ^/[[:alnum:]]+$ ]]
728550 DEBUG + [[ d = \/ ]]
728552 DEBUG + '[' -e /var/www/nextcloud ']'
728553 DEBUG + sudo rm -R /var/www/nextcloud
736278 DEBUG + mv /tmp/tmp.2w9n2XehBp /var/www/nextcloud
736580 DEBUG + ynh_secure_remove /tmp/tmp.2w9n2XehBp
736583 WARNING /tmp/tmp.2w9n2XehBp wasn't deleted because it doesn't exist.
736585 DEBUG + local path_to_remove=/tmp/tmp.2w9n2XehBp
736587 DEBUG + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
736588 DEBUG + [[  	/var/www 	/home/yunohost.app =~ /tmp/tmp\.2w9n2XehBp ]]
736591 DEBUG + [[ /tmp/tmp.2w9n2XehBp =~ ^/[[:alnum:]]+$ ]]
736593 DEBUG + [[ p = \/ ]]
736595 DEBUG + '[' -e /tmp/tmp.2w9n2XehBp ']'
736597 DEBUG + echo '/tmp/tmp.2w9n2XehBp wasn'\''t deleted because it doesn'\''t exist.'
736600 DEBUG + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
791889 DEBUG + exec_occ maintenance:mode --off
791890 DEBUG + cd /var/www/nextcloud
791891 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi maintenance:mode --off
791892 DEBUG + local USER=nextcloud
791893 DEBUG + shift 1
791895 DEBUG ++ whoami
791896 DEBUG + [[ nextcloud = root ]]
791898 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi maintenance:mode --off
795109 DEBUG Nextcloud or one of the apps require upgrade - only a limited number of commands are available
795111 DEBUG You may use your browser or the occ upgrade command to do the upgrade
795213 DEBUG Maintenance mode disabled
795316 DEBUG + exec_occ upgrade
795317 DEBUG + cd /var/www/nextcloud
795318 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi upgrade
795318 DEBUG + local USER=nextcloud
795319 DEBUG + shift 1
795320 DEBUG ++ whoami
795321 DEBUG + [[ nextcloud = root ]]
795322 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi upgrade
797931 DEBUG Nextcloud or one of the apps require upgrade - only a limited number of commands are available
797933 DEBUG You may use your browser or the occ upgrade command to do the upgrade
798034 DEBUG Set log level to debug
798035 DEBUG Turned on maintenance mode
799240 DEBUG Updating database schema
812280 DEBUG Updated database
812281 DEBUG Disabled incompatible app: spreed
812282 DEBUG Updating <federatedfilesharing> ...
812985 DEBUG Updated <federatedfilesharing> to 1.4.0
812986 DEBUG Updating <files_pdfviewer> ...
813588 DEBUG Updated <files_pdfviewer> to 1.3.2
813590 DEBUG Updating <files_texteditor> ...
814193 DEBUG Updated <files_texteditor> to 2.6.0
814294 DEBUG Updating <files_videoplayer> ...
814900 DEBUG Updated <files_videoplayer> to 1.3.0
814902 DEBUG Updating <gallery> ...
815505 DEBUG Updated <gallery> to 18.1.0
815506 DEBUG Updating <password_policy> ...
816209 DEBUG Updated <password_policy> to 1.4.0
816210 DEBUG Updating <provisioning_api> ...
816813 DEBUG Updated <provisioning_api> to 1.4.0
816814 DEBUG Updating <serverinfo> ...
817417 DEBUG Updated <serverinfo> to 1.4.0
817418 DEBUG Updating <survey_client> ...
818125 DEBUG Updated <survey_client> to 1.2.0
818126 DEBUG Updating <twofactor_backupcodes> ...
820234 DEBUG Updated <twofactor_backupcodes> to 1.3.1
820235 DEBUG Updating <federation> ...
820838 DEBUG Updated <federation> to 1.4.0
820940 DEBUG Updating <lookup_server_connector> ...
821542 DEBUG Updated <lookup_server_connector> to 1.2.0
821544 DEBUG Updating <oauth2> ...
822147 DEBUG Updated <oauth2> to 1.2.1
822248 DEBUG Updating <user_ldap> ...
823153 DEBUG Updated <user_ldap> to 1.4.0
823154 DEBUG Updating <files> ...
823757 DEBUG Updated <files> to 1.9.0
823758 DEBUG Updating <activity> ...
824462 DEBUG Updated <activity> to 2.7.0
824463 DEBUG Updating <dav> ...
829180 DEBUG Fix broken values of calendar objects
829182 WARNING  Starting ...
829183 DEBUG 
829285 DEBUG 
829287 DEBUG Updated <dav> to 1.6.0
829288 DEBUG Updating <files_external> ...
829992 DEBUG Updated <files_external> to 1.5.0
829993 DEBUG Updating <files_sharing> ...
830896 DEBUG Updated <files_sharing> to 1.6.2
830898 DEBUG Updating <files_trashbin> ...
831601 DEBUG Updated <files_trashbin> to 1.4.1
831602 DEBUG Updating <files_versions> ...
832305 DEBUG Updated <files_versions> to 1.7.1
832306 DEBUG Updating <sharebymail> ...
833010 DEBUG Updated <sharebymail> to 1.4.0
833011 DEBUG Updating <workflowengine> ...
833714 DEBUG Updated <workflowengine> to 1.4.0
833715 DEBUG Updating <comments> ...
834417 DEBUG Updated <comments> to 1.4.0
834519 DEBUG Updating <firstrunwizard> ...
835222 DEBUG Updated <firstrunwizard> to 2.3.0
835223 DEBUG Updating <nextcloud_announcements> ...
835926 DEBUG Updated <nextcloud_announcements> to 1.3.0
836028 DEBUG Updating <notifications> ...
836731 DEBUG Updated <notifications> to 2.2.1
836732 DEBUG Updating <systemtags> ...
837335 DEBUG Updated <systemtags> to 1.4.0
837437 DEBUG Updating <theming> ...
838043 DEBUG Updated <theming> to 1.5.0
838546 DEBUG Checking for update of app activity in appstore
840252 DEBUG Checked for update of app "activity" in appstore
840253 DEBUG Checking for update of app calendar in appstore
840254 DEBUG Update app calendar from appstore
847076 DEBUG Checked for update of app "calendar" in appstore
847077 DEBUG Checking for update of app cloud_federation_api in appstore
847077 DEBUG Checked for update of app "cloud_federation_api" in appstore
847078 DEBUG Checking for update of app comments in appstore
847079 DEBUG Checked for update of app "comments" in appstore
847080 DEBUG Checking for update of app contacts in appstore
847081 DEBUG Update app contacts from appstore
852498 DEBUG Checked for update of app "contacts" in appstore
852499 DEBUG Checking for update of app dav in appstore
852500 DEBUG Checked for update of app "dav" in appstore
852502 DEBUG Checking for update of app federatedfilesharing in appstore
852504 DEBUG Checked for update of app "federatedfilesharing" in appstore
852505 DEBUG Checking for update of app federation in appstore
852506 DEBUG Checked for update of app "federation" in appstore
852508 DEBUG Checking for update of app files in appstore
852510 DEBUG Checked for update of app "files" in appstore
852511 DEBUG Checking for update of app files_external in appstore
852513 DEBUG Checked for update of app "files_external" in appstore
852514 DEBUG Checking for update of app files_pdfviewer in appstore
852516 DEBUG Checked for update of app "files_pdfviewer" in appstore
852517 DEBUG Checking for update of app files_sharing in appstore
852518 DEBUG Checked for update of app "files_sharing" in appstore
852519 DEBUG Checking for update of app files_texteditor in appstore
852521 DEBUG Checked for update of app "files_texteditor" in appstore
852522 DEBUG Checking for update of app files_trashbin in appstore
852523 DEBUG Checked for update of app "files_trashbin" in appstore
852524 DEBUG Checking for update of app files_versions in appstore
852525 DEBUG Checked for update of app "files_versions" in appstore
852526 DEBUG Checking for update of app files_videoplayer in appstore
852527 DEBUG Checked for update of app "files_videoplayer" in appstore
852529 DEBUG Checking for update of app firstrunwizard in appstore
852530 DEBUG Checked for update of app "firstrunwizard" in appstore
852531 DEBUG Checking for update of app gallery in appstore
852532 DEBUG Checked for update of app "gallery" in appstore
852533 DEBUG Checking for update of app groupfolders in appstore
852534 DEBUG Update app groupfolders from appstore
856847 DEBUG Checked for update of app "groupfolders" in appstore
856848 DEBUG Checking for update of app logreader in appstore
856849 DEBUG Checked for update of app "logreader" in appstore
856849 DEBUG Checking for update of app lookup_server_connector in appstore
856850 DEBUG Checked for update of app "lookup_server_connector" in appstore
856851 DEBUG Checking for update of app nextcloud_announcements in appstore
856853 DEBUG Checked for update of app "nextcloud_announcements" in appstore
856854 DEBUG Checking for update of app notifications in appstore
856855 DEBUG Checked for update of app "notifications" in appstore
856856 DEBUG Checking for update of app oauth2 in appstore
856857 DEBUG Checked for update of app "oauth2" in appstore
856858 DEBUG Checking for update of app password_policy in appstore
856860 DEBUG Checked for update of app "password_policy" in appstore
856862 DEBUG Checking for update of app provisioning_api in appstore
856863 DEBUG Checked for update of app "provisioning_api" in appstore
856865 DEBUG Checking for update of app serverinfo in appstore
856866 DEBUG Checked for update of app "serverinfo" in appstore
856869 DEBUG Checking for update of app sharebymail in appstore
856871 DEBUG Checked for update of app "sharebymail" in appstore
856872 DEBUG Checking for update of app survey_client in appstore
856874 DEBUG Checked for update of app "survey_client" in appstore
856876 DEBUG Checking for update of app systemtags in appstore
856878 DEBUG Checked for update of app "systemtags" in appstore
856880 DEBUG Checking for update of app theming in appstore
856881 DEBUG Checked for update of app "theming" in appstore
856883 DEBUG Checking for update of app twofactor_backupcodes in appstore
856885 DEBUG Checked for update of app "twofactor_backupcodes" in appstore
856886 DEBUG Checking for update of app user_external in appstore
856889 DEBUG Checked for update of app "user_external" in appstore
856891 DEBUG Checking for update of app user_ldap in appstore
856892 DEBUG Checked for update of app "user_ldap" in appstore
856894 DEBUG Checking for update of app workflowengine in appstore
856896 DEBUG Checked for update of app "workflowengine" in appstore
868229 DEBUG Update successful
868230 DEBUG Turned off maintenance mode
868231 DEBUG Reset log level
868533 DEBUG ++ grep OC_VersionString /var/www/nextcloud/version.php
868535 DEBUG ++ cut '-d'\''' -f2
868536 DEBUG + current_version=14.0.0
868538 DEBUG + current_major_version=14
868539 DEBUG + exec_occ -V
868540 DEBUG + cd /var/www/nextcloud
868541 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi -V
868543 DEBUG + local USER=nextcloud
868544 DEBUG + shift 1
868546 DEBUG ++ whoami
868548 DEBUG + [[ nextcloud = root ]]
868550 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi -V
870759 DEBUG Nextcloud 14.0.0
870860 DEBUG + '[' 15.0.4 '!=' 14.0.0 ']'
870861 DEBUG + major_version=15
870862 DEBUG + current_major_version=14
870863 DEBUG + '[' 15 -eq 14 ']'
870863 DEBUG + source upgrade.d/upgrade.14.sh
871065 DEBUG ++ next_version=15.0.0
871067 WARNING     0/0 [>---------------------------]   0%
871069 DEBUG ++ nextcloud_source_sha256=5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78
871071 WARNING Upgrade to nextcloud 15.0.0
871073 DEBUG + echo -e '\nUpgrade to nextcloud 15.0.0'
871075 DEBUG + cp ../conf/app.src.default ../conf/app.src
871178 DEBUG + ynh_replace_string __VERSION__ 15.0.0 ../conf/app.src
871180 DEBUG + local delimit=@
871183 DEBUG + local match_string=__VERSION__
871186 DEBUG + local replace_string=15.0.0
871188 DEBUG + local workfile=../conf/app.src
871191 DEBUG + match_string=__VERSION__
871194 DEBUG + replace_string=15.0.0
871196 DEBUG + sudo sed --in-place s@__VERSION__@15.0.0@g ../conf/app.src
871404 DEBUG + ynh_replace_string __SHA256_SUM__ 5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78 ../conf/app.src
871410 DEBUG + local delimit=@
871411 DEBUG + local match_string=__SHA256_SUM__
871413 DEBUG + local replace_string=5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78
871414 DEBUG + local workfile=../conf/app.src
871415 DEBUG + match_string=__SHA256_SUM__
871419 DEBUG + replace_string=5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78
871420 DEBUG + sudo sed --in-place s@__SHA256_SUM__@5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78@g ../conf/app.src
871422 DEBUG ++ ynh_smart_mktemp 300
871423 DEBUG ++ local min_size=300
871524 DEBUG ++ min_size=307200
871525 DEBUG ++ is_there_enough_space /tmp
871526 DEBUG +++ df --output=avail /tmp
871527 DEBUG +++ sed 1d
871528 DEBUG ++ local free_space=96080040
871529 DEBUG ++ test 96080040 -ge 307200
871530 DEBUG ++ local tmpdir=/tmp
871530 DEBUG +++ sudo mktemp --directory --tmpdir=/tmp
871632 DEBUG ++ echo /tmp/tmp.JZsAjhqX30
871633 DEBUG + tmpdir=/tmp/tmp.JZsAjhqX30
871633 DEBUG + ynh_setup_source /tmp/tmp.JZsAjhqX30
871634 DEBUG + local dest_dir=/tmp/tmp.JZsAjhqX30
871635 DEBUG + local src_id=app
871636 DEBUG ++ grep SOURCE_URL= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
871636 DEBUG ++ cut -d= -f2-
871637 DEBUG + local src_url=https://download.nextcloud.com/server/releases/nextcloud-15.0.0.tar.bz2
871638 DEBUG ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
871639 DEBUG ++ cut -d= -f2-
871740 DEBUG + local src_sum=5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78
871741 DEBUG ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
871742 DEBUG ++ cut -d= -f2-
871743 DEBUG + local src_sumprg=sha256sum
871743 DEBUG ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
871744 DEBUG ++ cut -d= -f2-
871745 DEBUG + local src_format=tar.bz2
871746 DEBUG ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
871747 DEBUG ++ cut -d= -f2-
871748 DEBUG + local src_extract=
871748 DEBUG ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
871749 DEBUG ++ cut -d= -f2-
871750 DEBUG + local src_in_subdir=true
871751 DEBUG ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../conf/app.src
871752 DEBUG ++ cut -d= -f2-
871753 DEBUG + local src_filename=
871754 DEBUG + src_sumprg=sha256sum
871754 DEBUG + src_in_subdir=true
871755 DEBUG + src_format=tar.bz2
871756 DEBUG ++ echo tar.bz2
871757 DEBUG ++ tr '[:upper:]' '[:lower:]'
871757 DEBUG + src_format=tar.bz2
871758 DEBUG + src_extract=true
871759 DEBUG + '[' '' = '' ']'
871760 DEBUG + src_filename=app.tar.bz2
871760 DEBUG + local local_src=/opt/yunohost-apps-src/nextcloud/app.tar.bz2
871761 DEBUG + test -e /opt/yunohost-apps-src/nextcloud/app.tar.bz2
871762 DEBUG ++ wget -nv -O app.tar.bz2 https://download.nextcloud.com/server/releases/nextcloud-15.0.0.tar.bz2
882811 DEBUG + local 'out=2019-02-23 13:47:20 URL:https://download.nextcloud.com/server/releases/nextcloud-15.0.0.tar.bz2 [36181234/36181234] -> "app.tar.bz2" [1]'
882812 DEBUG + echo '5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78 app.tar.bz2'
882813 DEBUG + sha256sum -c --status
883919 DEBUG + mkdir -p /tmp/tmp.JZsAjhqX30
883921 DEBUG + true
883923 DEBUG + '[' tar.bz2 = zip ']'
883924 DEBUG + local strip=
883925 DEBUG + true
883927 DEBUG + strip='--strip-components 1'
883928 DEBUG + [[ tar.bz2 =~ ^tar.gz|tar.bz2|tar.xz$ ]]
883929 DEBUG + tar -xf app.tar.bz2 -C /tmp/tmp.JZsAjhqX30 --strip-components 1
915784 DEBUG ++ find /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../sources/patches/ -type f -name 'app-*.patch'
915855 DEBUG ++ wc -l
915956 DEBUG + ((  0 > 0  ))
915957 DEBUG + test -e /var/cache/yunohost/from_file/nextcloud_ynh-a937450910acca5953ead1dbb758e1e5a4b28553/scripts/../sources/extra_files/app
915958 DEBUG + exec_occ maintenance:mode --on
915959 DEBUG + cd /var/www/nextcloud
915960 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi maintenance:mode --on
915960 DEBUG + local USER=nextcloud
915961 DEBUG + shift 1
915962 DEBUG ++ whoami
915963 DEBUG + [[ nextcloud = root ]]
915964 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi maintenance:mode --on
920588 DEBUG Maintenance mode enabled
920689 DEBUG + cp -a /var/www/nextcloud/config/config.php /tmp/tmp.JZsAjhqX30/config/config.php
920690 DEBUG + cp -a --update /var/www/nextcloud/apps /tmp/tmp.JZsAjhqX30
996478 DEBUG + ynh_secure_remove /var/www/nextcloud
996748 DEBUG + local path_to_remove=/var/www/nextcloud
996750 DEBUG + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
996752 DEBUG + [[  	/var/www 	/home/yunohost.app =~ /var/www/nextcloud ]]
996754 DEBUG + [[ /var/www/nextcloud =~ ^/[[:alnum:]]+$ ]]
996755 DEBUG + [[ d = \/ ]]
996757 DEBUG + '[' -e /var/www/nextcloud ']'
996758 DEBUG + sudo rm -R /var/www/nextcloud
1020542 DEBUG + mv /tmp/tmp.JZsAjhqX30 /var/www/nextcloud
1020643 DEBUG + ynh_secure_remove /tmp/tmp.JZsAjhqX30
1020644 WARNING /tmp/tmp.JZsAjhqX30 wasn't deleted because it doesn't exist.
1020645 DEBUG + local path_to_remove=/tmp/tmp.JZsAjhqX30
1020647 DEBUG + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
1020648 DEBUG + [[  	/var/www 	/home/yunohost.app =~ /tmp/tmp\.JZsAjhqX30 ]]
1020650 DEBUG + [[ /tmp/tmp.JZsAjhqX30 =~ ^/[[:alnum:]]+$ ]]
1020652 DEBUG + [[ 0 = \/ ]]
1020654 DEBUG + '[' -e /tmp/tmp.JZsAjhqX30 ']'
1020656 DEBUG + echo '/tmp/tmp.JZsAjhqX30 wasn'\''t deleted because it doesn'\''t exist.'
1020658 DEBUG + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
1066302 DEBUG + exec_occ maintenance:mode --off
1066304 DEBUG + cd /var/www/nextcloud
1066305 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi maintenance:mode --off
1066306 DEBUG + local USER=nextcloud
1066307 DEBUG + shift 1
1066409 DEBUG ++ whoami
1066410 DEBUG + [[ nextcloud = root ]]
1066411 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi maintenance:mode --off
1072234 DEBUG Nextcloud or one of the apps require upgrade - only a limited number of commands are available
1072235 DEBUG You may use your browser or the occ upgrade command to do the upgrade
1072336 DEBUG Maintenance mode disabled
1072540 DEBUG + exec_occ upgrade
1072542 DEBUG + cd /var/www/nextcloud
1072543 DEBUG + exec_as nextcloud php occ --no-interaction --no-ansi upgrade
1072544 DEBUG + local USER=nextcloud
1072544 DEBUG + shift 1
1072545 DEBUG ++ whoami
1072546 DEBUG + [[ nextcloud = root ]]
1072547 DEBUG + sudo -u nextcloud php occ --no-interaction --no-ansi upgrade
1075056 DEBUG Nextcloud or one of the apps require upgrade - only a limited number of commands are available
1075057 DEBUG You may use your browser or the occ upgrade command to do the upgrade
1075058 DEBUG Set log level to debug
1075059 DEBUG Turned on maintenance mode
1076773 DEBUG Updating database schema
1082691 DEBUG Updated database
1082692 DEBUG UnexpectedValueException: The files of the app "user_external" were not correctly replaced before running the update
1082694 DEBUG Update failed
1082695 DEBUG Maintenance mode is kept active
1082696 DEBUG Reset log level
1082797 DEBUG + [[ 5 -eq 3 ]]
1082798 WARNING Unable to upgrade Nextcloud
1082799 DEBUG + ynh_die 'Unable to upgrade Nextcloud'
1082800 WARNING !!
1082802 DEBUG + echo 'Unable to upgrade Nextcloud'
1082803 WARNING   nextcloud's script has encountered an error. Its execution was cancelled.
1082804 DEBUG + exit 1
1082804 WARNING !!
1082805 DEBUG + ynh_exit_properly
1082806 WARNING Upgrade failed.
1082807 DEBUG + local exit_code=1
1082808 DEBUG + '[' 1 -eq 0 ']'
1082809 DEBUG + trap '' EXIT
1082810 DEBUG + set +eu
1082812 DEBUG + echo -e '!!\n  nextcloud'\''s script has encountered an error. Its execution was cancelled.\n!!'
1082812 DEBUG + type -t ynh_clean_setup
1082814 DEBUG + ynh_clean_setup
1082815 DEBUG + ynh_secure_remove /tmp/owncloud_post_migration.sh
1082816 DEBUG + local path_to_remove=/tmp/owncloud_post_migration.sh
1082817 DEBUG + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
1082818 DEBUG + [[  	/var/www 	/home/yunohost.app =~ /tmp/owncloud_post_migration\.sh ]]
1082819 DEBUG + [[ /tmp/owncloud_post_migration.sh =~ ^/[[:alnum:]]+$ ]]
1082820 DEBUG + [[ h = \/ ]]
1082821 DEBUG + '[' -e /tmp/owncloud_post_migration.sh ']'
1082822 DEBUG + echo '/tmp/owncloud_post_migration.sh wasn'\''t deleted because it doesn'\''t exist.'
1082823 DEBUG /tmp/owncloud_post_migration.sh wasn't deleted because it doesn't exist.
1082824 DEBUG + ynh_restore_upgradebackup
1082825 DEBUG + echo 'Upgrade failed.'
1082826 DEBUG + local app_bck=nextcloud
1082827 DEBUG + NO_BACKUP_UPGRADE=0
1082828 DEBUG + '[' 0 -eq 0 ']'
1082829 DEBUG + sudo yunohost backup list
1082830 DEBUG + grep -q nextcloud-pre-upgrade2
1086345 DEBUG + sudo yunohost app remove nextcloud
1141055 WARNING Removing database nextcloud
1161052 WARNING Remove the user nextcloud
1161555 DEBUG nextcloud has been removed
1162659 DEBUG The SSOwat configuration has been generated
1162860 DEBUG + sudo yunohost backup restore nextcloud-pre-upgrade2 --apps nextcloud --force --debug
1163565 DEBUG 521  loading actions map namespace 'yunohost'
1163667 DEBUG 628  extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
1163668 DEBUG 629  initializing base actions map parser for cli
1163670 DEBUG 634  registering new callback action 'yunohost.utils.packages.ynh_packages_version' to ['-v', '--version']
1164173 DEBUG 1178 initialize authenticator 'ldap-anonymous' with: uri='ldap://localhost:389', base_dn='dc=yunohost,dc=org', user_rdn='None'
1164576 DEBUG 1598 loading python module yunohost.backup took 0.407s
1164577 DEBUG 1599 processing action [14000.1]: yunohost.backup.restore with args={'force': True, 'name': 'nextcloud-pre-upgrade2', 'apps': ['nextcloud'], 'system': None, 'auth': <moulinette.authenticators.ldap.Authenticator object at 0x7650cf70>}
1164679 DEBUG 1630 custom hook folder not found for action 'restore' in /etc/yunohost/hooks.d/
1164781 DEBUG 1722 Extracting needed files from the archive…
1358458 DEBUG 195425 restoring from backup 'nextcloud-pre-upgrade2' created on 2019-02-23 13:33:02
1363290 DEBUG 200236 Running restore script of app 'nextcloud'…
1364468 DEBUG 201331 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpGGAhWS/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2 YNH_APP_INSTANCE_NAME=nextcloud YNH_APP_ID=nextcloud YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoreLeCDK5/restore" /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup nextcloud 7>&1'…
1364469 DEBUG 201434 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup YNH_STDINFO=/tmp/tmpGGAhWS/stdinfo YNH_BACKUP_CSV=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2 YNH_APP_INSTANCE_NAME=nextcloud YNH_APP_ID=nextcloud YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/restoreLeCDK5/restore" /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup nextcloud 7>&1']'
1365978 DEBUG 202920 + '[' '!' -e _common.sh ']'
1365980 DEBUG 202923 + cp ../settings/scripts/_common.sh ./_common.sh
1366383 DEBUG 203327 + chmod a+rx _common.sh
1366485 DEBUG 203429 + source _common.sh
1366487 DEBUG 203431 ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient'
1366488 DEBUG 203434 +++ lsb_release --codename --short
1368697 DEBUG 205644 ++ '[' stretch '!=' jessie ']'
1368698 DEBUG 205645 ++ pkg_dependencies='php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml'
1368699 DEBUG 205646 + source /usr/share/yunohost/helpers
1368700 DEBUG 205647 +++ run-parts --list /usr/share/yunohost/helpers.d
1368801 DEBUG 205748 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368802 DEBUG 205749 ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
1368803 DEBUG 205750 ++ . /usr/share/yunohost/helpers.d/backend
1368803 DEBUG 205751 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368804 DEBUG 205752 ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
1368805 DEBUG 205753 ++ . /usr/share/yunohost/helpers.d/filesystem
1368806 DEBUG 205754 +++ CAN_BIND=1
1368806 DEBUG 205755 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368807 DEBUG 205756 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
1368808 DEBUG 205757 ++ . /usr/share/yunohost/helpers.d/getopts
1368809 DEBUG 205758 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368809 DEBUG 205759 ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
1368810 DEBUG 205760 ++ . /usr/share/yunohost/helpers.d/ip
1368811 DEBUG 205761 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368812 DEBUG 205762 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
1368813 DEBUG 205763 ++ . /usr/share/yunohost/helpers.d/mysql
1368813 DEBUG 205763 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
1368814 DEBUG 205764 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368815 DEBUG 205765 ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
1368816 DEBUG 205767 ++ . /usr/share/yunohost/helpers.d/network
1368817 DEBUG 205768 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368818 DEBUG 205769 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
1368818 DEBUG 205770 ++ . /usr/share/yunohost/helpers.d/nodejs
1368819 DEBUG 205771 +++ n_install_dir=/opt/node_n
1368820 DEBUG 205772 +++ node_version_path=/opt/node_n/n/versions/node
1368821 DEBUG 205773 +++ export N_PREFIX=/opt/node_n
1368822 DEBUG 205774 +++ N_PREFIX=/opt/node_n
1368823 DEBUG 205775 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368824 DEBUG 205776 ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
1368824 DEBUG 205777 ++ . /usr/share/yunohost/helpers.d/package
1368825 DEBUG 205778 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368826 DEBUG 205778 ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
1368827 DEBUG 205779 ++ . /usr/share/yunohost/helpers.d/print
1368827 DEBUG 205780 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368828 DEBUG 205781 ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
1368829 DEBUG 205782 ++ . /usr/share/yunohost/helpers.d/psql
1368830 DEBUG 205782 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368831 DEBUG 205783 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
1368831 DEBUG 205784 ++ . /usr/share/yunohost/helpers.d/setting
1368832 DEBUG 205785 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368833 DEBUG 205786 ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
1368834 DEBUG 205787 ++ . /usr/share/yunohost/helpers.d/string
1368835 DEBUG 205787 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368835 DEBUG 205788 ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
1368836 DEBUG 205789 ++ . /usr/share/yunohost/helpers.d/system
1368837 DEBUG 205790 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368838 DEBUG 205791 ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
1368839 DEBUG 205791 ++ . /usr/share/yunohost/helpers.d/user
1368839 DEBUG 205793 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
1368840 DEBUG 205794 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
1368841 DEBUG 205795 ++ . /usr/share/yunohost/helpers.d/utils
1368842 DEBUG 205795 + ynh_abort_if_errors
1368843 DEBUG 205796 + set -eu
1368844 DEBUG 205797 + trap ynh_exit_properly EXIT
1368844 DEBUG 205798 + app=nextcloud
1368845 DEBUG 205799 ++ ynh_app_setting_get nextcloud domain
1368846 DEBUG 205800 ++ sudo yunohost app setting nextcloud domain --output-as plain --quiet
1376680 DEBUG 213626 + domain=mitakuye-oyasin.noho.st
1376681 DEBUG 213628 ++ ynh_app_setting_get nextcloud path
1376682 DEBUG 213629 ++ sudo yunohost app setting nextcloud path --output-as plain --quiet
1377986 DEBUG 214934 + path_url=/nextcloud
1377987 DEBUG 214935 ++ ynh_app_setting_get nextcloud final_path
1377988 DEBUG 214936 ++ sudo yunohost app setting nextcloud final_path --output-as plain --quiet
1379393 DEBUG 216341 + final_path=/var/www/nextcloud
1379394 DEBUG 216342 ++ ynh_app_setting_get nextcloud db_name
1379395 DEBUG 216343 ++ sudo yunohost app setting nextcloud db_name --output-as plain --quiet
1380700 DEBUG 217647 + db_name=nextcloud
1380701 DEBUG 217650 + ynh_webpath_available mitakuye-oyasin.noho.st /nextcloud
1380702 DEBUG 217651 + local domain=mitakuye-oyasin.noho.st
1380703 DEBUG 217653 + local path=/nextcloud
1380704 DEBUG 217654 + sudo yunohost domain url-available mitakuye-oyasin.noho.st /nextcloud
1383111 DEBUG 220062 False
1383212 DEBUG 220163 + test '!' -d /var/www/nextcloud
1383214 DEBUG 220164 + ynh_restore_file /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
1383214 DEBUG 220165 + local ORIGIN_PATH=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
1383215 DEBUG 220166 + local ARCHIVE_PATH=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
1383216 DEBUG 220166 + local DEST_PATH=/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
1383217 DEBUG 220167 + local NOT_MANDATORY=0
1383218 DEBUG 220168 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf ']'
1383219 DEBUG 220168 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf ']'
1383219 DEBUG 220169 + [[ -e /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf ]]
1383220 DEBUG 220170 ++ dirname /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
1383221 DEBUG 220170 + mkdir -p /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d
1383322 DEBUG 220271 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
1383424 DEBUG 220373 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf /etc/nginx/conf.d/mitakuye-oyasin.noho.st.d/nextcloud.conf
1383425 DEBUG 220373 + ynh_restore_file /var/www/nextcloud
1383426 DEBUG 220374 + local ORIGIN_PATH=/var/www/nextcloud
1383427 DEBUG 220375 + local ARCHIVE_PATH=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/var/www/nextcloud
1383428 DEBUG 220375 + local DEST_PATH=/var/www/nextcloud
1383429 DEBUG 220376 + local NOT_MANDATORY=0
1383430 DEBUG 220377 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/var/www/nextcloud ']'
1383431 DEBUG 220378 + [[ -e /var/www/nextcloud ]]
1383432 DEBUG 220378 ++ dirname /var/www/nextcloud
1383433 DEBUG 220379 + mkdir -p /var/www
1383434 DEBUG 220379 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
1383435 DEBUG 220380 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/var/www/nextcloud /var/www/nextcloud
1383435 DEBUG 220381 ++ ynh_app_setting_get nextcloud mysqlpwd
1383436 DEBUG 220382 ++ sudo yunohost app setting nextcloud mysqlpwd --output-as plain --quiet
1384845 DEBUG 221790 + db_pwd=49BqoS8a1dM98eAc1PiLBpLE
1384848 DEBUG 221791 + ynh_mysql_setup_db nextcloud nextcloud 49BqoS8a1dM98eAc1PiLBpLE
1384857 DEBUG 221792 + local db_user=nextcloud
1384858 DEBUG 221793 + local db_name=nextcloud
1384859 DEBUG 221793 ++ ynh_string_random
1384862 DEBUG 221794 ++ dd if=/dev/urandom bs=1 count=1000
1384864 DEBUG 221795 ++ sed -n 's/\(.\{24\}\).*/\1/p'
1384865 DEBUG 221795 ++ tr -c -d A-Za-z0-9
1384867 DEBUG 221796 + local new_db_pwd=AUGyJcn3PfS3HklL1qIh9G1M
1384868 DEBUG 221797 + db_pwd=49BqoS8a1dM98eAc1PiLBpLE
1384869 DEBUG 221798 + ynh_mysql_create_db nextcloud nextcloud 49BqoS8a1dM98eAc1PiLBpLE
1384870 DEBUG 221798 + local db=nextcloud
1384871 DEBUG 221799 + local 'sql=CREATE DATABASE nextcloud;'
1384872 DEBUG 221800 + [[ 3 -gt 1 ]]
1384873 DEBUG 221801 + sql+=' GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'''
1384874 DEBUG 221802 + [[ -n 49BqoS8a1dM98eAc1PiLBpLE ]]
1384876 DEBUG 221802 + sql+=' IDENTIFIED BY '\''49BqoS8a1dM98eAc1PiLBpLE'\'''
1384877 DEBUG 221803 + sql+=' WITH GRANT OPTION;'
1384878 DEBUG 221804 + ynh_mysql_execute_as_root 'CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'' IDENTIFIED BY '\''49BqoS8a1dM98eAc1PiLBpLE'\'' WITH GRANT OPTION;'
1384879 DEBUG 221805 ++ sudo cat /etc/yunohost/mysql
1384980 DEBUG 221906 + ynh_mysql_connect_as root GjxXdPt4z5 ''
1384982 DEBUG 221907 + mysql -u root --password=GjxXdPt4z5 -B ''
1385885 DEBUG 222811 + ynh_app_setting_set nextcloud mysqlpwd 49BqoS8a1dM98eAc1PiLBpLE
1385887 DEBUG 222813 + sudo yunohost app setting nextcloud mysqlpwd --value=49BqoS8a1dM98eAc1PiLBpLE --quiet
1387292 DEBUG 224219 + ynh_mysql_connect_as nextcloud 49BqoS8a1dM98eAc1PiLBpLE nextcloud
1387293 DEBUG 224220 + mysql -u nextcloud --password=49BqoS8a1dM98eAc1PiLBpLE -B nextcloud
1435637 DEBUG 272562 + ynh_system_user_create nextcloud
1435650 DEBUG 272592 + local legacy_args=uh
1435652 DEBUG 272593 + args_array=([u]=username= [h]=home_dir= [s]=use_shell)
1435654 DEBUG 272595 + declare -Ar args_array
1435656 DEBUG 272597 + local username
1435659 DEBUG 272599 + local home_dir
1435661 DEBUG 272601 + local use_shell
1435663 DEBUG 272602 + ynh_handle_getopts_args nextcloud
1435666 DEBUG 272604 + set +x
1435770 DEBUG 272706 + echo '! Helper used in legacy mode !'
1435772 DEBUG 272708 + set +x
1435774 DEBUG 272709 + use_shell=0
1435775 DEBUG 272711 + home_dir=
1435777 DEBUG 272712 + ynh_system_user_exists nextcloud
1435778 DEBUG 272714 + getent passwd nextcloud
1435982 DEBUG 272916 + '[' -n '' ']'
1435984 DEBUG 272918 + local user_home_dir=--no-create-home
1435986 DEBUG 272919 + '[' 0 -eq 1 ']'
1435988 DEBUG 272920 + local 'shell=--shell /usr/sbin/nologin'
1435989 DEBUG 272922 + useradd --no-create-home --system --user-group nextcloud --shell /usr/sbin/nologin
1447728 DEBUG 284658 + ynh_restore_file /etc/php/7.0/fpm/pool.d/nextcloud.conf
1447730 DEBUG 284659 + local ORIGIN_PATH=/etc/php/7.0/fpm/pool.d/nextcloud.conf
1447731 DEBUG 284660 + local ARCHIVE_PATH=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf
1447732 DEBUG 284661 + local DEST_PATH=/etc/php/7.0/fpm/pool.d/nextcloud.conf
1447733 DEBUG 284661 + local NOT_MANDATORY=0
1447734 DEBUG 284662 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf ']'
1447836 DEBUG 284763 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf ']'
1447837 DEBUG 284764 + [[ -e /etc/php/7.0/fpm/pool.d/nextcloud.conf ]]
1447839 DEBUG 284764 ++ dirname /etc/php/7.0/fpm/pool.d/nextcloud.conf
1447840 DEBUG 284765 + mkdir -p /etc/php/7.0/fpm/pool.d
1447841 DEBUG 284766 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
1447842 DEBUG 284867 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/pool.d/nextcloud.conf /etc/php/7.0/fpm/pool.d/nextcloud.conf
1447844 DEBUG 284868 + ynh_restore_file /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
1447845 DEBUG 284869 + local ORIGIN_PATH=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
1447846 DEBUG 284870 + local ARCHIVE_PATH=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
1447847 DEBUG 284871 + local DEST_PATH=/etc/php/7.0/fpm/conf.d/20-nextcloud.ini
1447849 DEBUG 284872 + local NOT_MANDATORY=0
1447851 DEBUG 284873 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini ']'
1447852 DEBUG 284874 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini ']'
1447853 DEBUG 284875 + [[ -e /etc/php/7.0/fpm/conf.d/20-nextcloud.ini ]]
1447855 DEBUG 284876 ++ dirname /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
1447860 DEBUG 284878 + mkdir -p /etc/php/7.0/fpm/conf.d
1447863 DEBUG 284879 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
1447865 DEBUG 284880 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/php/7.0/fpm/conf.d/20-nextcloud.ini /etc/php/7.0/fpm/conf.d/20-nextcloud.ini
1447867 DEBUG 284881 + ynh_install_app_dependencies php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml
1447869 DEBUG 284882 + local 'dependencies=php7.0-gd php7.0-json php7.0-intl php7.0-mcrypt php7.0-curl php7.0-apcu php7.0-redis php7.0-ldap php7.0-imagick imagemagick acl tar smbclient php-zip php-apcu php-mbstring php-xml'
1447872 DEBUG 284884 + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml'
1447875 DEBUG 284885 + local 'dependencies=php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml'
1447879 DEBUG 284887 + local manifest_path=../manifest.json
1447882 DEBUG 284889 + '[' '!' -e ../manifest.json ']'
1447884 DEBUG 284890 + manifest_path=../settings/manifest.json
1447885 DEBUG 284892 ++ grep '\"version\": ' ../settings/manifest.json
1447887 DEBUG 284894 ++ cut -d '"' -f 4
1447989 DEBUG 284996 + local version=13.0.6~ynh1
1447992 DEBUG 284998 + '[' 11 -eq 0 ']'
1447994 DEBUG 285000 + local dep_app=nextcloud
1447995 DEBUG 285002 + cat
1447997 DEBUG 285004 + ynh_package_install_from_equivs /tmp/nextcloud-ynh-deps.control
1447999 DEBUG 285008 + local controlfile=/tmp/nextcloud-ynh-deps.control
1448001 DEBUG 285009 ++ grep '^Package: ' /tmp/nextcloud-ynh-deps.control
1448003 DEBUG 285011 ++ cut '-d ' -f 2
1448005 DEBUG 285013 + local pkgname=nextcloud-ynh-deps
1448007 DEBUG 285017 ++ grep '^Version: ' /tmp/nextcloud-ynh-deps.control
1448009 DEBUG 285019 ++ cut '-d ' -f 2
1448011 DEBUG 285021 + local pkgversion=13.0.6~ynh1
1448013 DEBUG 285024 + [[ -z nextcloud-ynh-deps ]]
1448015 DEBUG 285027 + [[ -z 13.0.6~ynh1 ]]
1448017 DEBUG 285029 + ynh_package_update
1448019 DEBUG 285032 + ynh_apt update
1448021 DEBUG 285034 + ynh_wait_dpkg_free
1448022 DEBUG 285037 + local try
1448024 DEBUG 285039 ++ seq 1 17
1448026 DEBUG 285042 + for try in `seq 1 17`
1448027 DEBUG 285044 + sudo lsof /var/lib/dpkg/lock
1448731 DEBUG 285748 + return 0
1448732 DEBUG 285749 + DEBIAN_FRONTEND=noninteractive
1448733 DEBUG 285751 + sudo apt-get -y update
1449336 DEBUG 286355 Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
1449338 DEBUG 286356 Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
1449339 DEBUG 286357 Hit:3 http://forge.yunohost.org/debian stretch InRelease
1456569 DEBUG 293495 Reading package lists...
1456772 DEBUG 293699 ++ mktemp -d
1456773 DEBUG 293700 + local TMPDIR=/tmp/tmp.xFV18qvDtR
1456774 DEBUG 293700 + echo 10
1457176 DEBUG 294102 + ynh_wait_dpkg_free
1457179 DEBUG 294104 + local try
1457181 DEBUG 294105 ++ seq 1 17
1457185 DEBUG 294107 + for try in `seq 1 17`
1457187 DEBUG 294108 + sudo lsof /var/lib/dpkg/lock
1458192 DEBUG 295117 + return 0
1458193 DEBUG 295118 + cp /tmp/nextcloud-ynh-deps.control /tmp/tmp.xFV18qvDtR/control
1458194 DEBUG 295118 + cd /tmp/tmp.xFV18qvDtR
1458195 DEBUG 295119 + equivs-build ./control
1465218 DEBUG 302144 + dpkg --force-depends -i ./nextcloud-ynh-deps_13.0.6~ynh1_all.deb
1465621 DEBUG 302547 Selecting previously unselected package nextcloud-ynh-deps.
1470940 DEBUG 307865 (Reading database ... 60239 files and directories currently installed.)
1471043 DEBUG 307969 Preparing to unpack .../nextcloud-ynh-deps_13.0.6~ynh1_all.deb ...
1471045 DEBUG 307971 Unpacking nextcloud-ynh-deps (13.0.6~ynh1) ...
1471147 DEBUG 308073 dpkg: nextcloud-ynh-deps: dependency problems, but configuring anyway as you requested:
1471149 DEBUG 308075  nextcloud-ynh-deps depends on php7.0-redis; however:
1471150 DEBUG 308077   Package php7.0-redis is not installed.
1471151 DEBUG 308079  nextcloud-ynh-deps depends on php7.0-imagick; however:
1471152 DEBUG 308081   Package php7.0-imagick is not installed.
1471153 DEBUG 308083
1471154 DEBUG 308084 Setting up nextcloud-ynh-deps (13.0.6~ynh1) ...
1471255 DEBUG 308187 + ynh_package_install -f
1471256 DEBUG 308188 + ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
1471257 DEBUG 308189 + ynh_wait_dpkg_free
1471258 DEBUG 308190 + local try
1471259 DEBUG 308191 ++ seq 1 17
1471259 DEBUG 308192 + for try in `seq 1 17`
1471260 DEBUG 308193 + sudo lsof /var/lib/dpkg/lock
1471762 DEBUG 308695 + return 0
1471763 DEBUG 308697 + DEBIAN_FRONTEND=noninteractive
1471764 DEBUG 308698 + sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install -f
1472868 DEBUG 309802 Reading package lists...
1473872 DEBUG 310806 Building dependency tree...
1473873 DEBUG 310807 Reading state information...
1474676 DEBUG 311610 Correcting dependencies... Done
1475680 DEBUG 312614 The following additional packages will be installed:
1475682 DEBUG 312615   php-igbinary php-imagick php-redis ttf-dejavu-core
1475783 DEBUG 312716 The following NEW packages will be installed:
1475784 DEBUG 312717   php-igbinary php-imagick php-redis ttf-dejavu-core
1489135 DEBUG 326060 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
                                                                                   1489136 DEBUG 326061 Need to get 0 B/232 kB of archives.
      1489137 DEBUG 326062 After this operation, 892 kB of additional disk space will be used.
                                                                                              1489139 DEBUG 326163 Selecting previously unselected package php-igbinary.
(Reading database ... 60243 files and directories currently installed.)se ... 
                                                                       1489243 DEBUG 326266 Preparing to unpack .../php-igbinary_2.0.1-1_armhf.deb ...
                 1489244 DEBUG 326267 Unpacking php-igbinary (2.0.1-1) ...
                                                                          1489646 DEBUG 326572 Selecting previously unselected package php-imagick.
              1489648 DEBUG 326573 Preparing to unpack .../php-imagick_3.4.3~rc2-2_armhf.deb ...
                                                                                                1489649 DEBUG 326574 Unpacking php-imagick (3.4.3~rc2-2) ...
                       1489850 DEBUG 326775 Selecting previously unselected package php-redis.
                                                                                              1489852 DEBUG 326776 Preparing to unpack .../php-redis_3.1.1-1_armhf.deb ...
                                     1489853 DEBUG 326777 Unpacking php-redis (3.1.1-1) ...
                                                                                           1489854 DEBUG 326878 Selecting previously unselected package ttf-dejavu-core.
                                   1489854 DEBUG 326879 Preparing to unpack .../ttf-dejavu-core_2.37-1_all.deb ...
                                                                                                                  1489855 DEBUG 326880 Unpacking ttf-dejavu-core (2.37-1) ...
                                        1490157 DEBUG 327181 Setting up php-imagick (3.4.3~rc2-2) ...
                                                                                                     1491062 DEBUG 327986 Setting up ttf-dejavu-core (2.37-1) ...
                            1491064 DEBUG 327989 Setting up php-igbinary (2.0.1-1) ...
                                                                                      1491567 DEBUG 328493 Setting up php-redis (3.1.1-1) ...
        1492072 DEBUG 328997 Processing triggers for fontconfig (2.11.0-6.7) ...
                                                                                1497892 DEBUG 334818 + [[ -n /tmp/tmp.xFV18qvDtR ]]
1497893 DEBUG 334821 + rm -rf /tmp/tmp.xFV18qvDtR
1497894 DEBUG 334823 + ynh_package_is_installed nextcloud-ynh-deps
1497895 DEBUG 334825 + ynh_wait_dpkg_free
1497896 DEBUG 334826 + local try
1497897 DEBUG 334827 ++ seq 1 17
1497897 DEBUG 334828 + for try in `seq 1 17`
1497898 DEBUG 334830 + sudo lsof /var/lib/dpkg/lock
1498501 DEBUG 335433 + return 0
1498502 DEBUG 335434 + dpkg-query -W -f '${Status}' nextcloud-ynh-deps
1498503 DEBUG 335435 + grep -c 'ok installed'
1498604 DEBUG 335536 + rm /tmp/nextcloud-ynh-deps.control
1498606 DEBUG 335537 + ynh_app_setting_set nextcloud apt_dependencies php7.0-gd, php7.0-json, php7.0-intl, php7.0-mcrypt, php7.0-curl, php7.0-apcu, php7.0-redis, php7.0-ldap, php7.0-imagick, imagemagick, acl, tar, smbclient, php-zip, php-apcu, php-mbstring, php-xml
1498607 DEBUG 335538 + sudo yunohost app setting nextcloud apt_dependencies --value=php7.0-gd, --quiet
1502117 DEBUG 339049 + ynh_restore_file /etc/cron.d/nextcloud
1502119 DEBUG 339050 + local ORIGIN_PATH=/etc/cron.d/nextcloud
1502121 DEBUG 339050 + local ARCHIVE_PATH=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/cron.d/nextcloud
1502123 DEBUG 339051 + local DEST_PATH=/etc/cron.d/nextcloud
1502124 DEBUG 339052 + local NOT_MANDATORY=0
1502125 DEBUG 339052 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/cron.d/nextcloud ']'
1502127 DEBUG 339053 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/cron.d/nextcloud ']'
1502128 DEBUG 339053 + [[ -e /etc/cron.d/nextcloud ]]
1502130 DEBUG 339054 ++ dirname /etc/cron.d/nextcloud
1502133 DEBUG 339055 + mkdir -p /etc/cron.d
1502136 DEBUG 339056 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
1502139 DEBUG 339157 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/cron.d/nextcloud /etc/cron.d/nextcloud
1502142 DEBUG 339159 + ynh_restore_file /etc/logrotate.d/nextcloud
1502146 DEBUG 339160 + local ORIGIN_PATH=/etc/logrotate.d/nextcloud
1502148 DEBUG 339162 + local ARCHIVE_PATH=/home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/logrotate.d/nextcloud
1502151 DEBUG 339164 + local DEST_PATH=/etc/logrotate.d/nextcloud
1502155 DEBUG 339165 + local NOT_MANDATORY=0
1502158 DEBUG 339167 + '[' '!' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/logrotate.d/nextcloud ']'
1502162 DEBUG 339168 + '[' '!' -f /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/logrotate.d/nextcloud ']'
1502165 DEBUG 339170 + [[ -e /etc/logrotate.d/nextcloud ]]
1502168 DEBUG 339172 ++ dirname /etc/logrotate.d/nextcloud
1502170 DEBUG 339173 + mkdir -p /etc/logrotate.d
1502173 DEBUG 339175 + mountpoint -q /home/yunohost.backup/tmp/nextcloud-pre-upgrade2
1502176 DEBUG 339177 + mv /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/etc/logrotate.d/nextcloud /etc/logrotate.d/nextcloud
1502178 DEBUG 339179 + datadir=/home/yunohost.app/nextcloud/data
1502181 DEBUG 339184 + '[' -d /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/home/yunohost.app/nextcloud ']'
1502183 DEBUG 339185 + mkdir -p /home/yunohost.app/nextcloud/data
1502185 DEBUG 339187 + ynh_app_setting_delete nextcloud backup_core_only
1502188 DEBUG 339189 + sudo yunohost app setting -d nextcloud backup_core_only --quiet
1503594 DEBUG 340595 + chown -R nextcloud: /var/www/nextcloud /home/yunohost.app/nextcloud/data
1545541 DEBUG 382536 + chmod 640 /var/www/nextcloud/config/config.php
1545589 DEBUG 382567 + chmod 755 /home/yunohost.app
1545692 DEBUG 382669 ++ ynh_user_list
1545694 DEBUG 382671 ++ sudo yunohost user list --output-as plain --quiet
1545696 DEBUG 382672 ++ awk '/^##username$/{getline; print}'
1548513 DEBUG 385485 + for u in $(ynh_user_list)
1548514 DEBUG 385486 + mkdir -p /home/yunohost.app/nextcloud/data/bubuadmin
1548615 DEBUG 385588 + setfacl -m g:nextcloud:rwx /home/bubuadmin
1548617 DEBUG 385589 + ynh_multimedia_build_main_dir
1548618 DEBUG 385589 + local ynh_media_release=v1.0
1548619 DEBUG 385590 + local checksum=4852c8607db820ad51f348da0dcf0c88
1548620 DEBUG 385591 + wget -nv https://github.com/YunoHost-Apps/yunohost.multimedia/archive/v1.0.tar.gz
1550125 DEBUG 387095 + echo '4852c8607db820ad51f348da0dcf0c88 v1.0.tar.gz'
1550127 WARNING 387097 2019-02-23 13:58:27 URL:https://codeload.github.com/YunoHost-Apps/yunohost.multimedia/tar.gz/v1.0 [15907] -> "v1.0.tar.gz" [1]
1550129 DEBUG 387100 + md5sum -c --status
1550232 DEBUG 387201 + mkdir yunohost.multimedia-master
1550234 DEBUG 387203 + tar -xf v1.0.tar.gz -C yunohost.multimedia-master --strip-components 1
1550337 DEBUG 387305 + ./yunohost.multimedia-master/script/ynh_media_build.sh
1554551 DEBUG 391519 hook: /etc/yunohost/hooks.d/post_user_create/50-ynh_media
1555756 DEBUG 392723 hook: /etc/yunohost/hooks.d/post_user_delete/50-ynh_media
1556058 DEBUG 393025 + ynh_multimedia_addaccess nextcloud
1556059 DEBUG 393026 + local user_name=nextcloud
1556060 DEBUG 393027 + groupadd -f multimedia
1556061 DEBUG 393027 + usermod -a -G multimedia nextcloud
1556363 DEBUG 393329 + systemctl reload php7.0-fpm
1556767 DEBUG 393732 + systemctl reload nginx
1561592 DEBUG 398551 + ynh_exit_properly
1561593 DEBUG 398553 + local exit_code=0
1561594 DEBUG 398555 + '[' 0 -eq 0 ']'
1561595 DEBUG 398556 + exit 0
1561797 DEBUG 398724 To view the log of the operation 'Restore 'nextcloud' from a backup archive', use the command 'yunohost log display 20190223-135516-backup_restore_app-nextcloud'
1565408 DEBUG The SSOwat configuration has been generated
1565711 DEBUG 402701 Restore complete
1565713 DEBUG 402702 action [14000.1] executed in 401.102s
1565713 DEBUG apps:
1565714 DEBUG   nextcloud: Success
1565715 DEBUG system:
1565917 DEBUG + ynh_die 'The app was restored to the way it was before the failed upgrade.'
1565918 WARNING The app was restored to the way it was before the failed upgrade.
1565919 DEBUG + echo 'The app was restored to the way it was before the failed upgrade.'
1565920 DEBUG + exit 1
1566075 ERROR Unable to upgrade nextcloud
1566088 INFO The operation 'Upgrade 'nextcloud' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190223-133247-app_upgrade-nextcloud --share'
1566111 DEBUG action [10379.1] executed in 1565.024s
1566112 DEBUG lock has been released
1566113 ERROR No app to upgrade

Du coup j’ai l’impression que le message pertinent est

à voir à quoi ça correspond exactement …