[Résolu] Problème installation peertube yunohost


#1

Bonjour, j’essaie d’installer peertube sur mon serveur yunohost x86 mais impossible, les mêmes erreurs à chaque fois.
voila les logs

2018-10-27 19:12:22,617: DEBUG - ++ ynh_find_port 9000
2018-10-27 19:12:22,617: DEBUG - ++ local port=9000
2018-10-27 19:12:22,617: DEBUG - ++ test -n 9000
2018-10-27 19:12:22,617: DEBUG - ++ netcat -z 127.0.0.1 9000
2018-10-27 19:12:22,618: DEBUG - ++ echo 9000
2018-10-27 19:12:22,618: DEBUG - + port=9000
2018-10-27 19:12:22,618: DEBUG - + yunohost firewall allow Both 9000
2018-10-27 19:12:30,431: DEBUG - Le pare-feu a été rechargé
2018-10-27 19:12:30,431: DEBUG - opened_ports:
2018-10-27 19:12:30,432: DEBUG - - 22
2018-10-27 19:12:30,432: DEBUG - - 25
2018-10-27 19:12:30,432: DEBUG - - 53
2018-10-27 19:12:30,432: DEBUG - - 80
2018-10-27 19:12:30,432: DEBUG - - 443
2018-10-27 19:12:30,432: DEBUG - - 587
2018-10-27 19:12:30,432: DEBUG - - 993
2018-10-27 19:12:30,433: DEBUG - - 5222
2018-10-27 19:12:30,433: DEBUG - - 5269
2018-10-27 19:12:30,433: DEBUG - - 5349
2018-10-27 19:12:30,433: DEBUG - - 5350
2018-10-27 19:12:30,433: DEBUG - - 5353
2018-10-27 19:12:30,433: DEBUG - - 8448
2018-10-27 19:12:30,434: DEBUG - - 9000
2018-10-27 19:12:30,434: DEBUG - + ynh_app_setting_set peertube port 9000
2018-10-27 19:12:30,434: DEBUG - + sudo yunohost app setting peertube port --value=9000 --quiet
2018-10-27 19:12:30,835: DEBUG - + datadir=/home/yunohost.app/peertube/storage
2018-10-27 19:12:30,835: WARNING - Installation of N - Node.js version management
2018-10-27 19:12:30,835: DEBUG - + mkdir -p /home/yunohost.app/peertube/storage
2018-10-27 19:12:30,836: DEBUG - + ynh_install_nodejs 8
2018-10-27 19:12:30,836: DEBUG - + nodejs_version=8
2018-10-27 19:12:30,836: DEBUG - + mkdir -p /opt/node_n
2018-10-27 19:12:30,836: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-10-27 19:12:30,836: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-10-27 19:12:30,836: DEBUG - ++ sed s@/usr/local/bin:@@
2018-10-27 19:12:30,837: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2018-10-27 19:12:30,837: DEBUG - + test -x /usr/bin/node
2018-10-27 19:12:30,837: DEBUG - + test -x /usr/bin/npm
2018-10-27 19:12:30,837: DEBUG - ++ n --version
2018-10-27 19:12:30,837: DEBUG - + test
2018-10-27 19:12:30,837: DEBUG - + ynh_install_n
2018-10-27 19:12:30,838: DEBUG - + echo ‘Installation of N - Node.js version management’
2018-10-27 19:12:30,838: DEBUG - + mkdir -p …/conf
2018-10-27 19:12:30,838: DEBUG - + echo ‘SOURCE_URL=
2018-10-27 19:12:30,838: DEBUG - SOURCE_SUM=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f’
2018-10-27 19:12:30,838: DEBUG - + ynh_setup_source /opt/node_n/git n
2018-10-27 19:12:30,838: DEBUG - + local dest_dir=/opt/node_n/git
2018-10-27 19:12:30,839: DEBUG - + local src_id=n
2018-10-27 19:12:30,839: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/scripts/…/conf/n.src
2018-10-27 19:12:30,839: DEBUG - ++ cut -d= -f2-
2018-10-27 19:12:30,839: DEBUG - + local src_url=
2018-10-27 19:12:30,839: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/scripts/…/conf/n.src
2018-10-27 19:12:30,839: DEBUG - ++ cut -d= -f2-
2018-10-27 19:12:30,840: DEBUG - + local src_sum=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f
2018-10-27 19:12:30,840: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/scripts/…/conf/n.src
2018-10-27 19:12:30,840: DEBUG - ++ cut -d= -f2-
2018-10-27 19:12:30,840: DEBUG - + local src_sumprg=
2018-10-27 19:12:30,840: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/scripts/…/conf/n.src
2018-10-27 19:12:30,840: DEBUG - ++ cut -d= -f2-
2018-10-27 19:12:30,840: DEBUG - + local src_format=
2018-10-27 19:12:30,841: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/scripts/…/conf/n.src
2018-10-27 19:12:30,841: DEBUG - ++ cut -d= -f2-
2018-10-27 19:12:30,841: DEBUG - + local src_extract=
2018-10-27 19:12:30,841: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/scripts/…/conf/n.src
2018-10-27 19:12:30,841: DEBUG - ++ cut -d= -f2-
2018-10-27 19:12:30,841: DEBUG - + local src_in_subdir=
2018-10-27 19:12:30,842: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/scripts/…/conf/n.src
2018-10-27 19:12:30,842: DEBUG - ++ cut -d= -f2-
2018-10-27 19:12:30,842: DEBUG - + local src_filename=
2018-10-27 19:12:30,842: DEBUG - + src_sumprg=sha256sum
2018-10-27 19:12:30,842: DEBUG - + src_in_subdir=true
2018-10-27 19:12:30,842: DEBUG - + src_format=tar.gz
2018-10-27 19:12:30,843: DEBUG - ++ echo tar.gz
2018-10-27 19:12:30,843: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
2018-10-27 19:12:30,843: DEBUG - + src_format=tar.gz
2018-10-27 19:12:30,843: DEBUG - + src_extract=true
2018-10-27 19:12:30,843: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
2018-10-27 19:12:30,843: DEBUG - + src_filename=n.tar.gz
2018-10-27 19:12:30,844: DEBUG - + local local_src=/opt/yunohost-apps-src/peertube/n.tar.gz
2018-10-27 19:12:30,844: DEBUG - + test -e /opt/yunohost-apps-src/peertube/n.tar.gz
2018-10-27 19:12:30,844: DEBUG - + wget -nv -O n.tar.gz https://github.com/tj/n/archive/v2.1.7.tar.gz
2018-10-27 19:12:32,046: DEBUG - + echo ‘2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f n.tar.gz’
2018-10-27 19:12:32,046: WARNING - 2018-10-27 19:12:31 URL/tj/n/tar.gz/v2.1.7 [9592] -> “n.tar.gz” [1]
2018-10-27 19:12:32,047: DEBUG - + sha256sum -c --status
2018-10-27 19:12:32,047: DEBUG - + mkdir -p /opt/node_n/git
2018-10-27 19:12:32,047: DEBUG - + true
2018-10-27 19:12:32,047: DEBUG - + ‘[’ tar.gz = zip ‘]’
2018-10-27 19:12:32,047: DEBUG - + local strip=
2018-10-27 19:12:32,047: DEBUG - + true
2018-10-27 19:12:32,048: DEBUG - + strip=’–strip-components 1’
2018-10-27 19:12:32,048: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2018-10-27 19:12:32,048: DEBUG - + tar -xf n.tar.gz -C /opt/node_n/git --strip-components 1
2018-10-27 19:12:32,048: DEBUG - ++ find /var/cache/yunohost/from_file/scripts/…/sources/patches/ -type f -name ‘n-.patch’
2018-10-27 19:12:32,048: DEBUG - ++ wc -l
2018-10-27 19:12:32,048: DEBUG - + (( 0 > 0 ))
2018-10-27 19:12:32,049: DEBUG - + test -e /var/cache/yunohost/from_file/scripts/…/sources/extra_files/n
2018-10-27 19:12:32,049: DEBUG - + cd /opt/node_n/git
2018-10-27 19:12:32,049: DEBUG - + PREFIX=/opt/node_n
2018-10-27 19:12:32,049: DEBUG - + make install
2018-10-27 19:12:32,049: DEBUG - mkdir -p /opt/node_n/bin/
2018-10-27 19:12:32,050: DEBUG - cp bin/n /opt/node_n/bin/n
2018-10-27 19:12:32,050: DEBUG - + ynh_replace_string '^N_PREFIX=${N_PREFIX-.
}$’ ‘N_PREFIX=${N_PREFIX-/opt/node_n}’ /opt/node_n/bin/n
2018-10-27 19:12:32,050: DEBUG - + local delimit=@
2018-10-27 19:12:32,050: DEBUG - + local ‘match_string=^N_PREFIX=${N_PREFIX-.}$’
2018-10-27 19:12:32,050: DEBUG - + local ‘replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}’
2018-10-27 19:12:32,050: DEBUG - + local workfile=/opt/node_n/bin/n
2018-10-27 19:12:32,051: DEBUG - + match_string=’^N_PREFIX=${N_PREFIX-.
}$’
2018-10-27 19:12:32,051: DEBUG - + replace_string=‘N_PREFIX=${N_PREFIX-/opt/node_n}’
2018-10-27 19:12:32,051: DEBUG - + sudo sed --in-place ‘s@^N_PREFIX=${N_PREFIX-.}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g’ /opt/node_n/bin/n
2018-10-27 19:12:32,051: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-10-27 19:12:32,051: DEBUG - + test -x /usr/bin/node_n
2018-10-27 19:12:32,051: DEBUG - + test -x /usr/bin/npm_n
2018-10-27 19:12:32,052: DEBUG - + n 8
2018-10-27 19:12:32,753: DEBUG -
2018-10-27 19:12:32,753: DEBUG - e[36m installe[0m : e[2mnode-v8.12.0e[22me[0m
2018-10-27 19:12:33,354: DEBUG - e[36m mkdire[0m : e[2m/opt/node_n/n/versions/node/8.12.0e[22me[0m
2018-10-27 19:12:33,355: DEBUG - e[36m fetche[0m : e[2mhttps://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-x86.tar.gze[22me[0m
2018-10-27 19:13:03,516: WARNING
=
2018-10-27 19:13:03,917: DEBUG - e[36m installede[0m : e[2mv8.12.0e[22me[0m
2018-10-27 19:13:03,918: DEBUG -
2018-10-27 19:13:03,918: DEBUG - ++ find /opt/node_n/n/versions/node/8.12.0 -maxdepth 0
2018-10-27 19:13:03,918: DEBUG - ++ sort --version-sort
2018-10-27 19:13:03,918: DEBUG - ++ tail --lines=1
2018-10-27 19:13:03,918: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/8.12.0
2018-10-27 19:13:03,918: DEBUG - ++ basename /opt/node_n/n/versions/node/8.12.0
2018-10-27 19:13:03,919: DEBUG - + real_nodejs_version=8.12.0
2018-10-27 19:13:03,919: DEBUG - + ‘[’ ‘!’ -e /opt/node_n/n/versions/node/8 ‘]’
2018-10-27 19:13:03,919: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/8.12.0 /opt/node_n/n/versions/node/8
2018-10-27 19:13:03,919: DEBUG - + echo peertube:8
2018-10-27 19:13:03,919: DEBUG - + tee --append /opt/node_n/ynh_app_version
2018-10-27 19:13:03,919: DEBUG - peertube:8
2018-10-27 19:13:03,919: DEBUG - + ynh_app_setting_set peertube nodejs_version 8
2018-10-27 19:13:03,920: DEBUG - + sudo yunohost app setting peertube nodejs_version --value=8 --quiet
2018-10-27 19:13:04,320: DEBUG - + ynh_cron_upgrade_node
2018-10-27 19:13:04,321: DEBUG - + cat
2018-10-27 19:13:04,321: DEBUG - + chmod +x /opt/node_n/node_update.sh
2018-10-27 19:13:04,321: DEBUG - + cat
2018-10-27 19:13:04,321: DEBUG - + chmod +x /etc/cron.daily/node_update
2018-10-27 19:13:04,321: DEBUG - + ynh_use_nodejs
2018-10-27 19:13:04,322: DEBUG - ++ ynh_app_setting_get peertube nodejs_version
2018-10-27 19:13:04,322: DEBUG - ++ sudo yunohost app setting peertube nodejs_version --output-as plain --quiet
2018-10-27 19:13:04,622: DEBUG - + nodejs_version=8
2018-10-27 19:13:04,623: DEBUG - + nodejs_use_version=‘echo “Deprecated command, should be removed”’
2018-10-27 19:13:04,623: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/8/bin
2018-10-27 19:13:04,623: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == :/\o\p\t/\n\o\d\e_\n/\n/\v\e\r\s\i\o\n\s/\n\o\d\e/\8/\b\i\n ]]
2018-10-27 19:13:04,623: DEBUG - + PATH=/opt/node_n/n/versions/node/8/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2018-10-27 19:13:04,623: DEBUG - ++ lsb_release --codename --short
2018-10-27 19:13:04,724: DEBUG - + ‘[’ stretch == jessie ‘]’
2018-10-27 19:13:04,724: DEBUG - + curl -sS h
2018-10-27 19:13:04,724: DEBUG - + apt-key add -
2018-10-27 19:13:04,825: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-10-27 19:13:05,726: DEBUG - OK
2018-10-27 19:13:05,726: DEBUG - + echo 'deb ’
2018-10-27 19:13:05,727: DEBUG - + tee /etc/apt/sources.list.d/yarn.list
2018-10-27 19:13:05,727: DEBUG - deb stable main
2018-10-27 19:13:05,727: DEBUG - + ynh_package_update
2018-10-27 19:13:05,727: DEBUG - + ynh_apt update
2018-10-27 19:13:05,727: DEBUG - + DEBIAN_FRONTEND=noninteractive
2018-10-27 19:13:05,727: DEBUG - + sudo apt-get -y update
=
2018-10-27 19:13:08,935: DEBUG - Lecture des listes de paquets…
2018-10-27 19:13:08,935: DEBUG - + ynh_install_app_dependencies postgresql postgresql-contrib openssl g++ ffmpeg redis-server redis-tools mailutils yarn apt-transport-https
2018-10-27 19:13:08,935: DEBUG - + local ‘dependencies=postgresql postgresql-contrib openssl g++ ffmpeg redis-server redis-tools mailutils yarn apt-transport-https’
2018-10-27 19:13:08,935: DEBUG - + local ‘dependencies=postgresql, postgresql-contrib, openssl, g++, ffmpeg, redis-server, redis-tools, mailutils, yarn, apt-transport-https’
2018-10-27 19:13:08,935: DEBUG - + local ‘dependencies=postgresql, postgresql-contrib, openssl, g++, ffmpeg, redis-server, redis-tools, mailutils, yarn, apt-transport-https’
2018-10-27 19:13:08,936: DEBUG - + local manifest_path=…/manifest.json
2018-10-27 19:13:08,936: DEBUG - + ‘[’ ‘!’ -e …/manifest.json ‘]’
2018-10-27 19:13:08,936: DEBUG - ++ cut -d ‘"’ -f 4
2018-10-27 19:13:08,936: DEBUG - ++ grep '“version”: ’ …/manifest.json
2018-10-27 19:13:08,936: DEBUG - + local version=1.0.1
2018-10-27 19:13:08,936: DEBUG - + ‘[’ 5 -eq 0 ‘]’
2018-10-27 19:13:08,937: DEBUG - + local dep_app=peertube
2018-10-27 19:13:08,937: DEBUG - + cat
2018-10-27 19:13:08,937: DEBUG - + ynh_package_install_from_equivs /tmp/peertube-ynh-deps.control
2018-10-27 19:13:08,937: DEBUG - + local controlfile=/tmp/peertube-ynh-deps.control
2018-10-27 19:13:08,937: DEBUG - ++ grep '^Package: ’ /tmp/peertube-ynh-deps.control
2018-10-27 19:13:08,937: DEBUG - ++ cut '-d ’ -f 2
2018-10-27 19:13:08,938: DEBUG - + local pkgname=peertube-ynh-deps
2018-10-27 19:13:08,938: DEBUG - ++ grep '^Version: ’ /tmp/peertube-ynh-deps.control
2018-10-27 19:13:08,938: DEBUG - ++ cut '-d ’ -f 2
2018-10-27 19:13:08,938: DEBUG - + local pkgversion=1.0.1
2018-10-27 19:13:08,938: DEBUG - + [[ -z peertube-ynh-deps ]]
2018-10-27 19:13:08,939: DEBUG - + [[ -z 1.0.1 ]]
2018-10-27 19:13:08,939: DEBUG - + ynh_package_update
2018-10-27 19:13:08,939: DEBUG - + ynh_apt update
2018-10-27 19:13:08,939: DEBUG - + DEBIAN_FRONTEND=noninteractive
2018-10-27 19:13:08,939: DEBUG - + sudo apt-get -y update
=
2018-10-27 19:13:11,981: DEBUG - Lecture des listes de paquets…
2018-10-27 19:13:11,982: DEBUG - ++ mktemp -d
2018-10-27 19:13:11,982: DEBUG - + local TMPDIR=/tmp/tmp.tXYOd6cMwt
2018-10-27 19:13:11,982: DEBUG - + echo 10
2018-10-27 19:13:11,982: DEBUG - + cp /tmp/peertube-ynh-deps.control /tmp/tmp.tXYOd6cMwt/control
2018-10-27 19:13:11,982: DEBUG - + cd /tmp/tmp.tXYOd6cMwt
2018-10-27 19:13:11,982: DEBUG - + equivs-build ./control
2018-10-27 19:13:14,687: DEBUG - + sudo dpkg --force-depends -i ./peertube-ynh-deps_1.0.1_all.deb
2018-10-27 19:13:14,788: DEBUG - Sélection du paquet peertube-ynh-deps précédemment désélectionné.
2018-10-27 19:13:14,888: DEBUG - (Lecture de la base de données… 68723 fichiers et répertoires déjà installés.)
2018-10-27 19:13:14,889: DEBUG - Préparation du dépaquetage de …/peertube-ynh-deps_1.0.1_all.deb …
2018-10-27 19:13:14,889: DEBUG - Dépaquetage de peertube-ynh-deps (1.0.1) …
2018-10-27 19:13:15,190: DEBUG - Paramétrage de peertube-ynh-deps (1.0.1) …
2018-10-27 19:13:15,591: DEBUG - + ynh_package_install -f
2018-10-27 19:13:15,591: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
2018-10-27 19:13:15,591: DEBUG - + DEBIAN_FRONTEND=noninteractive
2018-10-27 19:13:15,591: DEBUG - + sudo apt-get -y --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
2018-10-27 19:13:15,992: DEBUG - Lecture des listes de paquets…
2018-10-27 19:13:16,193: DEBUG - Construction de l’arbre des dépendances…
2018-10-27 19:13:16,193: DEBUG - Lecture des informations d’état…
2018-10-27 19:13:16,494: DEBUG - 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
2018-10-27 19:13:16,494: DEBUG - + [[ -n /tmp/tmp.tXYOd6cMwt ]]
2018-10-27 19:13:16,494: DEBUG - + rm -rf /tmp/tmp.tXYOd6cMwt
2018-10-27 19:13:16,495: DEBUG - + ynh_package_is_installed peertube-ynh-deps
2018-10-27 19:13:16,495: DEBUG - + dpkg-query -W -f ‘${Status}’ peertube-ynh-deps
2018-10-27 19:13:16,495: DEBUG - + grep -c ‘ok installed’
2018-10-27 19:13:16,495: DEBUG - + rm /tmp/peertube-ynh-deps.control
2018-10-27 19:13:16,495: DEBUG - + ynh_app_setting_set peertube apt_dependencies postgresql, postgresql-contrib, openssl, g++, ffmpeg, redis-server, redis-tools, mailutils, yarn, apt-transport-https
2018-10-27 19:13:16,495: DEBUG - + sudo yunohost app setting peertube apt_dependencies --value=postgresql, --quiet
2018-10-27 19:13:16,896: DEBUG - + db_name=peertube_peertube
2018-10-27 19:13:16,897: DEBUG - ++ ynh_string_random 30
2018-10-27 19:13:16,897: DEBUG - ++ dd if=/dev/urandom bs=1 count=200
2018-10-27 19:13:16,897: DEBUG - ++ tr -c -d A-Za-z0-9
2018-10-27 19:13:16,897: DEBUG - ++ sed -n 's/(.{30}).
/\1/p’
2018-10-27 19:13:16,897: DEBUG - + db_pwd=o1rVvG4TRdAvOafJHf6lmK0Af59JGM
2018-10-27 19:13:16,897: DEBUG - + ynh_app_setting_set peertube psql_db peertube_peertube
2018-10-27 19:13:16,897: DEBUG - + sudo yunohost app setting peertube psql_db --value=peertube_peertube --quiet
2018-10-27 19:13:17,298: DEBUG - + ynh_app_setting_set peertube psqlpwd o1rVvG4TRdAvOafJHf6lmK0Af59JGM
2018-10-27 19:13:17,299: DEBUG - + sudo yunohost app setting peertube psqlpwd --value=o1rVvG4TRdAvOafJHf6lmK0Af59JGM --quiet
2018-10-27 19:13:17,599: DEBUG - + ynh_psql_test_if_first_run
2018-10-27 19:13:17,600: DEBUG - + ‘[’ -f /etc/yunohost/psql ‘]’
2018-10-27 19:13:17,600: DEBUG - + echo ‘PostgreSQL is already installed, no need to create master password’
2018-10-27 19:13:17,600: DEBUG - PostgreSQL is already installed, no need to create master password
2018-10-27 19:13:17,600: DEBUG - + ynh_psql_create_user peertube o1rVvG4TRdAvOafJHf6lmK0Af59JGM
2018-10-27 19:13:17,600: DEBUG - + user=peertube
2018-10-27 19:13:17,600: DEBUG - + pwd=o1rVvG4TRdAvOafJHf6lmK0Af59JGM
2018-10-27 19:13:17,601: DEBUG - + sudo --login --user=postgres psql ‘-cCREATE USER peertube WITH PASSWORD ‘’‘o1rVvG4TRdAvOafJHf6lmK0Af59JGM’’’’ postgres
2018-10-27 19:13:17,701: DEBUG - CREATE ROLE
2018-10-27 19:13:17,701: DEBUG - + ynh_psql_execute_as_root ‘CREATE DATABASE peertube_peertube ENCODING ‘’‘UTF8’’’ LC_COLLATE=’’‘C’’’ LC_CTYPE=’’‘C’’’ template=template0 OWNER peertube;’
2018-10-27 19:13:17,701: DEBUG - + sql=‘CREATE DATABASE peertube_peertube ENCODING ‘’‘UTF8’’’ LC_COLLATE=’’‘C’’’ LC_CTYPE=’’‘C’’’ template=template0 OWNER peertube;’
2018-10-27 19:13:17,702: DEBUG - + sudo --login --user=postgres psql
2018-10-27 19:13:19,605: DEBUG - CREATE DATABASE
2018-10-27 19:13:19,706: DEBUG - + ynh_psql_execute_as_root ‘\connect peertube_peertube
2018-10-27 19:13:19,706: DEBUG - CREATE EXTENSION IF NOT EXISTS unaccent;CREATE EXTENSION IF NOT EXISTS pg_trgm;’
2018-10-27 19:13:19,706: DEBUG - + sql=’\connect peertube_peertube
2018-10-27 19:13:19,706: DEBUG - CREATE EXTENSION IF NOT EXISTS unaccent;CREATE EXTENSION IF NOT EXISTS pg_trgm;’
2018-10-27 19:13:19,707: DEBUG - + sudo --login --user=postgres psql
2018-10-27 19:13:19,707: DEBUG - Vous êtes maintenant connecté à la base de données « peertube_peertube » en tant qu’utilisateur « postgres ».
2018-10-27 19:13:19,807: DEBUG - CREATE EXTENSION
2018-10-27 19:13:19,807: DEBUG - CREATE EXTENSION
2018-10-27 19:13:19,807: DEBUG - + ynh_system_user_create peertube
2018-10-27 19:13:19,808: DEBUG - + ynh_system_user_exists peertube
2018-10-27 19:13:19,808: DEBUG - + getent passwd peertube
2018-10-27 19:13:19,808: DEBUG - + ‘[’ 1 -ge 2 ‘]’
2018-10-27 19:13:19,808: DEBUG - + local user_home_dir=–no-create-home
2018-10-27 19:13:19,808: DEBUG - + sudo useradd --no-create-home --system --user-group peertube --shell /usr/sbin/nologin
2018-10-27 19:13:21,611: DEBUG - + ynh_app_setting_set peertube final_path /var/www/peertube
2018-10-27 19:13:21,612: DEBUG - + sudo yunohost app setting peertube final_path --value=/var/www/peertube --quiet
2018-10-27 19:13:22,013: DEBUG - + ynh_setup_source /var/www/peertube
2018-10-27 19:13:22,013: DEBUG - + local dest_dir=/var/www/peertube
2018-10-27 19:13:22,013: DEBUG - + local src_id=app
2018-10-27 19:13:22,013: DEBUG - ++ cut -d= -f2-
2018-10-27 19:13:22,014: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/scripts/…/conf/app.src
2018-10-27 19:13:22,014: DEBUG - + local src_url=
2018-10-27 19:13:22,014: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/scripts/…/conf/app.src
2018-10-27 19:13:22,014: DEBUG - ++ cut -d= -f2-
2018-10-27 19:13:22,014: DEBUG - + local src_sum=9db6d9347160444b5fde81a843d7f2972352e3cdf3c0baf7d85dc775c164a688
2018-10-27 19:13:22,014: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/scripts/…/conf/app.src
2018-10-27 19:13:22,014: DEBUG - ++ cut -d= -f2-
2018-10-27 19:13:22,015: DEBUG - + local src_sumprg=sha256sum
2018-10-27 19:13:22,015: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/scripts/…/conf/app.src
2018-10-27 19:13:22,015: DEBUG - ++ cut -d= -f2-
2018-10-27 19:13:22,015: DEBUG - + local src_format=tar.xz
2018-10-27 19:13:22,015: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/scripts/…/conf/app.src
2018-10-27 19:13:22,015: DEBUG - ++ cut -d= -f2-
2018-10-27 19:13:22,016: DEBUG - + local src_extract=
2018-10-27 19:13:22,016: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/scripts/…/conf/app.src
2018-10-27 19:13:22,016: DEBUG - ++ cut -d= -f2-
2018-10-27 19:13:22,016: DEBUG - + local src_in_subdir=true
2018-10-27 19:13:22,016: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/scripts/…/conf/app.src
2018-10-27 19:13:22,016: DEBUG - ++ cut -d= -f2-
2018-10-27 19:13:22,017: DEBUG - + local src_filename=
2018-10-27 19:13:22,017: DEBUG - + src_sumprg=sha256sum
2018-10-27 19:13:22,017: DEBUG - + src_in_subdir=true
2018-10-27 19:13:22,017: DEBUG - + src_format=tar.xz
2018-10-27 19:13:22,017: DEBUG - ++ echo tar.xz
2018-10-27 19:13:22,017: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
2018-10-27 19:13:22,018: DEBUG - + src_format=tar.xz
2018-10-27 19:13:22,018: DEBUG - + src_extract=true
2018-10-27 19:13:22,018: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
2018-10-27 19:13:22,018: DEBUG - + src_filename=app.tar.xz
2018-10-27 19:13:22,018: DEBUG - + local local_src=/opt/yunohost-apps-src/peertube/app.tar.xz
2018-10-27 19:13:22,018: DEBUG - + test -e /opt/yunohost-apps-src/peertube/app.tar.xz
2018-10-27 19:13:22,019: DEBUG - + wget -nv -O app.tar.xz
2018-10-27 19:13:27,330: DEBUG - + echo ‘9db6d9347160444b5fde81a843d7f2972352e3cdf3c0baf7d85dc775c164a688 app.tar.xz’
2018-10-27 19:13:27,330: WARNING - 2018-10-27 19:13:27 URL:release-asset-2e65be.s3.amazonaws.com/45213667/94d6c300-d3a4-11e8-9452-b90538947737?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20181027%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20181027T171322Z&X-Amz-Expires=300&X-Amz-Signature=571bed8d506ede106e78c2412d3d25bf706c9b6efe0ca7bb9b5a97436f9f237d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dpeertube-v1.0.1.tar.xz&response-content-type=application%2Foctet-stream [2179992/2179992] -> “app.tar.xz” [1]
2018-10-27 19:13:27,331: DEBUG - + sha256sum -c --status
2018-10-27 19:13:27,431: DEBUG - + mkdir -p /var/www/peertube
2018-10-27 19:13:27,431: DEBUG - + true
2018-10-27 19:13:27,431: DEBUG - + ‘[’ tar.xz = zip ‘]’
2018-10-27 19:13:27,432: DEBUG - + local strip=
2018-10-27 19:13:27,432: DEBUG - + true
2018-10-27 19:13:27,432: DEBUG - + strip=’–strip-components 1’
2018-10-27 19:13:27,432: DEBUG - + [[ tar.xz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2018-10-27 19:13:27,432: DEBUG - + tar -xf app.tar.xz -C /var/www/peertube --strip-components 1
2018-10-27 19:13:28,134: DEBUG - ++ find /var/cache/yunohost/from_file/scripts/…/sources/patches/ -type f -name ‘app-*.patch’
2018-10-27 19:13:28,134: DEBUG - ++ wc -l
2018-10-27 19:13:28,134: DEBUG - + (( 0 > 0 ))
2018-10-27 19:13:28,134: DEBUG - + test -e /var/cache/yunohost/from_file/scripts/…/sources/extra_files/app
2018-10-27 19:13:28,135: DEBUG - + cp …/conf/production.yaml /var/www/peertube/config/production.yaml
2018-10-27 19:13:28,135: DEBUG - + touch /var/www/peertube/config/local-production.json
2018-10-27 19:13:28,135: DEBUG - + cd /var/www/peertube
2018-10-27 19:13:28,135: DEBUG - + yarn install --production --pure-lockfile
2018-10-27 19:13:28,336: DEBUG - + ynh_exit_properly
2018-10-27 19:13:28,336: WARNING - Usage: yarn [options]
2018-10-27 19:13:28,336: DEBUG - + local exit_code=2
2018-10-27 19:13:28,336: WARNING -
2018-10-27 19:13:28,337: DEBUG - + ‘[’ 2 -eq 0 ‘]’
2018-10-27 19:13:28,337: WARNING - yarn: error: no such option: --production
2018-10-27 19:13:28,337: DEBUG - + trap ‘’ EXIT
2018-10-27 19:13:28,337: WARNING - !!
2018-10-27 19:13:28,337: DEBUG - + set +eu
2018-10-27 19:13:28,337: WARNING - peertube’s script has encountered an error. Its execution was cancelled.
2018-10-27 19:13:28,338: DEBUG - + echo -e ‘!!\n peertube’’‘s script has encountered an error. Its execution was cancelled.\n!!’
2018-10-27 19:13:28,338: WARNING - !!
2018-10-27 19:13:28,338: DEBUG - + type -t ynh_clean_setup
2018-10-27 19:13:28,338: WARNING -
2018-10-27 19:13:28,338: DEBUG - + ynh_die
2018-10-27 19:13:28,338: DEBUG - + echo ‘’
2018-10-27 19:13:28,339: DEBUG - + exit 1

L’erreur à l’air de venir de yarn mais je ne sais pas ce que c’est et comment l’utiliser.
Si vous pouvez m’aider je serais très reconnaissant.
Merci d’avance

PS j’ai enlevé le debut du log pour le nombre de caractères maxi


#2

Hello @bouli

C’est un paquet communautaire - je te suggère donc d’aller demander de l’aide sur https://github.com/YunoHost-Apps/peertube_ynh/ - d’ailleurs ils semblent avoir déjà un ticket traitant le sujet: https://github.com/YunoHost-Apps/peertube_ynh/issues/40

Il semble que ta version de yarn ne supporte pas l’option --production en tous cas. Peut-être est-ce dû à une version trop ancienne de yarn ?


#3

il y a aussi le forum de yunohost qui peut pas mal t’aider et leur irc


#4

Super merci, je vais regarder ça et je posterai la réponse ici


#5

ayant chercher sur le forum yunohost et le github, beaucoup de gens ont des problèmes similaires aux miens, j’essaie toutes les solutions possibles et aucune ne fonctionne. Si qqn peut m’aider ça serait top.


#6

J’ai l’impression que tu essayes d’installer PeerTube avec l’option production sur ton serveur YunoHost.
Peux tu nous expliquer ton contexte ?
Ton serveur YunoHost a t’il une adresse DNS publique (du type Http://www.domaine.fr) pour qu’il soit accessible aux internautes clients de ton futur serveur PeerTube ?


#7

excusez moi j’ai fini par regler le probleme sur github voila le lien https://github.com/YunoHost-Apps/peertube_ynh/issues/56