Impossible de ré-installer PeerTube

Bonjour

Mon serveur YunoHost

**Matériel: Raspberry Pi à la maison
**Version de YunoHost: 4.3.6.3
**J’ai accès à mon serveur : En SSH

Je n’arrivais pas à mettre à jour PeerTube (ni Yourls d’ailleurs), après plusieurs essais, bien que PeerTube marchait, j’ai décidé de le supprimer, après avoir supprimer mes vidéos, et sans réussir à supprimer mon compte “root” PeerTube, pour le ré-installer avec une version à jour. Or, malgré plusieurs essais également, je n’arrive pas à le ré-installer, voici le log (en 2 parties car trop long):
args:
app: peertube
force: false
label: PeerTube
no_remove_on_failure: false
ended_at: 2022-07-09 22:35:44.522761
env:
YNH_APP_ARG_ADMIN: kryztovru
YNH_APP_ARG_DOMAIN: peertube.maindomain.tld
YNH_APP_ARG_IS_PUBLIC: ‘1’
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh
YNH_APP_ID: peertube
YNH_APP_INSTANCE_NAME: peertube
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_APP_MANIFEST_VERSION: 4.2.2~ynh1
YNH_ARCH: armhf
error: Une erreur est survenue dans le script d’installation de l’application
interface: api
operation: app_install
parent: null
related_to:

    • app
    • peertube
      started_at: 2022-07-09 22:18:08.621538
      success: false
      yunohost_version: 4.3.6.3
      2022-07-10 00:18:08,643: INFO - Installation de peertube…
      2022-07-10 00:18:08,999: DEBUG - Nothing to update in LDAP
      2022-07-10 00:18:09,000: DEBUG - Permission ‘peertube.main’ mise à jour
      2022-07-10 00:18:09,286: DEBUG - Journal complet de cette opération : ’ Mise à jour de l’URL associée à l’autorisation ‘peertube’
      2022-07-10 00:18:09,904: DEBUG - The permission database has been resynchronized
      2022-07-10 00:18:10,280: DEBUG - La configuration de SSOwat a été regénérée
      2022-07-10 00:18:10,602: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./50-opensondage” peertube kryztovru main all_users 7>&1’]’
      2022-07-10 00:18:10,625: DEBUG - + source /usr/share/yunohost/helpers
      2022-07-10 00:18:10,627: DEBUG - +++ set +o
      2022-07-10 00:18:10,628: DEBUG - +++ grep xtrace
      2022-07-10 00:18:10,632: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
      2022-07-10 00:18:10,633: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
      2022-07-10 00:18:10,713: DEBUG - + app=peertube
      2022-07-10 00:18:10,713: DEBUG - + added_users=kryztovru
      2022-07-10 00:18:10,714: DEBUG - + permission=main
      2022-07-10 00:18:10,714: DEBUG - + added_groups=all_users
      2022-07-10 00:18:10,714: DEBUG - + ‘[’ peertube == opensondage ‘]’
      2022-07-10 00:18:11,719: DEBUG - Permission ‘peertube.main’ créée
      2022-07-10 00:18:11,721: DEBUG - Journal complet de cette opération : ’ Créer permission ‘peertube’
      2022-07-10 00:18:11,813: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./install” 7>&1’]’
      2022-07-10 00:18:11,853: DEBUG - + source _common.sh
      2022-07-10 00:18:11,854: DEBUG - ++ pkg_dependencies=‘ffmpeg postgresql postgresql-contrib openssl g++ mailutils apt-transport-https’
      2022-07-10 00:18:11,854: DEBUG - ++ ynh_app_dependencies=prosody
      2022-07-10 00:18:11,855: DEBUG - ++ nodejs_version=16
      2022-07-10 00:18:11,855: DEBUG - + source ynh_redis
      2022-07-10 00:18:11,855: DEBUG - + source ynh_send_readme_to_admin__2
      2022-07-10 00:18:11,856: DEBUG - + source ynh_apps
      2022-07-10 00:18:11,856: DEBUG - + source /usr/share/yunohost/helpers
      2022-07-10 00:18:11,858: DEBUG - +++ set +o
      2022-07-10 00:18:11,860: DEBUG - +++ grep xtrace
      2022-07-10 00:18:11,863: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
      2022-07-10 00:18:11,864: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
      2022-07-10 00:18:11,940: DEBUG - + ynh_abort_if_errors
      2022-07-10 00:18:11,942: DEBUG - + trap ynh_exit_properly EXIT
      2022-07-10 00:18:11,942: DEBUG - + domain=peertube.maindomain.tld
      2022-07-10 00:18:11,943: DEBUG - + path_url=/
      2022-07-10 00:18:11,943: DEBUG - + is_public=1
      2022-07-10 00:18:11,944: DEBUG - + admin=kryztovru
      2022-07-10 00:18:11,944: DEBUG - ++ ynh_user_get_info --username=kryztovru --key=mail
      2022-07-10 00:18:12,030: DEBUG - ++ yunohost user info kryztovru --output-as json --quiet
      2022-07-10 00:18:12,030: DEBUG - ++ jq -r .mail
      2022-07-10 00:18:13,118: DEBUG - + admin_mail=kryztovru@maindomain.tld
      2022-07-10 00:18:13,120: DEBUG - ++ ynh_string_random --length=24
      2022-07-10 00:18:13,148: DEBUG - ++ length=24
      2022-07-10 00:18:13,149: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
      2022-07-10 00:18:13,150: DEBUG - ++ tr --complement --delete A-Za-z0-9
      2022-07-10 00:18:13,151: DEBUG - ++ sed --quiet ‘s/(.{24})./\1/p’
      2022-07-10 00:18:13,166: DEBUG - + admin_pass=
      *********
      2022-07-10 00:18:13,166: DEBUG - + app=peertube
      2022-07-10 00:18:13,167: DEBUG - + datadir=/home/yunohost.app/peertube/storage
      2022-07-10 00:18:13,332: DEBUG - + final_path=/var/www/peertube
      2022-07-10 00:18:13,332: DEBUG - + test ‘!’ -e /var/www/peertube
      2022-07-10 00:18:13,333: DEBUG - + ynh_webpath_register --app=peertube --domain=peertube.maindomain.tld --path_url=/
      2022-07-10 00:18:13,334: INFO - […] > Validating installation parameters…
      2022-07-10 00:18:13,522: DEBUG - + yunohost app register-url peertube peertube.maindomain.tld /
      2022-07-10 00:18:17,435: DEBUG - + ynh_app_setting_set --app=peertube --key=domain --value=peertube.maindomain.tld
      2022-07-10 00:18:17,435: DEBUG - + local globalapp=peertube
      2022-07-10 00:18:17,438: INFO - [+…] > Storing installation settings…
      2022-07-10 00:18:17,636: DEBUG - + app=peertube
      2022-07-10 00:18:17,637: DEBUG - + [[ domain =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:18:17,637: DEBUG - + ynh_app_setting set peertube domain peertube.maindomain.tld
      2022-07-10 00:18:17,766: DEBUG - + ynh_app_setting_set --app=peertube --key=admin --value=kryztovru
      2022-07-10 00:18:17,767: DEBUG - + local globalapp=peertube
      2022-07-10 00:18:17,970: DEBUG - + app=peertube
      2022-07-10 00:18:17,971: DEBUG - + [[ admin =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:18:17,971: DEBUG - + ynh_app_setting set peertube admin kryztovru
      2022-07-10 00:18:18,242: INFO - [#+…] > Finding an available port…
      2022-07-10 00:18:18,244: DEBUG - ++ ynh_find_port --port=8095
      2022-07-10 00:18:18,290: DEBUG - ++ test -n 8095
      2022-07-10 00:18:18,291: DEBUG - ++ ynh_port_available --port=8095
      2022-07-10 00:18:18,336: DEBUG - ++ ss --numeric --listening --tcp --udp
      2022-07-10 00:18:18,337: DEBUG - ++ awk ‘{print$5}’
      2022-07-10 00:18:18,338: DEBUG - ++ grep --quiet --extended-regexp ‘:8095$’
      2022-07-10 00:18:18,364: DEBUG - ++ grep -q ‘port: ‘’‘8095’’’’ /etc/yunohost/apps/alltube/settings.yml /etc/yunohost/apps/cryptpad/settings.yml /etc/yunohost/apps/funkwhale/settings.yml /etc/yunohost/apps/lufi/settings.yml /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/opensondage/settings.yml /etc/yunohost/apps/peertube/settings.yml /etc/yunohost/apps/qr/settings.yml /etc/yunohost/apps/roundcube/settings.yml /etc/yunohost/apps/spip/settings.yml
      2022-07-10 00:18:18,371: DEBUG - ++ return 0
      2022-07-10 00:18:18,372: DEBUG - ++ echo 8095
      2022-07-10 00:18:18,372: DEBUG - + port=8095
      2022-07-10 00:18:18,373: DEBUG - + ynh_app_setting_set --app=peertube --key=port --value=8095
      2022-07-10 00:18:18,374: DEBUG - + local globalapp=peertube
      2022-07-10 00:18:18,670: DEBUG - + app=peertube
      2022-07-10 00:18:18,677: DEBUG - + [[ port =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:18:18,678: DEBUG - + ynh_app_setting set peertube port 8095
      2022-07-10 00:18:18,843: DEBUG - + rtmp_port=1935
      2022-07-10 00:18:18,844: DEBUG - + ynh_port_available --port=1935
      2022-07-10 00:18:18,873: DEBUG - + ss --numeric --listening --tcp --udp
      2022-07-10 00:18:18,874: DEBUG - + awk ‘{print$5}’
      2022-07-10 00:18:18,875: DEBUG - + grep --quiet --extended-regexp ‘:1935$’
      2022-07-10 00:18:18,889: DEBUG - + grep -q ‘port: ‘’‘1935’’’’ /etc/yunohost/apps/alltube/settings.yml /etc/yunohost/apps/cryptpad/settings.yml /etc/yunohost/apps/funkwhale/settings.yml /etc/yunohost/apps/lufi/settings.yml /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/opensondage/settings.yml /etc/yunohost/apps/peertube/settings.yml /etc/yunohost/apps/qr/settings.yml /etc/yunohost/apps/roundcube/settings.yml /etc/yunohost/apps/spip/settings.yml
      2022-07-10 00:18:18,894: DEBUG - + return 0
      2022-07-10 00:18:18,894: DEBUG - + ynh_app_setting_set --app=peertube --key=rtmp_port --value=1935
      2022-07-10 00:18:18,895: DEBUG - + local globalapp=peertube
      2022-07-10 00:18:19,084: DEBUG - + app=peertube
      2022-07-10 00:18:19,085: DEBUG - + [[ rtmp_port =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:18:19,085: DEBUG - + ynh_app_setting set peertube rtmp_port 1935
      2022-07-10 00:18:19,346: DEBUG - + ynh_exec_warn_less yunohost firewall allow TCP 1935
      2022-07-10 00:18:19,346: DEBUG - + [[ 5 -eq 1 ]]
      2022-07-10 00:18:19,347: DEBUG - + yunohost firewall allow TCP 1935
      2022-07-10 00:18:19,347: INFO - [##+…] > Configuring firewall…
      2022-07-10 00:18:20,784: DEBUG - Firewall reloaded
      2022-07-10 00:18:20,796: DEBUG - opened_ports:
      2022-07-10 00:18:20,796: DEBUG - - 22
      2022-07-10 00:18:20,797: DEBUG - - 25
      2022-07-10 00:18:20,797: DEBUG - - 53
      2022-07-10 00:18:20,797: DEBUG - - 80
      2022-07-10 00:18:20,798: DEBUG - - 443
      2022-07-10 00:18:20,798: DEBUG - - 587
      2022-07-10 00:18:20,799: DEBUG - - 993
      2022-07-10 00:18:20,799: DEBUG - - 1935
      2022-07-10 00:18:20,799: DEBUG - - 5222
      2022-07-10 00:18:20,800: DEBUG - - 5269
      2022-07-10 00:18:20,800: DEBUG - - 5353
      2022-07-10 00:18:21,009: DEBUG - + ynh_install_apps --apps=prosody
      2022-07-10 00:18:21,011: INFO - [###+…] > Installing dependencies…
      2022-07-10 00:18:21,039: DEBUG - + apps_list=($(echo $apps | tr " " “\n”))
      2022-07-10 00:18:21,041: DEBUG - ++ echo prosody
      2022-07-10 00:18:21,042: DEBUG - ++ tr ’ ’ ‘\n’
      2022-07-10 00:18:21,048: DEBUG - + local apps_dependencies=
      2022-07-10 00:18:21,049: DEBUG - + for one_app_and_its_args in “${apps_list[@]}”
      2022-07-10 00:18:21,050: DEBUG - ++ cut -d ‘?’ -f1
      2022-07-10 00:18:21,056: DEBUG - + local one_app=prosody
      2022-07-10 00:18:21,056: DEBUG - + ‘[’ -z prosody ‘]’
      2022-07-10 00:18:21,057: DEBUG - + yunohost tools update apps
      2022-07-10 00:18:21,515: DEBUG - Updating application catalog…
      2022-07-10 00:18:22,484: DEBUG - The application catalog has been updated!
      2022-07-10 00:18:23,380: DEBUG - Nothing to do. Everything is already up-to-date.
      2022-07-10 00:18:23,381: DEBUG - apps:
      2022-07-10 00:18:23,381: DEBUG - system:
      2022-07-10 00:18:23,499: DEBUG - + yunohost app list --output-as json --quiet
      2022-07-10 00:18:23,500: DEBUG - + jq -e --arg id prosody ‘.apps[] | select(.id == $id)’
      2022-07-10 00:18:24,569: DEBUG - ++ cut -d ‘?’ -f2-
      2022-07-10 00:18:24,575: DEBUG - + local one_argument=prosody
      2022-07-10 00:18:24,576: DEBUG - + ‘[’ ‘!’ -z prosody ‘]’
      2022-07-10 00:18:24,576: DEBUG - + one_argument=’–args prosody’
      2022-07-10 00:18:24,577: DEBUG - + yunohost app install prosody --args prosody
      2022-07-10 00:18:29,764: DEBUG - Installing prosody…
      2022-07-10 00:18:33,413: DEBUG - [+…] > Disabling Metronome…
      2022-07-10 00:18:34,723: WARNING - insserv: warning: current start runlevel(s) (empty) of script metronome' overrides LSB defaults (2 3 4 5). 2022-07-10 00:18:34,725: WARNING - insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script metronome’ overrides LSB defaults (0 1 6).
      2022-07-10 00:18:36,114: DEBUG - [#+…] > Storing installation settings…
      2022-07-10 00:18:36,254: DEBUG - [##++…] > Finding an available port…
      2022-07-10 00:18:38,698: DEBUG - [####+…] > Installing dependencies…
      2022-07-10 00:19:07,726: DEBUG - [#####++…] > Configuring system user…
      2022-07-10 00:19:08,212: DEBUG - [#######+…] > Setting up source files…
      2022-07-10 00:19:09,095: DEBUG - [########++…] > Building Prosody…
      2022-07-10 00:19:11,780: WARNING - Generating a RSA private key
      2022-07-10 00:19:12,958: WARNING - …+++++
      2022-07-10 00:19:13,791: WARNING - …+++++
      2022-07-10 00:19:13,793: WARNING - writing new private key to ‘localhost.key’
      2022-07-10 00:19:13,794: WARNING - -----
      2022-07-10 00:19:13,827: WARNING - Generating a RSA private key
      2022-07-10 00:19:13,912: WARNING - …+++++
      2022-07-10 00:19:13,992: WARNING - …+++++
      2022-07-10 00:19:13,993: WARNING - writing new private key to ‘example.com.key’
      2022-07-10 00:19:13,995: WARNING - -----
      2022-07-10 00:19:14,489: DEBUG - [##########+…] > Creating a data directory…
      2022-07-10 00:19:15,022: DEBUG - [###########+…] > Adding a configuration file…
      2022-07-10 00:19:19,783: DEBUG - [############++…] > Configuring a systemd service…
      2022-07-10 00:19:23,274: DEBUG - [##############+…] > Configuring log rotation…
      2022-07-10 00:19:23,450: DEBUG - [###############++…] > Integrating service in YunoHost…
      2022-07-10 00:19:24,231: DEBUG - [#################+…] > Starting a systemd service…
      2022-07-10 00:19:25,005: DEBUG - [##################++] > Installation of prosody completed
      2022-07-10 00:19:28,598: DEBUG - Installation completed
      2022-07-10 00:19:28,718: DEBUG - + ‘[’ ‘!’ -z ‘’ ‘]’
      2022-07-10 00:19:28,719: DEBUG - + apps_dependencies=prosody
      2022-07-10 00:19:28,719: DEBUG - + ynh_app_setting_set --app=peertube --key=apps_dependencies --value=prosody
      2022-07-10 00:19:28,719: DEBUG - + local globalapp=peertube
      2022-07-10 00:19:28,917: DEBUG - + app=peertube
      2022-07-10 00:19:28,927: DEBUG - + [[ apps_dependencies =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:19:28,927: DEBUG - + ynh_app_setting set peertube apps_dependencies prosody
      2022-07-10 00:19:29,056: DEBUG - + ynh_install_app_dependencies ffmpeg postgresql postgresql-contrib openssl g++ mailutils apt-transport-https
      2022-07-10 00:19:29,057: DEBUG - + local ‘dependencies=ffmpeg postgresql postgresql-contrib openssl g++ mailutils apt-transport-https’
      2022-07-10 00:19:29,061: DEBUG - ++ echo ‘ffmpeg postgresql postgresql-contrib openssl g++ mailutils apt-transport-https’
      2022-07-10 00:19:29,063: DEBUG - ++ sed ‘s/([^<=>])\ ([^(])/\1, \2/g’
      2022-07-10 00:19:29,074: DEBUG - + dependencies=‘ffmpeg, postgresql, postgresql-contrib, openssl, g++, mailutils, apt-transport-https’
      2022-07-10 00:19:29,075: DEBUG - + local ‘dependencies=ffmpeg, postgresql, postgresql-contrib, openssl, g++, mailutils, apt-transport-https’
      2022-07-10 00:19:29,076: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
      2022-07-10 00:19:29,080: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
      2022-07-10 00:19:29,094: DEBUG - + local version=4.2.2~ynh1
      2022-07-10 00:19:29,095: DEBUG - + ‘[’ -z 4.2.2~ynh1 ‘]’
      2022-07-10 00:19:29,096: DEBUG - + ‘[’ 4.2.2~ynh1 == null ‘]’
      2022-07-10 00:19:29,097: DEBUG - + local dep_app=peertube
      2022-07-10 00:19:29,097: DEBUG - + [[ ffmpeg, postgresql, postgresql-contrib, openssl, g++, mailutils, apt-transport-https =~ [<=>] ]]
      2022-07-10 00:19:29,103: DEBUG - ++ echo ffmpeg, postgresql, postgresql-contrib, openssl, g++, mailutils, apt-transport-https
      2022-07-10 00:19:29,104: DEBUG - ++ grep -oP ‘(?<=php)[0-9.]+(?=-|>)’
      2022-07-10 00:19:29,105: DEBUG - ++ sort -u
      2022-07-10 00:19:29,113: DEBUG - + local specific_php_version=
      2022-07-10 00:19:29,114: DEBUG - + [[ ‘’ != \7.\3 ]]
      2022-07-10 00:19:29,117: DEBUG - + [[ true == \t\r\u\e ]]
      2022-07-10 00:19:29,117: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
      2022-07-10 00:19:29,118: DEBUG - + grep --quiet php
      2022-07-10 00:19:29,124: DEBUG - + cat
      2022-07-10 00:19:29,131: DEBUG - + ynh_package_install_from_equivs /tmp/peertube-ynh-deps.control
      2022-07-10 00:19:29,132: DEBUG - + local controlfile=/tmp/peertube-ynh-deps.control
      2022-07-10 00:19:29,136: DEBUG - ++ grep '^Package: ’ /tmp/peertube-ynh-deps.control
      2022-07-10 00:19:29,138: DEBUG - ++ cut '–delimiter= ’ --fields=2
      2022-07-10 00:19:29,145: DEBUG - + local pkgname=peertube-ynh-deps
      2022-07-10 00:19:29,150: DEBUG - ++ grep '^Version: ’ /tmp/peertube-ynh-deps.control
      2022-07-10 00:19:29,150: DEBUG - ++ cut '–delimiter= ’ --fields=2
      2022-07-10 00:19:29,155: DEBUG - + local pkgversion=4.2.2~ynh1
      2022-07-10 00:19:29,156: DEBUG - + [[ -z peertube-ynh-deps ]]
      2022-07-10 00:19:29,156: DEBUG - + [[ -z 4.2.2~ynh1 ]]
      2022-07-10 00:19:29,157: DEBUG - + ynh_package_update
      2022-07-10 00:19:29,157: DEBUG - + ynh_apt update
      2022-07-10 00:19:29,157: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:19:29,697: DEBUG - + return 0
      2022-07-10 00:19:29,697: DEBUG - + LC_ALL=C
      2022-07-10 00:19:29,698: DEBUG - + DEBIAN_FRONTEND=noninteractive
      2022-07-10 00:19:29,698: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
      2022-07-10 00:19:29,957: DEBUG - Hit:1 Index of /raspbian buster InRelease
      2022-07-10 00:19:29,958: DEBUG - Hit:2 Index of /debian buster InRelease
      2022-07-10 00:19:29,958: DEBUG - Hit:3 Index of /debian/ buster InRelease
      2022-07-10 00:19:30,043: DEBUG - Hit:4 Index of /php/ buster InRelease
      2022-07-10 00:19:34,321: DEBUG - Reading package lists…
      2022-07-10 00:19:34,374: DEBUG - ++ mktemp --directory
      2022-07-10 00:19:34,521: DEBUG - + local TMPDIR=/tmp/tmp.lGhE38g2q2
      2022-07-10 00:19:34,522: DEBUG - + echo 10
      2022-07-10 00:19:34,522: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:19:35,052: DEBUG - + return 0
      2022-07-10 00:19:35,053: DEBUG - + cp /tmp/peertube-ynh-deps.control /tmp/tmp.lGhE38g2q2/control
      2022-07-10 00:19:35,059: DEBUG - + cd /tmp/tmp.lGhE38g2q2
      2022-07-10 00:19:35,060: DEBUG - + LC_ALL=C
      2022-07-10 00:19:35,060: DEBUG - + equivs-build ./control
      2022-07-10 00:19:38,771: DEBUG - + LC_ALL=C
      2022-07-10 00:19:38,772: DEBUG - + tee ./dpkg_log
      2022-07-10 00:19:38,772: DEBUG - + dpkg --force-depends --install ./peertube-ynh-deps_4.2.2~ynh1_all.deb
      2022-07-10 00:19:38,916: DEBUG - Selecting previously unselected package peertube-ynh-deps.
      2022-07-10 00:19:39,046: DEBUG - (Reading database … 65313 files and directories currently installed.)
      2022-07-10 00:19:39,053: DEBUG - Preparing to unpack …/peertube-ynh-deps_4.2.2~ynh1_all.deb …
      2022-07-10 00:19:39,062: DEBUG - Unpacking peertube-ynh-deps (4.2.2~ynh1) …
      2022-07-10 00:19:39,136: DEBUG - Setting up peertube-ynh-deps (4.2.2~ynh1) …
      2022-07-10 00:19:39,260: DEBUG - + ynh_package_install --fix-broken
      2022-07-10 00:19:39,261: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
      2022-07-10 00:19:39,261: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:19:39,840: DEBUG - + return 0
      2022-07-10 00:19:39,842: DEBUG - + LC_ALL=C
      2022-07-10 00:19:39,842: DEBUG - + DEBIAN_FRONTEND=noninteractive
      2022-07-10 00:19:39,843: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
      2022-07-10 00:19:42,287: DEBUG - Reading package lists…
      2022-07-10 00:19:42,891: DEBUG - Building dependency tree…
      2022-07-10 00:19:42,894: DEBUG - Reading state information…
      2022-07-10 00:19:43,795: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      2022-07-10 00:19:43,798: DEBUG - + [[ -n /tmp/tmp.lGhE38g2q2 ]]
      2022-07-10 00:19:43,799: DEBUG - + rm --recursive --force /tmp/tmp.lGhE38g2q2
      2022-07-10 00:19:43,803: DEBUG - + ynh_package_is_installed peertube-ynh-deps
      2022-07-10 00:19:43,836: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:19:45,629: DEBUG - + return 0
      2022-07-10 00:19:45,633: DEBUG - + dpkg-query --show ‘–showformat=${Status}’ peertube-ynh-deps
      2022-07-10 00:19:45,634: DEBUG - + grep --count ‘ok installed’
      2022-07-10 00:19:45,728: DEBUG - + rm /tmp/peertube-ynh-deps.control
      2022-07-10 00:19:45,735: DEBUG - + grep --quiet php
      2022-07-10 00:19:45,744: DEBUG - + ynh_install_nodejs --nodejs_version=16
      2022-07-10 00:19:45,784: DEBUG - + mkdir --parents /opt/node_n
      2022-07-10 00:19:45,788: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:19:45,791: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:19:45,792: DEBUG - ++ sed s@/usr/local/bin:@@
      2022-07-10 00:19:45,799: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:19:45,803: DEBUG - + test -x /usr/bin/node
      2022-07-10 00:19:45,803: DEBUG - + test -x /usr/bin/npm
      2022-07-10 00:19:45,804: DEBUG - + /opt/node_n/bin/n --version
      2022-07-10 00:19:45,837: DEBUG - ++ /opt/node_n/bin/n --version
      2022-07-10 00:19:45,863: DEBUG - + dpkg --compare-versions v8.0.1 lt 8.0.1
      2022-07-10 00:19:45,868: WARNING - dpkg: warning: version ‘v8.0.1’ has bad syntax: version number does not start with digit
      2022-07-10 00:19:45,870: DEBUG - + ynh_replace_string ‘–match_string=^N_PREFIX=${N_PREFIX-.}$’ ‘–replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}’ --target_file=/opt/node_n/bin/n
      2022-07-10 00:19:46,059: DEBUG - + sed --in-place 's@^N_PREFIX=${N_PREFIX-.
      }$@N_PREFIX=${N_PREFIX-/opt/node_n}@g’ /opt/node_n/bin/n
      2022-07-10 00:19:46,065: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:19:46,065: DEBUG - + test -x /usr/bin/node_n
      2022-07-10 00:19:46,066: DEBUG - + test -x /usr/bin/npm_n
      2022-07-10 00:19:46,067: DEBUG - ++ uname --machine
      2022-07-10 00:19:46,070: DEBUG - + uname=armv7l
      2022-07-10 00:19:46,071: DEBUG - + [[ armv7l =~ aarch64 ]]
      2022-07-10 00:19:46,071: DEBUG - + [[ armv7l =~ arm64 ]]
      2022-07-10 00:19:46,071: DEBUG - + n 16
      2022-07-10 00:19:46,262: DEBUG - installing : node-v16.16.0
      2022-07-10 00:19:46,396: DEBUG - mkdir : /opt/node_n/n/versions/node/16.16.0
      2022-07-10 00:19:46,403: DEBUG - fetch : https://nodejs.org/dist/v16.16.0/node-v16.16.0-linux-armv7l.tar.xz
      2022-07-10 00:20:08,466: DEBUG - installed : v16.16.0 (with npm 8.11.0)
      2022-07-10 00:20:08,475: DEBUG - ++ find /opt/node_n/n/versions/node/16 /opt/node_n/n/versions/node/16.13.2 /opt/node_n/n/versions/node/16.14.0 /opt/node_n/n/versions/node/16.15.1 /opt/node_n/n/versions/node/16.16.0 -maxdepth 0
      2022-07-10 00:20:08,476: DEBUG - ++ sort --version-sort
      2022-07-10 00:20:08,477: DEBUG - ++ tail --lines=1
      2022-07-10 00:20:08,490: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/16.16.0
      2022-07-10 00:20:08,492: DEBUG - ++ basename /opt/node_n/n/versions/node/16.16.0
      2022-07-10 00:20:08,495: DEBUG - + real_nodejs_version=16.16.0
      2022-07-10 00:20:08,496: DEBUG - + ‘[’ ‘!’ -e /opt/node_n/n/versions/node/16 ‘]’
      2022-07-10 00:20:08,497: DEBUG - + echo peertube:16
      2022-07-10 00:20:08,498: DEBUG - + tee --append /opt/node_n/ynh_app_version
      2022-07-10 00:20:08,501: DEBUG - peertube:16
      2022-07-10 00:20:08,501: DEBUG - + ynh_app_setting_set --app=peertube --key=nodejs_version --value=16
      2022-07-10 00:20:08,502: DEBUG - + local globalapp=peertube
      2022-07-10 00:20:08,690: DEBUG - + app=peertube
      2022-07-10 00:20:08,690: DEBUG - + [[ nodejs_version =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:20:08,691: DEBUG - + ynh_app_setting set peertube nodejs_version 16
      2022-07-10 00:20:08,817: DEBUG - + ynh_cron_upgrade_node
      2022-07-10 00:20:08,818: DEBUG - + cat
      2022-07-10 00:20:08,821: DEBUG - + chmod +x /opt/node_n/node_update.sh
      2022-07-10 00:20:08,824: DEBUG - + cat
      2022-07-10 00:20:08,829: DEBUG - + chmod +x /etc/cron.daily/node_update
      2022-07-10 00:20:08,832: DEBUG - + ynh_use_nodejs
      2022-07-10 00:20:08,833: DEBUG - ++ ynh_app_setting_get --app=peertube --key=nodejs_version
      2022-07-10 00:20:08,834: DEBUG - ++ local globalapp=peertube
      2022-07-10 00:20:08,925: DEBUG - ++ app=peertube
      2022-07-10 00:20:08,926: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:20:08,926: DEBUG - ++ ynh_app_setting get peertube nodejs_version
      2022-07-10 00:20:09,051: DEBUG - + nodejs_version=16
      2022-07-10 00:20:09,052: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/16/bin
      2022-07-10 00:20:09,052: DEBUG - + shopt -s expand_aliases
      2022-07-10 00:20:09,053: DEBUG - + ynh_node=/opt/node_n/n/versions/node/16/bin/node
      2022-07-10 00:20:09,053: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/16/bin/node
      2022-07-10 00:20:09,053: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/16/bin/npm
      2022-07-10 00:20:09,054: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/16/bin/npm
      2022-07-10 00:20:09,054: 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/\1\6/\b\i\n ]]
      2022-07-10 00:20:09,054: DEBUG - + PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:20:09,055: DEBUG - + node_PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:20:09,055: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:20:09,055: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:20:09,056: DEBUG - + ynh_install_extra_app_dependencies ‘–repo=deb https://dl.yarnpkg.com/debian/ stable main’ --package=yarn --key=https://dl.yarnpkg.com/debian/pubkey.gpg
      2022-07-10 00:20:09,376: DEBUG - + name=peertube
      2022-07-10 00:20:09,377: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg
      2022-07-10 00:20:09,378: DEBUG - + ‘[’ -n https://dl.yarnpkg.com/debian/pubkey.gpg ‘]’
      2022-07-10 00:20:09,379: DEBUG - + key=–key=https://dl.yarnpkg.com/debian/pubkey.gpg
      2022-07-10 00:20:09,379: DEBUG - + ynh_install_extra_repo ‘–repo=deb https://dl.yarnpkg.com/debian/ stable main’ --key=https://dl.yarnpkg.com/debian/pubkey.gpg --priority=995 --name=peertube
      2022-07-10 00:20:09,999: DEBUG - + name=peertube
      2022-07-10 00:20:10,008: DEBUG - + append=0
      2022-07-10 00:20:10,009: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg
      2022-07-10 00:20:10,010: DEBUG - + priority=995
      2022-07-10 00:20:10,011: DEBUG - + append=
      2022-07-10 00:20:10,011: DEBUG - + wget_append=tee
      2022-07-10 00:20:10,012: DEBUG - + repo=‘https://dl.yarnpkg.com/debian/ stable main’
      2022-07-10 00:20:10,012: DEBUG - ++ echo ‘https://dl.yarnpkg.com/debian/ stable main’
      2022-07-10 00:20:10,013: DEBUG - ++ awk ‘{ print $1 }’
      2022-07-10 00:20:10,018: DEBUG - + local uri=https://dl.yarnpkg.com/debian/
      2022-07-10 00:20:10,023: DEBUG - ++ echo ‘https://dl.yarnpkg.com/debian/ stable main’
      2022-07-10 00:20:10,024: DEBUG - ++ awk ‘{ print $2 }’
      2022-07-10 00:20:10,037: DEBUG - + local suite=stable
      2022-07-10 00:20:10,038: DEBUG - + local component=main
      2022-07-10 00:20:10,039: DEBUG - + ynh_add_repo --uri=https://dl.yarnpkg.com/debian/ --suite=stable --component=main --name=peertube
      2022-07-10 00:20:10,489: DEBUG - + name=peertube
      2022-07-10 00:20:10,489: DEBUG - + append=0
      2022-07-10 00:20:10,490: DEBUG - + append=tee
      2022-07-10 00:20:10,491: DEBUG - + mkdir --parents /etc/apt/sources.list.d
      2022-07-10 00:20:10,495: DEBUG - + tee /etc/apt/sources.list.d/peertube.list
      2022-07-10 00:20:10,499: DEBUG - deb https://dl.yarnpkg.com/debian/ stable main
      2022-07-10 00:20:10,501: DEBUG - + local pin=dl.yarnpkg.com/debian/
      2022-07-10 00:20:10,501: DEBUG - + pin=dl.yarnpkg.com
      2022-07-10 00:20:10,502: DEBUG - + ‘[’ -n 995 ‘]’
      2022-07-10 00:20:10,502: DEBUG - + priority=–priority=995
      2022-07-10 00:20:10,503: DEBUG - + ynh_pin_repo ‘–package=’ ‘–pin=origin “dl.yarnpkg.com”’ --priority=995 --name=peertube
      2022-07-10 00:20:10,934: DEBUG - + package=’

      2022-07-10 00:20:10,935: DEBUG - + priority=995
      2022-07-10 00:20:10,936: DEBUG - + name=peertube
      2022-07-10 00:20:10,936: DEBUG - + append=0
      2022-07-10 00:20:10,937: DEBUG - + append=tee
      2022-07-10 00:20:10,938: DEBUG - + [[ peertube != \e\x\t\r\a_\p\h\p_\v\e\r\s\i\o\n ]]
      2022-07-10 00:20:10,939: DEBUG - + mkdir --parents /etc/apt/preferences.d
      2022-07-10 00:20:10,943: DEBUG - Pin: origin “dl.yarnpkg.com
      2022-07-10 00:20:10,944: DEBUG - Pin-Priority: 995
      2022-07-10 00:20:10,945: DEBUG - ’
      2022-07-10 00:20:10,945: DEBUG - + tee /etc/apt/preferences.d/peertube
      2022-07-10 00:20:10,950: DEBUG - Package: *
      2022-07-10 00:20:10,951: DEBUG - Pin: origin “dl.yarnpkg.com
      2022-07-10 00:20:10,952: DEBUG - Pin-Priority: 995
      2022-07-10 00:20:10,952: DEBUG -
      2022-07-10 00:20:10,953: DEBUG - + ‘[’ -n https://dl.yarnpkg.com/debian/pubkey.gpg ‘]’
      2022-07-10 00:20:10,954: DEBUG - + mkdir --parents /etc/apt/trusted.gpg.d
      2022-07-10 00:20:10,960: DEBUG - + wget --timeout 900 --quiet https://dl.yarnpkg.com/debian/pubkey.gpg --output-document=-
      2022-07-10 00:20:10,961: DEBUG - + gpg --dearmor
      2022-07-10 00:20:10,963: DEBUG - + tee /etc/apt/trusted.gpg.d/peertube.gpg
      2022-07-10 00:20:11,154: DEBUG - + ynh_package_update
      2022-07-10 00:20:11,155: DEBUG - + ynh_apt update
      2022-07-10 00:20:11,155: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:11,695: DEBUG - + return 0
      2022-07-10 00:20:11,696: DEBUG - + LC_ALL=C
      2022-07-10 00:20:11,696: DEBUG - + DEBIAN_FRONTEND=noninteractive
      2022-07-10 00:20:11,696: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
      2022-07-10 00:20:11,974: DEBUG - Hit:1 Index of /debian buster InRelease
      2022-07-10 00:20:11,975: DEBUG - Hit:2 Index of /raspbian buster InRelease
      2022-07-10 00:20:11,976: DEBUG - Hit:3 Index of /debian/ buster InRelease
      2022-07-10 00:20:12,023: DEBUG - Get:4 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
      2022-07-10 00:20:12,060: DEBUG - Hit:5 Index of /php/ buster InRelease
      2022-07-10 00:20:13,477: DEBUG - Get:6 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB]
      2022-07-10 00:20:13,631: DEBUG - Get:7 https://dl.yarnpkg.com/debian stable/main armhf Packages [10.9 kB]
      2022-07-10 00:20:13,768: DEBUG - Fetched 38.9 kB in 2s (21.0 kB/s)
      2022-07-10 00:20:16,703: DEBUG - Reading package lists…
      2022-07-10 00:20:16,808: DEBUG - + ynh_install_app_dependencies yarn
      2022-07-10 00:20:16,809: DEBUG - + local dependencies=yarn
      2022-07-10 00:20:16,810: DEBUG - ++ echo yarn
      2022-07-10 00:20:16,812: DEBUG - ++ sed ‘s/([^<=>])\ ([^(])/\1, \2/g’
      2022-07-10 00:20:16,819: DEBUG - + dependencies=yarn
      2022-07-10 00:20:16,819: DEBUG - + local dependencies=yarn
      2022-07-10 00:20:16,820: DEBUG - + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
      2022-07-10 00:20:16,821: DEBUG - ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
      2022-07-10 00:20:16,830: DEBUG - + local version=4.2.2~ynh1
      2022-07-10 00:20:16,831: DEBUG - + ‘[’ -z 4.2.2~ynh1 ‘]’
      2022-07-10 00:20:16,831: DEBUG - + ‘[’ 4.2.2~ynh1 == null ‘]’
      2022-07-10 00:20:16,832: DEBUG - + local dep_app=peertube
      2022-07-10 00:20:16,832: DEBUG - + [[ yarn =~ [<=>] ]]
      2022-07-10 00:20:16,834: DEBUG - ++ echo yarn
      2022-07-10 00:20:16,835: DEBUG - ++ sort -u
      2022-07-10 00:20:16,835: DEBUG - ++ grep -oP ‘(?<=php)[0-9.]+(?=-|>)’
      2022-07-10 00:20:16,841: DEBUG - + local specific_php_version=
      2022-07-10 00:20:16,842: DEBUG - + [[ ‘’ != \7.\3 ]]
      2022-07-10 00:20:16,843: DEBUG - + [[ false == \t\r\u\e ]]
      2022-07-10 00:20:16,843: DEBUG - + local current_dependencies=
      2022-07-10 00:20:16,844: DEBUG - + ynh_package_is_installed --package=peertube-ynh-deps
      2022-07-10 00:20:16,872: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:17,450: DEBUG - + return 0
      2022-07-10 00:20:17,452: DEBUG - + dpkg-query --show ‘–showformat=${Status}’ peertube-ynh-deps
      2022-07-10 00:20:17,453: DEBUG - + grep --count ‘ok installed’
      2022-07-10 00:20:17,506: DEBUG - ++ dpkg-query --show ‘–showformat=${Depends}’ peertube-ynh-deps
      2022-07-10 00:20:17,556: DEBUG - + current_dependencies='ffmpeg, postgresql, postgresql-contrib, openssl, g++, mailutils, apt-transport-https ’
      2022-07-10 00:20:17,557: DEBUG - + current_dependencies='ffmpeg, postgresql, postgresql-contrib, openssl, g++, mailutils, apt-transport-https ’
      2022-07-10 00:20:17,557: DEBUG - + dependencies=‘ffmpeg, postgresql, postgresql-contrib, openssl, g++, mailutils, apt-transport-https , yarn’
      2022-07-10 00:20:17,558: DEBUG - + grep --quiet php
      2022-07-10 00:20:17,562: DEBUG - + cat
      2022-07-10 00:20:17,567: DEBUG - + ynh_package_install_from_equivs /tmp/peertube-ynh-deps.control
      2022-07-10 00:20:17,567: DEBUG - + local controlfile=/tmp/peertube-ynh-deps.control
      2022-07-10 00:20:17,570: DEBUG - ++ grep ‘^Package: ’ /tmp/peertube-ynh-deps.control
      2022-07-10 00:20:17,571: DEBUG - ++ cut ‘–delimiter= ’ --fields=2
      2022-07-10 00:20:17,576: DEBUG - + local pkgname=peertube-ynh-deps
      2022-07-10 00:20:17,579: DEBUG - ++ grep ‘^Version: ’ /tmp/peertube-ynh-deps.control
      2022-07-10 00:20:17,579: DEBUG - ++ cut ‘–delimiter= ’ --fields=2
      2022-07-10 00:20:17,585: DEBUG - + local pkgversion=4.2.2~ynh1
      2022-07-10 00:20:17,585: DEBUG - + [[ -z peertube-ynh-deps ]]
      2022-07-10 00:20:17,586: DEBUG - + [[ -z 4.2.2~ynh1 ]]
      2022-07-10 00:20:17,586: DEBUG - + ynh_package_update
      2022-07-10 00:20:17,587: DEBUG - + ynh_apt update
      2022-07-10 00:20:17,587: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:18,170: DEBUG - + return 0
      2022-07-10 00:20:18,171: DEBUG - + LC_ALL=C
      2022-07-10 00:20:18,172: DEBUG - + DEBIAN_FRONTEND=noninteractive
      2022-07-10 00:20:18,172: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
      2022-07-10 00:20:18,433: DEBUG - Hit:1 Index of /raspbian buster InRelease
      2022-07-10 00:20:18,434: DEBUG - Hit:2 Index of /debian buster InRelease
      2022-07-10 00:20:18,435: DEBUG - Hit:3 Index of /debian/ buster InRelease
      2022-07-10 00:20:18,491: DEBUG - Hit:4 https://dl.yarnpkg.com/debian stable InRelease
      2022-07-10 00:20:18,515: DEBUG - Hit:5 Index of /php/ buster InRelease
      2022-07-10 00:20:22,954: DEBUG - Reading package lists…
      2022-07-10 00:20:23,060: DEBUG - ++ mktemp --directory
      2022-07-10 00:20:23,065: DEBUG - + local TMPDIR=/tmp/tmp.LGIvPbRCD6
      2022-07-10 00:20:23,065: DEBUG - + echo 10
      2022-07-10 00:20:23,066: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:23,614: DEBUG - + return 0
      2022-07-10 00:20:23,615: DEBUG - + cp /tmp/peertube-ynh-deps.control /tmp/tmp.LGIvPbRCD6/control
      2022-07-10 00:20:23,620: DEBUG - + cd /tmp/tmp.LGIvPbRCD6
      2022-07-10 00:20:23,621: DEBUG - + LC_ALL=C
      2022-07-10 00:20:23,621: DEBUG - + equivs-build ./control
      2022-07-10 00:20:25,685: DEBUG - + LC_ALL=C
      2022-07-10 00:20:25,685: DEBUG - + dpkg --force-depends --install ./peertube-ynh-deps_4.2.2~ynh1_all.deb
      2022-07-10 00:20:25,686: DEBUG - + tee ./dpkg_log
      2022-07-10 00:20:25,901: DEBUG - (Reading database … 65317 files and directories currently installed.)
      2022-07-10 00:20:25,908: DEBUG - Preparing to unpack …/peertube-ynh-deps_4.2.2~ynh1_all.deb …
      2022-07-10 00:20:25,943: DEBUG - Unpacking peertube-ynh-deps (4.2.2~ynh1) over (4.2.2~ynh1) …
      2022-07-10 00:20:26,116: DEBUG - dpkg: peertube-ynh-deps: dependency problems, but configuring anyway as you requested:
      2022-07-10 00:20:26,117: DEBUG - peertube-ynh-deps depends on yarn; however:
      2022-07-10 00:20:26,117: DEBUG - Package yarn is not installed.
      2022-07-10 00:20:26,117: DEBUG -
      2022-07-10 00:20:26,117: DEBUG - Setting up peertube-ynh-deps (4.2.2~ynh1) …
      2022-07-10 00:20:26,237: DEBUG - + ynh_package_install --fix-broken
      2022-07-10 00:20:26,237: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
      2022-07-10 00:20:26,238: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:26,766: DEBUG - + return 0
      2022-07-10 00:20:26,767: DEBUG - + LC_ALL=C
      2022-07-10 00:20:26,768: DEBUG - + DEBIAN_FRONTEND=noninteractive
      2022-07-10 00:20:26,768: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install --fix-broken
      2022-07-10 00:20:32,986: DEBUG - Reading package lists…
      2022-07-10 00:20:33,589: DEBUG - Building dependency tree…
      2022-07-10 00:20:33,593: DEBUG - Reading state information…
      2022-07-10 00:20:34,059: DEBUG - Correcting dependencies… Done
      2022-07-10 00:20:34,761: DEBUG - The following additional packages will be installed:
      2022-07-10 00:20:34,765: DEBUG - libbrotli1 libc-ares2 libnode64 libuv1 nodejs nodejs-doc yarn
      2022-07-10 00:20:34,770: DEBUG - Suggested packages:
      2022-07-10 00:20:34,772: DEBUG - npm
      2022-07-10 00:20:34,814: DEBUG - The following NEW packages will be installed:
      2022-07-10 00:20:34,818: DEBUG - libbrotli1 libc-ares2 libnode64 libuv1 nodejs nodejs-doc yarn
      2022-07-10 00:20:36,243: DEBUG - 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
      2022-07-10 00:20:36,243: DEBUG - Need to get 0 B/7249 kB of archives.
      2022-07-10 00:20:36,243: DEBUG - After this operation, 33.8 MB of additional disk space will be used.
      2022-07-10 00:20:36,345: DEBUG - Selecting previously unselected package libbrotli1:armhf.
      2022-07-10 00:20:36,473: DEBUG - (Reading database … 65317 files and directories currently installed.)
      2022-07-10 00:20:36,480: DEBUG - Preparing to unpack …/0-libbrotli1_1.0.7-2+deb10u1_armhf.deb …
      2022-07-10 00:20:36,503: DEBUG - Unpacking libbrotli1:armhf (1.0.7-2+deb10u1) …
      2022-07-10 00:20:36,699: DEBUG - Selecting previously unselected package libc-ares2:armhf.
      2022-07-10 00:20:36,706: DEBUG - Preparing to unpack …/1-libc-ares2_1.14.0-1+deb10u1_armhf.deb …
      2022-07-10 00:20:36,719: DEBUG - Unpacking libc-ares2:armhf (1.14.0-1+deb10u1) …
      2022-07-10 00:20:36,889: DEBUG - Selecting previously unselected package libuv1:armhf.
      2022-07-10 00:20:36,904: DEBUG - Preparing to unpack …/2-libuv1_1.24.1-1+deb10u1_armhf.deb …
      2022-07-10 00:20:36,917: DEBUG - Unpacking libuv1:armhf (1.24.1-1+deb10u1) …
      2022-07-10 00:20:37,089: DEBUG - Selecting previously unselected package libnode64:armhf.
      2022-07-10 00:20:37,100: DEBUG - Preparing to unpack …/3-libnode64_10.24.0~dfsg-1~deb10u1_armhf.deb …
      2022-07-10 00:20:37,113: DEBUG - Unpacking libnode64:armhf (10.24.0~dfsg-1~deb10u1) …
      2022-07-10 00:20:40,115: DEBUG - Selecting previously unselected package nodejs.
      2022-07-10 00:20:40,131: DEBUG - Preparing to unpack …/4-nodejs_10.24.0~dfsg-1~deb10u1_armhf.deb …
      2022-07-10 00:20:40,144: DEBUG - Unpacking nodejs (10.24.0~dfsg-1~deb10u1) …
      2022-07-10 00:20:40,307: DEBUG - Selecting previously unselected package nodejs-doc.
      2022-07-10 00:20:40,320: DEBUG - Preparing to unpack …/5-nodejs-doc_10.24.0~dfsg-1~deb10u1_all.deb …
      2022-07-10 00:20:40,338: DEBUG - Unpacking nodejs-doc (10.24.0~dfsg-1~deb10u1) …
      2022-07-10 00:20:40,897: DEBUG - Selecting previously unselected package yarn.
      2022-07-10 00:20:40,911: DEBUG - Preparing to unpack …/6-yarn_1.22.19-1_all.deb …
      2022-07-10 00:20:40,919: DEBUG - Unpacking yarn (1.22.19-1) …
      2022-07-10 00:20:41,511: DEBUG - Setting up libbrotli1:armhf (1.0.7-2+deb10u1) …
      2022-07-10 00:20:41,548: DEBUG - Setting up libc-ares2:armhf (1.14.0-1+deb10u1) …
      2022-07-10 00:20:41,583: DEBUG - Setting up libuv1:armhf (1.24.1-1+deb10u1) …
      2022-07-10 00:20:41,615: DEBUG - Setting up libnode64:armhf (10.24.0~dfsg-1~deb10u1) …
      2022-07-10 00:20:41,651: DEBUG - Setting up nodejs-doc (10.24.0~dfsg-1~deb10u1) …
      2022-07-10 00:20:41,683: DEBUG - Setting up yarn (1.22.19-1) …
      2022-07-10 00:20:41,719: DEBUG - Setting up nodejs (10.24.0~dfsg-1~deb10u1) …
      2022-07-10 00:20:41,758: DEBUG - update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
      2022-07-10 00:20:41,790: DEBUG - Processing triggers for libc-bin (2.28-10+rpt2+rpi1) …
      2022-07-10 00:20:41,903: DEBUG - Processing triggers for man-db (2.8.5-2) …
      2022-07-10 00:20:43,091: DEBUG - + [[ -n /tmp/tmp.LGIvPbRCD6 ]]
      2022-07-10 00:20:43,092: DEBUG - + rm --recursive --force /tmp/tmp.LGIvPbRCD6
      2022-07-10 00:20:43,095: DEBUG - + ynh_package_is_installed peertube-ynh-deps
      2022-07-10 00:20:43,123: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:43,663: DEBUG - + return 0
      2022-07-10 00:20:43,665: DEBUG - + dpkg-query --show ‘–showformat=${Status}’ peertube-ynh-deps
      2022-07-10 00:20:43,666: DEBUG - + grep --count ‘ok installed’
      2022-07-10 00:20:43,717: DEBUG - + rm /tmp/peertube-ynh-deps.control
      2022-07-10 00:20:43,722: DEBUG - + grep --quiet php
      2022-07-10 00:20:43,730: DEBUG - ++ apt-mark showauto yarn
      2022-07-10 00:20:44,440: DEBUG - + local apps_auto_installed=yarn
      2022-07-10 00:20:44,441: DEBUG - + ynh_package_install yarn
      2022-07-10 00:20:44,441: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install yarn
      2022-07-10 00:20:44,442: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:44,977: DEBUG - + return 0
      2022-07-10 00:20:44,978: DEBUG - + LC_ALL=C
      2022-07-10 00:20:44,978: DEBUG - + DEBIAN_FRONTEND=noninteractive
      2022-07-10 00:20:44,979: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=–force-confdef --option Dpkg::Options::=–force-confold install yarn
      2022-07-10 00:20:45,058: DEBUG - Reading package lists…
      2022-07-10 00:20:45,580: DEBUG - Building dependency tree…
      2022-07-10 00:20:45,583: DEBUG - Reading state information…
      2022-07-10 00:20:46,560: DEBUG - yarn is already the newest version (1.22.19-1).
      2022-07-10 00:20:46,560: DEBUG - yarn set to manually installed.
      2022-07-10 00:20:46,561: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      2022-07-10 00:20:46,562: DEBUG - + ‘[’ -z yarn ‘]’
      2022-07-10 00:20:46,562: DEBUG - + apt-mark auto yarn
      2022-07-10 00:20:47,358: DEBUG - yarn set to automatically installed.
      2022-07-10 00:20:47,360: DEBUG - + ynh_remove_extra_repo --name=peertube
      2022-07-10 00:20:47,393: DEBUG - + name=peertube
      2022-07-10 00:20:47,393: DEBUG - + ynh_secure_remove --file=/etc/apt/sources.list.d/peertube.list
      2022-07-10 00:20:47,456: DEBUG - + [[ peertube == \e\x\t\r\a_\p\h\p_\v\e\r\s\i\o\n ]]
      2022-07-10 00:20:47,458: DEBUG - + ynh_secure_remove /etc/apt/preferences.d/peertube
      2022-07-10 00:20:47,515: DEBUG - + ynh_secure_remove --file=/etc/apt/trusted.gpg.d/peertube.gpg
      2022-07-10 00:20:47,577: DEBUG - + ynh_secure_remove --file=/etc/apt/trusted.gpg.d/peertube.asc
      2022-07-10 00:20:47,641: INFO - ‘/etc/apt/trusted.gpg.d/peertube.asc’ wasn’t deleted because it doesn’t exist.
      2022-07-10 00:20:47,643: DEBUG - + ynh_package_update
      2022-07-10 00:20:47,643: DEBUG - + ynh_apt update
      2022-07-10 00:20:47,644: DEBUG - + ynh_wait_dpkg_free
      2022-07-10 00:20:48,236: DEBUG - + return 0
      2022-07-10 00:20:48,236: DEBUG - + LC_ALL=C
      2022-07-10 00:20:48,237: DEBUG - + DEBIAN_FRONTEND=noninteractive
      2022-07-10 00:20:48,237: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
      2022-07-10 00:20:48,480: DEBUG - Hit:1 Index of /raspbian buster InRelease
      2022-07-10 00:20:48,481: DEBUG - Hit:2 Index of /debian buster InRelease
      2022-07-10 00:20:48,481: DEBUG - Hit:3 Index of /debian/ buster InRelease
      2022-07-10 00:20:48,559: DEBUG - Hit:4 Index of /php/ buster InRelease
      2022-07-10 00:20:52,690: DEBUG - Reading package lists…
      2022-07-10 00:20:52,883: INFO - [####…] > Configuring system user…
      2022-07-10 00:20:52,885: DEBUG - + ynh_system_user_create --username=peertube --home_dir=/var/www/peertube
      2022-07-10 00:20:53,076: DEBUG - + use_shell=0
      2022-07-10 00:20:53,077: DEBUG - + home_dir=/var/www/peertube
      2022-07-10 00:20:53,077: DEBUG - + groups=
      2022-07-10 00:20:53,078: DEBUG - + ynh_system_user_exists peertube
      2022-07-10 00:20:53,109: DEBUG - + getent passwd peertube
      2022-07-10 00:20:53,118: DEBUG - + ‘[’ -n /var/www/peertube ‘]’
      2022-07-10 00:20:53,119: DEBUG - + local ‘user_home_dir=–home-dir /var/www/peertube’
      2022-07-10 00:20:53,119: DEBUG - + local ‘shell=–shell /usr/sbin/nologin’
      2022-07-10 00:20:53,120: DEBUG - + useradd --home-dir /var/www/peertube --system --user-group peertube --shell /usr/sbin/nologin
      2022-07-10 00:20:54,865: INFO - [####+…] > Creating a PostgreSQL database…
      2022-07-10 00:20:54,867: DEBUG - + db_name=peertube_peertube
      2022-07-10 00:20:54,868: DEBUG - ++ ynh_sanitize_dbid --db_name=peertube
      2022-07-10 00:20:54,900: DEBUG - ++ echo peertube
      2022-07-10 00:20:54,901: DEBUG - + db_user=peertube
      2022-07-10 00:20:54,902: DEBUG - + ynh_app_setting_set --app=peertube --key=db_name --value=peertube_peertube
      2022-07-10 00:20:54,902: DEBUG - + local globalapp=peertube
      2022-07-10 00:20:55,108: DEBUG - + app=peertube
      2022-07-10 00:20:55,108: DEBUG - + [[ db_name =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:20:55,109: DEBUG - + ynh_app_setting set peertube db_name peertube_peertube
      2022-07-10 00:20:55,240: DEBUG - + ynh_app_setting_set --app=peertube --key=db_user --value=peertube
      2022-07-10 00:20:55,241: DEBUG - + local globalapp=peertube
      2022-07-10 00:20:55,432: DEBUG - + app=peertube
      2022-07-10 00:20:55,433: DEBUG - + [[ db_user =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:20:55,434: DEBUG - + ynh_app_setting set peertube db_user peertube
      2022-07-10 00:20:55,583: DEBUG - + ynh_psql_test_if_first_run
      2022-07-10 00:20:55,586: DEBUG - + dpkg --list
      2022-07-10 00:20:55,588: DEBUG - + grep -q ‘ii postgresql-11’
      2022-07-10 00:20:55,667: DEBUG - + ‘[’ -e /etc/postgresql/11 ‘]’
      2022-07-10 00:20:55,668: DEBUG - + systemctl is-active postgresql@11-main -q
      2022-07-10 00:20:55,682: DEBUG - + systemctl is-enabled postgresql -q
      2022-07-10 00:20:55,698: DEBUG - + ‘[’ ‘!’ -f /etc/yunohost/psql ‘]’
      2022-07-10 00:20:55,699: DEBUG - + ynh_psql_setup_db --db_user=peertube --db_name=peertube_peertube
      2022-07-10 00:20:55,702: DEBUG - + db_pwd=
      2022-07-10 00:20:55,849: DEBUG - + ynh_psql_user_exists --user=peertube
      2022-07-10 00:20:55,884: DEBUG - + grep --quiet peertube
      2022-07-10 00:20:55,886: DEBUG - ++ cat /etc/yunohost/psql
      2022-07-10 00:20:55,891: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql -tAc ‘SELECT rolname FROM pg_roles WHERE rolname=’’‘peertube’’’;’
      2022-07-10 00:20:56,142: DEBUG - + return 1
      2022-07-10 00:20:56,143: DEBUG - ++ ynh_string_random
      2022-07-10 00:20:56,147: DEBUG - ++ length=24
      2022-07-10 00:20:56,147: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
      2022-07-10 00:20:56,148: DEBUG - ++ tr --complement --delete A-Za-z0-9
      2022-07-10 00:20:56,149: DEBUG - ++ sed --quiet 's/(.{24})./\1/p’
      2022-07-10 00:20:56,162: DEBUG - + local new_db_pwd=
      *********
      2022-07-10 00:20:56,163: DEBUG - + db_pwd=**********
      2022-07-10 00:20:56,163: DEBUG - + ynh_psql_create_user peertube **********
      2022-07-10 00:20:56,163: DEBUG - + local user=peertube
      2022-07-10 00:20:56,164: DEBUG - + local pwd=**********
      2022-07-10 00:20:56,164: DEBUG - + ynh_psql_execute_as_root '–sql=CREATE USER peertube WITH ENCRYPTED PASSWORD ‘’‘’’’’
      2022-07-10 00:20:56,217: DEBUG - + database=
      2022-07-10 00:20:56,217: DEBUG - + ‘[’ -n ‘’ ‘]’
      2022-07-10 00:20:56,218: DEBUG - ++ cat /etc/yunohost/psql
      2022-07-10 00:20:56,222: DEBUG - + ynh_psql_connect_as --user=postgres --password=

      2022-07-10 00:20:56,378: DEBUG - + database=
      2022-07-10 00:20:56,379: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ‘’
      2022-07-10 00:20:56,461: DEBUG -
      2022-07-10 00:20:56,463: DEBUG - Wi-Fi is currently blocked by rfkill.
      2022-07-10 00:20:56,466: DEBUG - Use raspi-config to set the country before use.
      2022-07-10 00:20:56,467: DEBUG -
      2022-07-10 00:20:56,612: DEBUG - CREATE ROLE
      2022-07-10 00:20:56,627: DEBUG - + ynh_psql_create_db peertube_peertube peertube
      2022-07-10 00:20:56,628: DEBUG - + local db=peertube_peertube
      2022-07-10 00:20:56,628: DEBUG - + local user=peertube
      2022-07-10 00:20:56,629: DEBUG - + local ‘sql=CREATE DATABASE peertube_peertube;’
      2022-07-10 00:20:56,629: DEBUG - + ‘[’ -n peertube ‘]’
      2022-07-10 00:20:56,629: DEBUG - + sql+=‘ALTER DATABASE peertube_peertube OWNER TO peertube;’
      2022-07-10 00:20:56,630: DEBUG - + sql+=‘GRANT ALL PRIVILEGES ON DATABASE peertube_peertube TO peertube WITH GRANT OPTION;’
      2022-07-10 00:20:56,630: DEBUG - + ynh_psql_execute_as_root ‘–sql=CREATE DATABASE peertube_peertube;ALTER DATABASE peertube_peertube OWNER TO peertube;GRANT ALL PRIVILEGES ON DATABASE peertube_peertube TO peertube WITH GRANT OPTION;’
      2022-07-10 00:20:56,678: DEBUG - + database=
      2022-07-10 00:20:56,679: DEBUG - + ‘[’ -n ‘’ ‘]’
      2022-07-10 00:20:56,680: DEBUG - ++ cat /etc/yunohost/psql
      2022-07-10 00:20:56,683: DEBUG - + ynh_psql_connect_as --user=postgres --password=**********
      2022-07-10 00:20:56,818: DEBUG - + database=
      2022-07-10 00:20:56,818: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ‘’
      2022-07-10 00:20:56,880: DEBUG -
      2022-07-10 00:20:56,883: DEBUG - Wi-Fi is currently blocked by rfkill.
      2022-07-10 00:20:56,886: DEBUG - Use raspi-config to set the country before use.
      2022-07-10 00:20:56,887: DEBUG -
      2022-07-10 00:21:02,198: DEBUG - CREATE DATABASE
      2022-07-10 00:21:02,201: DEBUG - ALTER DATABASE
      2022-07-10 00:21:02,204: DEBUG - GRANT
      2022-07-10 00:21:02,217: DEBUG - + ynh_app_setting_set --app=peertube --key=psqlpwd --value=**********
      2022-07-10 00:21:02,218: DEBUG - + local globalapp=peertube
      2022-07-10 00:21:02,479: DEBUG - + app=peertube
      2022-07-10 00:21:02,479: DEBUG - + [[ psqlpwd =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:21:02,480: DEBUG - + ynh_app_setting set peertube psqlpwd **********
      2022-07-10 00:21:02,611: DEBUG - ++ ynh_app_setting_get --app=peertube --key=psqlpwd
      2022-07-10 00:21:02,611: DEBUG - ++ local globalapp=peertube
      2022-07-10 00:21:02,708: DEBUG - ++ app=peertube
      2022-07-10 00:21:02,709: DEBUG - ++ [[ psqlpwd =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:21:02,709: DEBUG - ++ ynh_app_setting get peertube psqlpwd
      2022-07-10 00:21:02,840: DEBUG - + db_pwd=**********
      2022-07-10 00:21:02,841: DEBUG - + ynh_psql_execute_as_root ‘–sql=CREATE EXTENSION IF NOT EXISTS unaccent;’ --database=peertube_peertube
      2022-07-10 00:21:02,937: DEBUG - + database=peertube_peertube
      2022-07-10 00:21:02,938: DEBUG - + ‘[’ -n peertube_peertube ‘]’
      2022-07-10 00:21:02,938: DEBUG - + database=–database=peertube_peertube
      2022-07-10 00:21:02,939: DEBUG - ++ cat /etc/yunohost/psql
      2022-07-10 00:21:02,943: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** --database=peertube_peertube
      2022-07-10 00:21:03,136: DEBUG - + database=peertube_peertube
      2022-07-10 00:21:03,137: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql peertube_peertube
      2022-07-10 00:21:03,197: DEBUG -
      2022-07-10 00:21:03,199: DEBUG - Wi-Fi is currently blocked by rfkill.
      2022-07-10 00:21:03,202: DEBUG - Use raspi-config to set the country before use.
      2022-07-10 00:21:03,203: DEBUG -
      2022-07-10 00:21:03,385: DEBUG - CREATE EXTENSION
      2022-07-10 00:21:03,393: DEBUG - + ynh_psql_execute_as_root ‘–sql=CREATE EXTENSION IF NOT EXISTS pg_trgm;’ --database=peertube_peertube
      2022-07-10 00:21:03,494: DEBUG - + database=peertube_peertube
      2022-07-10 00:21:03,495: DEBUG - + ‘[’ -n peertube_peertube ‘]’
      2022-07-10 00:21:03,495: DEBUG - + database=–database=peertube_peertube
      2022-07-10 00:21:03,496: DEBUG - ++ cat /etc/yunohost/psql
      2022-07-10 00:21:03,500: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** --database=peertube_peertube
      2022-07-10 00:21:03,696: DEBUG - + database=peertube_peertube
      2022-07-10 00:21:03,697: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql peertube_peertube
      2022-07-10 00:21:03,762: DEBUG -
      2022-07-10 00:21:03,766: DEBUG - Wi-Fi is currently blocked by rfkill.
      2022-07-10 00:21:03,770: DEBUG - Use raspi-config to set the country before use.
      2022-07-10 00:21:03,772: DEBUG -
      2022-07-10 00:21:04,005: DEBUG - CREATE EXTENSION
      2022-07-10 00:21:04,014: DEBUG - ++ ynh_redis_get_free_db
      2022-07-10 00:21:04,015: DEBUG - ++ local result max db
      2022-07-10 00:21:04,017: DEBUG - +++ redis-cli INFO keyspace
      2022-07-10 00:21:04,024: DEBUG - ++ result=’# Keyspace
      2022-07-10 00:21:04,024: DEBUG - db1:keys=2,expires=2,avg_ttl=5381783800

      2022-07-10 00:21:04,027: DEBUG - +++ cat /etc/redis/redis.conf
      2022-07-10 00:21:04,028: DEBUG - +++ grep ‘^databases’
      2022-07-10 00:21:04,029: DEBUG - +++ grep -Eow ‘[0-9]+’
      2022-07-10 00:21:04,038: DEBUG - ++ max=16
      2022-07-10 00:21:04,039: DEBUG - ++ db=0
      2022-07-10 00:21:04,040: DEBUG - +++ seq 0 16
      2022-07-10 00:21:04,045: DEBUG - ++ for i in $(seq 0 “$max”)
      2022-07-10 00:21:04,045: DEBUG - ++ echo ‘# Keyspace
      2022-07-10 00:21:04,046: DEBUG - db1:keys=2,expires=2,avg_ttl=5381783800

      2022-07-10 00:21:04,046: DEBUG - ++ grep -q db0
      2022-07-10 00:21:04,051: DEBUG - ++ db=0
      2022-07-10 00:21:04,051: DEBUG - ++ break 1
      2022-07-10 00:21:04,052: DEBUG - ++ test 0 -eq -1
      2022-07-10 00:21:04,052: DEBUG - ++ echo 0
      2022-07-10 00:21:04,053: DEBUG - + redis_db=0
      2022-07-10 00:21:04,053: DEBUG - + ynh_app_setting_set --app=peertube --key=redis_db --value=0
      2022-07-10 00:21:04,054: DEBUG - + local globalapp=peertube
      2022-07-10 00:21:04,261: DEBUG - + app=peertube
      2022-07-10 00:21:04,262: DEBUG - + [[ redis_db =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:21:04,263: DEBUG - + ynh_app_setting set peertube redis_db 0
      2022-07-10 00:21:04,536: INFO - [#####+…] > Setting up source files…
      2022-07-10 00:21:04,538: DEBUG - + ynh_app_setting_set --app=peertube --key=final_path --value=/var/www/peertube
      2022-07-10 00:21:04,539: DEBUG - + local globalapp=peertube
      2022-07-10 00:21:04,851: DEBUG - + app=peertube
      2022-07-10 00:21:04,852: DEBUG - + [[ final_path =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:21:04,852: DEBUG - + ynh_app_setting set peertube final_path /var/www/peertube
      2022-07-10 00:21:05,022: DEBUG - + ynh_setup_source --dest_dir=/var/www/peertube
      2022-07-10 00:21:05,095: DEBUG - + source_id=app
      2022-07-10 00:21:05,095: DEBUG - + keep=
      2022-07-10 00:21:05,096: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,097: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,098: DEBUG - ++ cut --delimiter== --fields=2-
      2022-07-10 00:21:05,104: DEBUG - + local src_url=https://github.com/Chocobozzz/PeerTube/releases/download/v4.2.2/peertube-v4.2.2.tar.xz
      2022-07-10 00:21:05,106: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,107: DEBUG - ++ cut --delimiter== --fields=2-
      2022-07-10 00:21:05,113: DEBUG - + local src_sum=4b9e36aaa86f2e0dfb1cb36ed894eaf853a024a9e9407d3a73751d0655999089
      2022-07-10 00:21:05,116: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,116: DEBUG - ++ cut --delimiter== --fields=2-
      2022-07-10 00:21:05,122: DEBUG - + local src_sumprg=sha256sum
      2022-07-10 00:21:05,125: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,126: DEBUG - ++ cut --delimiter== --fields=2-
      2022-07-10 00:21:05,131: DEBUG - + local src_format=tar.xz
      2022-07-10 00:21:05,134: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,134: DEBUG - ++ cut --delimiter== --fields=2-
      2022-07-10 00:21:05,141: DEBUG - + local src_extract=true
      2022-07-10 00:21:05,144: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,144: DEBUG - ++ cut --delimiter== --fields=2-
      2022-07-10 00:21:05,150: DEBUG - + local src_in_subdir=true
      2022-07-10 00:21:05,153: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/app.src
      2022-07-10 00:21:05,154: DEBUG - ++ cut --delimiter== --fields=2-
      2022-07-10 00:21:05,160: DEBUG - + local src_filename=
      2022-07-10 00:21:05,160: DEBUG - + src_sumprg=sha256sum
      2022-07-10 00:21:05,161: DEBUG - + src_in_subdir=true
      2022-07-10 00:21:05,161: DEBUG - + src_format=tar.xz
      2022-07-10 00:21:05,162: DEBUG - ++ echo tar.xz
      2022-07-10 00:21:05,163: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
      2022-07-10 00:21:05,168: DEBUG - + src_format=tar.xz
      2022-07-10 00:21:05,169: DEBUG - + src_extract=true
      2022-07-10 00:21:05,169: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
      2022-07-10 00:21:05,169: DEBUG - + src_filename=app.tar.xz
      2022-07-10 00:21:05,170: DEBUG - + local local_src=/opt/yunohost-apps-src/peertube/app.tar.xz
      2022-07-10 00:21:05,170: DEBUG - + mkdir -p /var/cache/yunohost/download/peertube/
      2022-07-10 00:21:05,172: DEBUG - + src_filename=/var/cache/yunohost/download/peertube/app.tar.xz
      2022-07-10 00:21:05,173: DEBUG - + test -e /opt/yunohost-apps-src/peertube/app.tar.xz
      2022-07-10 00:21:05,173: DEBUG - + ‘[’ -n https://github.com/Chocobozzz/PeerTube/releases/download/v4.2.2/peertube-v4.2.2.tar.xz ‘]’
      2022-07-10 00:21:05,174: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/peertube/app.tar.xz https://github.com/Chocobozzz/PeerTube/releases/download/v4.2.2/peertube-v4.2.2.tar.xz
      2022-07-10 00:21:07,029: DEBUG - + out=‘2022-07-10 00:21:07 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/45213667/e7b32b29-5421-4322-84cf-240a87f16496?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220709%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220709T222105Z&X-Amz-Expires=300&X-Amz-Signature=18fb5af4c01b82b083a6a957e0b9779a2ac784f9c99bda1382b378d2790bf419&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=45213667&response-content-disposition=attachment%3B%20filename%3Dpeertube-v4.2.2.tar.xz&response-content-type=application%2Foctet-stream [26293092/26293092] → “/var/cache/yunohost/download/peertube/app.tar.xz” [1]’
      2022-07-10 00:21:07,031: DEBUG - + sha256sum --check --status
      2022-07-10 00:21:07,309: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
      2022-07-10 00:21:07,318: DEBUG - + ‘[’ -n ‘’ ‘]’
      2022-07-10 00:21:07,318: DEBUG - + mkdir --parents /var/www/peertube
      2022-07-10 00:21:07,319: DEBUG - + ‘[’ -n /var/www/peertube ‘]’
      2022-07-10 00:21:07,319: DEBUG - + ‘[’ /var/www/peertube == /var/www/peertube ‘]’
      2022-07-10 00:21:07,320: DEBUG - + ynh_apply_default_permissions /var/www/peertube
      2022-07-10 00:21:07,320: DEBUG - + local target=/var/www/peertube
      2022-07-10 00:21:07,322: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
      2022-07-10 00:21:07,323: DEBUG - ++ tr -d ‘>= ’
      2022-07-10 00:21:07,334: DEBUG - + local ynh_requirement=4.3.0
      2022-07-10 00:21:07,334: DEBUG - + ‘[’ -z 4.3.0 ‘]’
      2022-07-10 00:21:07,335: DEBUG - + ‘[’ 4.3.0 == null ‘]’
      2022-07-10 00:21:07,335: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
      2022-07-10 00:21:07,340: DEBUG - + chmod o-rwx /var/www/peertube
      2022-07-10 00:21:07,343: DEBUG - + chmod g-w /var/www/peertube
      2022-07-10 00:21:07,346: DEBUG - + chown -R root:root /var/www/peertube
      2022-07-10 00:21:07,353: DEBUG - + ynh_system_user_exists peertube
      2022-07-10 00:21:07,385: DEBUG - + getent passwd peertube
      2022-07-10 00:21:07,393: DEBUG - + chown peertube:peertube /var/www/peertube
      2022-07-10 00:21:07,401: DEBUG - + echo /var/www/peertube
      2022-07-10 00:21:07,402: DEBUG - + grep -q ‘^/etc/cron’
      2022-07-10 00:21:07,407: DEBUG - + true
      2022-07-10 00:21:07,407: DEBUG - + ‘[’ tar.xz = zip ‘]’
      2022-07-10 00:21:07,408: DEBUG - + local strip=
      2022-07-10 00:21:07,408: DEBUG - + ‘[’ true ‘!=’ false ‘]’
      2022-07-10 00:21:07,409: DEBUG - + ‘[’ true == true ‘]’
      2022-07-10 00:21:07,409: DEBUG - + local sub_dirs=1
      2022-07-10 00:21:07,410: DEBUG - + strip=’–strip-components 1’
      2022-07-10 00:21:07,410: DEBUG - + [[ tar.xz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
      2022-07-10 00:21:07,410: DEBUG - + tar --extract --file=/var/cache/yunohost/download/peertube/app.tar.xz --directory=/var/www/peertube --strip-components 1
      2022-07-10 00:22:16,984: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/peertube/app.tar.xz
      2022-07-10 00:22:17,057: DEBUG - + ‘[’ -d /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/sources/patches/ ‘]’
      2022-07-10 00:22:17,058: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/sources/extra_files/app
      2022-07-10 00:22:17,058: DEBUG - + ‘[’ -n ‘’ ‘]’
      2022-07-10 00:22:17,059: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
      2022-07-10 00:22:17,063: DEBUG - + chmod 750 /var/www/peertube
      2022-07-10 00:22:17,067: DEBUG - + chmod -R o-rwx /var/www/peertube
      2022-07-10 00:22:17,236: DEBUG - + chown -R peertube:www-data /var/www/peertube
      2022-07-10 00:22:17,597: INFO - [######+…] > Configuring NGINX web server…
      2022-07-10 00:22:17,600: DEBUG - + ynh_add_nginx_config
      2022-07-10 00:22:17,600: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:17,600: DEBUG - + ‘[’ / ‘!=’ / ‘]’
      2022-07-10 00:22:17,601: DEBUG - + ynh_replace_string ‘–match_string=^#root_path_only’ --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/nginx.conf
      2022-07-10 00:22:17,835: DEBUG - + sed --in-place ‘s@^#root_path_only@@g’ /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/nginx.conf
      2022-07-10 00:22:17,842: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/nginx.conf --destination=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:17,951: DEBUG - + ‘[’ -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf//var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/nginx.conf ‘]’
      2022-07-10 00:22:17,951: DEBUG - + ‘[’ -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/nginx.conf ‘]’
      2022-07-10 00:22:17,951: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/nginx.conf
      2022-07-10 00:22:17,952: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:17,983: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf
      2022-07-10 00:22:17,984: DEBUG - ++ ynh_app_setting_get --app=peertube --key=checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf
      2022-07-10 00:22:17,985: DEBUG - ++ local globalapp=peertube
      2022-07-10 00:22:18,088: DEBUG - ++ app=peertube
      2022-07-10 00:22:18,089: DEBUG - ++ [[ checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:22:18,089: DEBUG - ++ ynh_app_setting get peertube checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf
      2022-07-10 00:22:18,259: DEBUG - + local checksum_value=
      2022-07-10 00:22:18,259: DEBUG - + backup_file_checksum=
      2022-07-10 00:22:18,260: DEBUG - + ‘[’ -n ‘’ ‘]’
      2022-07-10 00:22:18,260: DEBUG - + touch /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,262: DEBUG - + chown root:root /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,266: DEBUG - + chmod 640 /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,269: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/nginx.conf /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,274: DEBUG - + ynh_apply_default_permissions /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,275: DEBUG - + local target=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,277: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
      2022-07-10 00:22:18,278: DEBUG - ++ tr -d '>= ’
      2022-07-10 00:22:18,289: DEBUG - + local ynh_requirement=4.3.0
      2022-07-10 00:22:18,289: DEBUG - + ‘[’ -z 4.3.0 ‘]’
      2022-07-10 00:22:18,290: DEBUG - + ‘[’ 4.3.0 == null ‘]’
      2022-07-10 00:22:18,290: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
      2022-07-10 00:22:18,296: DEBUG - + chmod o-rwx /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,299: DEBUG - + chmod g-w /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,302: DEBUG - + chown -R root:root /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,306: DEBUG - + ynh_system_user_exists peertube
      2022-07-10 00:22:18,338: DEBUG - + getent passwd peertube
      2022-07-10 00:22:18,341: DEBUG - + chown peertube:peertube /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,346: DEBUG - + echo /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,347: DEBUG - + grep -q ‘^/etc/cron’
      2022-07-10 00:22:18,353: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,389: DEBUG - + test -n /
      2022-07-10 00:22:18,389: DEBUG - + local path_url_slash_less=
      2022-07-10 00:22:18,390: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/ --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:18,593: DEBUG - + sed --in-place s@PATH/@/@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:19,868: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/ --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:20,182: DEBUG - + sed --in-place s@PATH@/@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:20,190: DEBUG - + test -n peertube
      2022-07-10 00:22:20,191: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=peertube --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:20,500: DEBUG - + sed --in-place s@NAME@peertube@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:20,508: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=peertube --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:20,814: DEBUG - + sed --in-place s@NAMETOCHANGE@peertube@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:20,952: DEBUG - + ynh_replace_string --match_string=USER --replace_string=peertube --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:21,294: DEBUG - + sed --in-place s@USER@peertube@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:21,302: DEBUG - + test -n /var/www/peertube
      2022-07-10 00:22:21,303: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/peertube --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:21,631: DEBUG - + sed --in-place s@FINALPATH@/var/www/peertube@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:21,639: DEBUG - + test -n 7.3
      2022-07-10 00:22:21,640: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.3 --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:21,930: DEBUG - + sed --in-place s@PHPVERSION@7.3@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:21,935: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
      2022-07-10 00:22:21,935: DEBUG - + ynh_replace_string --match_string=YNH_NODE_LOAD_PATH --replace_string=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:22,144: DEBUG - + sed --in-place s@YNH_NODE_LOAD_PATH@PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:22,149: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9
      ]?[A-Z0-9]?’ $file | sort --unique | sed "s@([^.]*)@\L\1@g"))
      2022-07-10 00:22:22,153: DEBUG - ++ grep -oP '
      [A-Z0-9]+?[A-Z0-9
      ]?[A-Z0-9]?’ /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:22,154: DEBUG - ++ sort --unique
      2022-07-10 00:22:22,154: DEBUG - ++ sed 's@
      ([^.]*)__@\L\1@g’
      2022-07-10 00:22:22,163: DEBUG - + local delimit=@
      2022-07-10 00:22:22,164: DEBUG - + for one_var in “${uniques_vars[@]}”
      2022-07-10 00:22:22,164: DEBUG - + [[ -v datadir ]]
      2022-07-10 00:22:22,165: DEBUG - + match_string=DATADIR
      2022-07-10 00:22:22,165: DEBUG - + match_string=DATADIR
      2022-07-10 00:22:22,166: DEBUG - + replace_string=/home/yunohost.app/peertube/storage
      2022-07-10 00:22:22,166: DEBUG - + replace_string=/home/yunohost.app/peertube/storage
      2022-07-10 00:22:22,166: DEBUG - + replace_string=/home/yunohost.app/peertube/storage
      2022-07-10 00:22:22,167: DEBUG - + sed --in-place s@DATADIR@/home/yunohost.app/peertube/storage@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:22,169: DEBUG - + for one_var in “${uniques_vars[@]}”
      2022-07-10 00:22:22,169: DEBUG - + [[ -v port ]]
      2022-07-10 00:22:22,170: DEBUG - + match_string=PORT
      2022-07-10 00:22:22,170: DEBUG - + match_string=PORT
      2022-07-10 00:22:22,171: DEBUG - + replace_string=8095
      2022-07-10 00:22:22,171: DEBUG - + replace_string=8095
      2022-07-10 00:22:22,171: DEBUG - + replace_string=8095
      2022-07-10 00:22:22,172: DEBUG - + sed --in-place s@PORT@8095@g /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:22,574: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:22,580: DEBUG - + update_only=0
      2022-07-10 00:22:22,673: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf
      2022-07-10 00:22:22,676: DEBUG - ++ md5sum /etc/nginx/conf.d/peertube.maindomain.tld.d/peertube.conf
      2022-07-10 00:22:22,677: DEBUG - ++ cut '–delimiter= ’ --fields=1
      2022-07-10 00:22:22,684: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf --value=5b69a65ba2e4c221e7b37739ab503795
      2022-07-10 00:22:22,685: DEBUG - + local globalapp=peertube
      2022-07-10 00:22:22,892: DEBUG - + app=peertube
      2022-07-10 00:22:22,893: DEBUG - + [[ checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:22:22,894: DEBUG - + ynh_app_setting set peertube checksum__etc_nginx_conf.d_peertube.maindomain.tld.d_peertube.conf 5b69a65ba2e4c221e7b37739ab503795
      2022-07-10 00:22:25,817: DEBUG - + ‘[’ -n ‘’ ‘]’
      2022-07-10 00:22:25,817: DEBUG - + unset backup_file_checksum
      2022-07-10 00:22:25,818: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
      2022-07-10 00:22:26,107: DEBUG - + service_name=nginx
      2022-07-10 00:22:26,107: DEBUG - + action=reload
      2022-07-10 00:22:26,108: DEBUG - + line_match=
      2022-07-10 00:22:26,108: DEBUG - + length=20
      2022-07-10 00:22:26,109: DEBUG - + log_path=/var/log/nginx/nginx.log
      2022-07-10 00:22:26,109: DEBUG - + timeout=300
      2022-07-10 00:22:26,110: DEBUG - + ‘[’ reload == stop ‘]’
      2022-07-10 00:22:26,111: DEBUG - + ‘[’ reload == reload ‘]’
      2022-07-10 00:22:26,111: DEBUG - + action=reload-or-restart
      2022-07-10 00:22:26,112: DEBUG - + systemctl reload-or-restart nginx
      2022-07-10 00:22:27,136: INFO - [#######+…] > Creating a data directory…
      2022-07-10 00:22:27,139: DEBUG - + ynh_app_setting_set --app=peertube --key=datadir --value=/home/yunohost.app/peertube/storage
      2022-07-10 00:22:27,140: DEBUG - + local globalapp=peertube
      2022-07-10 00:22:27,357: DEBUG - + app=peertube
      2022-07-10 00:22:27,358: DEBUG - + [[ datadir =~ (unprotected|protected|skipped)
      ]]
      2022-07-10 00:22:27,358: DEBUG - + ynh_app_setting set peertube datadir /home/yunohost.app/peertube/storage
      2022-07-10 00:22:27,504: DEBUG - + mkdir -p /home/yunohost.app/peertube/storage
      2022-07-10 00:22:27,510: DEBUG - + chmod 750 /home/yunohost.app/peertube/storage
      2022-07-10 00:22:27,513: DEBUG - + chmod -R o-rwx /home/yunohost.app/peertube/storage
      2022-07-10 00:22:28,516: DEBUG - + chown -R peertube:www-data /home/yunohost.app/peertube/storage
      2022-07-10 00:22:28,987: INFO - [########…] > Building Yarn dependencies…
      2022-07-10 00:22:28,990: DEBUG - + pushd /var/www/peertube
      2022-07-10 00:22:28,990: DEBUG - /var/www/peertube /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/scripts

2022-07-10 00:22:28,990: DEBUG - + ynh_use_nodejs
2022-07-10 00:22:28,991: DEBUG - ++ ynh_app_setting_get --app=peertube --key=nodejs_version
2022-07-10 00:22:28,992: DEBUG - ++ local globalapp=peertube
2022-07-10 00:22:29,091: DEBUG - ++ app=peertube
2022-07-10 00:22:29,092: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)
]]
2022-07-10 00:22:29,092: DEBUG - ++ ynh_app_setting get peertube nodejs_version
2022-07-10 00:22:29,224: DEBUG - + nodejs_version=16
2022-07-10 00:22:29,225: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/16/bin
2022-07-10 00:22:29,225: DEBUG - + shopt -s expand_aliases
2022-07-10 00:22:29,226: DEBUG - + ynh_node=/opt/node_n/n/versions/node/16/bin/node
2022-07-10 00:22:29,226: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/16/bin/node
2022-07-10 00:22:29,226: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/16/bin/npm
2022-07-10 00:22:29,227: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/16/bin/npm
2022-07-10 00:22:29,227: DEBUG - + [[ :/opt/node_n/n/versions/node/16/bin:/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/\1\6/\b\i\n ]]
2022-07-10 00:22:29,227: DEBUG - + node_PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2022-07-10 00:22:29,228: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2022-07-10 00:22:29,228: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2022-07-10 00:22:29,229: DEBUG - + ynh_exec_warn_less ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn install --production --pure-lockfile
2022-07-10 00:22:29,229: DEBUG - + [[ 8 -eq 1 ]]
2022-07-10 00:22:29,229: DEBUG - + ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn install --production --pure-lockfile
2022-07-10 00:22:29,230: DEBUG - + local user=peertube
2022-07-10 00:22:29,230: DEBUG - + shift 1
2022-07-10 00:22:29,230: DEBUG - ++ whoami
2022-07-10 00:22:29,234: DEBUG - + [[ peertube = root ]]
2022-07-10 00:22:29,234: DEBUG - + sudo -u peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn install --production --pure-lockfile
2022-07-10 00:22:30,014: DEBUG - yarn install v1.22.19
2022-07-10 00:22:30,439: DEBUG - [1/5] Validating package.json…
2022-07-10 00:22:30,456: DEBUG - [2/5] Resolving packages…
2022-07-10 00:22:31,241: DEBUG - warning Resolution field “jpeg-js@0.4.4” is incompatible with requested version “jpeg-js@0.4.2”
2022-07-10 00:22:32,127: DEBUG - [3/5] Fetching packages…
2022-07-10 00:23:50,429: DEBUG - [4/5] Linking dependencies…
2022-07-10 00:23:50,435: DEBUG - warning " > @aws-sdk/lib-storage@3.72.0" has unmet peer dependency “@aws-sdk/abort-controller@^3.0.0”.
2022-07-10 00:23:50,454: DEBUG - warning " > @typescript-eslint/eslint-plugin@5.19.0" has unmet peer dependency “@typescript-eslint/parser@^5.0.0”.
2022-07-10 00:23:50,458: DEBUG - warning " > eslint-config-standard-with-typescript@21.0.1" has incorrect peer dependency “@typescript-eslint/eslint-plugin@^4.0.1”.
2022-07-10 00:23:50,459: DEBUG - warning " > eslint-config-standard-with-typescript@21.0.1" has incorrect peer dependency “eslint@^7.12.1”.
2022-07-10 00:23:50,460: DEBUG - warning " > eslint-config-standard-with-typescript@21.0.1" has incorrect peer dependency “eslint-plugin-promise@^4.2.1 || ^5.0.0”.
2022-07-10 00:23:50,461: DEBUG - warning “eslint-config-standard-with-typescript > @typescript-eslint/parser@4.33.0” has incorrect peer dependency “eslint@^5.0.0 || ^6.0.0 || ^7.0.0”.
2022-07-10 00:23:50,462: DEBUG - warning “eslint-config-standard-with-typescript > eslint-config-standard@16.0.3” has incorrect peer dependency “eslint@^7.12.1”.
2022-07-10 00:23:50,463: DEBUG - warning “eslint-config-standard-with-typescript > eslint-config-standard@16.0.3” has incorrect peer dependency “eslint-plugin-promise@^4.2.1 || ^5.0.0”.
2022-07-10 00:23:50,466: DEBUG - warning “swagger-cli > @apidevtools/swagger-cli > @apidevtools/swagger-parser@10.0.3” has unmet peer dependency “openapi-types@>=7”.
2022-07-10 00:23:50,584: DEBUG - warning Workspaces can only be enabled in private projects.
2022-07-10 00:24:39,116: DEBUG - [5/5] Building fresh packages…
2022-07-10 00:24:56,736: DEBUG - $ test -n “$NOCLIENT” || (cd client && yarn install --pure-lockfile)
2022-07-10 00:24:57,502: DEBUG - yarn install v1.22.19
2022-07-10 00:24:57,903: DEBUG - [1/4] Resolving packages…
2022-07-10 00:24:59,962: DEBUG - [2/4] Fetching packages…
2022-07-10 00:25:44,730: DEBUG - info There appears to be trouble with your network connection. Retrying…
2022-07-10 00:26:17,852: DEBUG - info There appears to be trouble with your network connection. Retrying…
2022-07-10 00:26:51,430: DEBUG - info There appears to be trouble with your network connection. Retrying…
2022-07-10 00:27:24,754: DEBUG - info There appears to be trouble with your network connection. Retrying…
2022-07-10 00:28:46,325: DEBUG - [3/4] Linking dependencies…
2022-07-10 00:28:46,385: DEBUG - warning " > bootstrap@4.6.1" has unmet peer dependency “jquery@1.9.1 - 3”.
2022-07-10 00:28:46,385: DEBUG - warning " > bootstrap@4.6.1" has unmet peer dependency “popper.js@^1.16.1”.
2022-07-10 00:28:46,515: DEBUG - warning " > primeng@13.3.0" has unmet peer dependency “primeicons@^5.0.0”.
2022-07-10 00:28:46,515: DEBUG - warning " > wdio-chromedriver-service@7.3.2" has unmet peer dependency “webdriverio@^7.0.0”.
2022-07-10 00:28:47,173: DEBUG - [4/4] Building fresh packages…
2022-07-10 00:28:47,297: DEBUG - Done in 229.81s.
2022-07-10 00:28:47,341: DEBUG - Done in 377.34s.
2022-07-10 00:28:47,376: DEBUG - + ynh_exec_warn_less ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn cache clean
2022-07-10 00:28:47,377: DEBUG - + [[ 7 -eq 1 ]]
2022-07-10 00:28:47,378: DEBUG - + ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn cache clean
2022-07-10 00:28:47,379: DEBUG - + local user=peertube
2022-07-10 00:28:47,379: DEBUG - + shift 1
2022-07-10 00:28:47,380: DEBUG - ++ whoami
2022-07-10 00:28:47,401: DEBUG - + [[ peertube = root ]]
2022-07-10 00:28:47,401: DEBUG - + sudo -u peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn cache clean
2022-07-10 00:28:48,365: DEBUG - yarn cache v1.22.19
2022-07-10 00:30:14,104: DEBUG - success Cleared cache.
2022-07-10 00:30:14,108: DEBUG - Done in 85.76s.
2022-07-10 00:30:14,152: DEBUG - + popd
2022-07-10 00:30:14,152: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/scripts
2022-07-10 00:30:14,340: INFO - [########+…] > Adding a configuration file…
2022-07-10 00:30:14,343: DEBUG - + ynh_add_config --template=…/conf/production.yaml --destination=/var/www/peertube/config/production.yaml
2022-07-10 00:30:14,453: DEBUG - + ‘[’ -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/…/conf/production.yaml ‘]’
2022-07-10 00:30:14,458: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/…/conf/production.yaml
2022-07-10 00:30:14,459: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:14,494: DEBUG - + local checksum_setting_name=checksum__var_www_peertube_config_production.yaml
2022-07-10 00:30:14,496: DEBUG - ++ ynh_app_setting_get --app=peertube --key=checksum__var_www_peertube_config_production.yaml
2022-07-10 00:30:14,497: DEBUG - ++ local globalapp=peertube
2022-07-10 00:30:14,641: DEBUG - ++ app=peertube
2022-07-10 00:30:14,642: DEBUG - ++ [[ checksum__var_www_peertube_config_production.yaml =~ (unprotected|protected|skipped)
]]
2022-07-10 00:30:14,643: DEBUG - ++ ynh_app_setting get peertube checksum__var_www_peertube_config_production.yaml
2022-07-10 00:30:14,873: DEBUG - + local checksum_value=
2022-07-10 00:30:14,874: DEBUG - + backup_file_checksum=
2022-07-10 00:30:14,875: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:30:14,875: DEBUG - + touch /var/www/peertube/config/production.yaml
2022-07-10 00:30:14,884: DEBUG - + chown root:root /var/www/peertube/config/production.yaml
2022-07-10 00:30:14,890: DEBUG - + chmod 640 /var/www/peertube/config/production.yaml
2022-07-10 00:30:14,896: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/…/conf/production.yaml /var/www/peertube/config/production.yaml
2022-07-10 00:30:14,902: DEBUG - + ynh_apply_default_permissions /var/www/peertube/config/production.yaml
2022-07-10 00:30:14,903: DEBUG - + local target=/var/www/peertube/config/production.yaml
2022-07-10 00:30:14,906: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
2022-07-10 00:30:14,907: DEBUG - ++ tr -d '>= ’
2022-07-10 00:30:15,000: DEBUG - + local ynh_requirement=4.3.0
2022-07-10 00:30:15,400: DEBUG - + ‘[’ -z 4.3.0 ‘]’
2022-07-10 00:30:15,403: DEBUG - + ‘[’ 4.3.0 == null ‘]’
2022-07-10 00:30:15,406: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
2022-07-10 00:30:15,407: DEBUG - + chmod o-rwx /var/www/peertube/config/production.yaml
2022-07-10 00:30:15,411: DEBUG - + chmod g-w /var/www/peertube/config/production.yaml
2022-07-10 00:30:15,416: DEBUG - + chown -R root:root /var/www/peertube/config/production.yaml
2022-07-10 00:30:15,423: DEBUG - + ynh_system_user_exists peertube
2022-07-10 00:30:15,489: DEBUG - + getent passwd peertube
2022-07-10 00:30:15,503: DEBUG - + chown peertube:peertube /var/www/peertube/config/production.yaml
2022-07-10 00:30:15,512: DEBUG - + echo /var/www/peertube/config/production.yaml
2022-07-10 00:30:15,513: DEBUG - + grep -q ‘^/etc/cron’
2022-07-10 00:30:15,528: DEBUG - + ynh_replace_vars --file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:15,565: DEBUG - + test -n /
2022-07-10 00:30:15,565: DEBUG - + local path_url_slash_less=
2022-07-10 00:30:15,566: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/ --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:15,799: DEBUG - + sed --in-place s@PATH/@/@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:15,807: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/ --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:16,046: DEBUG - + sed --in-place s@PATH@/@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:16,052: DEBUG - + test -n peertube
2022-07-10 00:30:16,052: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=peertube --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:16,287: DEBUG - + sed --in-place s@NAME@peertube@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:16,293: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=peertube --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:16,553: DEBUG - + sed --in-place s@NAMETOCHANGE@peertube@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:16,560: DEBUG - + ynh_replace_string --match_string=USER --replace_string=peertube --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:16,807: DEBUG - + sed --in-place s@USER@peertube@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:16,814: DEBUG - + test -n /var/www/peertube
2022-07-10 00:30:16,815: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/peertube --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:17,047: DEBUG - + sed --in-place s@FINALPATH@/var/www/peertube@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,055: DEBUG - + test -n 7.3
2022-07-10 00:30:17,056: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.3 --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:17,280: DEBUG - + sed --in-place s@PHPVERSION@7.3@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,286: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2022-07-10 00:30:17,287: DEBUG - + ynh_replace_string --match_string=YNH_NODE_LOAD_PATH --replace_string=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:17,501: DEBUG - + sed --in-place s@YNH_NODE_LOAD_PATH@PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,507: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9
]?[A-Z0-9]?’ $file | sort --unique | sed "s@([^.])@\L\1@g"))
2022-07-10 00:30:17,510: DEBUG - ++ grep -oP '
[A-Z0-9]+?[A-Z0-9_]
?[A-Z0-9]?’ /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,512: DEBUG - ++ sed 's@
([^.]
)@\L\1@g’
2022-07-10 00:30:17,512: DEBUG - ++ sort --unique
2022-07-10 00:30:17,524: DEBUG - + local delimit=@
2022-07-10 00:30:17,525: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,525: DEBUG - + [[ -v admin_mail ]]
2022-07-10 00:30:17,526: DEBUG - + match_string=ADMIN_MAIL
2022-07-10 00:30:17,526: DEBUG - + match_string=ADMIN_MAIL
2022-07-10 00:30:17,526: DEBUG - + replace_string=kryztovru@maindomain.tld
2022-07-10 00:30:17,527: DEBUG - + replace_string=kryztovru@maindomain.tld
2022-07-10 00:30:17,527: DEBUG - + replace_string=‘kryztovru@maindomain.tld’
2022-07-10 00:30:17,527: DEBUG - + sed --in-place ‘s@ADMIN_MAIL@kryztovru@maindomain.tld@g’ /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,530: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,531: DEBUG - + [[ -v app ]]
2022-07-10 00:30:17,532: DEBUG - + match_string=APP
2022-07-10 00:30:17,532: DEBUG - + match_string=APP
2022-07-10 00:30:17,532: DEBUG - + replace_string=peertube
2022-07-10 00:30:17,533: DEBUG - + replace_string=peertube
2022-07-10 00:30:17,533: DEBUG - + replace_string=peertube
2022-07-10 00:30:17,533: DEBUG - + sed --in-place s@APP@peertube@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,536: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,537: DEBUG - + [[ -v datadir ]]
2022-07-10 00:30:17,537: DEBUG - + match_string=DATADIR
2022-07-10 00:30:17,538: DEBUG - + match_string=DATADIR
2022-07-10 00:30:17,538: DEBUG - + replace_string=/home/yunohost.app/peertube/storage
2022-07-10 00:30:17,538: DEBUG - + replace_string=/home/yunohost.app/peertube/storage
2022-07-10 00:30:17,539: DEBUG - + replace_string=/home/yunohost.app/peertube/storage
2022-07-10 00:30:17,539: DEBUG - + sed --in-place s@DATADIR@/home/yunohost.app/peertube/storage@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,543: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,544: DEBUG - + [[ -v db_pwd ]]
2022-07-10 00:30:17,544: DEBUG - + match_string=DB_PWD
2022-07-10 00:30:17,545: DEBUG - + match_string=DB_PWD
2022-07-10 00:30:17,545: DEBUG - + replace_string=**********
2022-07-10 00:30:17,545: DEBUG - + replace_string=**********
2022-07-10 00:30:17,546: DEBUG - + replace_string=**********
2022-07-10 00:30:17,546: DEBUG - + sed --in-place s@DB_PWD@**********@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,550: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,550: DEBUG - + [[ -v db_user ]]
2022-07-10 00:30:17,551: DEBUG - + match_string=DB_USER
2022-07-10 00:30:17,551: DEBUG - + match_string=DB_USER
2022-07-10 00:30:17,551: DEBUG - + replace_string=peertube
2022-07-10 00:30:17,552: DEBUG - + replace_string=peertube
2022-07-10 00:30:17,552: DEBUG - + replace_string=peertube
2022-07-10 00:30:17,552: DEBUG - + sed --in-place s@DB_USER@peertube@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,556: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,556: DEBUG - + [[ -v domain ]]
2022-07-10 00:30:17,557: DEBUG - + match_string=DOMAIN
2022-07-10 00:30:17,557: DEBUG - + match_string=DOMAIN
2022-07-10 00:30:17,558: DEBUG - + replace_string=peertube.maindomain.tld
2022-07-10 00:30:17,558: DEBUG - + replace_string=peertube.maindomain.tld
2022-07-10 00:30:17,558: DEBUG - + replace_string=peertube.maindomain.tld
2022-07-10 00:30:17,559: DEBUG - + sed --in-place s@DOMAIN@peertube.maindomain.tld@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,562: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,563: DEBUG - + [[ -v port ]]
2022-07-10 00:30:17,563: DEBUG - + match_string=PORT
2022-07-10 00:30:17,564: DEBUG - + match_string=PORT
2022-07-10 00:30:17,564: DEBUG - + replace_string=8095
2022-07-10 00:30:17,564: DEBUG - + replace_string=8095
2022-07-10 00:30:17,565: DEBUG - + replace_string=8095
2022-07-10 00:30:17,565: DEBUG - + sed --in-place s@PORT@8095@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,569: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:17,570: DEBUG - + [[ -v redis_db ]]
2022-07-10 00:30:17,571: DEBUG - + match_string=REDIS_DB
2022-07-10 00:30:17,571: DEBUG - + match_string=REDIS_DB
2022-07-10 00:30:17,571: DEBUG - + replace_string=0
2022-07-10 00:30:17,572: DEBUG - + replace_string=0
2022-07-10 00:30:17,572: DEBUG - + replace_string=0
2022-07-10 00:30:17,572: DEBUG - + sed --in-place s@REDIS_DB@0@g /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,576: DEBUG - + ynh_store_file_checksum --file=/var/www/peertube/config/production.yaml
2022-07-10 00:30:17,580: DEBUG - + update_only=0
2022-07-10 00:30:17,631: DEBUG - + local checksum_setting_name=checksum__var_www_peertube_config_production.yaml
2022-07-10 00:30:17,635: DEBUG - ++ md5sum /var/www/peertube/config/production.yaml
2022-07-10 00:30:17,636: DEBUG - ++ cut '–delimiter= ’ --fields=1
2022-07-10 00:30:17,648: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__var_www_peertube_config_production.yaml --value=0b060d69102a98d43b649799dc9e6c5c
2022-07-10 00:30:17,649: DEBUG - + local globalapp=peertube
2022-07-10 00:30:17,944: DEBUG - + app=peertube
2022-07-10 00:30:17,945: DEBUG - + [[ checksum__var_www_peertube_config_production.yaml =~ (unprotected|protected|skipped)
]]
2022-07-10 00:30:17,947: DEBUG - + ynh_app_setting set peertube checksum__var_www_peertube_config_production.yaml 0b060d69102a98d43b649799dc9e6c5c
2022-07-10 00:30:18,118: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:30:18,119: DEBUG - + unset backup_file_checksum
2022-07-10 00:30:18,120: DEBUG - + chmod 400 /var/www/peertube/config/production.yaml
2022-07-10 00:30:18,123: DEBUG - + chown peertube:peertube /var/www/peertube/config/production.yaml
2022-07-10 00:30:18,128: DEBUG - + ynh_add_config --template=…/conf/local-production.json --destination=/var/www/peertube/config/local-production.json
2022-07-10 00:30:18,241: DEBUG - + ‘[’ -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/…/conf/local-production.json ‘]’
2022-07-10 00:30:18,241: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/…/conf/local-production.json
2022-07-10 00:30:18,242: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:18,280: DEBUG - + local checksum_setting_name=checksum__var_www_peertube_config_local-production.json
2022-07-10 00:30:18,283: DEBUG - ++ ynh_app_setting_get --app=peertube --key=checksum__var_www_peertube_config_local-production.json
2022-07-10 00:30:18,284: DEBUG - ++ local globalapp=peertube
2022-07-10 00:30:18,387: DEBUG - ++ app=peertube
2022-07-10 00:30:18,387: DEBUG - ++ [[ checksum__var_www_peertube_config_local-production.json =~ (unprotected|protected|skipped)
]]
2022-07-10 00:30:18,388: DEBUG - ++ ynh_app_setting get peertube checksum__var_www_peertube_config_local-production.json
2022-07-10 00:30:18,518: DEBUG - + local checksum_value=
2022-07-10 00:30:18,519: DEBUG - + backup_file_checksum=
2022-07-10 00:30:18,519: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:30:18,519: DEBUG - + touch /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,521: DEBUG - + chown root:root /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,525: DEBUG - + chmod 640 /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,528: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/…/conf/local-production.json /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,534: DEBUG - + _ynh_apply_default_permissions /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,535: DEBUG - + local target=/var/www/peertube/config/local-production.json
2022-07-10 00:30:18,537: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
2022-07-10 00:30:18,538: DEBUG - ++ tr -d '>= ’
2022-07-10 00:30:18,548: DEBUG - + local ynh_requirement=4.3.0
2022-07-10 00:30:18,549: DEBUG - + ‘[’ -z 4.3.0 ‘]’
2022-07-10 00:30:18,549: DEBUG - + ‘[’ 4.3.0 == null ‘]’
2022-07-10 00:30:18,550: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
2022-07-10 00:30:18,555: DEBUG - + chmod o-rwx /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,559: DEBUG - + chmod g-w /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,562: DEBUG - + chown -R root:root /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,565: DEBUG - + ynh_system_user_exists peertube
2022-07-10 00:30:18,598: DEBUG - + getent passwd peertube
2022-07-10 00:30:18,602: DEBUG - + chown peertube:peertube /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,606: DEBUG - + echo /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,607: DEBUG - + grep -q ‘^/etc/cron’
2022-07-10 00:30:18,612: DEBUG - + ynh_replace_vars --file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:18,644: DEBUG - + test -n /
2022-07-10 00:30:18,645: DEBUG - + local path_url_slash_less=
2022-07-10 00:30:18,646: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/ --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:18,851: DEBUG - + sed --in-place s@PATH/@/@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:18,857: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/ --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:19,076: DEBUG - + sed --in-place s@PATH@/@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:19,080: DEBUG - + test -n peertube
2022-07-10 00:30:19,081: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=peertube --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:19,290: DEBUG - + sed --in-place s@NAME@peertube@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:20,659: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=peertube --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:21,007: DEBUG - + sed --in-place s@NAMETOCHANGE@peertube@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:21,015: DEBUG - + ynh_replace_string --match_string=USER --replace_string=peertube --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:21,344: DEBUG - + sed --in-place s@USER@peertube@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:21,352: DEBUG - + test -n /var/www/peertube
2022-07-10 00:30:21,353: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/peertube --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:21,677: DEBUG - + sed --in-place s@FINALPATH@/var/www/peertube@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:21,687: DEBUG - + test -n 7.3
2022-07-10 00:30:21,688: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.3 --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:22,007: DEBUG - + sed --in-place s@PHPVERSION@7.3@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:22,014: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2022-07-10 00:30:22,015: DEBUG - + ynh_replace_string --match_string=YNH_NODE_LOAD_PATH --replace_string=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:22,337: DEBUG - + sed --in-place s@YNH_NODE_LOAD_PATH@PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /var/www/peertube/config/local-production.json
2022-07-10 00:30:22,345: DEBUG - + uniques_vars=($(grep -oP '
[A-Z0-9]+?[A-Z0-9_]?[A-Z0-9]?’ $file | sort --unique | sed "s@([^.])@\L\1@g"))
2022-07-10 00:30:22,351: DEBUG - ++ grep -oP '
[A-Z0-9]+?[A-Z0-9_]
?[A-Z0-9]?’ /var/www/peertube/config/local-production.json
2022-07-10 00:30:22,352: DEBUG - ++ sort --unique
2022-07-10 00:30:22,354: DEBUG - ++ sed 's@
([^.]
)@\L\1@g’
2022-07-10 00:30:22,367: DEBUG - + local delimit=@
2022-07-10 00:30:22,367: DEBUG - + ynh_store_file_checksum --file=/var/www/peertube/config/local-production.json
2022-07-10 00:30:22,370: DEBUG - + update_only=0
2022-07-10 00:30:22,425: DEBUG - + local checksum_setting_name=checksum__var_www_peertube_config_local-production.json
2022-07-10 00:30:22,428: DEBUG - ++ md5sum /var/www/peertube/config/local-production.json
2022-07-10 00:30:22,429: DEBUG - ++ cut '–delimiter= ’ --fields=1
2022-07-10 00:30:22,436: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__var_www_peertube_config_local-production.json --value=5b76b0eef9af8a2300673e0553f609f9
2022-07-10 00:30:22,436: DEBUG - + local globalapp=peertube
2022-07-10 00:30:22,646: DEBUG - + app=peertube
2022-07-10 00:30:22,646: DEBUG - + [[ checksum__var_www_peertube_config_local-production.json =~ (unprotected|protected|skipped)
]]
2022-07-10 00:30:22,647: DEBUG - + ynh_app_setting set peertube checksum__var_www_peertube_config_local-production.json 5b76b0eef9af8a2300673e0553f609f9
2022-07-10 00:30:22,782: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:30:22,782: DEBUG - + unset backup_file_checksum
2022-07-10 00:30:22,783: DEBUG - + chmod 600 /var/www/peertube/config/local-production.json
2022-07-10 00:30:22,785: DEBUG - + chown peertube:peertube /var/www/peertube/config/local-production.json
2022-07-10 00:30:22,936: INFO - [#########+…] > Configuring a systemd service…
2022-07-10 00:30:22,938: DEBUG - + ynh_add_systemd_config
2022-07-10 00:30:22,941: DEBUG - + service=peertube
2022-07-10 00:30:22,942: DEBUG - + template=systemd.service
2022-07-10 00:30:22,942: DEBUG - + others_var=
2022-07-10 00:30:22,942: DEBUG - + [[ -z ‘’ ]]
2022-07-10 00:30:22,943: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/systemd.service --destination=/etc/systemd/system/peertube.service
2022-07-10 00:30:23,043: DEBUG - + ‘[’ -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf//var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/systemd.service ‘]’
2022-07-10 00:30:23,044: DEBUG - + ‘[’ -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/systemd.service ‘]’
2022-07-10 00:30:23,044: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/systemd.service
2022-07-10 00:30:23,044: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/peertube.service
2022-07-10 00:30:23,074: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_peertube.service
2022-07-10 00:30:23,076: DEBUG - ++ ynh_app_setting_get --app=peertube --key=checksum__etc_systemd_system_peertube.service
2022-07-10 00:30:23,077: DEBUG - ++ local globalapp=peertube
2022-07-10 00:30:23,222: DEBUG - ++ app=peertube
2022-07-10 00:30:23,223: DEBUG - ++ [[ checksum__etc_systemd_system_peertube.service =~ (unprotected|protected|skipped)
]]
2022-07-10 00:30:23,224: DEBUG - ++ ynh_app_setting get peertube checksum__etc_systemd_system_peertube.service
2022-07-10 00:30:23,380: DEBUG - + local checksum_value=
2022-07-10 00:30:23,381: DEBUG - + backup_file_checksum=
2022-07-10 00:30:23,381: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:30:23,382: DEBUG - + touch /etc/systemd/system/peertube.service
2022-07-10 00:30:23,385: DEBUG - + chown root:root /etc/systemd/system/peertube.service
2022-07-10 00:30:23,389: DEBUG - + chmod 640 /etc/systemd/system/peertube.service
2022-07-10 00:30:23,392: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/conf/systemd.service /etc/systemd/system/peertube.service
2022-07-10 00:30:23,397: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/peertube.service
2022-07-10 00:30:23,398: DEBUG - + local target=/etc/systemd/system/peertube.service
2022-07-10 00:30:23,401: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/manifest.json
2022-07-10 00:30:23,402: DEBUG - ++ tr -d '>= ’
2022-07-10 00:30:23,413: DEBUG - + local ynh_requirement=4.3.0
2022-07-10 00:30:23,414: DEBUG - + ‘[’ -z 4.3.0 ‘]’
2022-07-10 00:30:23,414: DEBUG - + ‘[’ 4.3.0 == null ‘]’
2022-07-10 00:30:23,414: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
2022-07-10 00:30:23,419: DEBUG - + chmod o-rwx /etc/systemd/system/peertube.service
2022-07-10 00:30:23,422: DEBUG - + chmod g-w /etc/systemd/system/peertube.service
2022-07-10 00:30:23,425: DEBUG - + chown -R root:root /etc/systemd/system/peertube.service
2022-07-10 00:30:23,429: DEBUG - + ynh_system_user_exists peertube
2022-07-10 00:30:23,461: DEBUG - + getent passwd peertube
2022-07-10 00:30:23,465: DEBUG - + chown peertube:peertube /etc/systemd/system/peertube.service
2022-07-10 00:30:23,469: DEBUG - + echo /etc/systemd/system/peertube.service
2022-07-10 00:30:23,471: DEBUG - + grep -q ‘^/etc/cron’
2022-07-10 00:30:23,476: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/peertube.service
2022-07-10 00:30:23,512: DEBUG - + test -n /
2022-07-10 00:30:23,513: DEBUG - + local path_url_slash_less=
2022-07-10 00:30:23,513: DEBUG - + ynh_replace_string --match_string=PATH/ --replace_string=/ --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:23,717: DEBUG - + sed --in-place s@PATH/@/@g /etc/systemd/system/peertube.service
2022-07-10 00:30:23,723: DEBUG - + ynh_replace_string --match_string=PATH --replace_string=/ --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:23,934: DEBUG - + sed --in-place s@PATH@/@g /etc/systemd/system/peertube.service
2022-07-10 00:30:23,940: DEBUG - + test -n peertube
2022-07-10 00:30:23,940: DEBUG - + ynh_replace_string --match_string=NAME --replace_string=peertube --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:24,184: DEBUG - + sed --in-place s@NAME@peertube@g /etc/systemd/system/peertube.service
2022-07-10 00:30:24,190: DEBUG - + ynh_replace_string --match_string=NAMETOCHANGE --replace_string=peertube --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:24,419: DEBUG - + sed --in-place s@NAMETOCHANGE@peertube@g /etc/systemd/system/peertube.service
2022-07-10 00:30:24,425: DEBUG - + ynh_replace_string --match_string=USER --replace_string=peertube --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:24,644: DEBUG - + sed --in-place s@USER@peertube@g /etc/systemd/system/peertube.service
2022-07-10 00:30:24,650: DEBUG - + test -n /var/www/peertube
2022-07-10 00:30:24,651: DEBUG - + ynh_replace_string --match_string=FINALPATH --replace_string=/var/www/peertube --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:24,899: DEBUG - + sed --in-place s@FINALPATH@/var/www/peertube@g /etc/systemd/system/peertube.service
2022-07-10 00:30:24,906: DEBUG - + test -n 7.3
2022-07-10 00:30:24,907: DEBUG - + ynh_replace_string --match_string=PHPVERSION --replace_string=7.3 --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:25,202: DEBUG - + sed --in-place s@PHPVERSION@7.3@g /etc/systemd/system/peertube.service
2022-07-10 00:30:25,209: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2022-07-10 00:30:25,210: DEBUG - + ynh_replace_string --match_string=YNH_NODE_LOAD_PATH --replace_string=PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/peertube.service
2022-07-10 00:30:25,508: DEBUG - + sed --in-place s@YNH_NODE_LOAD_PATH@PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/systemd/system/peertube.service
2022-07-10 00:30:25,517: DEBUG - + uniques_vars=($(grep -oP '
[A-Z0-9]+?[A-Z0-9_]?[A-Z0-9]?’ $file | sort --unique | sed "s@([^.])@\L\1@g"))
2022-07-10 00:30:25,522: DEBUG - ++ grep -oP '
[A-Z0-9]+?[A-Z0-9_]
?[A-Z0-9]?’ /etc/systemd/system/peertube.service
2022-07-10 00:30:25,523: DEBUG - ++ sort --unique
2022-07-10 00:30:25,524: DEBUG - ++ sed 's@
([^.]
)__@\L\1@g’
2022-07-10 00:30:25,537: DEBUG - + local delimit=@
2022-07-10 00:30:25,537: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:25,538: DEBUG - + [[ -v app ]]
2022-07-10 00:30:25,539: DEBUG - + match_string=APP
2022-07-10 00:30:25,539: DEBUG - + match_string=APP
2022-07-10 00:30:25,540: DEBUG - + replace_string=peertube
2022-07-10 00:30:25,540: DEBUG - + replace_string=peertube
2022-07-10 00:30:25,541: DEBUG - + replace_string=peertube
2022-07-10 00:30:25,541: DEBUG - + sed --in-place s@APP@peertube@g /etc/systemd/system/peertube.service
2022-07-10 00:30:25,544: DEBUG - + for one_var in “${uniques_vars[@]}”
2022-07-10 00:30:25,545: DEBUG - + [[ -v ynh_node ]]
2022-07-10 00:30:25,546: DEBUG - + match_string=YNH_NODE
2022-07-10 00:30:25,546: DEBUG - + match_string=YNH_NODE
2022-07-10 00:30:25,547: DEBUG - + replace_string=/opt/node_n/n/versions/node/16/bin/node
2022-07-10 00:30:25,547: DEBUG - + replace_string=/opt/node_n/n/versions/node/16/bin/node
2022-07-10 00:30:25,548: DEBUG - + replace_string=/opt/node_n/n/versions/node/16/bin/node
2022-07-10 00:30:25,548: DEBUG - + sed --in-place s@YNH_NODE@/opt/node_n/n/versions/node/16/bin/node@g /etc/systemd/system/peertube.service
2022-07-10 00:30:25,553: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/peertube.service
2022-07-10 00:30:25,557: DEBUG - + update_only=0
2022-07-10 00:30:25,638: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_peertube.service
2022-07-10 00:30:25,642: DEBUG - ++ md5sum /etc/systemd/system/peertube.service
2022-07-10 00:30:25,644: DEBUG - ++ cut ‘–delimiter= ’ --fields=1
2022-07-10 00:30:25,653: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__etc_systemd_system_peertube.service --value=b5942e64fcdb1adc709e632105bb0b50
2022-07-10 00:30:25,654: DEBUG - + local globalapp=peertube
2022-07-10 00:30:25,876: DEBUG - + app=peertube
2022-07-10 00:30:25,877: DEBUG - + [[ checksum__etc_systemd_system_peertube.service =~ (unprotected|protected|skipped)
]]
2022-07-10 00:30:25,877: DEBUG - + ynh_app_setting set peertube checksum__etc_systemd_system_peertube.service b5942e64fcdb1adc709e632105bb0b50
2022-07-10 00:30:26,011: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:30:26,011: DEBUG - + unset backup_file_checksum
2022-07-10 00:30:26,012: DEBUG - + systemctl enable peertube --quiet
2022-07-10 00:30:26,821: DEBUG - + systemctl daemon-reload
2022-07-10 00:30:27,544: DEBUG - + mkdir -p /var/log/peertube
2022-07-10 00:30:27,545: INFO - [##########+…] > Starting a systemd service…
2022-07-10 00:30:27,550: DEBUG - + chown -R peertube:peertube /var/log/peertube
2022-07-10 00:30:27,554: DEBUG - + ynh_systemd_action --service_name=peertube --action=start --log_path=systemd ‘–line_match=HTTP server listening on localhost’
2022-07-10 00:30:28,124: DEBUG - + service_name=peertube
2022-07-10 00:30:28,125: DEBUG - + action=start
2022-07-10 00:30:28,126: DEBUG - + line_match=‘HTTP server listening on localhost’
2022-07-10 00:30:28,126: DEBUG - + length=20
2022-07-10 00:30:28,127: DEBUG - + log_path=systemd
2022-07-10 00:30:28,127: DEBUG - + timeout=300
2022-07-10 00:30:28,128: DEBUG - + ‘[’ start == stop ‘]’
2022-07-10 00:30:28,128: DEBUG - + [[ -n HTTP server listening on localhost ]]
2022-07-10 00:30:28,129: DEBUG - ++ mktemp
2022-07-10 00:30:28,135: DEBUG - + local templog=/tmp/tmp.qAGjuW4kl5
2022-07-10 00:30:28,136: DEBUG - + ‘[’ systemd == systemd ‘]’
2022-07-10 00:30:28,137: DEBUG - + local pid_tail=31742
2022-07-10 00:30:28,138: DEBUG - + ‘[’ start == reload ‘]’
2022-07-10 00:30:28,138: DEBUG - + journalctl --unit=peertube --follow --since=-0 --quiet
2022-07-10 00:30:28,139: DEBUG - + systemctl start peertube
2022-07-10 00:30:28,177: DEBUG - + [[ -n HTTP server listening on localhost ]]
2022-07-10 00:30:57,434: WARNING - (this may take some time)
2022-07-10 00:35:30,807: DEBUG - + ‘[’ 300 -ge 3 ‘]’
2022-07-10 00:35:30,809: DEBUG - + ‘[’ 300 -eq 300 ‘]’
2022-07-10 00:35:30,810: DEBUG -
2022-07-10 00:35:30,810: DEBUG - + ynh_print_warn ‘–message=The service peertube didn’’‘t fully executed the action start before the timeout.’
2022-07-10 00:35:30,844: DEBUG - + ynh_print_log ‘The service peertube didn’’‘t fully executed the action start before the timeout.’
2022-07-10 00:35:30,845: WARNING - The service peertube didn’t fully executed the action start before the timeout.
2022-07-10 00:35:30,847: DEBUG - + echo -e ‘The service peertube didn’’‘t fully executed the action start before the timeout.’
2022-07-10 00:35:30,847: DEBUG - + ynh_print_warn ‘–message=Please find here an extract of the end of the log of the service peertube:’
2022-07-10 00:35:30,879: DEBUG - + ynh_print_log ‘Please find here an extract of the end of the log of the service peertube:’
2022-07-10 00:35:30,880: WARNING - Please find here an extract of the end of the log of the service peertube:
2022-07-10 00:35:30,882: DEBUG - + echo -e ‘Please find here an extract of the end of the log of the service peertube:’
2022-07-10 00:35:30,882: DEBUG - + ynh_exec_warn journalctl --quiet --no-hostname --no-pager --lines=20 --unit=peertube
2022-07-10 00:35:30,883: DEBUG - + [[ 6 -eq 1 ]]
2022-07-10 00:35:30,883: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=peertube
2022-07-10 00:35:30,909: DEBUG - + ynh_print_warn ‘Jul 10 00:35:24 peertube[449]: “message”: “relation “public.user” does not exist”,
2022-07-10 00:35:30,910: DEBUG - Jul 10 00:35:24 peertube[449]: “length”: 109,
2022-07-10 00:35:30,910: DEBUG - Jul 10 00:35:24 peertube[449]: “name”: “error”,
2022-07-10 00:35:30,911: DEBUG - Jul 10 00:35:24 peertube[449]: “severity”: “ERROR”,
2022-07-10 00:35:30,911: DEBUG - Jul 10 00:35:24 peertube[449]: “code”: “42P01”,
2022-07-10 00:35:30,912: DEBUG - Jul 10 00:35:24 peertube[449]: “file”: “namespace.c”,
2022-07-10 00:35:30,912: DEBUG - Jul 10 00:35:24 peertube[449]: “line”: “422”,
2022-07-10 00:35:30,913: DEBUG - Jul 10 00:35:24 peertube[449]: “routine”: “RangeVarGetRelidExtended”,
2022-07-10 00:35:30,913: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”
2022-07-10 00:35:30,914: DEBUG - Jul 10 00:35:24 peertube[449]: },
2022-07-10 00:35:30,914: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”,
2022-07-10 00:35:30,915: DEBUG - Jul 10 00:35:24 peertube[449]: “parameters”: {}
2022-07-10 00:35:30,915: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,916: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,916: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2022-07-10 00:35:30,917: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Failed with result ‘’‘exit-code’’’.
2022-07-10 00:35:30,918: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Service RestartSec=100ms expired, scheduling restart.
2022-07-10 00:35:30,918: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Scheduled restart job, restart counter is at 31.
2022-07-10 00:35:30,919: DEBUG - Jul 10 00:35:25 systemd[1]: Stopped PeerTube daemon.
2022-07-10 00:35:30,920: DEBUG - Jul 10 00:35:25 systemd[1]: Started PeerTube daemon.’
2022-07-10 00:35:30,923: DEBUG - Jul 10 00:35:24 peertube[449]: “length”: 109,
2022-07-10 00:35:30,924: DEBUG - Jul 10 00:35:24 peertube[449]: “name”: “error”,
2022-07-10 00:35:30,924: DEBUG - Jul 10 00:35:24 peertube[449]: “severity”: “ERROR”,
2022-07-10 00:35:30,925: DEBUG - Jul 10 00:35:24 peertube[449]: “code”: “42P01”,
2022-07-10 00:35:30,925: DEBUG - Jul 10 00:35:24 peertube[449]: “file”: “namespace.c”,
2022-07-10 00:35:30,926: DEBUG - Jul 10 00:35:24 peertube[449]: “line”: “422”,
2022-07-10 00:35:30,926: DEBUG - Jul 10 00:35:24 peertube[449]: “routine”: “RangeVarGetRelidExtended”,
2022-07-10 00:35:30,927: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”
2022-07-10 00:35:30,927: DEBUG - Jul 10 00:35:24 peertube[449]: },
2022-07-10 00:35:30,928: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”,
2022-07-10 00:35:30,928: DEBUG - Jul 10 00:35:24 peertube[449]: “parameters”: {}
2022-07-10 00:35:30,929: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,930: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,930: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2022-07-10 00:35:30,931: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Failed with result ‘’‘exit-code’’’.
2022-07-10 00:35:30,931: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Service RestartSec=100ms expired, scheduling restart.
2022-07-10 00:35:30,932: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Scheduled restart job, restart counter is at 31.
2022-07-10 00:35:30,932: DEBUG - Jul 10 00:35:25 systemd[1]: Stopped PeerTube daemon.
2022-07-10 00:35:30,933: DEBUG - Jul 10 00:35:25 systemd[1]: Started PeerTube daemon.’
2022-07-10 00:35:30,944: DEBUG - + ynh_print_log ‘Jul 10 00:35:24 peertube[449]: “message”: “relation “public.user” does not exist”,
2022-07-10 00:35:30,949: DEBUG - Jul 10 00:35:24 peertube[449]: “length”: 109,
2022-07-10 00:35:30,950: DEBUG - Jul 10 00:35:24 peertube[449]: “name”: “error”,
2022-07-10 00:35:30,950: DEBUG - Jul 10 00:35:24 peertube[449]: “severity”: “ERROR”,
2022-07-10 00:35:30,951: DEBUG - Jul 10 00:35:24 peertube[449]: “code”: “42P01”,
2022-07-10 00:35:30,951: DEBUG - Jul 10 00:35:24 peertube[449]: “file”: “namespace.c”,
2022-07-10 00:35:30,952: DEBUG - Jul 10 00:35:24 peertube[449]: “line”: “422”,
2022-07-10 00:35:30,952: DEBUG - Jul 10 00:35:24 peertube[449]: “routine”: “RangeVarGetRelidExtended”,
2022-07-10 00:35:30,953: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”
2022-07-10 00:35:30,953: DEBUG - Jul 10 00:35:24 peertube[449]: },
2022-07-10 00:35:30,954: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”,
2022-07-10 00:35:30,954: DEBUG - Jul 10 00:35:24 peertube[449]: “parameters”: {}
2022-07-10 00:35:30,955: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,956: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,956: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2022-07-10 00:35:30,957: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Failed with result ‘’‘exit-code’’’.
2022-07-10 00:35:30,957: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Service RestartSec=100ms expired, scheduling restart.
2022-07-10 00:35:30,958: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Scheduled restart job, restart counter is at 31.
2022-07-10 00:35:30,959: DEBUG - Jul 10 00:35:25 systemd[1]: Stopped PeerTube daemon.
2022-07-10 00:35:30,959: DEBUG - Jul 10 00:35:25 systemd[1]: Started PeerTube daemon.’
2022-07-10 00:35:30,960: DEBUG - + echo -e ‘Jul 10 00:35:24 peertube[449]: “message”: “relation “public.user” does not exist”,
2022-07-10 00:35:30,960: DEBUG - Jul 10 00:35:24 peertube[449]: “length”: 109,
2022-07-10 00:35:30,961: DEBUG - Jul 10 00:35:24 peertube[449]: “name”: “error”,
2022-07-10 00:35:30,962: DEBUG - Jul 10 00:35:24 peertube[449]: “severity”: “ERROR”,
2022-07-10 00:35:30,962: DEBUG - Jul 10 00:35:24 peertube[449]: “code”: “42P01”,
2022-07-10 00:35:30,963: DEBUG - Jul 10 00:35:24 peertube[449]: “file”: “namespace.c”,
2022-07-10 00:35:30,963: DEBUG - Jul 10 00:35:24 peertube[449]: “line”: “422”,
2022-07-10 00:35:30,964: DEBUG - Jul 10 00:35:24 peertube[449]: “routine”: “RangeVarGetRelidExtended”,
2022-07-10 00:35:30,964: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”
2022-07-10 00:35:30,965: DEBUG - Jul 10 00:35:24 peertube[449]: },
2022-07-10 00:35:30,966: DEBUG - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”,
2022-07-10 00:35:30,966: DEBUG - Jul 10 00:35:24 peertube[449]: “parameters”: {}
2022-07-10 00:35:30,967: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,967: DEBUG - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:30,968: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2022-07-10 00:35:30,969: DEBUG - Jul 10 00:35:24 systemd[1]: peertube.service: Failed with result ‘’‘exit-code’’’.
2022-07-10 00:35:30,969: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Service RestartSec=100ms expired, scheduling restart.
2022-07-10 00:35:30,970: DEBUG - Jul 10 00:35:25 systemd[1]: peertube.service: Scheduled restart job, restart counter is at 31.
2022-07-10 00:35:30,971: DEBUG - Jul 10 00:35:25 systemd[1]: Stopped PeerTube daemon.
2022-07-10 00:35:30,971: DEBUG - Jul 10 00:35:25 systemd[1]: Started PeerTube daemon.’
2022-07-10 00:35:30,972: DEBUG - + ‘[’ -e systemd ‘]’
2022-07-10 00:35:30,972: DEBUG - + ynh_clean_check_starting
2022-07-10 00:35:30,973: DEBUG - + ‘[’ -n 31742 ‘]’
2022-07-10 00:35:30,973: DEBUG - + kill -SIGTERM 31742
2022-07-10 00:35:30,974: DEBUG - + ‘[’ -n /tmp/tmp.qAGjuW4kl5 ‘]’
2022-07-10 00:35:30,974: DEBUG - + ynh_secure_remove --file=/tmp/tmp.qAGjuW4kl5
2022-07-10 00:35:30,978: WARNING - Jul 10 00:35:24 peertube[449]: “message”: “relation “public.user” does not exist”,
2022-07-10 00:35:30,979: WARNING - Jul 10 00:35:24 peertube[449]: “length”: 109,
2022-07-10 00:35:30,981: WARNING - Jul 10 00:35:24 peertube[449]: “name”: “error”,
2022-07-10 00:35:30,982: WARNING - Jul 10 00:35:24 peertube[449]: “severity”: “ERROR”,
2022-07-10 00:35:30,984: WARNING - Jul 10 00:35:24 peertube[449]: “code”: “42P01”,
2022-07-10 00:35:30,986: WARNING - Jul 10 00:35:24 peertube[449]: “file”: “namespace.c”,
2022-07-10 00:35:30,988: WARNING - Jul 10 00:35:24 peertube[449]: “line”: “422”,
2022-07-10 00:35:30,990: WARNING - Jul 10 00:35:24 peertube[449]: “routine”: “RangeVarGetRelidExtended”,
2022-07-10 00:35:30,992: WARNING - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”
2022-07-10 00:35:30,994: WARNING - Jul 10 00:35:24 peertube[449]: },
2022-07-10 00:35:30,996: WARNING - Jul 10 00:35:24 peertube[449]: “sql”: “ALTER TABLE “public”.“user” ADD COLUMN “lastLoginDate” TIMESTAMP WITH TIME ZONE;”,
2022-07-10 00:35:30,998: WARNING - Jul 10 00:35:24 peertube[449]: “parameters”: {}
2022-07-10 00:35:31,000: WARNING - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:31,001: WARNING - Jul 10 00:35:24 peertube[449]: }
2022-07-10 00:35:31,003: WARNING - Jul 10 00:35:24 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2022-07-10 00:35:31,004: WARNING - Jul 10 00:35:24 systemd[1]: peertube.service: Failed with result ‘exit-code’.
2022-07-10 00:35:31,006: WARNING - Jul 10 00:35:25 systemd[1]: peertube.service: Service RestartSec=100ms expired, scheduling restart.
2022-07-10 00:35:31,008: WARNING - Jul 10 00:35:25 systemd[1]: peertube.service: Scheduled restart job, restart counter is at 31.
2022-07-10 00:35:31,011: WARNING - Jul 10 00:35:25 systemd[1]: Stopped PeerTube daemon.
2022-07-10 00:35:31,013: WARNING - Jul 10 00:35:25 systemd[1]: Started PeerTube daemon.
2022-07-10 00:35:31,219: INFO - [###########+…] > Installing LDAP plugin…
2022-07-10 00:35:31,234: DEBUG - + pushd /var/www/peertube
2022-07-10 00:35:31,235: DEBUG - /var/www/peertube /var/cache/yunohost/app_tmp_work_dirs/app_gj27ydmh/scripts
2022-07-10 00:35:31,241: DEBUG - + ynh_exec_warn_less ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production /opt/node_n/n/versions/node/16/bin/npm run plugin:install – --npm-name peertube-plugin-auth-ldap
2022-07-10 00:35:31,242: DEBUG - + [[ 12 -eq 1 ]]
2022-07-10 00:35:31,243: DEBUG - + ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production /opt/node_n/n/versions/node/16/bin/npm run plugin:install – --npm-name peertube-plugin-auth-ldap
2022-07-10 00:35:31,243: DEBUG - + local user=peertube
2022-07-10 00:35:31,244: DEBUG - + shift 1
2022-07-10 00:35:31,244: DEBUG - ++ whoami
2022-07-10 00:35:31,245: DEBUG - + [[ peertube = root ]]
2022-07-10 00:35:31,245: DEBUG - + sudo -u peertube env PATH=/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production /opt/node_n/n/versions/node/16/bin/npm run plugin:install – --npm-name peertube-plugin-auth-ldap
2022-07-10 00:35:33,232: DEBUG -
2022-07-10 00:35:33,232: DEBUG - > peertube@4.2.2 plugin:install
2022-07-10 00:35:33,233: DEBUG - > node ./dist/scripts/plugin/install.js “–npm-name” “peertube-plugin-auth-ldap”
2022-07-10 00:35:33,233: DEBUG -
2022-07-10 00:35:42,642: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.637 e[32minfoe[39m: Installing plugin peertube-plugin-auth-ldap.
2022-07-10 00:35:42,900: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.899 e[31merrore[39m: Cannot exec yarn. {
2022-07-10 00:35:42,901: DEBUG - “command”: “add peertube-plugin-auth-ldap@0.0.12”
2022-07-10 00:35:42,902: DEBUG - }
2022-07-10 00:35:42,903: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.902 e[31merrore[39m: Cannot install plugin peertube-plugin-auth-ldap, removing it…
2022-07-10 00:35:42,905: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.904 e[32minfoe[39m: Uninstalling plugin undefined.
2022-07-10 00:35:42,908: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.907 e[32minfoe[39m: Unregister plugin undefined.
2022-07-10 00:35:42,911: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.910 e[33mwarne[39m: Cannot unregister plugin undefined. {
2022-07-10 00:35:42,912: DEBUG - “err”: {
2022-07-10 00:35:42,912: DEBUG - “stack”: “Error: Unknown plugin undefined to unregister\n at PluginManager. (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:180:23)\n at Generator.next ()\n at /var/www/peertube/node_modules/tslib/tslib.js:117:75\n at new Promise ()\n at Object.__awaiter (/var/www/peertube/node_modules/tslib/tslib.js:113:16)\n at PluginManager.unregister (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:176:24)\n at PluginManager. (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:261:28)\n at Generator.next ()\n at /var/www/peertube/node_modules/tslib/tslib.js:117:75\n at new Promise ()\n at Object.__awaiter (/var/www/peertube/node_modules/tslib/tslib.js:113:16)\n at PluginManager.uninstall (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:258:24)\n at PluginManager. (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:228:32)\n at Generator.throw ()\n at rejected (/var/www/peertube/node_modules/tslib/tslib.js:115:69)”,
2022-07-10 00:35:42,914: DEBUG - “message”: “Unknown plugin undefined to unregister”
2022-07-10 00:35:42,914: DEBUG - }
2022-07-10 00:35:42,915: DEBUG - }
2022-07-10 00:35:42,916: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.912 e[31merrore[39m: Cannot uninstall plugin peertube-plugin-auth-ldap after failed installation. {
2022-07-10 00:35:42,916: DEBUG - “err”: {
2022-07-10 00:35:42,917: DEBUG - “stack”: “TypeError: Cannot read properties of undefined (reading ‘replace’)\n at Function.normalizePluginName (/var/www/peertube/dist/server/models/server/plugin.js:147:24)\n at Function.loadByNpmName (/var/www/peertube/dist/server/models/server/plugin.js:21:27)\n at PluginManager. (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:266:55)\n at Generator.throw ()\n at rejected (/var/www/peertube/node_modules/tslib/tslib.js:115:69)”,
2022-07-10 00:35:42,918: DEBUG - “message”: “Cannot read properties of undefined (reading ‘replace’)”
2022-07-10 00:35:42,919: DEBUG - }
2022-07-10 00:35:42,919: DEBUG - }
2022-07-10 00:35:42,920: DEBUG - [peertube.maindomain.tld:443] 2022-07-10 00:35:42.915 e[31merrore[39m: Cannot remove plugin peertube-plugin-auth-ldap after failed installation. {
2022-07-10 00:35:42,921: DEBUG - “err”: {
2022-07-10 00:35:42,922: DEBUG - “stack”: “Error: Invalid NPM plugin name to install\n at checkNpmPluginNameOrThrow (/var/www/peertube/dist/server/lib/plugins/yarn.js:57:15)\n at /var/www/peertube/dist/server/lib/plugins/yarn.js:34:9\n at Generator.next ()\n at /var/www/peertube/node_modules/tslib/tslib.js:117:75\n at new Promise ()\n at Object.__awaiter (/var/www/peertube/node_modules/tslib/tslib.js:113:16)\n at removeNpmPlugin (/var/www/peertube/dist/server/lib/plugins/yarn.js:33:20)\n at PluginManager. (/var/www/peertube/dist/server/lib/plugins/plugin-manager.js:233:58)\n at Generator.throw ()\n at rejected (/var/www/peertube/node_modules/tslib/tslib.js:115:69)”,
2022-07-10 00:35:42,923: DEBUG - “message”: “Invalid NPM plugin name to install”
2022-07-10 00:35:42,941: DEBUG - }
2022-07-10 00:35:42,942: DEBUG - }
2022-07-10 00:35:42,942: DEBUG - undefined
2022-07-10 00:35:42,965: DEBUG - npm notice
2022-07-10 00:35:42,966: DEBUG - npm notice New minor version of npm available! 8.11.0 → 8.13.2
2022-07-10 00:35:42,968: DEBUG - npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.13.2
2022-07-10 00:35:42,971: DEBUG - npm notice Run npm install -g npm@8.13.2 to update!
2022-07-10 00:35:42,973: DEBUG - npm notice
2022-07-10 00:35:43,004: DEBUG - + ynh_exit_properly
2022-07-10 00:35:43,004: DEBUG - + local exit_code=255
2022-07-10 00:35:43,010: DEBUG - + ‘[’ 255 -eq 0 ‘]’
2022-07-10 00:35:43,515: DEBUG - + ynh_clean_setup
2022-07-10 00:35:43,516: DEBUG - + ynh_clean_check_starting
2022-07-10 00:35:43,516: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:35:43,516: DEBUG - + ‘[’ -n ‘’ ‘]’
2022-07-10 00:35:44,520: ERROR - Impossible d’installer peertube : Une erreur est survenue dans le script d’installation de l’application

1 Like

C’est illisible. Merci d’utiliser notre service YunoPaste, ou directement en cliquant sur “Partager les logs avec YunoPaste” et en copiant l’adresse de la page.

Exemple:

1 Like

Pardon, j’avais bien fait “Partager les logs avec YunoPaste” mais en copiant/collant l’ensemble de la page qui s’ouvrait au lieu de l’URL de cette page… Merci.
Je refais et voilà:
https://paste.yunohost.org/raw/zacuzamana

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.