Problem installing Mopidy / Problème d'installation Mopidy

Hello,

I’m facing difficulties upon mopidy’s installation with Yunohost whether with the web or command line interface.

Web interface side, it output this :

2018-12-18 10:48:29,748: WARNING - « yunohost app checkurl » est déprécié et sera bientôt supprimé
2018-12-18 10:48:29,750: WARNING - Packagers /!\ : 'app checkurl' is deprecated ! Please use the helper 'ynh_webpath_register' instead !
2018-12-18 10:48:32,084: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-12-18 10:48:49,035: WARNING - debconf: Impossible d'initialiser l'interface : Dialog
2018-12-18 10:48:49,037: WARNING - debconf: (L'interface dialog ne fonctionnera pas avec un terminal rustique (« dumb »), un tampon shell d'Emacs ou sans terminal de contrôle.)
2018-12-18 10:48:49,038: WARNING - debconf: Utilisation de l'interface Readline en remplacement
2018-12-18 10:48:49,141: WARNING - debconf: Impossible d'initialiser l'interface : Readline
2018-12-18 10:48:49,142: WARNING - debconf: (Cette interface a besoin d'un terminal de contrôle.)
2018-12-18 10:48:49,142: WARNING - debconf: Utilisation de l'interface Teletype en remplacement
2018-12-18 10:48:49,143: WARNING - dpkg-preconfigure: impossible de réouvrir stdin :
2018-12-18 10:48:58,611: WARNING - debconf: Impossible d'initialiser l'interface : Dialog
2018-12-18 10:48:58,612: WARNING - debconf: (L'interface dialog ne fonctionnera pas avec un terminal rustique (« dumb »), un tampon shell d'Emacs ou sans terminal de contrôle.)
2018-12-18 10:48:58,612: WARNING - debconf: Utilisation de l'interface Readline en remplacement
2018-12-18 10:48:58,613: WARNING - debconf: Impossible d'initialiser l'interface : Readline
2018-12-18 10:48:58,613: WARNING - debconf: (Cette interface a besoin d'un terminal de contrôle.)
2018-12-18 10:48:58,614: WARNING - debconf: Utilisation de l'interface Teletype en remplacement
2018-12-18 10:48:58,614: WARNING - dpkg-preconfigure: impossible de réouvrir stdin :
2018-12-18 10:49:00,448: WARNING - cp: impossible de créer le fichier standard '/usr/share/mopidy/conf.d/': N'est pas un dossier
2018-12-18 10:49:00,448: WARNING - !!
2018-12-18 10:49:00,449: WARNING -   mopidy install's script has encountered an error. Installation was cancelled.
2018-12-18 10:49:00,449: WARNING - !!
2018-12-18 10:49:00,551: WARNING - /usr/share/yunohost/helpers.d/print: ligne 4: $1 : variable sans liaison

The command line side shows this :

 args:
  app: mopidy
  args: null
  label: null
  no_remove_on_failure: false
ended_at: 2018-12-18 09:05:58.119497
env:
  YNH_APP_ARG_ADMIN_MOPIDY: demo
  YNH_APP_ARG_DOMAIN: groupe1.nohost.me
  YNH_APP_ARG_PATH: /mopidy
  YNH_APP_ARG_SOUNDCLOUD_ID: ''
  YNH_APP_ARG_SPOTIFY_ID: ''
  YNH_APP_ARG_SPOTIFY_ID_SECRET: ''
  YNH_APP_ARG_SPOTIFY_PASS: nepaj69008
  YNH_APP_ARG_SPOTIFY_USER: ''
  YNH_APP_ID: mopidy
  YNH_APP_INSTANCE_NAME: mopidy
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/mopidy_ynh-b001c8d64d62ceafa5d60627b64761a35757b998/scripts
  YNH_STDINFO: /tmp/tmpsTmzy6/stdinfo
error: An unexpected error occured
operation: app_install
related_to:
- - app
  - mopidy
started_at: 2018-12-18 09:04:36.312142
success: false

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

2018-12-18 09:04:37,002: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_ADMIN_MOPIDY=demo YNH_CWD=/var/cache/yunohost/from_file/mopidy_ynh-b001c8d64d62ceafa5d60627b64761a35757b998/scripts YNH_STDINFO=/tmp/tmpsTmzy6/stdinfo YNH_APP_ARG_SPOTIFY_USER='' YNH_APP_ARG_SOUNDCLOUD_ID='' YNH_APP_ARG_SPOTIFY_PASS=nepaj69008 YNH_APP_ARG_SPOTIFY_ID_SECRET='' YNH_APP_INSTANCE_NAME=mopidy YNH_APP_ID=mopidy YNH_APP_ARG_PATH=/mopidy YNH_APP_ARG_SPOTIFY_ID='' YNH_APP_ARG_DOMAIN=groupe1.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" groupe1.nohost.me /mopidy demo '' nepaj69008 '' '' '' mopidy 7>&1'...
2018-12-18 09:04:37,003: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_ADMIN_MOPIDY=demo YNH_CWD=/var/cache/yunohost/from_file/mopidy_ynh-b001c8d64d62ceafa5d60627b64761a35757b998/scripts YNH_STDINFO=/tmp/tmpsTmzy6/stdinfo YNH_APP_ARG_SPOTIFY_USER=\'\' YNH_APP_ARG_SOUNDCLOUD_ID=\'\' YNH_APP_ARG_SPOTIFY_PASS=nepaj69008 YNH_APP_ARG_SPOTIFY_ID_SECRET=\'\' YNH_APP_INSTANCE_NAME=mopidy YNH_APP_ID=mopidy YNH_APP_ARG_PATH=/mopidy YNH_APP_ARG_SPOTIFY_ID=\'\' YNH_APP_ARG_DOMAIN=groupe1.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" groupe1.nohost.me /mopidy demo \'\' nepaj69008 \'\' \'\' \'\' mopidy 7>&1']'
2018-12-18 09:04:37,190: DEBUG - + set -eu
2018-12-18 09:04:37,191: DEBUG - + source .fonctions
2018-12-18 09:04:37,191: DEBUG - ++ ynh_version=2.4
2018-12-18 09:04:37,191: DEBUG - + TRAP_ON
2018-12-18 09:04:37,191: DEBUG - + trap EXIT_PROPERLY ERR
2018-12-18 09:04:37,191: DEBUG - + domain=groupe1.nohost.me
2018-12-18 09:04:37,191: DEBUG - + path=/mopidy
2018-12-18 09:04:37,192: DEBUG - + admin_mopidy=demo
2018-12-18 09:04:37,192: DEBUG - + spotify_user=
2018-12-18 09:04:37,192: DEBUG - + spotify_pass=nepaj69008
2018-12-18 09:04:37,192: DEBUG - + spotify_id=
2018-12-18 09:04:37,192: DEBUG - + spotify_id_secret=
2018-12-18 09:04:37,192: DEBUG - + soundcloud_id=
2018-12-18 09:04:37,192: DEBUG - + app=mopidy
2018-12-18 09:04:37,193: DEBUG - + source /usr/share/yunohost/helpers
2018-12-18 09:04:37,193: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2018-12-18 09:04:37,193: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,193: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
2018-12-18 09:04:37,193: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend
2018-12-18 09:04:37,193: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,193: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
2018-12-18 09:04:37,193: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem
2018-12-18 09:04:37,294: DEBUG - +++ CAN_BIND=1
2018-12-18 09:04:37,294: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,295: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2018-12-18 09:04:37,295: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2018-12-18 09:04:37,295: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,295: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
2018-12-18 09:04:37,295: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip
2018-12-18 09:04:37,295: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,296: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2018-12-18 09:04:37,296: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2018-12-18 09:04:37,296: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2018-12-18 09:04:37,296: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,296: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2018-12-18 09:04:37,296: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2018-12-18 09:04:37,297: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,297: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2018-12-18 09:04:37,297: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2018-12-18 09:04:37,297: DEBUG - +++ n_install_dir=/opt/node_n
2018-12-18 09:04:37,297: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2018-12-18 09:04:37,298: DEBUG - +++ export N_PREFIX=/opt/node_n
2018-12-18 09:04:37,298: DEBUG - +++ N_PREFIX=/opt/node_n
2018-12-18 09:04:37,298: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,298: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
2018-12-18 09:04:37,298: DEBUG - ++ . /usr/share/yunohost/helpers.d/package
2018-12-18 09:04:37,298: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,299: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
2018-12-18 09:04:37,299: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
2018-12-18 09:04:37,299: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,299: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
2018-12-18 09:04:37,299: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql
2018-12-18 09:04:37,299: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,300: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2018-12-18 09:04:37,300: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2018-12-18 09:04:37,300: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,300: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2018-12-18 09:04:37,300: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2018-12-18 09:04:37,300: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,301: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
2018-12-18 09:04:37,301: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
2018-12-18 09:04:37,301: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,301: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2018-12-18 09:04:37,301: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2018-12-18 09:04:37,301: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,302: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2018-12-18 09:04:37,302: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2018-12-18 09:04:37,302: DEBUG - + CHECK_VAR mopidy 'app name not set'
2018-12-18 09:04:37,302: DEBUG - + test -n mopidy
2018-12-18 09:04:37,302: DEBUG - + CHECK_USER demo
2018-12-18 09:04:37,303: DEBUG - + ynh_user_exists demo
2018-12-18 09:04:37,303: DEBUG - + sudo yunohost user list --output-as json
2018-12-18 09:04:37,303: DEBUG - + grep -q '"username": "demo"'
2018-12-18 09:04:38,321: DEBUG - + CHECK_DOMAINPATH
2018-12-18 09:04:38,321: DEBUG - + sudo yunohost app checkurl groupe1.nohost.me/mopidy -a mopidy
2018-12-18 09:04:38,524: WARNING - 'yunohost app checkurl' is deprecated and will be removed in the future
2018-12-18 09:04:38,829: WARNING - Packagers /!\ : 'app checkurl' is deprecated ! Please use the helper 'ynh_webpath_register' instead !
2018-12-18 09:04:39,132: DEBUG - + CHECK_FINALPATH
2018-12-18 09:04:39,132: DEBUG - + final_path=/var/www/mopidy
2018-12-18 09:04:39,132: DEBUG - + '[' -e /var/www/mopidy ']'
2018-12-18 09:04:39,233: DEBUG - + ynh_app_setting_set mopidy domain groupe1.nohost.me
2018-12-18 09:04:39,233: DEBUG - + sudo yunohost app setting mopidy domain --value=groupe1.nohost.me --quiet
2018-12-18 09:04:39,539: DEBUG - + ynh_app_setting_set mopidy path /mopidy
2018-12-18 09:04:39,540: DEBUG - + sudo yunohost app setting mopidy path --value=/mopidy --quiet
2018-12-18 09:04:39,641: DEBUG - + ynh_app_setting_set mopidy admin demo
2018-12-18 09:04:39,641: DEBUG - + sudo yunohost app setting mopidy admin --value=demo --quiet
2018-12-18 09:04:39,844: DEBUG - + '[' -n '' ']'
2018-12-18 09:04:39,844: DEBUG - + '[' -n '' ']'
2018-12-18 09:04:39,844: DEBUG - + sudo mkdir /var/www/mopidy
2018-12-18 09:04:39,844: DEBUG - + sudo chown -R www-data: /var/www/mopidy
2018-12-18 09:04:39,948: DEBUG - + ynh_app_setting_set mopidy final_path /var/www/mopidy
2018-12-18 09:04:39,948: DEBUG - + sudo yunohost app setting mopidy final_path --value=/var/www/mopidy --quiet
2018-12-18 09:04:40,149: DEBUG - + wget -q -O - https://apt.mopidy.com/mopidy.gpg
2018-12-18 09:04:40,150: DEBUG - + sudo apt-key add -
2018-12-18 09:04:40,858: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-12-18 09:04:41,969: DEBUG - OK
2018-12-18 09:04:41,970: DEBUG - + sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessie.list
2018-12-18 09:04:42,576: DEBUG - + sudo apt-get update
2018-12-18 09:04:42,879: DEBUG - Ign:1 http://apt.mopidy.com jessie InRelease
2018-12-18 09:04:42,880: DEBUG - Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
2018-12-18 09:04:42,980: DEBUG - Ign:3 http://ftp.fr.debian.org/debian stretch InRelease
2018-12-18 09:04:42,981: DEBUG - Get:4 http://apt.mopidy.com jessie Release [37.0 kB]
2018-12-18 09:04:42,981: DEBUG - Get:5 http://forge.yunohost.org/debian stretch InRelease [18.2 kB]
2018-12-18 09:04:43,082: DEBUG - Get:6 http://ftp.fr.debian.org/debian stretch-updates InRelease [91.0 kB]
2018-12-18 09:04:43,083: DEBUG - Get:7 http://apt.mopidy.com jessie Release.gpg [819 B]
2018-12-18 09:04:43,186: DEBUG - Get:8 http://security.debian.org/debian-security stretch/updates/main Sources [186 kB]
2018-12-18 09:04:43,186: DEBUG - Hit:9 http://ftp.fr.debian.org/debian stretch Release
2018-12-18 09:04:43,287: DEBUG - Get:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [461 kB]
2018-12-18 09:04:43,388: DEBUG - Get:11 http://forge.yunohost.org/debian stretch/stable amd64 Packages [4,308 B]
2018-12-18 09:04:43,488: DEBUG - Get:12 http://security.debian.org/debian-security stretch/updates/main Translation-en [201 kB]
2018-12-18 09:04:43,590: DEBUG - Get:13 http://apt.mopidy.com jessie/non-free Sources [3,160 B]
2018-12-18 09:04:43,692: DEBUG - Get:15 http://apt.mopidy.com jessie/contrib Sources [7,873 B]
2018-12-18 09:04:43,793: DEBUG - Get:16 http://apt.mopidy.com jessie/main Sources [28.7 kB]
2018-12-18 09:04:44,203: DEBUG - Get:17 http://apt.mopidy.com jessie/main amd64 Packages [17.5 kB]
2018-12-18 09:04:44,510: DEBUG - Get:18 http://apt.mopidy.com jessie/contrib amd64 Packages [5,387 B]
2018-12-18 09:04:44,921: DEBUG - Get:19 http://apt.mopidy.com jessie/non-free amd64 Packages [1,003 B]
2018-12-18 09:04:44,921: DEBUG - Fetched 1,158 kB in 2s (545 kB/s)
2018-12-18 09:04:46,550: DEBUG - Reading package lists...
2018-12-18 09:04:46,667: DEBUG - + sudo apt-get install -y python-setuptools
2018-12-18 09:04:46,770: DEBUG - Reading package lists...
2018-12-18 09:04:46,873: DEBUG - Building dependency tree...
2018-12-18 09:04:46,874: DEBUG - Reading state information...
2018-12-18 09:04:46,977: DEBUG - python-setuptools is already the newest version (33.1.1-1).
2018-12-18 09:04:46,977: DEBUG - The following packages were automatically installed and are no longer required:
2018-12-18 09:04:46,977: DEBUG -   dconf-gsettings-backend dconf-service gir1.2-gst-plugins-base-1.0
2018-12-18 09:04:46,977: DEBUG -   gir1.2-gstreamer-1.0 glib-networking glib-networking-common
2018-12-18 09:04:46,977: DEBUG -   glib-networking-services gsettings-desktop-schemas gstreamer1.0-alsa
2018-12-18 09:04:46,977: DEBUG -   gstreamer1.0-plugins-base gstreamer1.0-plugins-good
2018-12-18 09:04:46,977: DEBUG -   gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio gstreamer1.0-tools
2018-12-18 09:04:46,977: DEBUG -   gstreamer1.0-x liba52-0.7.4 libaa1 libcairo-gobject2 libcdparanoia0
2018-12-18 09:04:46,978: DEBUG -   libdatrie1 libdconf1 libdv4 libdvdnav4 libdvdread4 libgdk-pixbuf2.0-0
2018-12-18 09:04:46,978: DEBUG -   libgdk-pixbuf2.0-common libgstreamer-plugins-base1.0-0 libgstreamer1.0-0
2018-12-18 09:04:46,978: DEBUG -   libgudev-1.0-0 libjs-sphinxdoc libjs-underscore libmad0 libmpeg2-4
2018-12-18 09:04:46,978: DEBUG -   libopencore-amrnb0 libopencore-amrwb0 liborc-0.4-0 libpango-1.0-0
2018-12-18 09:04:46,978: DEBUG -   libpangocairo-1.0-0 libpangoft2-1.0-0 libproxy1v5 libshout3 libsidplay1v5
2018-12-18 09:04:46,978: DEBUG -   libsoup2.4-1 libspotify12 libtag1v5 libtag1v5-vanilla libthai-data libthai0
2018-12-18 09:04:46,978: DEBUG -   libv4l-0 libv4lconvert0 libvisual-0.4-0 pkg-config python-backports-abc
2018-12-18 09:04:46,978: DEBUG -   python-cffi python-concurrent.futures python-gst-1.0 python-ply
2018-12-18 09:04:46,978: DEBUG -   python-pycparser python-pykka python-singledispatch python-spotify
2018-12-18 09:04:46,978: DEBUG -   python-tornado
2018-12-18 09:04:46,978: DEBUG - Use 'sudo apt autoremove' to remove them.
2018-12-18 09:04:47,287: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:04:47,287: DEBUG - + sudo apt-get install -y mopidy
2018-12-18 09:04:47,391: DEBUG - Reading package lists...
2018-12-18 09:04:47,494: DEBUG - Building dependency tree...
2018-12-18 09:04:47,494: DEBUG - Reading state information...
2018-12-18 09:04:47,597: DEBUG - The following packages were automatically installed and are no longer required:
2018-12-18 09:04:47,598: DEBUG -   libspotify12 python-cffi python-ply python-pycparser python-spotify
2018-12-18 09:04:47,598: DEBUG - Use 'sudo apt autoremove' to remove them.
2018-12-18 09:04:47,598: DEBUG - Suggested packages:
2018-12-18 09:04:47,598: DEBUG -   mopidy-doc
2018-12-18 09:04:47,598: DEBUG - The following NEW packages will be installed:
2018-12-18 09:04:47,598: DEBUG -   mopidy
2018-12-18 09:04:57,631: DEBUG - Preconfiguring packages ...
2018-12-18 09:04:57,835: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:04:57,835: DEBUG - Need to get 0 B/206 kB of archives.
2018-12-18 09:04:57,835: DEBUG - After this operation, 873 kB of additional disk space will be used.
2018-12-18 09:04:58,244: DEBUG - Selecting previously unselected package mopidy.
2018-12-18 09:05:05,674: DEBUG - (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 58142 files and directories currently installed.)
2018-12-18 09:05:05,675: DEBUG - Preparing to unpack .../mopidy_2.1.0-1_all.deb ...
2018-12-18 09:05:05,675: DEBUG - Unpacking mopidy (2.1.0-1) ...
2018-12-18 09:05:06,387: DEBUG - Setting up mopidy (2.1.0-1) ...
2018-12-18 09:05:09,434: DEBUG - Processing triggers for mime-support (3.60) ...
2018-12-18 09:05:09,739: DEBUG - Processing triggers for systemd (232-25+deb9u6) ...
2018-12-18 09:05:09,841: DEBUG - Processing triggers for man-db (2.7.6.1-2) ...
2018-12-18 09:05:53,099: DEBUG - + sudo apt-get install -y mopidy-soundcloud
2018-12-18 09:05:53,425: DEBUG - Reading package lists...
2018-12-18 09:05:53,526: DEBUG - Building dependency tree...
2018-12-18 09:05:53,526: DEBUG - Reading state information...
2018-12-18 09:05:53,730: DEBUG - The following packages were automatically installed and are no longer required:
2018-12-18 09:05:53,730: DEBUG -   libspotify12 python-cffi python-ply python-pycparser python-spotify
2018-12-18 09:05:53,730: DEBUG - Use 'sudo apt autoremove' to remove them.
2018-12-18 09:05:53,730: DEBUG - The following NEW packages will be installed:
2018-12-18 09:05:53,730: DEBUG -   mopidy-soundcloud
2018-12-18 09:05:54,544: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:05:54,545: DEBUG - Need to get 0 B/12.6 kB of archives.
2018-12-18 09:05:54,545: DEBUG - After this operation, 53.2 kB of additional disk space will be used.
2018-12-18 09:05:54,545: DEBUG - Selecting previously unselected package mopidy-soundcloud.
2018-12-18 09:05:54,750: DEBUG - (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 58304 files and directories currently installed.)
2018-12-18 09:05:54,767: DEBUG - Preparing to unpack .../mopidy-soundcloud_2.0.2-2_all.deb ...
2018-12-18 09:05:54,768: DEBUG - Unpacking mopidy-soundcloud (2.0.2-2) ...
2018-12-18 09:05:54,870: DEBUG - Setting up mopidy-soundcloud (2.0.2-2) ...
2018-12-18 09:05:55,682: DEBUG - + sudo apt-get install -y mopidy-spotify
2018-12-18 09:05:55,892: DEBUG - Reading package lists...
2018-12-18 09:05:55,993: DEBUG - Building dependency tree...
2018-12-18 09:05:55,993: DEBUG - Reading state information...
2018-12-18 09:05:56,195: DEBUG - The following NEW packages will be installed:
2018-12-18 09:05:56,195: DEBUG -   mopidy-spotify
2018-12-18 09:05:56,904: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:05:56,904: DEBUG - Need to get 0 B/23.6 kB of archives.
2018-12-18 09:05:56,904: DEBUG - After this operation, 112 kB of additional disk space will be used.
2018-12-18 09:05:56,904: DEBUG - Selecting previously unselected package mopidy-spotify.
2018-12-18 09:05:57,106: DEBUG - (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 58321 files and directories currently installed.)
2018-12-18 09:05:57,106: DEBUG - Preparing to unpack .../mopidy-spotify_3.1.0-0mopidy1_all.deb ...
2018-12-18 09:05:57,106: DEBUG - Unpacking mopidy-spotify (3.1.0-0mopidy1) ...
2018-12-18 09:05:57,207: DEBUG - Setting up mopidy-spotify (3.1.0-0mopidy1) ...
2018-12-18 09:05:57,612: DEBUG - ++ hostname -I
2018-12-18 09:05:57,683: DEBUG - ++ awk '{ print $1 }'
2018-12-18 09:05:57,683: DEBUG - + ip_local=192.168.10.2
2018-12-18 09:05:57,683: DEBUG - + sudo sed -i s@__IPLOCAL__@192.168.10.2@g ../conf/mopidy.conf
2018-12-18 09:05:57,784: DEBUG - + '[' -n '' ']'
2018-12-18 09:05:57,784: DEBUG - + sudo sed -i '/\[spotify\]/a enabled = false' ../conf/mopidy.conf
2018-12-18 09:05:57,784: DEBUG - + sudo sed -i s@__USER_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__PWD_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__ID_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__SECRET_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + '[' -n '' ']'
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__SOUNDCLOUD__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/groupe1.nohost.me.d/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__PATHTOCHANGE__@/mopidy@g /etc/nginx/conf.d/groupe1.nohost.me.d/mopidy.conf
2018-12-18 09:05:57,988: DEBUG - + sudo chown -R www-data /var/www/mopidy
2018-12-18 09:05:57,989: WARNING - cp: cannot create regular file '/usr/share/mopidy/conf.d/': Not a directory
2018-12-18 09:05:57,989: DEBUG - + sudo cp ../conf/mopidy.conf /usr/share/mopidy/conf.d/
2018-12-18 09:05:57,990: WARNING - !!
2018-12-18 09:05:57,990: DEBUG - ++ EXIT_PROPERLY
2018-12-18 09:05:57,990: WARNING -   mopidy install's script has encountered an error. Installation was cancelled.
2018-12-18 09:05:57,991: DEBUG - ++ trap '' ERR
2018-12-18 09:05:57,991: WARNING - !!
2018-12-18 09:05:57,991: DEBUG - ++ echo -e '\e[91m \e[1m'
2018-12-18 09:05:57,992: WARNING - /usr/share/yunohost/helpers.d/print: line 4: $1: unbound variable
2018-12-18 09:05:57,992: DEBUG - e[91m e[1m
2018-12-18 09:05:57,992: DEBUG - ++ echo -e '!!\n  mopidy install'\''s script has encountered an error. Installation was cancelled.\n!!'
2018-12-18 09:05:57,992: DEBUG - ++ type -t CLEAN_SETUP
2018-12-18 09:05:57,993: DEBUG - ++ '[' 2.4 = 2.2 ']'
2018-12-18 09:05:57,993: DEBUG - ++ ynh_die

How can I solve this problem ?

Bonjour,

Je rencontre des difficultés à installer Mopidy via Yunohost que ce soit via l’interface web ou la ligne de commande.

Côté interface web, j’obtiens le log suivant :

2018-12-18 10:48:29,748: WARNING - « yunohost app checkurl » est déprécié et sera bientôt supprimé
2018-12-18 10:48:29,750: WARNING - Packagers /!\ : 'app checkurl' is deprecated ! Please use the helper 'ynh_webpath_register' instead !
2018-12-18 10:48:32,084: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-12-18 10:48:49,035: WARNING - debconf: Impossible d'initialiser l'interface : Dialog
2018-12-18 10:48:49,037: WARNING - debconf: (L'interface dialog ne fonctionnera pas avec un terminal rustique (« dumb »), un tampon shell d'Emacs ou sans terminal de contrôle.)
2018-12-18 10:48:49,038: WARNING - debconf: Utilisation de l'interface Readline en remplacement
2018-12-18 10:48:49,141: WARNING - debconf: Impossible d'initialiser l'interface : Readline
2018-12-18 10:48:49,142: WARNING - debconf: (Cette interface a besoin d'un terminal de contrôle.)
2018-12-18 10:48:49,142: WARNING - debconf: Utilisation de l'interface Teletype en remplacement
2018-12-18 10:48:49,143: WARNING - dpkg-preconfigure: impossible de réouvrir stdin :
2018-12-18 10:48:58,611: WARNING - debconf: Impossible d'initialiser l'interface : Dialog
2018-12-18 10:48:58,612: WARNING - debconf: (L'interface dialog ne fonctionnera pas avec un terminal rustique (« dumb »), un tampon shell d'Emacs ou sans terminal de contrôle.)
2018-12-18 10:48:58,612: WARNING - debconf: Utilisation de l'interface Readline en remplacement
2018-12-18 10:48:58,613: WARNING - debconf: Impossible d'initialiser l'interface : Readline
2018-12-18 10:48:58,613: WARNING - debconf: (Cette interface a besoin d'un terminal de contrôle.)
2018-12-18 10:48:58,614: WARNING - debconf: Utilisation de l'interface Teletype en remplacement
2018-12-18 10:48:58,614: WARNING - dpkg-preconfigure: impossible de réouvrir stdin :
2018-12-18 10:49:00,448: WARNING - cp: impossible de créer le fichier standard '/usr/share/mopidy/conf.d/': N'est pas un dossier
2018-12-18 10:49:00,448: WARNING - !!
2018-12-18 10:49:00,449: WARNING -   mopidy install's script has encountered an error. Installation was cancelled.
2018-12-18 10:49:00,449: WARNING - !!
2018-12-18 10:49:00,551: WARNING - /usr/share/yunohost/helpers.d/print: ligne 4: $1 : variable sans liaison

Côté ligne de commande, j’obtiens la même erreur avec ces logs ci :

args:
  app: mopidy
  args: null
  label: null
  no_remove_on_failure: false
ended_at: 2018-12-18 09:05:58.119497
env:
  YNH_APP_ARG_ADMIN_MOPIDY: demo
  YNH_APP_ARG_DOMAIN: groupe1.nohost.me
  YNH_APP_ARG_PATH: /mopidy
  YNH_APP_ARG_SOUNDCLOUD_ID: ''
  YNH_APP_ARG_SPOTIFY_ID: ''
  YNH_APP_ARG_SPOTIFY_ID_SECRET: ''
  YNH_APP_ARG_SPOTIFY_PASS: nepaj69008
  YNH_APP_ARG_SPOTIFY_USER: ''
  YNH_APP_ID: mopidy
  YNH_APP_INSTANCE_NAME: mopidy
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/mopidy_ynh-b001c8d64d62ceafa5d60627b64761a35757b998/scripts
  YNH_STDINFO: /tmp/tmpsTmzy6/stdinfo
error: An unexpected error occured
operation: app_install
related_to:
- - app
  - mopidy
started_at: 2018-12-18 09:04:36.312142
success: false

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

2018-12-18 09:04:37,002: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_ADMIN_MOPIDY=demo YNH_CWD=/var/cache/yunohost/from_file/mopidy_ynh-b001c8d64d62ceafa5d60627b64761a35757b998/scripts YNH_STDINFO=/tmp/tmpsTmzy6/stdinfo YNH_APP_ARG_SPOTIFY_USER='' YNH_APP_ARG_SOUNDCLOUD_ID='' YNH_APP_ARG_SPOTIFY_PASS=nepaj69008 YNH_APP_ARG_SPOTIFY_ID_SECRET='' YNH_APP_INSTANCE_NAME=mopidy YNH_APP_ID=mopidy YNH_APP_ARG_PATH=/mopidy YNH_APP_ARG_SPOTIFY_ID='' YNH_APP_ARG_DOMAIN=groupe1.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" groupe1.nohost.me /mopidy demo '' nepaj69008 '' '' '' mopidy 7>&1'...
2018-12-18 09:04:37,003: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ARG_ADMIN_MOPIDY=demo YNH_CWD=/var/cache/yunohost/from_file/mopidy_ynh-b001c8d64d62ceafa5d60627b64761a35757b998/scripts YNH_STDINFO=/tmp/tmpsTmzy6/stdinfo YNH_APP_ARG_SPOTIFY_USER=\'\' YNH_APP_ARG_SOUNDCLOUD_ID=\'\' YNH_APP_ARG_SPOTIFY_PASS=nepaj69008 YNH_APP_ARG_SPOTIFY_ID_SECRET=\'\' YNH_APP_INSTANCE_NAME=mopidy YNH_APP_ID=mopidy YNH_APP_ARG_PATH=/mopidy YNH_APP_ARG_SPOTIFY_ID=\'\' YNH_APP_ARG_DOMAIN=groupe1.nohost.me BASH_XTRACEFD=7 /bin/bash -x "./install" groupe1.nohost.me /mopidy demo \'\' nepaj69008 \'\' \'\' \'\' mopidy 7>&1']'
2018-12-18 09:04:37,190: DEBUG - + set -eu
2018-12-18 09:04:37,191: DEBUG - + source .fonctions
2018-12-18 09:04:37,191: DEBUG - ++ ynh_version=2.4
2018-12-18 09:04:37,191: DEBUG - + TRAP_ON
2018-12-18 09:04:37,191: DEBUG - + trap EXIT_PROPERLY ERR
2018-12-18 09:04:37,191: DEBUG - + domain=groupe1.nohost.me
2018-12-18 09:04:37,191: DEBUG - + path=/mopidy
2018-12-18 09:04:37,192: DEBUG - + admin_mopidy=demo
2018-12-18 09:04:37,192: DEBUG - + spotify_user=
2018-12-18 09:04:37,192: DEBUG - + spotify_pass=nepaj69008
2018-12-18 09:04:37,192: DEBUG - + spotify_id=
2018-12-18 09:04:37,192: DEBUG - + spotify_id_secret=
2018-12-18 09:04:37,192: DEBUG - + soundcloud_id=
2018-12-18 09:04:37,192: DEBUG - + app=mopidy
2018-12-18 09:04:37,193: DEBUG - + source /usr/share/yunohost/helpers
2018-12-18 09:04:37,193: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2018-12-18 09:04:37,193: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,193: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
2018-12-18 09:04:37,193: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend
2018-12-18 09:04:37,193: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,193: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
2018-12-18 09:04:37,193: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem
2018-12-18 09:04:37,294: DEBUG - +++ CAN_BIND=1
2018-12-18 09:04:37,294: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,295: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2018-12-18 09:04:37,295: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2018-12-18 09:04:37,295: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,295: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
2018-12-18 09:04:37,295: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip
2018-12-18 09:04:37,295: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,296: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2018-12-18 09:04:37,296: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2018-12-18 09:04:37,296: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2018-12-18 09:04:37,296: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,296: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2018-12-18 09:04:37,296: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2018-12-18 09:04:37,297: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,297: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2018-12-18 09:04:37,297: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2018-12-18 09:04:37,297: DEBUG - +++ n_install_dir=/opt/node_n
2018-12-18 09:04:37,297: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2018-12-18 09:04:37,298: DEBUG - +++ export N_PREFIX=/opt/node_n
2018-12-18 09:04:37,298: DEBUG - +++ N_PREFIX=/opt/node_n
2018-12-18 09:04:37,298: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,298: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
2018-12-18 09:04:37,298: DEBUG - ++ . /usr/share/yunohost/helpers.d/package
2018-12-18 09:04:37,298: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,299: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
2018-12-18 09:04:37,299: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
2018-12-18 09:04:37,299: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,299: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
2018-12-18 09:04:37,299: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql
2018-12-18 09:04:37,299: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,300: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2018-12-18 09:04:37,300: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2018-12-18 09:04:37,300: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,300: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2018-12-18 09:04:37,300: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2018-12-18 09:04:37,300: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,301: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
2018-12-18 09:04:37,301: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
2018-12-18 09:04:37,301: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,301: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2018-12-18 09:04:37,301: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2018-12-18 09:04:37,301: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-18 09:04:37,302: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2018-12-18 09:04:37,302: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2018-12-18 09:04:37,302: DEBUG - + CHECK_VAR mopidy 'app name not set'
2018-12-18 09:04:37,302: DEBUG - + test -n mopidy
2018-12-18 09:04:37,302: DEBUG - + CHECK_USER demo
2018-12-18 09:04:37,303: DEBUG - + ynh_user_exists demo
2018-12-18 09:04:37,303: DEBUG - + sudo yunohost user list --output-as json
2018-12-18 09:04:37,303: DEBUG - + grep -q '"username": "demo"'
2018-12-18 09:04:38,321: DEBUG - + CHECK_DOMAINPATH
2018-12-18 09:04:38,321: DEBUG - + sudo yunohost app checkurl groupe1.nohost.me/mopidy -a mopidy
2018-12-18 09:04:38,524: WARNING - 'yunohost app checkurl' is deprecated and will be removed in the future
2018-12-18 09:04:38,829: WARNING - Packagers /!\ : 'app checkurl' is deprecated ! Please use the helper 'ynh_webpath_register' instead !
2018-12-18 09:04:39,132: DEBUG - + CHECK_FINALPATH
2018-12-18 09:04:39,132: DEBUG - + final_path=/var/www/mopidy
2018-12-18 09:04:39,132: DEBUG - + '[' -e /var/www/mopidy ']'
2018-12-18 09:04:39,233: DEBUG - + ynh_app_setting_set mopidy domain groupe1.nohost.me
2018-12-18 09:04:39,233: DEBUG - + sudo yunohost app setting mopidy domain --value=groupe1.nohost.me --quiet
2018-12-18 09:04:39,539: DEBUG - + ynh_app_setting_set mopidy path /mopidy
2018-12-18 09:04:39,540: DEBUG - + sudo yunohost app setting mopidy path --value=/mopidy --quiet
2018-12-18 09:04:39,641: DEBUG - + ynh_app_setting_set mopidy admin demo
2018-12-18 09:04:39,641: DEBUG - + sudo yunohost app setting mopidy admin --value=demo --quiet
2018-12-18 09:04:39,844: DEBUG - + '[' -n '' ']'
2018-12-18 09:04:39,844: DEBUG - + '[' -n '' ']'
2018-12-18 09:04:39,844: DEBUG - + sudo mkdir /var/www/mopidy
2018-12-18 09:04:39,844: DEBUG - + sudo chown -R www-data: /var/www/mopidy
2018-12-18 09:04:39,948: DEBUG - + ynh_app_setting_set mopidy final_path /var/www/mopidy
2018-12-18 09:04:39,948: DEBUG - + sudo yunohost app setting mopidy final_path --value=/var/www/mopidy --quiet
2018-12-18 09:04:40,149: DEBUG - + wget -q -O - https://apt.mopidy.com/mopidy.gpg
2018-12-18 09:04:40,150: DEBUG - + sudo apt-key add -
2018-12-18 09:04:40,858: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-12-18 09:04:41,969: DEBUG - OK
2018-12-18 09:04:41,970: DEBUG - + sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessie.list
2018-12-18 09:04:42,576: DEBUG - + sudo apt-get update
2018-12-18 09:04:42,879: DEBUG - Ign:1 http://apt.mopidy.com jessie InRelease
2018-12-18 09:04:42,880: DEBUG - Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
2018-12-18 09:04:42,980: DEBUG - Ign:3 http://ftp.fr.debian.org/debian stretch InRelease
2018-12-18 09:04:42,981: DEBUG - Get:4 http://apt.mopidy.com jessie Release [37.0 kB]
2018-12-18 09:04:42,981: DEBUG - Get:5 http://forge.yunohost.org/debian stretch InRelease [18.2 kB]
2018-12-18 09:04:43,082: DEBUG - Get:6 http://ftp.fr.debian.org/debian stretch-updates InRelease [91.0 kB]
2018-12-18 09:04:43,083: DEBUG - Get:7 http://apt.mopidy.com jessie Release.gpg [819 B]
2018-12-18 09:04:43,186: DEBUG - Get:8 http://security.debian.org/debian-security stretch/updates/main Sources [186 kB]
2018-12-18 09:04:43,186: DEBUG - Hit:9 http://ftp.fr.debian.org/debian stretch Release
2018-12-18 09:04:43,287: DEBUG - Get:10 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [461 kB]
2018-12-18 09:04:43,388: DEBUG - Get:11 http://forge.yunohost.org/debian stretch/stable amd64 Packages [4,308 B]
2018-12-18 09:04:43,488: DEBUG - Get:12 http://security.debian.org/debian-security stretch/updates/main Translation-en [201 kB]
2018-12-18 09:04:43,590: DEBUG - Get:13 http://apt.mopidy.com jessie/non-free Sources [3,160 B]
2018-12-18 09:04:43,692: DEBUG - Get:15 http://apt.mopidy.com jessie/contrib Sources [7,873 B]
2018-12-18 09:04:43,793: DEBUG - Get:16 http://apt.mopidy.com jessie/main Sources [28.7 kB]
2018-12-18 09:04:44,203: DEBUG - Get:17 http://apt.mopidy.com jessie/main amd64 Packages [17.5 kB]
2018-12-18 09:04:44,510: DEBUG - Get:18 http://apt.mopidy.com jessie/contrib amd64 Packages [5,387 B]
2018-12-18 09:04:44,921: DEBUG - Get:19 http://apt.mopidy.com jessie/non-free amd64 Packages [1,003 B]
2018-12-18 09:04:44,921: DEBUG - Fetched 1,158 kB in 2s (545 kB/s)
2018-12-18 09:04:46,550: DEBUG - Reading package lists...
2018-12-18 09:04:46,667: DEBUG - + sudo apt-get install -y python-setuptools
2018-12-18 09:04:46,770: DEBUG - Reading package lists...
2018-12-18 09:04:46,873: DEBUG - Building dependency tree...
2018-12-18 09:04:46,874: DEBUG - Reading state information...
2018-12-18 09:04:46,977: DEBUG - python-setuptools is already the newest version (33.1.1-1).
2018-12-18 09:04:46,977: DEBUG - The following packages were automatically installed and are no longer required:
2018-12-18 09:04:46,977: DEBUG -   dconf-gsettings-backend dconf-service gir1.2-gst-plugins-base-1.0
2018-12-18 09:04:46,977: DEBUG -   gir1.2-gstreamer-1.0 glib-networking glib-networking-common
2018-12-18 09:04:46,977: DEBUG -   glib-networking-services gsettings-desktop-schemas gstreamer1.0-alsa
2018-12-18 09:04:46,977: DEBUG -   gstreamer1.0-plugins-base gstreamer1.0-plugins-good
2018-12-18 09:04:46,977: DEBUG -   gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio gstreamer1.0-tools
2018-12-18 09:04:46,977: DEBUG -   gstreamer1.0-x liba52-0.7.4 libaa1 libcairo-gobject2 libcdparanoia0
2018-12-18 09:04:46,978: DEBUG -   libdatrie1 libdconf1 libdv4 libdvdnav4 libdvdread4 libgdk-pixbuf2.0-0
2018-12-18 09:04:46,978: DEBUG -   libgdk-pixbuf2.0-common libgstreamer-plugins-base1.0-0 libgstreamer1.0-0
2018-12-18 09:04:46,978: DEBUG -   libgudev-1.0-0 libjs-sphinxdoc libjs-underscore libmad0 libmpeg2-4
2018-12-18 09:04:46,978: DEBUG -   libopencore-amrnb0 libopencore-amrwb0 liborc-0.4-0 libpango-1.0-0
2018-12-18 09:04:46,978: DEBUG -   libpangocairo-1.0-0 libpangoft2-1.0-0 libproxy1v5 libshout3 libsidplay1v5
2018-12-18 09:04:46,978: DEBUG -   libsoup2.4-1 libspotify12 libtag1v5 libtag1v5-vanilla libthai-data libthai0
2018-12-18 09:04:46,978: DEBUG -   libv4l-0 libv4lconvert0 libvisual-0.4-0 pkg-config python-backports-abc
2018-12-18 09:04:46,978: DEBUG -   python-cffi python-concurrent.futures python-gst-1.0 python-ply
2018-12-18 09:04:46,978: DEBUG -   python-pycparser python-pykka python-singledispatch python-spotify
2018-12-18 09:04:46,978: DEBUG -   python-tornado
2018-12-18 09:04:46,978: DEBUG - Use 'sudo apt autoremove' to remove them.
2018-12-18 09:04:47,287: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:04:47,287: DEBUG - + sudo apt-get install -y mopidy
2018-12-18 09:04:47,391: DEBUG - Reading package lists...
2018-12-18 09:04:47,494: DEBUG - Building dependency tree...
2018-12-18 09:04:47,494: DEBUG - Reading state information...
2018-12-18 09:04:47,597: DEBUG - The following packages were automatically installed and are no longer required:
2018-12-18 09:04:47,598: DEBUG -   libspotify12 python-cffi python-ply python-pycparser python-spotify
2018-12-18 09:04:47,598: DEBUG - Use 'sudo apt autoremove' to remove them.
2018-12-18 09:04:47,598: DEBUG - Suggested packages:
2018-12-18 09:04:47,598: DEBUG -   mopidy-doc
2018-12-18 09:04:47,598: DEBUG - The following NEW packages will be installed:
2018-12-18 09:04:47,598: DEBUG -   mopidy
2018-12-18 09:04:57,631: DEBUG - Preconfiguring packages ...
2018-12-18 09:04:57,835: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:04:57,835: DEBUG - Need to get 0 B/206 kB of archives.
2018-12-18 09:04:57,835: DEBUG - After this operation, 873 kB of additional disk space will be used.
2018-12-18 09:04:58,244: DEBUG - Selecting previously unselected package mopidy.
2018-12-18 09:05:05,674: DEBUG - (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 58142 files and directories currently installed.)
2018-12-18 09:05:05,675: DEBUG - Preparing to unpack .../mopidy_2.1.0-1_all.deb ...
2018-12-18 09:05:05,675: DEBUG - Unpacking mopidy (2.1.0-1) ...
2018-12-18 09:05:06,387: DEBUG - Setting up mopidy (2.1.0-1) ...
2018-12-18 09:05:09,434: DEBUG - Processing triggers for mime-support (3.60) ...
2018-12-18 09:05:09,739: DEBUG - Processing triggers for systemd (232-25+deb9u6) ...
2018-12-18 09:05:09,841: DEBUG - Processing triggers for man-db (2.7.6.1-2) ...
2018-12-18 09:05:53,099: DEBUG - + sudo apt-get install -y mopidy-soundcloud
2018-12-18 09:05:53,425: DEBUG - Reading package lists...
2018-12-18 09:05:53,526: DEBUG - Building dependency tree...
2018-12-18 09:05:53,526: DEBUG - Reading state information...
2018-12-18 09:05:53,730: DEBUG - The following packages were automatically installed and are no longer required:
2018-12-18 09:05:53,730: DEBUG -   libspotify12 python-cffi python-ply python-pycparser python-spotify
2018-12-18 09:05:53,730: DEBUG - Use 'sudo apt autoremove' to remove them.
2018-12-18 09:05:53,730: DEBUG - The following NEW packages will be installed:
2018-12-18 09:05:53,730: DEBUG -   mopidy-soundcloud
2018-12-18 09:05:54,544: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:05:54,545: DEBUG - Need to get 0 B/12.6 kB of archives.
2018-12-18 09:05:54,545: DEBUG - After this operation, 53.2 kB of additional disk space will be used.
2018-12-18 09:05:54,545: DEBUG - Selecting previously unselected package mopidy-soundcloud.
2018-12-18 09:05:54,750: DEBUG - (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 58304 files and directories currently installed.)
2018-12-18 09:05:54,767: DEBUG - Preparing to unpack .../mopidy-soundcloud_2.0.2-2_all.deb ...
2018-12-18 09:05:54,768: DEBUG - Unpacking mopidy-soundcloud (2.0.2-2) ...
2018-12-18 09:05:54,870: DEBUG - Setting up mopidy-soundcloud (2.0.2-2) ...
2018-12-18 09:05:55,682: DEBUG - + sudo apt-get install -y mopidy-spotify
2018-12-18 09:05:55,892: DEBUG - Reading package lists...
2018-12-18 09:05:55,993: DEBUG - Building dependency tree...
2018-12-18 09:05:55,993: DEBUG - Reading state information...
2018-12-18 09:05:56,195: DEBUG - The following NEW packages will be installed:
2018-12-18 09:05:56,195: DEBUG -   mopidy-spotify
2018-12-18 09:05:56,904: DEBUG - 0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
2018-12-18 09:05:56,904: DEBUG - Need to get 0 B/23.6 kB of archives.
2018-12-18 09:05:56,904: DEBUG - After this operation, 112 kB of additional disk space will be used.
2018-12-18 09:05:56,904: DEBUG - Selecting previously unselected package mopidy-spotify.
2018-12-18 09:05:57,106: DEBUG - (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 58321 files and directories currently installed.)
2018-12-18 09:05:57,106: DEBUG - Preparing to unpack .../mopidy-spotify_3.1.0-0mopidy1_all.deb ...
2018-12-18 09:05:57,106: DEBUG - Unpacking mopidy-spotify (3.1.0-0mopidy1) ...
2018-12-18 09:05:57,207: DEBUG - Setting up mopidy-spotify (3.1.0-0mopidy1) ...
2018-12-18 09:05:57,612: DEBUG - ++ hostname -I
2018-12-18 09:05:57,683: DEBUG - ++ awk '{ print $1 }'
2018-12-18 09:05:57,683: DEBUG - + ip_local=192.168.10.2
2018-12-18 09:05:57,683: DEBUG - + sudo sed -i s@__IPLOCAL__@192.168.10.2@g ../conf/mopidy.conf
2018-12-18 09:05:57,784: DEBUG - + '[' -n '' ']'
2018-12-18 09:05:57,784: DEBUG - + sudo sed -i '/\[spotify\]/a enabled = false' ../conf/mopidy.conf
2018-12-18 09:05:57,784: DEBUG - + sudo sed -i s@__USER_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__PWD_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__ID_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__SECRET_SPOTIFY__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + '[' -n '' ']'
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__SOUNDCLOUD__@@g ../conf/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/groupe1.nohost.me.d/mopidy.conf
2018-12-18 09:05:57,886: DEBUG - + sudo sed -i s@__PATHTOCHANGE__@/mopidy@g /etc/nginx/conf.d/groupe1.nohost.me.d/mopidy.conf
2018-12-18 09:05:57,988: DEBUG - + sudo chown -R www-data /var/www/mopidy
2018-12-18 09:05:57,989: WARNING - cp: cannot create regular file '/usr/share/mopidy/conf.d/': Not a directory
2018-12-18 09:05:57,989: DEBUG - + sudo cp ../conf/mopidy.conf /usr/share/mopidy/conf.d/
2018-12-18 09:05:57,990: WARNING - !!
2018-12-18 09:05:57,990: DEBUG - ++ EXIT_PROPERLY
2018-12-18 09:05:57,990: WARNING -   mopidy install's script has encountered an error. Installation was cancelled.
2018-12-18 09:05:57,991: DEBUG - ++ trap '' ERR
2018-12-18 09:05:57,991: WARNING - !!
2018-12-18 09:05:57,991: DEBUG - ++ echo -e '\e[91m \e[1m'
2018-12-18 09:05:57,992: WARNING - /usr/share/yunohost/helpers.d/print: line 4: $1: unbound variable
2018-12-18 09:05:57,992: DEBUG - e[91m e[1m
2018-12-18 09:05:57,992: DEBUG - ++ echo -e '!!\n  mopidy install'\''s script has encountered an error. Installation was cancelled.\n!!'
2018-12-18 09:05:57,992: DEBUG - ++ type -t CLEAN_SETUP
2018-12-18 09:05:57,993: DEBUG - ++ '[' 2.4 = 2.2 ']'
2018-12-18 09:05:57,993: DEBUG - ++ ynh_die

Comment puis-je résoudre ce problème ?

Bonjour @jeuneapprenti

Il semblerait que /usr/share/mopidy/conf.d ne soit pas un répértoire, peut-être un fichier qui traine ? Que dit ls -alh /usr/share/mopidy/ ?

Bonjour @arthurlutz,

Ayant dupliqué le problème sur le Github de l’app mopidy sur Yunohost, j’ai pu recevoir cette réponse :

Merci pour la piste !

1 Like

Salut !
Est-ce que tu as réussi à installer mopidy ?
Si oui, comment ?

Merci !