YunoHost-Apps / airsonic_ynh

Airsonic package for YunoHost
https://airsonic.github.io/
GNU General Public License v3.0
9 stars 7 forks source link

Unable to update from 10.1.2 to 10.4.0 #11

Closed jbocaneg closed 4 years ago

jbocaneg commented 4 years ago

Hi,

I try to update from 10.1.2 on a ARM device (raspberry pi)

I have an error at the step of backing up the application.

ended_at: 2019-08-31 20:53:54.480020
env:
  YNH_APP_ID: airsonic
  YNH_APP_INSTANCE_NAME: airsonic
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/airsonic_ynh-feac2ae93f9a0d283c689c0184c655ba69238c0e/scripts
  YNH_INTERFACE: api
  YNH_STDINFO: /tmp/tmpgwUg8K/stdinfo
  YNH_STDRETURN: /tmp/tmpg_8n3s/stdreturn
error: "Impossible de mettre \xE0 jour airsonic"
operation: app_upgrade
related_to:
- - app
  - airsonic
started_at: 2019-08-31 20:53:42.610424
success: false

============

2019-08-31 21:53:42,866: DEBUG - Exécution de la commande 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/airsonic_ynh-feac2ae93f9a0d283c689c0184c655ba69238c0e/scripts YNH_STDINFO=/tmp/tmpgwUg8K/stdinfo YNH_APP_INSTANCE_NAME=airsonic YNH_INTERFACE=api YNH_APP_ID=airsonic YNH_STDRETURN=/tmp/tmpg_8n3s/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" airsonic 7>&1' …
2019-08-31 21:53:42,867: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/airsonic_ynh-feac2ae93f9a0d283c689c0184c655ba69238c0e/scripts YNH_STDINFO=/tmp/tmpgwUg8K/stdinfo YNH_APP_INSTANCE_NAME=airsonic YNH_INTERFACE=api YNH_APP_ID=airsonic YNH_STDRETURN=/tmp/tmpg_8n3s/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./upgrade" airsonic 7>&1']'
2019-08-31 21:53:42,909: DEBUG - + source _common.sh
2019-08-31 21:53:42,912: DEBUG - ++ pkg_dependencies='openjdk-8-jre ffmpeg'
2019-08-31 21:53:42,913: DEBUG - + source /usr/share/yunohost/helpers
2019-08-31 21:53:42,915: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2019-08-31 21:53:42,915: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:42,916: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2019-08-31 21:53:42,917: DEBUG - ++ . /usr/share/yunohost/helpers.d/apt
2019-08-31 21:53:42,918: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:42,919: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2019-08-31 21:53:42,919: DEBUG - ++ . /usr/share/yunohost/helpers.d/backup
2019-08-31 21:53:42,920: DEBUG - +++ CAN_BIND=1
2019-08-31 21:53:42,921: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:42,922: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2019-08-31 21:53:42,923: DEBUG - ++ . /usr/share/yunohost/helpers.d/fail2ban
2019-08-31 21:53:42,924: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:42,924: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2019-08-31 21:53:42,925: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2019-08-31 21:53:43,026: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,027: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2019-08-31 21:53:43,028: DEBUG - ++ . /usr/share/yunohost/helpers.d/logging
2019-08-31 21:53:43,029: DEBUG - +++ increment_progression=0
2019-08-31 21:53:43,030: DEBUG - +++ previous_weight=0
2019-08-31 21:53:43,031: DEBUG - +++ max_progression=-1
2019-08-31 21:53:43,032: DEBUG - +++ progress_scale=20
2019-08-31 21:53:43,033: DEBUG - +++ progress_string2='####################'
2019-08-31 21:53:43,034: DEBUG - +++ progress_string1=++++++++++++++++++++
2019-08-31 21:53:43,035: DEBUG - +++ progress_string0=....................
2019-08-31 21:53:43,036: DEBUG - ++++ date +%s
2019-08-31 21:53:43,037: DEBUG - +++ base_time=1567284822
2019-08-31 21:53:43,038: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,039: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2019-08-31 21:53:43,040: DEBUG - ++ . /usr/share/yunohost/helpers.d/logrotate
2019-08-31 21:53:43,040: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,041: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2019-08-31 21:53:43,042: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2019-08-31 21:53:43,043: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2019-08-31 21:53:43,044: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,045: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2019-08-31 21:53:43,046: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2019-08-31 21:53:43,047: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,048: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2019-08-31 21:53:43,049: DEBUG - ++ . /usr/share/yunohost/helpers.d/nginx
2019-08-31 21:53:43,050: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,051: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2019-08-31 21:53:43,053: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2019-08-31 21:53:43,054: DEBUG - +++ n_install_dir=/opt/node_n
2019-08-31 21:53:43,055: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2019-08-31 21:53:43,056: DEBUG - +++ export N_PREFIX=/opt/node_n
2019-08-31 21:53:43,057: DEBUG - +++ N_PREFIX=/opt/node_n
2019-08-31 21:53:43,057: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,058: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2019-08-31 21:53:43,059: DEBUG - ++ . /usr/share/yunohost/helpers.d/php
2019-08-31 21:53:43,060: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,062: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2019-08-31 21:53:43,063: DEBUG - ++ . /usr/share/yunohost/helpers.d/postgresql
2019-08-31 21:53:43,064: DEBUG - +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2019-08-31 21:53:43,065: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,066: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2019-08-31 21:53:43,067: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2019-08-31 21:53:43,068: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,069: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2019-08-31 21:53:43,070: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2019-08-31 21:53:43,071: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,072: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2019-08-31 21:53:43,074: DEBUG - ++ . /usr/share/yunohost/helpers.d/systemd
2019-08-31 21:53:43,075: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,076: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2019-08-31 21:53:43,077: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2019-08-31 21:53:43,078: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:43,079: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2019-08-31 21:53:43,080: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2019-08-31 21:53:43,081: DEBUG - + ynh_script_progression '--message=Loading installation settings...' --weight=1
2019-08-31 21:53:43,082: DEBUG - + set +x
2019-08-31 21:53:43,083: DEBUG - + set +x
2019-08-31 21:53:43,184: DEBUG - + echo '! Helper used in legacy mode !'
2019-08-31 21:53:43,185: INFO - [....................] > Loading installation settings...
2019-08-31 21:53:43,188: DEBUG - + set +x
2019-08-31 21:53:43,189: DEBUG - + echo '[....................] > Loading installation settings...'
2019-08-31 21:53:43,190: DEBUG - + set -x
2019-08-31 21:53:43,190: DEBUG - + app=airsonic
2019-08-31 21:53:43,191: DEBUG - ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:43,192: DEBUG - ++ local legacy_args=ak
2019-08-31 21:53:43,192: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:43,193: DEBUG - ++ declare -Ar args_array
2019-08-31 21:53:43,194: DEBUG - ++ local app
2019-08-31 21:53:43,194: DEBUG - ++ local key
2019-08-31 21:53:43,195: DEBUG - ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:43,195: DEBUG - ++ set +x
2019-08-31 21:53:43,196: DEBUG - ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:43,197: DEBUG - ++ ACTION=get
2019-08-31 21:53:43,197: DEBUG - ++ APP=airsonic
2019-08-31 21:53:43,198: DEBUG - ++ KEY=**********
2019-08-31 21:53:43,198: DEBUG - ++ VALUE=
2019-08-31 21:53:43,199: DEBUG - ++ python -
2019-08-31 21:53:43,601: DEBUG - + **********=jubok.eu
2019-08-31 21:53:43,602: DEBUG - ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:43,603: DEBUG - ++ local legacy_args=ak
2019-08-31 21:53:43,604: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:43,605: DEBUG - ++ declare -Ar args_array
2019-08-31 21:53:43,606: DEBUG - ++ local app
2019-08-31 21:53:43,607: DEBUG - ++ local key
2019-08-31 21:53:43,608: DEBUG - ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:43,608: DEBUG - ++ set +x
2019-08-31 21:53:43,609: DEBUG - ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:43,610: DEBUG - ++ ACTION=get
2019-08-31 21:53:43,611: DEBUG - ++ APP=airsonic
2019-08-31 21:53:43,612: DEBUG - ++ KEY=**********
2019-08-31 21:53:43,612: DEBUG - ++ VALUE=
2019-08-31 21:53:43,613: DEBUG - ++ python -
2019-08-31 21:53:44,116: DEBUG - + **********_url=/airsonic
2019-08-31 21:53:44,117: DEBUG - ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:44,118: DEBUG - ++ local legacy_args=ak
2019-08-31 21:53:44,119: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:44,120: DEBUG - ++ declare -Ar args_array
2019-08-31 21:53:44,120: DEBUG - ++ local app
2019-08-31 21:53:44,121: DEBUG - ++ local key
2019-08-31 21:53:44,121: DEBUG - ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:44,122: DEBUG - ++ set +x
2019-08-31 21:53:44,123: DEBUG - ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:44,123: DEBUG - ++ ACTION=get
2019-08-31 21:53:44,124: DEBUG - ++ APP=airsonic
2019-08-31 21:53:44,125: DEBUG - ++ KEY=**********
2019-08-31 21:53:44,125: DEBUG - ++ VALUE=
2019-08-31 21:53:44,126: DEBUG - ++ python -
2019-08-31 21:53:44,528: DEBUG - + **********=jubok
2019-08-31 21:53:44,529: DEBUG - ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:44,529: DEBUG - ++ local legacy_args=ak
2019-08-31 21:53:44,530: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:44,530: DEBUG - ++ declare -Ar args_array
2019-08-31 21:53:44,531: DEBUG - ++ local app
2019-08-31 21:53:44,532: DEBUG - ++ local key
2019-08-31 21:53:44,532: DEBUG - ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:44,533: DEBUG - ++ set +x
2019-08-31 21:53:44,634: DEBUG - ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:44,636: DEBUG - ++ ACTION=get
2019-08-31 21:53:44,637: DEBUG - ++ APP=airsonic
2019-08-31 21:53:44,638: DEBUG - ++ KEY=**********
2019-08-31 21:53:44,639: DEBUG - ++ VALUE=
2019-08-31 21:53:44,640: DEBUG - ++ python -
2019-08-31 21:53:45,042: DEBUG - + **********=1
2019-08-31 21:53:45,043: DEBUG - ++ ynh_app_setting_get --app=airsonic --key=final_**********
2019-08-31 21:53:45,044: DEBUG - ++ local legacy_args=ak
2019-08-31 21:53:45,044: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:45,045: DEBUG - ++ declare -Ar args_array
2019-08-31 21:53:45,045: DEBUG - ++ local app
2019-08-31 21:53:45,046: DEBUG - ++ local key
2019-08-31 21:53:45,047: DEBUG - ++ ynh_handle_getopts_args --app=airsonic --key=final_**********
2019-08-31 21:53:45,047: DEBUG - ++ set +x
2019-08-31 21:53:45,048: DEBUG - ++ ynh_app_setting get airsonic final_**********
2019-08-31 21:53:45,048: DEBUG - ++ ACTION=get
2019-08-31 21:53:45,049: DEBUG - ++ APP=airsonic
2019-08-31 21:53:45,050: DEBUG - ++ KEY=final_**********
2019-08-31 21:53:45,050: DEBUG - ++ VALUE=
2019-08-31 21:53:45,051: DEBUG - ++ python -
2019-08-31 21:53:45,453: DEBUG - + final_**********=/opt/yunohost/airsonic
2019-08-31 21:53:45,454: DEBUG - ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:45,455: DEBUG - ++ local legacy_args=ak
2019-08-31 21:53:45,456: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:45,457: DEBUG - ++ declare -Ar args_array
2019-08-31 21:53:45,458: DEBUG - ++ local app
2019-08-31 21:53:45,459: DEBUG - ++ local key
2019-08-31 21:53:45,460: DEBUG - ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:45,461: DEBUG - ++ set +x
2019-08-31 21:53:45,562: DEBUG - ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:45,563: DEBUG - ++ ACTION=get
2019-08-31 21:53:45,564: DEBUG - ++ APP=airsonic
2019-08-31 21:53:45,564: DEBUG - ++ KEY=**********
2019-08-31 21:53:45,565: DEBUG - ++ VALUE=
2019-08-31 21:53:45,566: DEBUG - ++ python -
2019-08-31 21:53:45,968: DEBUG - + **********=8095
2019-08-31 21:53:45,969: DEBUG - ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:45,970: DEBUG - ++ local legacy_args=ak
2019-08-31 21:53:45,970: DEBUG - ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:45,971: DEBUG - ++ declare -Ar args_array
2019-08-31 21:53:45,972: DEBUG - ++ local app
2019-08-31 21:53:45,973: DEBUG - ++ local key
2019-08-31 21:53:45,974: DEBUG - ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:45,975: DEBUG - ++ set +x
2019-08-31 21:53:45,975: DEBUG - ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:45,976: DEBUG - ++ ACTION=get
2019-08-31 21:53:45,977: DEBUG - ++ APP=airsonic
2019-08-31 21:53:45,978: DEBUG - ++ KEY=**********
2019-08-31 21:53:45,978: DEBUG - ++ VALUE=
2019-08-31 21:53:45,979: DEBUG - ++ python -
2019-08-31 21:53:46,381: DEBUG - + **********=/etc/default/airsonic
2019-08-31 21:53:46,382: DEBUG - ++ ynh_check_app_version_changed
2019-08-31 21:53:46,384: DEBUG - ++ local force_upgrade=0
2019-08-31 21:53:46,385: DEBUG - ++ local package_check=0
2019-08-31 21:53:46,386: DEBUG - ++ local return_value=UPGRADE_APP
2019-08-31 21:53:46,387: DEBUG - +++ ynh_read_manifest --manifest=/etc/yunohost/apps/airsonic/manifest.json --manifest_key=**********
2019-08-31 21:53:46,388: DEBUG - +++ local legacy_args=mk
2019-08-31 21:53:46,389: DEBUG - +++ args_array=([m]=manifest= [k]=manifest_key=)
2019-08-31 21:53:46,390: DEBUG - +++ declare -Ar args_array
2019-08-31 21:53:46,391: DEBUG - +++ local manifest
2019-08-31 21:53:46,392: DEBUG - +++ local manifest_key
2019-08-31 21:53:46,393: DEBUG - +++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/airsonic/manifest.json --manifest_key=**********
2019-08-31 21:53:46,394: DEBUG - +++ set +x
2019-08-31 21:53:46,495: DEBUG - +++ '[' '!' -e /etc/yunohost/apps/airsonic/manifest.json ']'
2019-08-31 21:53:46,496: DEBUG - +++ jq .********** /etc/yunohost/apps/airsonic/manifest.json --raw-output
2019-08-31 21:53:46,497: DEBUG - ++ local current_**********=10.1.2~ynh1
2019-08-31 21:53:46,499: DEBUG - +++ ynh_app_upstream_********** --manifest=/etc/yunohost/apps/airsonic/manifest.json
2019-08-31 21:53:46,500: DEBUG - +++ local legacy_args=m
2019-08-31 21:53:46,501: DEBUG - +++ args_array=([m]=manifest=)
2019-08-31 21:53:46,502: DEBUG - +++ declare -Ar args_array
2019-08-31 21:53:46,503: DEBUG - +++ local manifest
2019-08-31 21:53:46,504: DEBUG - +++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/airsonic/manifest.json
2019-08-31 21:53:46,505: DEBUG - +++ set +x
2019-08-31 21:53:46,506: DEBUG - +++ manifest=/etc/yunohost/apps/airsonic/manifest.json
2019-08-31 21:53:46,507: DEBUG - ++++ ynh_read_manifest --manifest=/etc/yunohost/apps/airsonic/manifest.json --manifest_key=**********
2019-08-31 21:53:46,508: DEBUG - ++++ local legacy_args=mk
2019-08-31 21:53:46,509: DEBUG - ++++ args_array=([m]=manifest= [k]=manifest_key=)
2019-08-31 21:53:46,510: DEBUG - ++++ declare -Ar args_array
2019-08-31 21:53:46,511: DEBUG - ++++ local manifest
2019-08-31 21:53:46,512: DEBUG - ++++ local manifest_key
2019-08-31 21:53:46,513: DEBUG - ++++ ynh_handle_getopts_args --manifest=/etc/yunohost/apps/airsonic/manifest.json --manifest_key=**********
2019-08-31 21:53:46,514: DEBUG - ++++ set +x
2019-08-31 21:53:46,515: DEBUG - ++++ '[' '!' -e /etc/yunohost/apps/airsonic/manifest.json ']'
2019-08-31 21:53:46,516: DEBUG - ++++ jq .********** /etc/yunohost/apps/airsonic/manifest.json --raw-output
2019-08-31 21:53:46,517: DEBUG - +++ **********_key=**********
2019-08-31 21:53:46,518: DEBUG - +++ echo 10.1.2
2019-08-31 21:53:46,519: DEBUG - ++ local current_upstream_**********=10.1.2
2019-08-31 21:53:46,520: DEBUG - +++ ynh_read_manifest --manifest=../manifest.json --manifest_key=**********
2019-08-31 21:53:46,521: DEBUG - +++ local legacy_args=mk
2019-08-31 21:53:46,522: DEBUG - +++ args_array=([m]=manifest= [k]=manifest_key=)
2019-08-31 21:53:46,523: DEBUG - +++ declare -Ar args_array
2019-08-31 21:53:46,524: DEBUG - +++ local manifest
2019-08-31 21:53:46,525: DEBUG - +++ local manifest_key
2019-08-31 21:53:46,527: DEBUG - +++ ynh_handle_getopts_args --manifest=../manifest.json --manifest_key=**********
2019-08-31 21:53:46,528: DEBUG - +++ set +x
2019-08-31 21:53:46,629: DEBUG - +++ '[' '!' -e ../manifest.json ']'
2019-08-31 21:53:46,630: DEBUG - +++ jq .********** ../manifest.json --raw-output
2019-08-31 21:53:46,631: DEBUG - ++ local update_**********=10.4.0~ynh1
2019-08-31 21:53:46,632: DEBUG - +++ ynh_app_upstream_**********
2019-08-31 21:53:46,633: DEBUG - +++ local legacy_args=m
2019-08-31 21:53:46,634: DEBUG - +++ args_array=([m]=manifest=)
2019-08-31 21:53:46,635: DEBUG - +++ declare -Ar args_array
2019-08-31 21:53:46,636: DEBUG - +++ local manifest
2019-08-31 21:53:46,637: DEBUG - +++ ynh_handle_getopts_args
2019-08-31 21:53:46,638: DEBUG - +++ set +x
2019-08-31 21:53:46,639: DEBUG - +++ manifest=../manifest.json
2019-08-31 21:53:46,640: DEBUG - ++++ ynh_read_manifest --manifest=../manifest.json --manifest_key=**********
2019-08-31 21:53:46,641: DEBUG - ++++ local legacy_args=mk
2019-08-31 21:53:46,642: DEBUG - ++++ args_array=([m]=manifest= [k]=manifest_key=)
2019-08-31 21:53:46,643: DEBUG - ++++ declare -Ar args_array
2019-08-31 21:53:46,644: DEBUG - ++++ local manifest
2019-08-31 21:53:46,645: DEBUG - ++++ local manifest_key
2019-08-31 21:53:46,646: DEBUG - ++++ ynh_handle_getopts_args --manifest=../manifest.json --manifest_key=**********
2019-08-31 21:53:46,647: DEBUG - ++++ set +x
2019-08-31 21:53:46,648: DEBUG - ++++ '[' '!' -e ../manifest.json ']'
2019-08-31 21:53:46,649: DEBUG - ++++ jq .********** ../manifest.json --raw-output
2019-08-31 21:53:46,650: DEBUG - +++ **********_key=**********
2019-08-31 21:53:46,650: DEBUG - +++ echo 10.4.0
2019-08-31 21:53:46,651: DEBUG - ++ local update_upstream_**********=10.4.0
2019-08-31 21:53:46,652: DEBUG - ++ '[' ********** == ********** ']'
2019-08-31 21:53:46,654: DEBUG - ++ '[' 10.1.2 == 10.4.0 ']'
2019-08-31 21:53:46,655: DEBUG - ++ echo UPGRADE_APP
2019-08-31 21:53:46,655: DEBUG - + upgrade_type=UPGRADE_APP
2019-08-31 21:53:46,657: DEBUG - + ynh_script_progression '--message=Ensuring downward compatibility...' --weight=1
2019-08-31 21:53:46,658: DEBUG - + set +x
2019-08-31 21:53:46,659: DEBUG - + set +x
2019-08-31 21:53:46,660: DEBUG - + echo '! Helper used in legacy mode !'
2019-08-31 21:53:46,661: DEBUG - + set +x
2019-08-31 21:53:46,661: DEBUG - + echo '[....................] > Ensuring downward compatibility...'
2019-08-31 21:53:46,662: DEBUG - + set -x
2019-08-31 21:53:46,664: DEBUG - + '[' 1 = Yes ']'
2019-08-31 21:53:46,665: DEBUG - + '[' 1 = No ']'
2019-08-31 21:53:46,665: DEBUG - + '[' -z /opt/yunohost/airsonic ']'
2019-08-31 21:53:46,666: DEBUG - + '[' -z /etc/default/airsonic ']'
2019-08-31 21:53:46,667: DEBUG - + ynh_script_progression '--message=Backing up the app before upgrading (may take a while)...' --weight=5
2019-08-31 21:53:46,668: DEBUG - + set +x
2019-08-31 21:53:46,770: DEBUG - + set +x
2019-08-31 21:53:46,771: INFO - [....................] > Ensuring downward compatibility...
2019-08-31 21:53:46,774: DEBUG - + echo '! Helper used in legacy mode !'
2019-08-31 21:53:46,775: INFO - [+...................] > Backing up the app before upgrading (may take a while)...
2019-08-31 21:53:46,777: DEBUG - + set +x
2019-08-31 21:53:46,778: DEBUG - + echo '[+...................] > Backing up the app before upgrading (may take a while)...'
2019-08-31 21:53:46,779: DEBUG - + set -x
2019-08-31 21:53:46,780: DEBUG - + ynh_backup_before_upgrade
2019-08-31 21:53:46,781: DEBUG - + '[' '!' -e /etc/yunohost/apps/airsonic/scripts/backup ']'
2019-08-31 21:53:46,782: DEBUG - + backup_number=1
2019-08-31 21:53:46,783: DEBUG - + local old_backup_number=2
2019-08-31 21:53:46,784: DEBUG - + local app_bck=airsonic
2019-08-31 21:53:46,784: DEBUG - + NO_BACKUP_UPGRADE=0
2019-08-31 21:53:46,785: DEBUG - + '[' 0 -eq 0 ']'
2019-08-31 21:53:46,786: DEBUG - + sudo yunohost backup list
2019-08-31 21:53:46,787: DEBUG - + grep -q airsonic-pre-upgrade1
2019-08-31 21:53:48,191: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps airsonic --name airsonic-pre-upgrade1 --debug
2019-08-31 21:53:48,895: DEBUG - 514  loading actions map namespace 'yunohost'
2019-08-31 21:53:48,996: DEBUG - 605  extra parameter classes loaded: ['comment', 'ask', 'password', 'required', 'pattern']
2019-08-31 21:53:48,997: DEBUG - 606  initializing base actions map parser for cli
2019-08-31 21:53:48,998: DEBUG - 610  registering new callback action 'yunohost.utils.packages.ynh_packages_**********' to ['-v', '--**********']
2019-08-31 21:53:49,500: DEBUG - 1183 loading python module yunohost.backup took 0.255s
2019-08-31 21:53:49,501: DEBUG - 1184 processing action [1394.1]: yunohost.backup.create with args={'description': None, 'apps': ['airsonic'], 'system': None, 'output_directory': None, 'methods': None, 'no_compress': False, 'name': 'airsonic-pre-upgrade1'}
2019-08-31 21:53:49,501: DEBUG - 1186 custom hook folder not found for action 'backup' in /etc/yunohost/hooks.d/
2019-08-31 21:53:49,603: DEBUG - 1198 Collecting files to be backuped for airsonic…
2019-08-31 21:53:49,604: DEBUG - 1231 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup YNH_STDINFO=/tmp/tmpmQSqDd/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_3isIgH YNH_BACKUP_DIR=/home/yunohost.backup/tmp/airsonic-pre-upgrade1 YNH_APP_INSTANCE_NAME=airsonic YNH_INTERFACE=cli YNH_APP_ID=airsonic YNH_STDRETURN=/tmp/tmpW6CAlG/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_QOpAIU" /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup airsonic 7>&1'…
2019-08-31 21:53:49,605: DEBUG - 1232 About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup YNH_STDINFO=/tmp/tmpmQSqDd/stdinfo YNH_BACKUP_CSV=/tmp/backupcsv_3isIgH YNH_BACKUP_DIR=/home/yunohost.backup/tmp/airsonic-pre-upgrade1 YNH_APP_INSTANCE_NAME=airsonic YNH_INTERFACE=cli YNH_APP_ID=airsonic YNH_STDRETURN=/tmp/tmpW6CAlG/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup BASH_XTRACEFD=7 /bin/bash -x "/tmp/backup_QOpAIU" /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup airsonic 7>&1']'
2019-08-31 21:53:49,607: DEBUG - 1261 + source ../settings/scripts/_common.sh
2019-08-31 21:53:49,608: DEBUG - 1263 + source /usr/share/yunohost/helpers
2019-08-31 21:53:49,608: DEBUG - 1264 +++ run-parts --list /usr/share/yunohost/helpers.d
2019-08-31 21:53:49,609: DEBUG - 1264 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,610: DEBUG - 1265 ++ '[' -r /usr/share/yunohost/helpers.d/apt ']'
2019-08-31 21:53:49,611: DEBUG - 1266 ++ . /usr/share/yunohost/helpers.d/apt
2019-08-31 21:53:49,611: DEBUG - 1266 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,612: DEBUG - 1267 ++ '[' -r /usr/share/yunohost/helpers.d/backup ']'
2019-08-31 21:53:49,613: DEBUG - 1267 ++ . /usr/share/yunohost/helpers.d/backup
2019-08-31 21:53:49,614: DEBUG - 1268 +++ CAN_BIND=1
2019-08-31 21:53:49,715: DEBUG - 1369 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,715: DEBUG - 1370 ++ '[' -r /usr/share/yunohost/helpers.d/fail2ban ']'
2019-08-31 21:53:49,716: DEBUG - 1371 ++ . /usr/share/yunohost/helpers.d/fail2ban
2019-08-31 21:53:49,717: DEBUG - 1372 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,718: DEBUG - 1372 ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2019-08-31 21:53:49,719: DEBUG - 1373 ++ . /usr/share/yunohost/helpers.d/getopts
2019-08-31 21:53:49,719: DEBUG - 1374 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,720: DEBUG - 1375 ++ '[' -r /usr/share/yunohost/helpers.d/logging ']'
2019-08-31 21:53:49,721: DEBUG - 1375 ++ . /usr/share/yunohost/helpers.d/logging
2019-08-31 21:53:49,722: DEBUG - 1376 +++ increment_progression=0
2019-08-31 21:53:49,722: DEBUG - 1377 +++ previous_weight=0
2019-08-31 21:53:49,723: DEBUG - 1378 +++ max_progression=-1
2019-08-31 21:53:49,724: DEBUG - 1379 +++ progress_scale=20
2019-08-31 21:53:49,725: DEBUG - 1379 +++ progress_string2='####################'
2019-08-31 21:53:49,725: DEBUG - 1380 +++ progress_string1=++++++++++++++++++++
2019-08-31 21:53:49,726: DEBUG - 1381 +++ progress_string0=....................
2019-08-31 21:53:49,729: DEBUG - 1382 ++++ date +%s
2019-08-31 21:53:49,730: DEBUG - 1382 +++ base_time=1567284829
2019-08-31 21:53:49,732: DEBUG - 1383 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,733: DEBUG - 1384 ++ '[' -r /usr/share/yunohost/helpers.d/logrotate ']'
2019-08-31 21:53:49,734: DEBUG - 1385 ++ . /usr/share/yunohost/helpers.d/logrotate
2019-08-31 21:53:49,736: DEBUG - 1386 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,737: DEBUG - 1386 ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2019-08-31 21:53:49,737: DEBUG - 1387 ++ . /usr/share/yunohost/helpers.d/mysql
2019-08-31 21:53:49,738: DEBUG - 1388 +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2019-08-31 21:53:49,739: DEBUG - 1389 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,740: DEBUG - 1390 ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2019-08-31 21:53:49,741: DEBUG - 1390 ++ . /usr/share/yunohost/helpers.d/network
2019-08-31 21:53:49,742: DEBUG - 1391 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,742: DEBUG - 1391 ++ '[' -r /usr/share/yunohost/helpers.d/nginx ']'
2019-08-31 21:53:49,743: DEBUG - 1392 ++ . /usr/share/yunohost/helpers.d/nginx
2019-08-31 21:53:49,744: DEBUG - 1393 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,745: DEBUG - 1393 ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2019-08-31 21:53:49,746: DEBUG - 1394 ++ . /usr/share/yunohost/helpers.d/nodejs
2019-08-31 21:53:49,747: DEBUG - 1395 +++ n_install_dir=/opt/node_n
2019-08-31 21:53:49,747: DEBUG - 1396 +++ node_**********_**********=/opt/node_n/n/**********s/node
2019-08-31 21:53:49,748: DEBUG - 1397 +++ ex********** N_PREFIX=/opt/node_n
2019-08-31 21:53:49,749: DEBUG - 1397 +++ N_PREFIX=/opt/node_n
2019-08-31 21:53:49,750: DEBUG - 1398 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,751: DEBUG - 1399 ++ '[' -r /usr/share/yunohost/helpers.d/php ']'
2019-08-31 21:53:49,751: DEBUG - 1400 ++ . /usr/share/yunohost/helpers.d/php
2019-08-31 21:53:49,752: DEBUG - 1400 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,753: DEBUG - 1401 ++ '[' -r /usr/share/yunohost/helpers.d/postgresql ']'
2019-08-31 21:53:49,754: DEBUG - 1402 ++ . /usr/share/yunohost/helpers.d/postgresql
2019-08-31 21:53:49,755: DEBUG - 1403 +++ PSQL_ROOT_PWD_FILE=/etc/yunohost/psql
2019-08-31 21:53:49,756: DEBUG - 1403 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,756: DEBUG - 1404 ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2019-08-31 21:53:49,757: DEBUG - 1405 ++ . /usr/share/yunohost/helpers.d/setting
2019-08-31 21:53:49,758: DEBUG - 1405 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,759: DEBUG - 1406 ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2019-08-31 21:53:49,760: DEBUG - 1407 ++ . /usr/share/yunohost/helpers.d/string
2019-08-31 21:53:49,760: DEBUG - 1407 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,761: DEBUG - 1408 ++ '[' -r /usr/share/yunohost/helpers.d/systemd ']'
2019-08-31 21:53:49,762: DEBUG - 1408 ++ . /usr/share/yunohost/helpers.d/systemd
2019-08-31 21:53:49,763: DEBUG - 1409 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,764: DEBUG - 1409 ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2019-08-31 21:53:49,765: DEBUG - 1410 ++ . /usr/share/yunohost/helpers.d/user
2019-08-31 21:53:49,766: DEBUG - 1411 ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-08-31 21:53:49,767: DEBUG - 1411 ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2019-08-31 21:53:49,768: DEBUG - 1412 ++ . /usr/share/yunohost/helpers.d/utils
2019-08-31 21:53:49,769: DEBUG - 1412 + ynh_abort_if_errors
2019-08-31 21:53:49,770: DEBUG - 1413 + set -eu
2019-08-31 21:53:49,770: DEBUG - 1414 + trap ynh_exit_properly EXIT
2019-08-31 21:53:49,771: DEBUG - 1414 + app=airsonic
2019-08-31 21:53:49,772: DEBUG - 1415 ++ ynh_app_setting_get airsonic final_**********
2019-08-31 21:53:49,772: DEBUG - 1415 ++ local legacy_args=ak
2019-08-31 21:53:49,773: DEBUG - 1416 ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:49,774: DEBUG - 1417 ++ declare -Ar args_array
2019-08-31 21:53:49,774: DEBUG - 1417 ++ local app
2019-08-31 21:53:49,775: DEBUG - 1418 ++ local key
2019-08-31 21:53:49,776: DEBUG - 1419 ++ ynh_handle_getopts_args airsonic final_**********
2019-08-31 21:53:49,776: DEBUG - 1419 ++ set +x
2019-08-31 21:53:49,777: DEBUG - 1420 ++ echo '! Helper used in legacy mode !'
2019-08-31 21:53:49,777: DEBUG - 1421 ++ set +x
2019-08-31 21:53:49,778: DEBUG - 1421 ++ ynh_app_setting get airsonic final_**********
2019-08-31 21:53:49,779: DEBUG - 1422 ++ ACTION=get
2019-08-31 21:53:49,779: DEBUG - 1423 ++ APP=airsonic
2019-08-31 21:53:49,780: DEBUG - 1424 ++ KEY=final_**********
2019-08-31 21:53:49,781: DEBUG - 1424 ++ VALUE=
2019-08-31 21:53:49,781: DEBUG - 1425 ++ python -
2019-08-31 21:53:50,283: DEBUG - 1927 + final_**********=/opt/yunohost/airsonic
2019-08-31 21:53:50,285: DEBUG - 1928 ++ ynh_app_setting_get airsonic **********
2019-08-31 21:53:50,286: DEBUG - 1929 ++ local legacy_args=ak
2019-08-31 21:53:50,287: DEBUG - 1929 ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:50,288: DEBUG - 1930 ++ declare -Ar args_array
2019-08-31 21:53:50,289: DEBUG - 1930 ++ local app
2019-08-31 21:53:50,290: DEBUG - 1931 ++ local key
2019-08-31 21:53:50,291: DEBUG - 1931 ++ ynh_handle_getopts_args airsonic **********
2019-08-31 21:53:50,292: DEBUG - 1932 ++ set +x
2019-08-31 21:53:50,293: DEBUG - 1932 ++ echo '! Helper used in legacy mode !'
2019-08-31 21:53:50,294: DEBUG - 1933 ++ set +x
2019-08-31 21:53:50,295: DEBUG - 1934 ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:50,296: DEBUG - 1934 ++ ACTION=get
2019-08-31 21:53:50,297: DEBUG - 1935 ++ APP=airsonic
2019-08-31 21:53:50,298: DEBUG - 1935 ++ KEY=**********
2019-08-31 21:53:50,299: DEBUG - 1936 ++ VALUE=
2019-08-31 21:53:50,300: DEBUG - 1936 ++ python -
2019-08-31 21:53:50,703: DEBUG - 2338 + **********=jubok.eu
2019-08-31 21:53:50,704: DEBUG - 2339 ++ ynh_app_setting_get airsonic **********
2019-08-31 21:53:50,704: DEBUG - 2340 ++ local legacy_args=ak
2019-08-31 21:53:50,705: DEBUG - 2340 ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:50,706: DEBUG - 2341 ++ declare -Ar args_array
2019-08-31 21:53:50,706: DEBUG - 2341 ++ local app
2019-08-31 21:53:50,707: DEBUG - 2342 ++ local key
2019-08-31 21:53:50,707: DEBUG - 2343 ++ ynh_handle_getopts_args airsonic **********
2019-08-31 21:53:50,708: DEBUG - 2344 ++ set +x
2019-08-31 21:53:50,709: DEBUG - 2344 ++ echo '! Helper used in legacy mode !'
2019-08-31 21:53:50,709: DEBUG - 2345 ++ set +x
2019-08-31 21:53:50,710: DEBUG - 2346 ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:50,711: DEBUG - 2346 ++ ACTION=get
2019-08-31 21:53:50,711: DEBUG - 2347 ++ APP=airsonic
2019-08-31 21:53:50,712: DEBUG - 2348 ++ KEY=**********
2019-08-31 21:53:50,712: DEBUG - 2348 ++ VALUE=
2019-08-31 21:53:50,713: DEBUG - 2349 ++ python -
2019-08-31 21:53:51,115: DEBUG - 2751 + **********=/etc/default/airsonic
2019-08-31 21:53:51,116: DEBUG - 2752 + ynh_backup /opt/yunohost/airsonic
2019-08-31 21:53:51,117: DEBUG - 2753 + local legacy_args=sdbm
2019-08-31 21:53:51,118: DEBUG - 2753 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory)
2019-08-31 21:53:51,119: DEBUG - 2754 + declare -Ar args_array
2019-08-31 21:53:51,120: DEBUG - 2756 + local src_**********
2019-08-31 21:53:51,120: DEBUG - 2757 + local dest_**********
2019-08-31 21:53:51,121: DEBUG - 2758 + local is_big
2019-08-31 21:53:51,122: DEBUG - 2759 + local not_mandatory
2019-08-31 21:53:51,123: DEBUG - 2761 + ynh_handle_getopts_args /opt/yunohost/airsonic
2019-08-31 21:53:51,124: DEBUG - 2762 + set +x
2019-08-31 21:53:51,226: DEBUG - 2863 + echo '! Helper used in legacy mode !'
2019-08-31 21:53:51,227: DEBUG - 2864 + set +x
2019-08-31 21:53:51,228: DEBUG - 2865 + local dest_**********=
2019-08-31 21:53:51,229: DEBUG - 2865 + local is_big=0
2019-08-31 21:53:51,230: DEBUG - 2866 + local not_mandatory=0
2019-08-31 21:53:51,231: DEBUG - 2866 + BACKUP_CORE_ONLY=1
2019-08-31 21:53:51,232: DEBUG - 2867 + test -n airsonic
2019-08-31 21:53:51,233: DEBUG - 2867 ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:51,234: DEBUG - 2868 ++ local legacy_args=ak
2019-08-31 21:53:51,235: DEBUG - 2868 ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:51,237: DEBUG - 2869 ++ declare -Ar args_array
2019-08-31 21:53:51,238: DEBUG - 2869 ++ local app
2019-08-31 21:53:51,239: DEBUG - 2870 ++ local key
2019-08-31 21:53:51,240: DEBUG - 2870 ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:51,241: DEBUG - 2871 ++ set +x
2019-08-31 21:53:51,242: DEBUG - 2871 ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:51,243: DEBUG - 2872 ++ ACTION=get
2019-08-31 21:53:51,244: DEBUG - 2872 ++ APP=airsonic
2019-08-31 21:53:51,245: DEBUG - 2873 ++ KEY=**********
2019-08-31 21:53:51,246: DEBUG - 2873 ++ VALUE=
2019-08-31 21:53:51,247: DEBUG - 2874 ++ python -
2019-08-31 21:53:51,649: DEBUG - 3276 + **********=
2019-08-31 21:53:51,650: DEBUG - 3277 + '[' 0 -eq 1 ']'
2019-08-31 21:53:51,651: DEBUG - 3278 + [[ -e /opt/yunohost/airsonic ]]
2019-08-31 21:53:51,652: DEBUG - 3278 ++ real********** /opt/yunohost/airsonic
2019-08-31 21:53:51,653: DEBUG - 3279 + src_**********=/opt/yunohost/airsonic
2019-08-31 21:53:51,654: DEBUG - 3280 + [[ -z '' ]]
2019-08-31 21:53:51,655: DEBUG - 3281 + dest_**********=opt/yunohost/airsonic
2019-08-31 21:53:51,655: DEBUG - 3281 + [[ ! -e opt/yunohost/airsonic ]]
2019-08-31 21:53:51,656: DEBUG - 3282 + local rel_dir=/apps/airsonic/backup
2019-08-31 21:53:51,657: DEBUG - 3283 + rel_dir=/apps/airsonic/backup/
2019-08-31 21:53:51,658: DEBUG - 3284 + dest_**********=/apps/airsonic/backup/opt/yunohost/airsonic
2019-08-31 21:53:51,659: DEBUG - 3285 + dest_**********=apps/airsonic/backup/opt/yunohost/airsonic
2019-08-31 21:53:51,659: DEBUG - 3285 ++ echo /opt/yunohost/airsonic
2019-08-31 21:53:51,660: DEBUG - 3286 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:51,661: DEBUG - 3287 + local src=/opt/yunohost/airsonic
2019-08-31 21:53:51,662: DEBUG - 3288 ++ echo apps/airsonic/backup/opt/yunohost/airsonic
2019-08-31 21:53:51,662: DEBUG - 3289 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:51,664: DEBUG - 3289 + local dest=apps/airsonic/backup/opt/yunohost/airsonic
2019-08-31 21:53:51,664: DEBUG - 3290 + echo '"/opt/yunohost/airsonic","apps/airsonic/backup/opt/yunohost/airsonic"'
2019-08-31 21:53:51,665: DEBUG - 3291 ++ dirname /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/opt/yunohost/airsonic
2019-08-31 21:53:51,666: DEBUG - 3292 + mkdir -p /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/opt/yunohost
2019-08-31 21:53:51,667: DEBUG - 3293 + ynh_backup /etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:51,668: DEBUG - 3294 + local legacy_args=sdbm
2019-08-31 21:53:51,669: DEBUG - 3294 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory)
2019-08-31 21:53:51,669: DEBUG - 3295 + declare -Ar args_array
2019-08-31 21:53:51,670: DEBUG - 3296 + local src_**********
2019-08-31 21:53:51,671: DEBUG - 3297 + local dest_**********
2019-08-31 21:53:51,672: DEBUG - 3298 + local is_big
2019-08-31 21:53:51,672: DEBUG - 3298 + local not_mandatory
2019-08-31 21:53:51,673: DEBUG - 3299 + ynh_handle_getopts_args /etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:51,674: DEBUG - 3300 + set +x
2019-08-31 21:53:51,675: DEBUG - 3301 + echo '! Helper used in legacy mode !'
2019-08-31 21:53:51,676: DEBUG - 3302 + set +x
2019-08-31 21:53:51,677: DEBUG - 3302 + local dest_**********=
2019-08-31 21:53:51,678: DEBUG - 3304 + local is_big=0
2019-08-31 21:53:51,678: DEBUG - 3304 + local not_mandatory=0
2019-08-31 21:53:51,679: DEBUG - 3305 + BACKUP_CORE_ONLY=1
2019-08-31 21:53:51,680: DEBUG - 3306 + test -n airsonic
2019-08-31 21:53:51,681: DEBUG - 3307 ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:51,681: DEBUG - 3307 ++ local legacy_args=ak
2019-08-31 21:53:51,682: DEBUG - 3308 ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:51,683: DEBUG - 3309 ++ declare -Ar args_array
2019-08-31 21:53:51,684: DEBUG - 3310 ++ local app
2019-08-31 21:53:51,685: DEBUG - 3310 ++ local key
2019-08-31 21:53:51,685: DEBUG - 3311 ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:51,686: DEBUG - 3312 ++ set +x
2019-08-31 21:53:51,788: DEBUG - 3413 ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:51,789: DEBUG - 3413 ++ ACTION=get
2019-08-31 21:53:51,789: DEBUG - 3414 ++ APP=airsonic
2019-08-31 21:53:51,790: DEBUG - 3415 ++ KEY=**********
2019-08-31 21:53:51,791: DEBUG - 3415 ++ VALUE=
2019-08-31 21:53:51,792: DEBUG - 3416 ++ python -
2019-08-31 21:53:52,194: DEBUG - 3817 + **********=
2019-08-31 21:53:52,195: DEBUG - 3819 + '[' 0 -eq 1 ']'
2019-08-31 21:53:52,195: DEBUG - 3819 + [[ -e /etc/nginx/conf.d/jubok.eu.d/airsonic.conf ]]
2019-08-31 21:53:52,196: DEBUG - 3820 ++ real********** /etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,197: DEBUG - 3821 + src_**********=/etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,197: DEBUG - 3822 + [[ -z '' ]]
2019-08-31 21:53:52,198: DEBUG - 3822 + dest_**********=etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,199: DEBUG - 3823 + [[ ! -e etc/nginx/conf.d/jubok.eu.d/airsonic.conf ]]
2019-08-31 21:53:52,199: DEBUG - 3825 + local rel_dir=/apps/airsonic/backup
2019-08-31 21:53:52,200: DEBUG - 3825 + rel_dir=/apps/airsonic/backup/
2019-08-31 21:53:52,200: DEBUG - 3826 + dest_**********=/apps/airsonic/backup/etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,201: DEBUG - 3827 + dest_**********=apps/airsonic/backup/etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,202: DEBUG - 3828 ++ echo /etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,202: DEBUG - 3829 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:52,206: DEBUG - 3829 + local src=/etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,207: DEBUG - 3830 ++ echo apps/airsonic/backup/etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,208: DEBUG - 3831 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:52,209: DEBUG - 3832 + local dest=apps/airsonic/backup/etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,209: DEBUG - 3832 + echo '"/etc/nginx/conf.d/jubok.eu.d/airsonic.conf","apps/airsonic/backup/etc/nginx/conf.d/jubok.eu.d/airsonic.conf"'
2019-08-31 21:53:52,210: DEBUG - 3833 ++ dirname /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/nginx/conf.d/jubok.eu.d/airsonic.conf
2019-08-31 21:53:52,211: DEBUG - 3834 + mkdir -p /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/nginx/conf.d/jubok.eu.d
2019-08-31 21:53:52,212: DEBUG - 3835 + ynh_backup /etc/logrotate.d/airsonic
2019-08-31 21:53:52,213: DEBUG - 3836 + local legacy_args=sdbm
2019-08-31 21:53:52,214: DEBUG - 3836 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory)
2019-08-31 21:53:52,215: DEBUG - 3837 + declare -Ar args_array
2019-08-31 21:53:52,216: DEBUG - 3838 + local src_**********
2019-08-31 21:53:52,216: DEBUG - 3839 + local dest_**********
2019-08-31 21:53:52,217: DEBUG - 3839 + local is_big
2019-08-31 21:53:52,218: DEBUG - 3840 + local not_mandatory
2019-08-31 21:53:52,219: DEBUG - 3841 + ynh_handle_getopts_args /etc/logrotate.d/airsonic
2019-08-31 21:53:52,219: DEBUG - 3842 + set +x
2019-08-31 21:53:52,220: DEBUG - 3843 + echo '! Helper used in legacy mode !'
2019-08-31 21:53:52,221: DEBUG - 3843 + set +x
2019-08-31 21:53:52,221: DEBUG - 3844 + local dest_**********=
2019-08-31 21:53:52,222: DEBUG - 3845 + local is_big=0
2019-08-31 21:53:52,223: DEBUG - 3846 + local not_mandatory=0
2019-08-31 21:53:52,224: DEBUG - 3846 + BACKUP_CORE_ONLY=1
2019-08-31 21:53:52,225: DEBUG - 3847 + test -n airsonic
2019-08-31 21:53:52,226: DEBUG - 3848 ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:52,227: DEBUG - 3849 ++ local legacy_args=ak
2019-08-31 21:53:52,228: DEBUG - 3850 ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:52,229: DEBUG - 3850 ++ declare -Ar args_array
2019-08-31 21:53:52,230: DEBUG - 3851 ++ local app
2019-08-31 21:53:52,231: DEBUG - 3852 ++ local key
2019-08-31 21:53:52,231: DEBUG - 3852 ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:52,232: DEBUG - 3853 ++ set +x
2019-08-31 21:53:52,233: DEBUG - 3854 ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:52,233: DEBUG - 3855 ++ ACTION=get
2019-08-31 21:53:52,234: DEBUG - 3855 ++ APP=airsonic
2019-08-31 21:53:52,235: DEBUG - 3856 ++ KEY=**********
2019-08-31 21:53:52,235: DEBUG - 3857 ++ VALUE=
2019-08-31 21:53:52,236: DEBUG - 3857 ++ python -
2019-08-31 21:53:52,738: DEBUG - 4360 + **********=
2019-08-31 21:53:52,739: DEBUG - 4360 + '[' 0 -eq 1 ']'
2019-08-31 21:53:52,740: DEBUG - 4361 + [[ -e /etc/logrotate.d/airsonic ]]
2019-08-31 21:53:52,741: DEBUG - 4362 ++ real********** /etc/logrotate.d/airsonic
2019-08-31 21:53:52,742: DEBUG - 4363 + src_**********=/etc/logrotate.d/airsonic
2019-08-31 21:53:52,742: DEBUG - 4364 + [[ -z '' ]]
2019-08-31 21:53:52,743: DEBUG - 4364 + dest_**********=etc/logrotate.d/airsonic
2019-08-31 21:53:52,744: DEBUG - 4365 + [[ ! -e etc/logrotate.d/airsonic ]]
2019-08-31 21:53:52,745: DEBUG - 4366 + local rel_dir=/apps/airsonic/backup
2019-08-31 21:53:52,746: DEBUG - 4367 + rel_dir=/apps/airsonic/backup/
2019-08-31 21:53:52,747: DEBUG - 4368 + dest_**********=/apps/airsonic/backup/etc/logrotate.d/airsonic
2019-08-31 21:53:52,747: DEBUG - 4368 + dest_**********=apps/airsonic/backup/etc/logrotate.d/airsonic
2019-08-31 21:53:52,748: DEBUG - 4369 ++ echo /etc/logrotate.d/airsonic
2019-08-31 21:53:52,749: DEBUG - 4370 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:52,750: DEBUG - 4370 + local src=/etc/logrotate.d/airsonic
2019-08-31 21:53:52,750: DEBUG - 4371 ++ echo apps/airsonic/backup/etc/logrotate.d/airsonic
2019-08-31 21:53:52,751: DEBUG - 4372 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:52,752: DEBUG - 4373 + local dest=apps/airsonic/backup/etc/logrotate.d/airsonic
2019-08-31 21:53:52,753: DEBUG - 4374 + echo '"/etc/logrotate.d/airsonic","apps/airsonic/backup/etc/logrotate.d/airsonic"'
2019-08-31 21:53:52,754: DEBUG - 4375 ++ dirname /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/logrotate.d/airsonic
2019-08-31 21:53:52,755: DEBUG - 4376 + mkdir -p /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/logrotate.d
2019-08-31 21:53:52,756: DEBUG - 4376 + ynh_backup /etc/systemd/system/airsonic.service
2019-08-31 21:53:52,757: DEBUG - 4377 + local legacy_args=sdbm
2019-08-31 21:53:52,758: DEBUG - 4378 + args_array=([s]=src_**********= [d]=dest_**********= [b]=is_big [m]=not_mandatory)
2019-08-31 21:53:52,759: DEBUG - 4378 + declare -Ar args_array
2019-08-31 21:53:52,760: DEBUG - 4379 + local src_**********
2019-08-31 21:53:52,761: DEBUG - 4380 + local dest_**********
2019-08-31 21:53:52,761: DEBUG - 4381 + local is_big
2019-08-31 21:53:52,762: DEBUG - 4382 + local not_mandatory
2019-08-31 21:53:52,763: DEBUG - 4382 + ynh_handle_getopts_args /etc/systemd/system/airsonic.service
2019-08-31 21:53:52,763: DEBUG - 4383 + set +x
2019-08-31 21:53:52,764: DEBUG - 4384 + echo '! Helper used in legacy mode !'
2019-08-31 21:53:52,764: DEBUG - 4385 + set +x
2019-08-31 21:53:52,765: DEBUG - 4386 + local dest_**********=
2019-08-31 21:53:52,766: DEBUG - 4386 + local is_big=0
2019-08-31 21:53:52,766: DEBUG - 4387 + local not_mandatory=0
2019-08-31 21:53:52,767: DEBUG - 4388 + BACKUP_CORE_ONLY=1
2019-08-31 21:53:52,767: DEBUG - 4389 + test -n airsonic
2019-08-31 21:53:52,768: DEBUG - 4389 ++ ynh_app_setting_get --app=airsonic --key=**********
2019-08-31 21:53:52,769: DEBUG - 4390 ++ local legacy_args=ak
2019-08-31 21:53:52,769: DEBUG - 4391 ++ args_array=([a]=app= [k]=key=)
2019-08-31 21:53:52,770: DEBUG - 4391 ++ declare -Ar args_array
2019-08-31 21:53:52,771: DEBUG - 4392 ++ local app
2019-08-31 21:53:52,771: DEBUG - 4393 ++ local key
2019-08-31 21:53:52,772: DEBUG - 4394 ++ ynh_handle_getopts_args --app=airsonic --key=**********
2019-08-31 21:53:52,772: DEBUG - 4394 ++ set +x
2019-08-31 21:53:52,773: DEBUG - 4395 ++ ynh_app_setting get airsonic **********
2019-08-31 21:53:52,774: DEBUG - 4396 ++ ACTION=get
2019-08-31 21:53:52,774: DEBUG - 4396 ++ APP=airsonic
2019-08-31 21:53:52,775: DEBUG - 4397 ++ KEY=**********
2019-08-31 21:53:52,776: DEBUG - 4397 ++ VALUE=
2019-08-31 21:53:52,776: DEBUG - 4398 ++ python -
2019-08-31 21:53:53,278: DEBUG - 4900 + **********=
2019-08-31 21:53:53,280: DEBUG - 4901 + '[' 0 -eq 1 ']'
2019-08-31 21:53:53,280: DEBUG - 4902 + [[ -e /etc/systemd/system/airsonic.service ]]
2019-08-31 21:53:53,281: DEBUG - 4902 ++ real********** /etc/systemd/system/airsonic.service
2019-08-31 21:53:53,282: DEBUG - 4903 + src_**********=/etc/systemd/system/airsonic.service
2019-08-31 21:53:53,282: DEBUG - 4904 + [[ -z '' ]]
2019-08-31 21:53:53,283: DEBUG - 4904 + dest_**********=etc/systemd/system/airsonic.service
2019-08-31 21:53:53,284: DEBUG - 4905 + [[ ! -e etc/systemd/system/airsonic.service ]]
2019-08-31 21:53:53,285: DEBUG - 4905 + local rel_dir=/apps/airsonic/backup
2019-08-31 21:53:53,286: DEBUG - 4906 + rel_dir=/apps/airsonic/backup/
2019-08-31 21:53:53,286: DEBUG - 4907 + dest_**********=/apps/airsonic/backup/etc/systemd/system/airsonic.service
2019-08-31 21:53:53,287: DEBUG - 4907 + dest_**********=apps/airsonic/backup/etc/systemd/system/airsonic.service
2019-08-31 21:53:53,288: DEBUG - 4908 ++ echo /etc/systemd/system/airsonic.service
2019-08-31 21:53:53,289: DEBUG - 4908 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:53,289: DEBUG - 4909 + local src=/etc/systemd/system/airsonic.service
2019-08-31 21:53:53,290: DEBUG - 4910 ++ echo apps/airsonic/backup/etc/systemd/system/airsonic.service
2019-08-31 21:53:53,291: DEBUG - 4910 ++ sed -r 's/"/\"\"/g'
2019-08-31 21:53:53,292: DEBUG - 4911 + local dest=apps/airsonic/backup/etc/systemd/system/airsonic.service
2019-08-31 21:53:53,293: DEBUG - 4911 + echo '"/etc/systemd/system/airsonic.service","apps/airsonic/backup/etc/systemd/system/airsonic.service"'
2019-08-31 21:53:53,294: DEBUG - 4912 ++ dirname /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/systemd/system/airsonic.service
2019-08-31 21:53:53,294: DEBUG - 4912 + mkdir -p /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/systemd/system
2019-08-31 21:53:53,295: DEBUG - 4913 + ynh_restore_file /etc/default/airsonic
2019-08-31 21:53:53,296: DEBUG - 4913 + local legacy_args=odm
2019-08-31 21:53:53,297: DEBUG - 4914 + args_array=([o]=origin_**********= [d]=dest_**********= [m]=not_mandatory)
2019-08-31 21:53:53,298: DEBUG - 4915 + declare -Ar args_array
2019-08-31 21:53:53,299: DEBUG - 4915 + local origin_**********
2019-08-31 21:53:53,300: DEBUG - 4916 + local archive_**********
2019-08-31 21:53:53,300: DEBUG - 4917 + local dest_**********
2019-08-31 21:53:53,301: DEBUG - 4917 + local not_mandatory
2019-08-31 21:53:53,302: DEBUG - 4918 + ynh_handle_getopts_args /etc/default/airsonic
2019-08-31 21:53:53,303: DEBUG - 4918 + set +x
2019-08-31 21:53:53,304: DEBUG - 4919 + echo '! Helper used in legacy mode !'
2019-08-31 21:53:53,304: DEBUG - 4919 + set +x
2019-08-31 21:53:53,305: DEBUG - 4920 + local origin_**********=/etc/default/airsonic
2019-08-31 21:53:53,306: DEBUG - 4920 + local archive_**********=/home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/default/airsonic
2019-08-31 21:53:53,307: DEBUG - 4921 + local dest_**********=/etc/default/airsonic
2019-08-31 21:53:53,308: DEBUG - 4922 + local not_mandatory=0
2019-08-31 21:53:53,309: DEBUG - 4922 + '[' '!' -d /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/default/airsonic ']'
2019-08-31 21:53:53,309: DEBUG - 4923 + '[' '!' -f /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/default/airsonic ']'
2019-08-31 21:53:53,310: DEBUG - 4923 + '[' '!' -L /home/yunohost.backup/tmp/airsonic-pre-upgrade1/apps/airsonic/backup/etc/default/airsonic ']'
2019-08-31 21:53:53,311: DEBUG - 4924 + '[' 0 == 0 ']'
2019-08-31 21:53:53,312: DEBUG - 4925 ++ _get_archive_********** '"/etc/default/airsonic"'
2019-08-31 21:53:53,313: DEBUG - 4925 ++ sudo python -c '
2019-08-31 21:53:53,314: DEBUG - 4926 im********** sys
2019-08-31 21:53:53,315: DEBUG - 4927 im********** csv
2019-08-31 21:53:53,316: DEBUG - 4928 with open(sys.argv[1], '\''r'\'') as backup_file:
2019-08-31 21:53:53,317: DEBUG - 4929     backup_csv = csv.DictReader(backup_file, fieldnames=['\''source'\'', '\''dest'\''])
2019-08-31 21:53:53,318: DEBUG - 4930     for row in backup_csv:
2019-08-31 21:53:53,318: DEBUG - 4931         if row['\''source'\'']==sys.argv[2].strip('\''"'\''):
2019-08-31 21:53:53,319: DEBUG - 4932             print row['\''dest'\'']
2019-08-31 21:53:53,320: DEBUG - 4932             sys.exit(0)
2019-08-31 21:53:53,321: DEBUG - 4933     raise Exception('\''Original ********** for %s not found'\'' % sys.argv[2])
2019-08-31 21:53:53,322: DEBUG - 4934     ' /tmp/backupcsv_3isIgH '"/etc/default/airsonic"'
2019-08-31 21:53:53,423: DEBUG - 5035 ++ return 1
2019-08-31 21:53:53,424: WARNING - 5036 Traceback (most recent call last):
2019-08-31 21:53:53,425: DEBUG - 5036 + archive_**********=/home/yunohost.backup/tmp/airsonic-pre-upgrade1/
2019-08-31 21:53:53,426: WARNING - 5037   File "<string>", line 10, in <module>
2019-08-31 21:53:53,427: DEBUG - 5037 + ynh_exit_properly
2019-08-31 21:53:53,428: WARNING - 5038 Exception: Original ********** for "/etc/default/airsonic" not found
2019-08-31 21:53:53,430: DEBUG - 5038 + local exit_code=1
2019-08-31 21:53:53,430: DEBUG - 5039 + '[' 1 -eq 0 ']'
2019-08-31 21:53:53,431: DEBUG - 5039 + trap '' EXIT
2019-08-31 21:53:53,432: DEBUG - 5040 + set +eu
2019-08-31 21:53:53,432: DEBUG - 5040 + sleep 0.5
2019-08-31 21:53:53,934: DEBUG - 5542 + ynh_print_err '--message=!!\n  airsonic'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-08-31 21:53:53,935: DEBUG - 5543 + local legacy_args=m
2019-08-31 21:53:53,936: DEBUG - 5544 + args_array=([m]=message=)
2019-08-31 21:53:53,936: DEBUG - 5545 + declare -Ar args_array
2019-08-31 21:53:53,937: DEBUG - 5545 + local message
2019-08-31 21:53:53,937: DEBUG - 5546 + ynh_handle_getopts_args '--message=!!\n  airsonic'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-08-31 21:53:53,938: DEBUG - 5547 + set +x
2019-08-31 21:53:54,039: DEBUG - 5648 + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  airsonic'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-08-31 21:53:54,040: WARNING - 5649 [ERR] !!
2019-08-31 21:53:54,041: DEBUG - 5649 + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  airsonic'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-08-31 21:53:54,042: WARNING - 5650   airsonic's script has encountered an error. Its execution was cancelled.
2019-08-31 21:53:54,044: DEBUG - 5650 + '[' cli == cli ']'
2019-08-31 21:53:54,045: WARNING - 5651 !!
2019-08-31 21:53:54,046: DEBUG - 5652 + set +x
2019-08-31 21:53:54,047: WARNING - 5652 Please find here an extract of the log before the crash:
2019-08-31 21:53:54,048: DEBUG - 5653 + type -t ynh_clean_setup
2019-08-31 21:53:54,049: WARNING - 5653 [DEBUG]: DEBUG   - ++ _get_archive_********** '"/etc/default/airsonic"'
2019-08-31 21:53:54,050: DEBUG - 5654 + ynh_clean_setup
2019-08-31 21:53:54,051: WARNING - 5654 [DEBUG]: DEBUG   - ++ sudo python -c '
2019-08-31 21:53:54,053: DEBUG - 5655 + true
2019-08-31 21:53:54,053: WARNING - 5655 [DEBUG]: DEBUG   - im********** sys
2019-08-31 21:53:54,055: DEBUG - 5656 + ynh_die
2019-08-31 21:53:54,055: WARNING - 5656 [DEBUG]: DEBUG   - im********** csv
2019-08-31 21:53:54,057: DEBUG - 5657 + local legacy_args=mc
2019-08-31 21:53:54,058: WARNING - 5657 [DEBUG]: DEBUG   -, '\''r'\'') as backup_file:
2019-08-31 21:53:54,059: DEBUG - 5658 + args_array=([m]=message= [c]=ret_code=)
2019-08-31 21:53:54,060: WARNING - 5658 [DEBUG]: DEBUG   -)
2019-08-31 21:53:54,061: DEBUG - 5659 + declare -Ar args_array
2019-08-31 21:53:54,062: WARNING - 5659 [DEBUG]: DEBUG   -     for row in backup_csv:
2019-08-31 21:53:54,064: DEBUG - 5660 + local message
2019-08-31 21:53:54,064: WARNING - 5660 [DEBUG]: DEBUG   -.strip('\''"'\''):
2019-08-31 21:53:54,066: DEBUG - 5661 + local ret_code
2019-08-31 21:53:54,067: WARNING - 5661 [DEBUG]: DEBUG   -
2019-08-31 21:53:54,068: DEBUG - 5662 + ynh_handle_getopts_args
2019-08-31 21:53:54,069: WARNING - 5662 [DEBUG]: DEBUG   -             sys.exit(0)
2019-08-31 21:53:54,070: DEBUG - 5663 + set +x
2019-08-31 21:53:54,071: WARNING - 5663 [DEBUG]: DEBUG   -)
2019-08-31 21:53:54,072: DEBUG - 5664 + echo ''
2019-08-31 21:53:54,073: WARNING - 5664 [DEBUG]: DEBUG   -     ' /tmp/backupcsv_3isIgH '"/etc/default/airsonic"'
2019-08-31 21:53:54,075: DEBUG - 5665 + exit 1
2019-08-31 21:53:54,075: WARNING - 5665 [DEBUG]: DEBUG   - ++ return 1
2019-08-31 21:53:54,077: WARNING - 5666 [DEBUG]: WARNING - Traceback (most recent call last):
2019-08-31 21:53:54,078: WARNING - 5666 [DEBUG]: DEBUG   - + archive_**********=/home/yunohost.backup/tmp/airsonic-pre-upgrade1/
2019-08-31 21:53:54,080: WARNING - 5667 [DEBUG]: WARNING -   File "<string>", line 10, in <module>
2019-08-31 21:53:54,082: WARNING - 5667 [DEBUG]: DEBUG   - + ynh_exit_properly
2019-08-31 21:53:54,083: WARNING - 5668
2019-08-31 21:53:54,185: DEBUG - 5799 action [1394.1] executed in 4.614s
2019-08-31 21:53:54,186: WARNING - 5795 Unable to back up the app 'airsonic'
2019-08-31 21:53:54,188: WARNING - Traceback (most recent call last):
2019-08-31 21:53:54,190: WARNING -   File "/usr/lib/moulinette/yunohost/backup.py", line 701, in _collect_app_files
2019-08-31 21:53:54,192: WARNING -     raise_on_error=True, chdir=tmp_app_bkp_dir, env=env_dict)[0]
2019-08-31 21:53:54,194: WARNING -   File "/usr/lib/moulinette/yunohost/hook.py", line 397, in hook_exec
2019-08-31 21:53:54,196: WARNING -     raise YunohostError('hook_exec_failed', **********=**********)
2019-08-31 21:53:54,198: WARNING - YunohostError: Script execution failed: /tmp/backup_QOpAIU
2019-08-31 21:53:54,199: WARNING - 5800 There is nothing to save
2019-08-31 21:53:54,302: DEBUG - + '[' 1 -eq 0 ']'
2019-08-31 21:53:54,303: WARNING - Backup failed, the upgrade process was aborted.
2019-08-31 21:53:54,306: DEBUG - + ynh_die '--message=Backup failed, the upgrade process was aborted.'
2019-08-31 21:53:54,308: DEBUG - + local legacy_args=mc
2019-08-31 21:53:54,309: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-08-31 21:53:54,310: DEBUG - + declare -Ar args_array
2019-08-31 21:53:54,311: DEBUG - + local message
2019-08-31 21:53:54,312: DEBUG - + local ret_code
2019-08-31 21:53:54,314: DEBUG - + ynh_handle_getopts_args '--message=Backup failed, the upgrade process was aborted.'
2019-08-31 21:53:54,315: DEBUG - + set +x
2019-08-31 21:53:54,316: DEBUG - + echo 'Backup failed, the upgrade process was aborted.'
2019-08-31 21:53:54,318: DEBUG - + exit 1
2019-08-31 21:53:54,477: ERROR - Impossible de mettre à jour airsonic

If someone have an idea why this happen before I make a clean install it would be great !

kay0u commented 4 years ago

Uuh I think it's because the old version you used has a buggy scripts :-/ Is it complicated for you to remove and reinstall this app? (Now Airsonic is a stable application)

Gofannon commented 4 years ago

Hello @jbocaneg,

Thank you for your bug report and detailed log trace. I don't plan to spend time on debugging this issue. The package improved a lot with latest versions as said by @kay0u and it should not be be too long to reinstall.

Feel free to feel bug reports with the latest version. I will have a look :)