Impossible d'installer peertube


#1

Bonsoir,

Ci-dessous le log de l’install:

args:
  app: https://github.com/YunoHost-Apps/peertube_ynh
  args: null
  label: null
  no_remove_on_failure: false
ended_at: 2018-12-23 16:57:07.065004
env:
  YNH_APP_ARG_DOMAIN: peertube.stemy.me
  YNH_APP_ARG_EMAIL: root@stemy.me
  YNH_APP_ARG_IS_PUBLIC: 1
  YNH_APP_ID: peertube
  YNH_APP_INSTANCE_NAME: peertube
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_CWD: /var/cache/yunohost/from_file/peertube_ynh-master/scripts
  YNH_STDINFO: /tmp/tmpoFdjuf/stdinfo
error: An unexpected error occured
operation: app_install
related_to:
- - app
  - peertube
started_at: 2018-12-23 16:57:05.072533
success: false

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

2018-12-23 16:57:06,115: DEBUG - Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/peertube_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpoFdjuf/stdinfo YNH_APP_INSTANCE_NAME=peertube YNH_APP_ARG_EMAIL=root@stemy.me YNH_APP_ID=peertube YNH_APP_ARG_DOMAIN=peertube.stemy.me BASH_XTRACEFD=7 /bin/bash -x "./install" peertube.stemy.me root@stemy.me 1 peertube 7>&1'...
2018-12-23 16:57:06,128: DEBUG - About to run the command '['sh', '-c', 'YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/var/cache/yunohost/from_file/peertube_ynh-master/scripts YNH_APP_ARG_IS_PUBLIC=1 YNH_STDINFO=/tmp/tmpoFdjuf/stdinfo YNH_APP_INSTANCE_NAME=peertube YNH_APP_ARG_EMAIL=root@stemy.me YNH_APP_ID=peertube YNH_APP_ARG_DOMAIN=peertube.stemy.me BASH_XTRACEFD=7 /bin/bash -x "./install" peertube.stemy.me root@stemy.me 1 peertube 7>&1']'
2018-12-23 16:57:06,321: DEBUG - + source _common.sh
2018-12-23 16:57:06,335: DEBUG - + source /usr/share/yunohost/helpers
2018-12-23 16:57:06,339: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2018-12-23 16:57:06,350: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,353: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
2018-12-23 16:57:06,357: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend
2018-12-23 16:57:06,364: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,374: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
2018-12-23 16:57:06,377: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem
2018-12-23 16:57:06,390: DEBUG - +++ CAN_BIND=1
2018-12-23 16:57:06,399: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,402: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/getopts ']'
2018-12-23 16:57:06,440: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2018-12-23 16:57:06,464: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,473: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
2018-12-23 16:57:06,481: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip
2018-12-23 16:57:06,490: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,497: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
2018-12-23 16:57:06,513: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2018-12-23 16:57:06,524: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2018-12-23 16:57:06,538: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,542: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
2018-12-23 16:57:06,554: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2018-12-23 16:57:06,558: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,565: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/nodejs ']'
2018-12-23 16:57:06,574: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2018-12-23 16:57:06,584: DEBUG - +++ n_install_dir=/opt/node_n
2018-12-23 16:57:06,596: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2018-12-23 16:57:06,604: DEBUG - +++ export N_PREFIX=/opt/node_n
2018-12-23 16:57:06,616: DEBUG - +++ N_PREFIX=/opt/node_n
2018-12-23 16:57:06,623: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,636: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
2018-12-23 16:57:06,645: DEBUG - ++ . /usr/share/yunohost/helpers.d/package
2018-12-23 16:57:06,656: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,659: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
2018-12-23 16:57:06,671: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
2018-12-23 16:57:06,681: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,724: WARNING - This path already contains a folder
2018-12-23 16:57:06,727: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/psql ']'
2018-12-23 16:57:06,741: WARNING - !!
2018-12-23 16:57:06,745: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql
2018-12-23 16:57:06,753: WARNING -   peertube's script has encountered an error. Its execution was cancelled.
2018-12-23 16:57:06,757: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,771: WARNING - !!
2018-12-23 16:57:06,774: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
2018-12-23 16:57:06,777: WARNING - 
2018-12-23 16:57:06,784: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2018-12-23 16:57:06,788: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,792: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
2018-12-23 16:57:06,796: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2018-12-23 16:57:06,799: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,803: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
2018-12-23 16:57:06,807: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
2018-12-23 16:57:06,810: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,813: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
2018-12-23 16:57:06,817: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2018-12-23 16:57:06,820: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2018-12-23 16:57:06,823: DEBUG - ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
2018-12-23 16:57:06,826: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2018-12-23 16:57:06,830: DEBUG - + source psql.sh
2018-12-23 16:57:06,833: DEBUG - + ynh_abort_if_errors
2018-12-23 16:57:06,836: DEBUG - + set -eu
2018-12-23 16:57:06,840: DEBUG - + trap ynh_exit_properly EXIT
2018-12-23 16:57:06,844: DEBUG - + domain=peertube.stemy.me
2018-12-23 16:57:06,847: DEBUG - + path_url=/
2018-12-23 16:57:06,851: DEBUG - + admin_email=root@stemy.me
2018-12-23 16:57:06,855: DEBUG - ++ ynh_string_random 24
2018-12-23 16:57:06,858: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2018-12-23 16:57:06,861: DEBUG - ++ tr -c -d A-Za-z0-9
2018-12-23 16:57:06,865: DEBUG - ++ sed -n 's/\(.\{24\}\).*/\1/p'
2018-12-23 16:57:06,869: DEBUG - + admin_pass=Vjcl2R2eGKLEovFc5i952MPL
2018-12-23 16:57:06,872: DEBUG - + is_public=1
2018-12-23 16:57:06,878: DEBUG - + app=peertube
2018-12-23 16:57:06,881: DEBUG - + final_path=/var/www/peertube
2018-12-23 16:57:06,885: DEBUG - + test '!' -e /var/www/peertube
2018-12-23 16:57:06,888: DEBUG - + ynh_die 'This path already contains a folder'
2018-12-23 16:57:06,892: DEBUG - + echo 'This path already contains a folder'
2018-12-23 16:57:06,895: DEBUG - + exit 1
2018-12-23 16:57:06,899: DEBUG - + ynh_exit_properly
2018-12-23 16:57:06,903: DEBUG - + local exit_code=1
2018-12-23 16:57:06,907: DEBUG - + '[' 1 -eq 0 ']'
2018-12-23 16:57:06,910: DEBUG - + trap '' EXIT
2018-12-23 16:57:06,913: DEBUG - + set +eu
2018-12-23 16:57:06,917: DEBUG - + echo -e '!!\n  peertube'\''s script has encountered an error. Its execution was cancelled.\n!!'
2018-12-23 16:57:06,921: DEBUG - + type -t ynh_clean_setup
2018-12-23 16:57:06,925: DEBUG - + ynh_die
2018-12-23 16:57:06,929: DEBUG - + echo ''
2018-12-23 16:57:06,932: DEBUG - + exit 1

