YunoHost-Apps / funkwhale_ynh

A modern, convivial and free music server on YunoHost
https://funkwhale.audio/
GNU Affero General Public License v3.0
73 stars 22 forks source link

YunoHost 3.2 Raspberry PI : The operation 'Upgrade 'funkwhale' application' has failed ! #32

Closed ghost closed 6 years ago

ghost commented 6 years ago

Bonjour, une mise à jour de Funwkhale m'est proposée à travers de YunoHost, mais cette mise à jour est impossible en raison de l'erreur suivante:

The operation 'Upgrade 'funkwhale' application' has failed ! To get help, please provide the full log of this operation

Et voici le log:

2018-09-14 17:15:13,257: WARNING - The backup's archive name already exists 2018-09-14 17:15:13,575: WARNING - Backup failed, the upgrade process was aborted. 2018-09-14 17:15:13,702: ERROR - Impossible de mettre à jour funkwhale

Est-ce que cela est arrivé à quelqu'un d'autre ? Une idée d'où pourrait venir le problème ?

Merci beaucoup !

ghost commented 6 years ago

Et j'ai parlé avec quelqu'un d'autre qui a eu le même problème, il a désinstallé et réinstallé la nouvelle version, en me recommandant de faire un backup de la musique qui est dans le répertoire: /var/www/funkwhale

Jibec commented 6 years ago

Quelle quantité de musique as-tu ?

Jibec commented 6 years ago

quel est le résultat de sudo yunohost app upgrade funkwhale --url https://github.com/YunoHost-Apps/funkwhale_ynh --debug? (pense à retirer les mots de passe & autres informations potentiellement sensibles.

et que dit sudo yunohost backup list?

ghost commented 6 years ago

J'avais environ 30 go, environ 2800 morceaux de mp3.

Malheureusement ce n'est pas possible d'avoir le log, Yuno ne démarre plus, pas encore pris le temps de réinstaller.

Jibec commented 6 years ago

C'est beaucoup, c'est encore un outil en version Alpha ;) Est-ce que le fait que yunohost ne réponde pas est vraiment lié à funkwhale?

agateblue commented 6 years ago

@Jibec est-ce que le backup de yunohost inclut les fichiers audio ?

Jibec commented 6 years ago

Oui

ghost commented 6 years ago

Bonsoir, je sais que c'est Alpha, bien conscient, et c'est un plaisir de alpha-tester, merci Jibec, Eliot, et tout le monde ! On est là pour améliorer le truc tous ensemble, et c'est un super projet ! ;)

Donc, je ne suis pas un pro, mais le fait que ça ne démarrait pas était lié à un fichier .conf de funkwhale dans /etc/nginx/conf.d/

J'ai effacé tout ce qu'il y avait comme fichier-dossier funkwhale dans ce dossier en me connectant avec filezilla, ensuite j'ai essayé de rebooté, et voilà, yunohost était vivant !

Je me suis précipité pour réinstaller funkwhale, mais pas moyen, mais je t'ai récupéré le log cette fois :)

Le voici:

2018-09-23 21:13:36,702: WARNING - debconf: unable to initialize frontend: Dialog 2018-09-23 21:13:36,715: WARNING - debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) 2018-09-23 21:13:36,717: WARNING - debconf: falling back to frontend: Readline 2018-09-23 21:13:36,719: WARNING - debconf: unable to initialize frontend: Readline 2018-09-23 21:13:36,721: WARNING - debconf: (This frontend requires a controlling tty.) 2018-09-23 21:13:36,723: WARNING - debconf: falling back to frontend: Teletype 2018-09-23 21:13:36,725: WARNING - dpkg-preconfigure: unable to re-open stdin: 2018-09-23 21:15:03,013: WARNING - 2018-09-23 21:15:03 URL:https://code.eliotberriot.com/funkwhale/funkwhale/-/archive/0.16.3/funkwhale-0.16.3.tar.bz2 [7819013/7819013] -> "app.tar.bz2" [1] 2018-09-23 21:15:08,663: WARNING - 2018-09-23 21:15:08 URL:https://code.eliotberriot.com/funkwhale/funkwhale/-/jobs/8866/artifacts/download [2979266/2979266] -> "app-frontend.zip" [1] 2018-09-23 21:15:09,169: WARNING - cat: /etc/nginx/conf.d/funkwhale.domaine.ltd.conf: No such file or directory 2018-09-23 21:15:10,877: WARNING - cp: cannot create regular file '/etc/nginx/conf.d/funkwhale.domaine.ltd.d/funkwhale.conf': No such file or directory 2018-09-23 21:15:10,879: WARNING - !! 2018-09-23 21:15:10,880: WARNING - funkwhale's script has encountered an error. Its execution was cancelled. 2018-09-23 21:15:10,882: WARNING - !! 2018-09-23 21:15:10,883: WARNING -