#2

Visiblement il y a deja un dossier /var/www/peertube qui existe. Si tu n’es pas à l’origine de ce dossier, tu devrais peut-etre le supprimer avec rm -rf /var/www/peertube


#3

En fait, je l’ai créé moi-même suite à un autre problème: il ne parvenait pas à faire exécuter la commande à case d’un «problème de connexion réseau». Alors que quand je lance la commande manuellement, elle fonctionne tout de suite, allez comprendre. Je pensais donc qu’en exécutant moi-même la commande dans le dossier, ça allait tout résoudre, je me suis trompé.


#4

Maintenant, ça me donne le résultat suivant: https://paste.yunohost.org/raw/visosuqudi


#5

L’installation semble avoir échoué à cause d’un problème de connectivité.

2018-12-23 17:41:04,068: DEBUG - [2/4] Fetching packages...
2018-12-23 17:42:57,775: DEBUG - info There appears to be trouble with your network connection. Retrying...
2018-12-23 17:43:56,761: DEBUG - info There appears to be trouble with your network connection. Retrying...
2018-12-23 17:44:45,644: DEBUG - info There appears to be trouble with your network connection. Retrying...
2018-12-23 17:45:19,557: DEBUG - info There appears to be trouble with your network connection. Retrying...
2018-12-23 17:46:09,254: DEBUG - info If you think this is a bug, please open a bug report with the information provided in "/var/www/peertube/client/yarn-error.log".
2018-12-23 17:46:09,593: WARNING - error An unexpected error occurred: "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000907.tgz: ESOCKETTIMEDOUT".

Il se peut que ce ne soit qu’un problème temporaire et dans ce cas retenter une install pourrait marcher.
Sinon il faut vérifier que tu n’as pas de soucis de connectivité permanents ou récurrents.


#6

Non, aucun.

Le plus bizarre, c’est que ce problème n’apparaît que pendant le processus d’install, et jamais quand je lance la commande manuellement, y compris sur la console série pendant que le processus d’install bute sur le problème, et ça a été pareil sur les dizaines d’essais effectués, ce qui exclut d’emblée un problème de connexion internet.
Il y a donc quelque chose dans le script qui la fait sauter à ce moment-là, je ne vois que ça.


#7

En ssh sur ta brique, essaye cette commande :

cd /tmp/
curl -JOLs https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000907.tgz

Si elle fonctionne bien tu devrais avoir un fichier caniuse-lite-1.0.30000907.tgz.
Puis essaye-là à nouveau pendant l’installation, au moment où ça commence à afficher des messages "info There appears to be trouble with your network connection. Retrying….


#8

Bonsoir,

J’ai dû faire une remise à zéro de mon serveur pour d’autres raisons, mais l’installation bloque toujours, mais plus pour la même raison.

https://paste.yunohost.org/raw/zavucumiwe


#9

2019-01-30 21:08:11,675: WARNING - E: Le pilote pour la méthode /usr/lib/apt/methods/https n’a pu être trouvé.

Ça ça veut probablement dire qu’il faut d’abord installer le paquet apt-transport-https.
Si ça résoud bien ton problème ça vaudrait le coup d’ouvrir un ticket sur le projet peertube_ynh.


#10

Voilà, j’ai installé le paquet, et ça bloque de nouveau au même endroit.

J’ai ouvert une autre session de console et ai tapé la commande manuellement pile au moment où l’install a buté dessus à cause d’un soi-disant problème de connexion. Et là, ça me donne une message d’erreur complètement différent:

/usr/share/yarn/lib/cli.js:45726
  let {
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/share/yarn/bin/yarn.js:24:13)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)