agateblue commented 6 years ago

@Jibec ok, merci pour la précision ! Je me disais que ça pouvait peut-être être un peu violent pour des petites configs de backuper de gros volumes comme ça, mais je ne connais pas suffisamment YunoHost, et si ça se passe bien pour des trucs comme NextCloud, ce n'est pas forcément justifié.

Jibec commented 6 years ago

Pour bien faire, il ne faudrait pas inclure les fichiers musicaux, mais ça me semble toujours gênant, car je pense que peut d'utilisateurs savent sauvegarder leurs données sans le mécanisme automatique de yunohost.

Franchement ces temps ci je n'y touche pas, faute de temps. Mais un jour il faudra... Je crois qu'on peut ne faire que les backup des fichiers non musicaux pour LS upgrade. J'essaierai quand je travaillerai sur la nouvelle version de funkwhale.

agateblue commented 6 years ago

Pas de soucis, je comprends bien que c'est assez chronophage, surtout que tu ne maintiens pas que le paquet Funkwhale ! Merci déjà pour tout le travail abattu jusqu'ici :heart:

ghost commented 6 years ago

J'ai essayé d'installer funkwhale dans un yunohost fraichement installé, pas possible, voici le log:

ended_at: 2018-10-01 20:47:59.254898 env: YNH_APP_ID: funkwhale YNH_APP_INSTANCE_NAME: funkwhale YNH_APP_INSTANCE_NUMBER: '1' YNH_CWD: /var/cache/yunohost/from_file/funkwhale_ynh-80a5044d13a6782063fee2d7fb7a01832a6aa767/scripts YNH_STDINFO: /tmp/tmphSJ_FV/stdinfo error: Operation unit has not been closed properly operation: remove_on_failed_install related_to:

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

2018-10-01 20:47:42,524: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=funkwhale YNH_CWD=/var/cache/yunohost/from_file/funkwhale_ynh-80a5044d13a6782063fee2d7fb7a01832a6aa767/scripts YNH_APP_INSTANCE_NAME=funkwhale YNH_STDINFO=/tmp/tmphSJ_FV/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./remove" funkwhale 7>&1'... 2018-10-01 20:47:42,524: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=funkwhale YNH_CWD=/var/cache/yunohost/from_file/funkwhale_ynh-80a5044d13a6782063fee2d7fb7a01832a6aa767/scripts YNH_APP_INSTANCE_NAME=funkwhale YNH_STDINFO=/tmp/tmphSJ_FV/stdinfo BASH_XTRACEFD=7 /bin/bash -x "./remove" funkwhale 7>&1']' 2018-10-01 20:47:42,659: DEBUG - + source _common.sh 2018-10-01 20:47:42,661: DEBUG - + source /usr/share/yunohost/helpers 2018-10-01 20:47:42,663: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d 2018-10-01 20:47:42,664: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,665: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backend ']' 2018-10-01 20:47:42,666: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend 2018-10-01 20:47:42,667: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,668: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']' 2018-10-01 20:47:42,669: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem 2018-10-01 20:47:42,671: DEBUG - +++ CAN_BIND=1 2018-10-01 20:47:42,672: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,673: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']' 2018-10-01 20:47:42,674: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts 2018-10-01 20:47:42,775: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,776: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/ip ']' 2018-10-01 20:47:42,776: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip 2018-10-01 20:47:42,777: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,778: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']' 2018-10-01 20:47:42,779: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql 2018-10-01 20:47:42,780: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql 2018-10-01 20:47:42,780: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,781: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']' 2018-10-01 20:47:42,782: DEBUG - ++ . /usr/share/yunohost/helpers.d/network 2018-10-01 20:47:42,782: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,783: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']' 2018-10-01 20:47:42,783: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs 2018-10-01 20:47:42,784: DEBUG - +++ n_install_dir=/opt/node_n 2018-10-01 20:47:42,784: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node 2018-10-01 20:47:42,785: DEBUG - +++ export N_PREFIX=/opt/node_n 2018-10-01 20:47:42,785: DEBUG - +++ N_PREFIX=/opt/node_n 2018-10-01 20:47:42,786: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,786: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/package ']' 2018-10-01 20:47:42,787: DEBUG - ++ . /usr/share/yunohost/helpers.d/package 2018-10-01 20:47:42,787: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,788: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/print ']' 2018-10-01 20:47:42,789: DEBUG - ++ . /usr/share/yunohost/helpers.d/print 2018-10-01 20:47:42,790: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,790: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/psql ']' 2018-10-01 20:47:42,791: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql 2018-10-01 20:47:42,791: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,792: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']' 2018-10-01 20:47:42,792: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting 2018-10-01 20:47:42,793: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,793: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']' 2018-10-01 20:47:42,794: DEBUG - ++ . /usr/share/yunohost/helpers.d/string 2018-10-01 20:47:42,794: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,795: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/system ']' 2018-10-01 20:47:42,795: DEBUG - ++ . /usr/share/yunohost/helpers.d/system 2018-10-01 20:47:42,796: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,796: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']' 2018-10-01 20:47:42,797: DEBUG - ++ . /usr/share/yunohost/helpers.d/user 2018-10-01 20:47:42,798: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null) 2018-10-01 20:47:42,798: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']' 2018-10-01 20:47:42,799: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils 2018-10-01 20:47:42,800: DEBUG - + app=funkwhale 2018-10-01 20:47:42,801: DEBUG - ++ ynh_app_setting_get funkwhale domain 2018-10-01 20:47:42,802: DEBUG - ++ sudo yunohost app setting funkwhale domain --output-as plain --quiet 2018-10-01 20:47:44,107: DEBUG - + domain=funkwhale.domaine.ltd 2018-10-01 20:47:44,108: DEBUG - ++ ynh_app_setting_get funkwhale db_name 2018-10-01 20:47:44,109: DEBUG - ++ sudo yunohost app setting funkwhale db_name --output-as plain --quiet 2018-10-01 20:47:45,413: DEBUG - + db_name=funkwhale 2018-10-01 20:47:45,414: DEBUG - + db_user=funkwhale 2018-10-01 20:47:45,415: DEBUG - ++ ynh_app_setting_get funkwhale final_path 2018-10-01 20:47:45,415: DEBUG - ++ sudo yunohost app setting funkwhale final_path --output-as plain --quiet 2018-10-01 20:47:46,720: DEBUG - + final_path=/var/www/funkwhale 2018-10-01 20:47:46,725: DEBUG - ++ ynh_app_setting_get funkwhale port 2018-10-01 20:47:46,728: DEBUG - ++ sudo yunohost app setting funkwhale port --output-as plain --quiet 2018-10-01 20:47:48,033: DEBUG - + port=5000 2018-10-01 20:47:48,034: DEBUG - ++ ynh_app_setting_get funkwhale redis_db 2018-10-01 20:47:48,035: DEBUG - ++ sudo yunohost app setting funkwhale redis_db --output-as plain --quiet 2018-10-01 20:47:49,339: DEBUG - + redis_db= 2018-10-01 20:47:49,340: WARNING - Failed to stop funkwhale.target: Unit funkwhale.target not loaded. 2018-10-01 20:47:49,342: DEBUG - + ynh_remove_systemd_config funkwhale-server 2018-10-01 20:47:49,343: WARNING - /etc/systemd/system/funkwhale.target wasn't deleted because it doesn't exist. 2018-10-01 20:47:49,346: DEBUG - + local service_name=funkwhale-server 2018-10-01 20:47:49,353: DEBUG - + local finalsystemdconf=/etc/systemd/system/funkwhale-server.service 2018-10-01 20:47:49,358: DEBUG - + '[' -e /etc/systemd/system/funkwhale-server.service ']' 2018-10-01 20:47:49,361: DEBUG - + ynh_remove_systemd_config funkwhale-worker 2018-10-01 20:47:49,363: DEBUG - + local service_name=funkwhale-worker 2018-10-01 20:47:49,364: DEBUG - + local finalsystemdconf=/etc/systemd/system/funkwhale-worker.service 2018-10-01 20:47:49,366: DEBUG - + '[' -e /etc/systemd/system/funkwhale-worker.service ']' 2018-10-01 20:47:49,367: DEBUG - + ynh_remove_systemd_config funkwhale-beat 2018-10-01 20:47:49,368: DEBUG - + local service_name=funkwhale-beat 2018-10-01 20:47:49,370: DEBUG - + local finalsystemdconf=/etc/systemd/system/funkwhale-beat.service 2018-10-01 20:47:49,370: DEBUG - + '[' -e /etc/systemd/system/funkwhale-beat.service ']' 2018-10-01 20:47:49,375: DEBUG - + systemctl stop funkwhale.target 2018-10-01 20:47:49,375: DEBUG - + ynh_secure_remove /etc/systemd/system/funkwhale.target 2018-10-01 20:47:49,377: DEBUG - + local path_to_remove=/etc/systemd/system/funkwhale.target 2018-10-01 20:47:49,379: DEBUG - + local 'forbidden_path= /var/www /home/yunohost.app' 2018-10-01 20:47:49,380: DEBUG - + [[ /var/www /home/yunohost.app =~ /etc/systemd/system/funkwhale.target ]] 2018-10-01 20:47:49,381: DEBUG - + [[ /etc/systemd/system/funkwhale.target =~ ^/[[:alnum:]]+$ ]] 2018-10-01 20:47:49,382: DEBUG - + [[ t = \/ ]] 2018-10-01 20:47:49,383: DEBUG - + '[' -e /etc/systemd/system/funkwhale.target ']' 2018-10-01 20:47:49,384: DEBUG - + echo '/etc/systemd/system/funkwhale.target wasn'\''t deleted because it doesn'\''t exist.' 2018-10-01 20:47:49,385: DEBUG - + ynh_psql_remove_db funkwhale funkwhale 2018-10-01 20:47:49,387: DEBUG - + local db=funkwhale 2018-10-01 20:47:49,388: DEBUG - + local user=funkwhale 2018-10-01 20:47:49,389: DEBUG - + sudo --login --user=postgres dropdb funkwhale 2018-10-01 20:47:51,095: DEBUG - + ynh_psql_drop_user funkwhale 2018-10-01 20:47:51,096: DEBUG - + local user=funkwhale 2018-10-01 20:47:51,096: DEBUG - + sudo --login --user=postgres dropuser funkwhale 2018-10-01 20:47:51,498: DEBUG - + ynh_redis_remove_db '' 2018-10-01 20:47:51,500: DEBUG - + local db= 2018-10-01 20:47:51,501: DEBUG - + redis-cli -n '' flushall 2018-10-01 20:47:51,803: DEBUG - OK 2018-10-01 20:47:51,804: DEBUG - + ynh_remove_app_dependencies 2018-10-01 20:47:51,804: DEBUG - + local dep_app=funkwhale 2018-10-01 20:47:51,805: DEBUG - + ynh_package_autopurge funkwhale-ynh-deps 2018-10-01 20:47:51,805: DEBUG - + ynh_apt autoremove --purge funkwhale-ynh-deps 2018-10-01 20:47:51,806: DEBUG - + DEBIAN_FRONTEND=noninteractive 2018-10-01 20:47:51,806: DEBUG - + sudo apt-get -y autoremove --purge funkwhale-ynh-deps 2018-10-01 20:47:52,007: DEBUG - Reading package lists... 2018-10-01 20:47:52,710: DEBUG - Building dependency tree... 2018-10-01 20:47:52,711: DEBUG - Reading state information... 2018-10-01 20:47:54,116: DEBUG - The following packages will be REMOVED: 2018-10-01 20:47:54,117: DEBUG - funkwhale-ynh-deps libffi-dev libjpeg-dev libjpeg62-turbo-dev 2018-10-01 20:47:54,117: DEBUG - libmagic-dev libpq-dev libssl-dev libssl-doc postgresql* 2018-10-01 20:47:58,733: DEBUG - 0 upgraded, 0 newly installed, 9 to remove and 0 not upgraded. 2018-10-01 20:47:58,734: DEBUG - After this operation, 11.8 MB disk space will be freed.

Jibec commented 6 years ago

will be fixed by https://github.com/YunoHost-Apps/funkwhale_ynh/pull/42