args:
  app: peertube
  force: false
  label: undefined
  no_remove_on_failure: false
ended_at: 2024-07-17 05:57:04.069829
env:
  YNH_APP_ACTION: install
  YNH_APP_ARG_ADMIN: chatsafemedia
  YNH_APP_ARG_DOMAIN: maindomain.tld
  YNH_APP_ARG_INIT_MAIN_PERMISSION: visitors
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u
  YNH_APP_ID: peertube
  YNH_APP_INSTANCE_NAME: peertube
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 6.1.0~ynh2
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bullseye
  YNH_HELPERS_VERSION: '2'
error: An error occurred inside the app installation script
interface: api
operation: app_install
parent: null
related_to:
- - app
  - peertube
started_at: 2024-07-17 05:49:08.780811
success: false
yunohost_version: 11.2.21.2

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

2024-07-17 00:49:08,794: INFO - Installing peertube…
2024-07-17 00:49:08,802: INFO - Provisioning sources...
2024-07-17 00:49:08,803: DEBUG - Prefetching asset main: https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz ...
2024-07-17 00:49:10,600: INFO - Provisioning ports...
2024-07-17 00:49:11,215: DEBUG - Running 'systemctl restart fail2ban'
2024-07-17 00:49:12,159: SUCCESS - Firewall reloaded
2024-07-17 00:49:12,166: INFO - Provisioning system_user...
2024-07-17 00:49:13,326: INFO - Provisioning install_dir...
2024-07-17 00:49:13,339: INFO - Provisioning data_dir...
2024-07-17 00:49:13,352: INFO - Provisioning permissions...
2024-07-17 00:49:13,551: DEBUG - Permission 'peertube.main' updated
2024-07-17 00:49:13,561: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054913-permission_url-peertube" style="text-decoration:underline">Update URL related to permission 'peertube'</a>'
2024-07-17 00:49:13,768: DEBUG - Permission 'peertube.main' created
2024-07-17 00:49:13,769: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054913-permission_create-peertube" style="text-decoration:underline">Create permission 'peertube'</a>'
2024-07-17 00:49:13,893: DEBUG - Permission 'peertube.main' updated
2024-07-17 00:49:13,893: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054913-user_permission_update-peertube" style="text-decoration:underline">Update accesses for permission 'peertube'</a>'
2024-07-17 00:49:13,944: DEBUG - Nothing to update in LDAP
2024-07-17 00:49:13,944: DEBUG - Permission 'peertube.main' updated
2024-07-17 00:49:13,953: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054913-permission_url-peertube" style="text-decoration:underline">Update URL related to permission 'peertube'</a>'
2024-07-17 00:49:14,159: DEBUG - Permission 'peertube.api' updated
2024-07-17 00:49:14,169: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054914-permission_url-peertube" style="text-decoration:underline">Update URL related to permission 'peertube'</a>'
2024-07-17 00:49:14,343: DEBUG - Permission 'peertube.api' created
2024-07-17 00:49:14,343: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054913-permission_create-peertube" style="text-decoration:underline">Create permission 'peertube'</a>'
2024-07-17 00:49:14,459: DEBUG - Permission 'peertube.api' updated
2024-07-17 00:49:14,460: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054914-user_permission_update-peertube" style="text-decoration:underline">Update accesses for permission 'peertube'</a>'
2024-07-17 00:49:14,510: DEBUG - Nothing to update in LDAP
2024-07-17 00:49:14,510: DEBUG - Permission 'peertube.api' updated
2024-07-17 00:49:14,520: DEBUG - Full log of this operation: '<a href="#/tools/logs/20240717-054914-permission_url-peertube" style="text-decoration:underline">Update URL related to permission 'peertube'</a>'
2024-07-17 00:49:14,734: DEBUG - The permission database has been resynchronized
2024-07-17 00:49:14,776: DEBUG - SSOwat configuration regenerated
2024-07-17 00:49:14,783: INFO - Provisioning apt...
2024-07-17 00:49:14,795: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2024-07-17 00:49:14,808: DEBUG - + source /usr/share/yunohost/helpers
2024-07-17 00:49:14,809: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-07-17 00:49:14,810: DEBUG - +++ cd -- /usr/share/yunohost
2024-07-17 00:49:14,810: DEBUG - +++ pwd
2024-07-17 00:49:14,811: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-07-17 00:49:14,811: DEBUG - ++ YNH_HELPERS_VERSION=2
2024-07-17 00:49:14,813: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-07-17 00:49:14,814: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-07-17 00:49:14,842: DEBUG - + ynh_abort_if_errors
2024-07-17 00:49:14,842: DEBUG - + trap ynh_exit_properly EXIT
2024-07-17 00:49:14,842: DEBUG - + ynh_install_app_dependencies ffmpeg postgresql postgresql-contrib redis-server
2024-07-17 00:49:14,842: DEBUG - + local 'dependencies=ffmpeg postgresql postgresql-contrib redis-server'
2024-07-17 00:49:14,843: DEBUG - ++ echo 'ffmpeg postgresql postgresql-contrib redis-server'
2024-07-17 00:49:14,843: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2024-07-17 00:49:14,846: DEBUG - + dependencies='ffmpeg, postgresql, postgresql-contrib, redis-server'
2024-07-17 00:49:14,846: DEBUG - + local 'dependencies=ffmpeg, postgresql, postgresql-contrib, redis-server'
2024-07-17 00:49:14,847: DEBUG - ++ ynh_read_manifest --manifest_key=version
2024-07-17 00:49:14,869: DEBUG - ++ '[' '!' -e '' ']'
2024-07-17 00:49:14,869: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.json ']'
2024-07-17 00:49:14,870: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml ']'
2024-07-17 00:49:14,870: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml
2024-07-17 00:49:14,870: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml
2024-07-17 00:49:14,870: DEBUG - ++ grep -q '\.json$'
2024-07-17 00:49:14,872: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml
2024-07-17 00:49:14,873: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:49:14,873: DEBUG - ++ jq .version --raw-output
2024-07-17 00:49:14,923: DEBUG - + local version=6.1.0~ynh2
2024-07-17 00:49:14,923: DEBUG - + '[' -z 6.1.0~ynh2 ']'
2024-07-17 00:49:14,923: DEBUG - + '[' 6.1.0~ynh2 == null ']'
2024-07-17 00:49:14,923: DEBUG - + local dep_app=peertube
2024-07-17 00:49:14,923: DEBUG - + [[ ffmpeg, postgresql, postgresql-contrib, redis-server =~ [<=>] ]]
2024-07-17 00:49:14,924: DEBUG - ++ echo ffmpeg, postgresql, postgresql-contrib, redis-server
2024-07-17 00:49:14,925: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2024-07-17 00:49:14,925: DEBUG - ++ sort -u
2024-07-17 00:49:14,928: DEBUG - + local specific_php_version=
2024-07-17 00:49:14,928: DEBUG - + grep --quiet php
2024-07-17 00:49:14,930: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-07-17 00:49:14,944: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-07-17 00:49:14,944: DEBUG - ++ grep --count 'ok installed'
2024-07-17 00:49:14,961: DEBUG - ++ echo yes
2024-07-17 00:49:14,962: DEBUG - + local psql_installed=yes
2024-07-17 00:49:14,962: DEBUG - + [[ true == \t\r\u\e ]]
2024-07-17 00:49:14,962: DEBUG - + YNH_INSTALL_APP_DEPENDENCIES_REPLACE=false
2024-07-17 00:49:14,962: DEBUG - + cat
2024-07-17 00:49:14,963: DEBUG - + ynh_package_install_from_equivs /tmp/peertube-ynh-deps.control
2024-07-17 00:49:14,964: DEBUG - + local controlfile=/tmp/peertube-ynh-deps.control
2024-07-17 00:49:14,965: DEBUG - ++ grep '^Package: ' /tmp/peertube-ynh-deps.control
2024-07-17 00:49:14,965: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-07-17 00:49:14,967: DEBUG - + local pkgname=peertube-ynh-deps
2024-07-17 00:49:14,969: DEBUG - ++ grep '^Version: ' /tmp/peertube-ynh-deps.control
2024-07-17 00:49:14,969: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-07-17 00:49:14,972: DEBUG - + local pkgversion=6.1.0~ynh2
2024-07-17 00:49:14,972: DEBUG - + [[ -z peertube-ynh-deps ]]
2024-07-17 00:49:14,972: DEBUG - + [[ -z 6.1.0~ynh2 ]]
2024-07-17 00:49:14,972: DEBUG - + ynh_package_update
2024-07-17 00:49:14,972: DEBUG - + ynh_apt update
2024-07-17 00:49:14,973: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:15,121: DEBUG - + return 0
2024-07-17 00:49:15,121: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2024-07-17 00:49:15,646: DEBUG - Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
2024-07-17 00:49:15,674: DEBUG - Hit:2 http://forge.yunohost.org/debian bullseye InRelease
2024-07-17 00:49:15,674: DEBUG - Hit:3 http://deb.debian.org/debian bullseye InRelease
2024-07-17 00:49:15,800: DEBUG - Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
2024-07-17 00:49:16,264: DEBUG - Get:5 https://packages.sury.org/php bullseye InRelease [7551 B]
2024-07-17 00:49:16,429: DEBUG - Fetched 100.0 kB in 1s (80.5 kB/s)
2024-07-17 00:49:17,357: DEBUG - Reading package lists...
2024-07-17 00:49:17,380: DEBUG - ++ mktemp --directory
2024-07-17 00:49:17,381: DEBUG - + local TMPDIR=/tmp/tmp.FNaANWrd5b
2024-07-17 00:49:17,381: DEBUG - + mkdir -p /tmp/tmp.FNaANWrd5b/peertube-ynh-deps/DEBIAN/
2024-07-17 00:49:17,383: DEBUG - + chmod -R 755 /tmp/tmp.FNaANWrd5b/peertube-ynh-deps
2024-07-17 00:49:17,385: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:17,532: DEBUG - + return 0
2024-07-17 00:49:17,532: DEBUG - + cp /tmp/peertube-ynh-deps.control /tmp/tmp.FNaANWrd5b/peertube-ynh-deps/DEBIAN/control
2024-07-17 00:49:17,534: DEBUG - + cd /tmp/tmp.FNaANWrd5b
2024-07-17 00:49:17,535: DEBUG - + dpkg-deb --build peertube-ynh-deps peertube-ynh-deps.deb
2024-07-17 00:49:17,667: DEBUG - + dpkg --force-depends --install ./peertube-ynh-deps.deb
2024-07-17 00:49:17,668: DEBUG - + tee ./dpkg_log
2024-07-17 00:49:17,769: DEBUG - Selecting previously unselected package peertube-ynh-deps.
2024-07-17 00:49:17,819: DEBUG - (Reading database ... 68293 files and directories currently installed.)
2024-07-17 00:49:17,826: DEBUG - Preparing to unpack ./peertube-ynh-deps.deb ...
2024-07-17 00:49:17,933: DEBUG - Unpacking peertube-ynh-deps (6.1.0~ynh2) ...
2024-07-17 00:49:18,210: DEBUG - dpkg: peertube-ynh-deps: dependency problems, but configuring anyway as you requested:
2024-07-17 00:49:18,210: DEBUG -  peertube-ynh-deps depends on postgresql; however:
2024-07-17 00:49:18,211: DEBUG -   Package postgresql is not installed.
2024-07-17 00:49:18,211: DEBUG -  peertube-ynh-deps depends on postgresql-contrib; however:
2024-07-17 00:49:18,211: DEBUG -   Package postgresql-contrib is not installed.
2024-07-17 00:49:18,211: DEBUG - 
2024-07-17 00:49:18,211: DEBUG - Setting up peertube-ynh-deps (6.1.0~ynh2) ...
2024-07-17 00:49:18,501: DEBUG - + ynh_package_install --fix-broken
2024-07-17 00:49:18,501: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2024-07-17 00:49:18,501: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:18,636: DEBUG - + return 0
2024-07-17 00:49:18,636: 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
2024-07-17 00:49:19,016: DEBUG - Reading package lists...
2024-07-17 00:49:19,235: DEBUG - Building dependency tree...
2024-07-17 00:49:19,237: DEBUG - Reading state information...
2024-07-17 00:49:19,427: DEBUG - Correcting dependencies... Done
2024-07-17 00:49:19,656: DEBUG - The following additional packages will be installed:
2024-07-17 00:49:19,657: DEBUG -   postgresql postgresql-contrib
2024-07-17 00:49:19,660: DEBUG - Suggested packages:
2024-07-17 00:49:19,660: DEBUG -   postgresql-doc
2024-07-17 00:49:19,681: DEBUG - The following NEW packages will be installed:
2024-07-17 00:49:19,681: DEBUG -   postgresql postgresql-contrib
2024-07-17 00:49:20,286: DEBUG - 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
2024-07-17 00:49:20,287: DEBUG - Need to get 0 B/130 kB of archives.
2024-07-17 00:49:20,287: DEBUG - After this operation, 139 kB of additional disk space will be used.
2024-07-17 00:49:20,407: DEBUG - Selecting previously unselected package postgresql.
2024-07-17 00:49:20,451: DEBUG - (Reading database ... 68293 files and directories currently installed.)
2024-07-17 00:49:20,458: DEBUG - Preparing to unpack .../postgresql_13+225+deb11u1_all.deb ...
2024-07-17 00:49:20,523: DEBUG - Unpacking postgresql (13+225+deb11u1) ...
2024-07-17 00:49:20,909: DEBUG - Selecting previously unselected package postgresql-contrib.
2024-07-17 00:49:20,919: DEBUG - Preparing to unpack .../postgresql-contrib_13+225+deb11u1_all.deb ...
2024-07-17 00:49:20,984: DEBUG - Unpacking postgresql-contrib (13+225+deb11u1) ...
2024-07-17 00:49:21,376: DEBUG - Setting up postgresql-contrib (13+225+deb11u1) ...
2024-07-17 00:49:21,571: DEBUG - Setting up postgresql (13+225+deb11u1) ...
2024-07-17 00:49:22,067: DEBUG - + [[ -n /tmp/tmp.FNaANWrd5b ]]
2024-07-17 00:49:22,067: DEBUG - + rm --recursive --force /tmp/tmp.FNaANWrd5b
2024-07-17 00:49:22,069: DEBUG - + ynh_package_is_installed peertube-ynh-deps
2024-07-17 00:49:22,083: DEBUG - + dpkg-query --show '--showformat=${Status}' peertube-ynh-deps
2024-07-17 00:49:22,083: DEBUG - + grep --count 'ok installed'
2024-07-17 00:49:22,100: DEBUG - + rm /tmp/peertube-ynh-deps.control
2024-07-17 00:49:22,103: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-07-17 00:49:22,117: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-07-17 00:49:22,117: DEBUG - ++ grep --count 'ok installed'
2024-07-17 00:49:22,134: DEBUG - ++ echo yes
2024-07-17 00:49:22,135: DEBUG - + local psql_installed2=yes
2024-07-17 00:49:22,135: DEBUG - + [[ yes != \y\e\s ]]
2024-07-17 00:49:22,135: DEBUG - + ynh_install_extra_app_dependencies '--repo=deb https://dl.yarnpkg.com/debian/ stable main' --key=https://dl.yarnpkg.com/debian/pubkey.gpg --package=yarn
2024-07-17 00:49:22,244: DEBUG - + name=peertube
2024-07-17 00:49:22,245: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg
2024-07-17 00:49:22,245: DEBUG - + '[' -n https://dl.yarnpkg.com/debian/pubkey.gpg ']'
2024-07-17 00:49:22,245: DEBUG - + key=--key=https://dl.yarnpkg.com/debian/pubkey.gpg
2024-07-17 00:49:22,245: 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
2024-07-17 00:49:22,419: DEBUG - + name=peertube
2024-07-17 00:49:22,420: DEBUG - + append=0
2024-07-17 00:49:22,420: DEBUG - + key=https://dl.yarnpkg.com/debian/pubkey.gpg
2024-07-17 00:49:22,420: DEBUG - + priority=995
2024-07-17 00:49:22,421: DEBUG - + append=
2024-07-17 00:49:22,421: DEBUG - + wget_append=tee
2024-07-17 00:49:22,421: DEBUG - + [[ https://dl.yarnpkg.com/debian/pubkey.gpg == \t\r\u\s\t\e\d\=\y\e\s ]]
2024-07-17 00:49:22,421: DEBUG - + trusted=
2024-07-17 00:49:22,421: DEBUG - + IFS=', '
2024-07-17 00:49:22,421: DEBUG - + read -r -a repo_parts
2024-07-17 00:49:22,421: DEBUG - + index=0
2024-07-17 00:49:22,422: DEBUG - + [[ deb == \d\e\b ]]
2024-07-17 00:49:22,422: DEBUG - + index=1
2024-07-17 00:49:22,422: DEBUG - + uri=https://dl.yarnpkg.com/debian/
2024-07-17 00:49:22,422: DEBUG - + index=2
2024-07-17 00:49:22,422: DEBUG - + suite=stable
2024-07-17 00:49:22,422: DEBUG - + index=3
2024-07-17 00:49:22,422: DEBUG - + ((  4 > 0  ))
2024-07-17 00:49:22,422: DEBUG - + component=main
2024-07-17 00:49:22,423: DEBUG - + ynh_add_repo --uri=https://dl.yarnpkg.com/debian/ --suite=stable --component=main --name=peertube
2024-07-17 00:49:22,633: DEBUG - + name=peertube
2024-07-17 00:49:22,633: DEBUG - + append=0
2024-07-17 00:49:22,633: DEBUG - + trusted=0
2024-07-17 00:49:22,633: DEBUG - + append=tee
2024-07-17 00:49:22,633: DEBUG - + [[ 0 -eq 1 ]]
2024-07-17 00:49:22,634: DEBUG - + trust=
2024-07-17 00:49:22,634: DEBUG - + mkdir --parents /etc/apt/sources.list.d
2024-07-17 00:49:22,635: DEBUG - + tee /etc/apt/sources.list.d/peertube.list
2024-07-17 00:49:22,637: DEBUG - deb  https://dl.yarnpkg.com/debian/ stable main
2024-07-17 00:49:22,637: DEBUG - + local pin=dl.yarnpkg.com/debian/
2024-07-17 00:49:22,637: DEBUG - + pin=dl.yarnpkg.com
2024-07-17 00:49:22,637: DEBUG - + '[' -n 995 ']'
2024-07-17 00:49:22,637: DEBUG - + priority=--priority=995
2024-07-17 00:49:22,638: DEBUG - + ynh_pin_repo '--package=*' '--pin=origin "dl.yarnpkg.com"' --priority=995 --name=peertube
2024-07-17 00:49:22,818: DEBUG - + package='*'
2024-07-17 00:49:22,818: DEBUG - + priority=995
2024-07-17 00:49:22,818: DEBUG - + name=peertube
2024-07-17 00:49:22,818: DEBUG - + append=0
2024-07-17 00:49:22,819: DEBUG - + append=tee
2024-07-17 00:49:22,819: DEBUG - + [[ peertube != \e\x\t\r\a\_\p\h\p\_\v\e\r\s\i\o\n ]]
2024-07-17 00:49:22,819: DEBUG - + mkdir --parents /etc/apt/preferences.d
2024-07-17 00:49:22,821: DEBUG - Pin: origin "dl.yarnpkg.com"
2024-07-17 00:49:22,821: DEBUG - Pin-Priority: 995
2024-07-17 00:49:22,821: DEBUG - '
2024-07-17 00:49:22,821: DEBUG - + tee /etc/apt/preferences.d/peertube
2024-07-17 00:49:22,822: DEBUG - Package: *
2024-07-17 00:49:22,822: DEBUG - Pin: origin "dl.yarnpkg.com"
2024-07-17 00:49:22,822: DEBUG - Pin-Priority: 995
2024-07-17 00:49:22,822: DEBUG - 
2024-07-17 00:49:22,822: DEBUG - + '[' -n https://dl.yarnpkg.com/debian/pubkey.gpg ']'
2024-07-17 00:49:22,822: DEBUG - + [[ https://dl.yarnpkg.com/debian/pubkey.gpg != \t\r\u\s\t\e\d\=\y\e\s ]]
2024-07-17 00:49:22,823: DEBUG - + mkdir --parents /etc/apt/trusted.gpg.d
2024-07-17 00:49:22,824: DEBUG - + wget --timeout 900 --quiet https://dl.yarnpkg.com/debian/pubkey.gpg --output-document=-
2024-07-17 00:49:22,825: DEBUG - + gpg --dearmor
2024-07-17 00:49:22,825: DEBUG - + tee /etc/apt/trusted.gpg.d/peertube.gpg
2024-07-17 00:49:23,012: DEBUG - + ynh_package_update
2024-07-17 00:49:23,012: DEBUG - + ynh_apt update
2024-07-17 00:49:23,012: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:23,140: DEBUG - + return 0
2024-07-17 00:49:23,140: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2024-07-17 00:49:23,391: DEBUG - Get:1 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
2024-07-17 00:49:23,439: DEBUG - Hit:2 http://forge.yunohost.org/debian bullseye InRelease
2024-07-17 00:49:23,445: DEBUG - Hit:3 http://deb.debian.org/debian bullseye InRelease
2024-07-17 00:49:23,476: DEBUG - Hit:4 http://security.debian.org/debian-security bullseye-security InRelease
2024-07-17 00:49:23,558: DEBUG - Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
2024-07-17 00:49:23,570: DEBUG - Get:6 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB]
2024-07-17 00:49:23,618: DEBUG - Get:7 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB]
2024-07-17 00:49:23,684: DEBUG - Get:8 https://packages.sury.org/php bullseye InRelease [7551 B]
2024-07-17 00:49:24,179: DEBUG - Fetched 46.5 kB in 1s (47.8 kB/s)
2024-07-17 00:49:25,108: DEBUG - Reading package lists...
2024-07-17 00:49:25,134: DEBUG - + ynh_install_app_dependencies yarn
2024-07-17 00:49:25,134: DEBUG - + local dependencies=yarn
2024-07-17 00:49:25,135: DEBUG - ++ echo yarn
2024-07-17 00:49:25,136: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2024-07-17 00:49:25,138: DEBUG - + dependencies=yarn
2024-07-17 00:49:25,139: DEBUG - + local dependencies=yarn
2024-07-17 00:49:25,140: DEBUG - ++ ynh_read_manifest --manifest_key=version
2024-07-17 00:49:25,164: DEBUG - ++ '[' '!' -e '' ']'
2024-07-17 00:49:25,164: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.json ']'
2024-07-17 00:49:25,165: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml ']'
2024-07-17 00:49:25,165: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml
2024-07-17 00:49:25,165: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml
2024-07-17 00:49:25,165: DEBUG - ++ grep -q '\.json$'
2024-07-17 00:49:25,167: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_e_0pj567/manifest.toml
2024-07-17 00:49:25,167: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:49:25,168: DEBUG - ++ jq .version --raw-output
2024-07-17 00:49:25,217: DEBUG - + local version=6.1.0~ynh2
2024-07-17 00:49:25,217: DEBUG - + '[' -z 6.1.0~ynh2 ']'
2024-07-17 00:49:25,217: DEBUG - + '[' 6.1.0~ynh2 == null ']'
2024-07-17 00:49:25,218: DEBUG - + local dep_app=peertube
2024-07-17 00:49:25,218: DEBUG - + [[ yarn =~ [<=>] ]]
2024-07-17 00:49:25,219: DEBUG - ++ echo yarn
2024-07-17 00:49:25,219: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2024-07-17 00:49:25,219: DEBUG - ++ sort -u
2024-07-17 00:49:25,222: DEBUG - + local specific_php_version=
2024-07-17 00:49:25,222: DEBUG - + grep --quiet php
2024-07-17 00:49:25,224: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-07-17 00:49:25,238: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-07-17 00:49:25,238: DEBUG - ++ grep --count 'ok installed'
2024-07-17 00:49:25,255: DEBUG - ++ echo yes
2024-07-17 00:49:25,256: DEBUG - + local psql_installed=yes
2024-07-17 00:49:25,256: DEBUG - + [[ false == \t\r\u\e ]]
2024-07-17 00:49:25,256: DEBUG - + local current_dependencies=
2024-07-17 00:49:25,256: DEBUG - + ynh_package_is_installed --package=peertube-ynh-deps
2024-07-17 00:49:25,270: DEBUG - + dpkg-query --show '--showformat=${Status}' peertube-ynh-deps
2024-07-17 00:49:25,270: DEBUG - + grep --count 'ok installed'
2024-07-17 00:49:25,288: DEBUG - ++ dpkg-query --show '--showformat=${Depends}' peertube-ynh-deps
2024-07-17 00:49:25,305: DEBUG - + current_dependencies='ffmpeg, postgresql, postgresql-contrib, redis-server '
2024-07-17 00:49:25,305: DEBUG - + current_dependencies='ffmpeg, postgresql, postgresql-contrib, redis-server '
2024-07-17 00:49:25,305: DEBUG - + dependencies='ffmpeg, postgresql, postgresql-contrib, redis-server , yarn'
2024-07-17 00:49:25,305: DEBUG - + cat
2024-07-17 00:49:25,307: DEBUG - + ynh_package_install_from_equivs /tmp/peertube-ynh-deps.control
2024-07-17 00:49:25,307: DEBUG - + local controlfile=/tmp/peertube-ynh-deps.control
2024-07-17 00:49:25,308: DEBUG - ++ grep '^Package: ' /tmp/peertube-ynh-deps.control
2024-07-17 00:49:25,308: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-07-17 00:49:25,311: DEBUG - + local pkgname=peertube-ynh-deps
2024-07-17 00:49:25,312: DEBUG - ++ grep '^Version: ' /tmp/peertube-ynh-deps.control
2024-07-17 00:49:25,313: DEBUG - ++ cut '--delimiter= ' --fields=2
2024-07-17 00:49:25,315: DEBUG - + local pkgversion=6.1.0~ynh2
2024-07-17 00:49:25,315: DEBUG - + [[ -z peertube-ynh-deps ]]
2024-07-17 00:49:25,315: DEBUG - + [[ -z 6.1.0~ynh2 ]]
2024-07-17 00:49:25,315: DEBUG - + ynh_package_update
2024-07-17 00:49:25,316: DEBUG - + ynh_apt update
2024-07-17 00:49:25,316: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:25,452: DEBUG - + return 0
2024-07-17 00:49:25,452: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2024-07-17 00:49:25,605: DEBUG - Hit:1 https://dl.yarnpkg.com/debian stable InRelease
2024-07-17 00:49:25,749: DEBUG - Hit:2 http://forge.yunohost.org/debian bullseye InRelease
2024-07-17 00:49:25,758: DEBUG - Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
2024-07-17 00:49:25,763: DEBUG - Hit:4 http://deb.debian.org/debian bullseye InRelease
2024-07-17 00:49:25,879: DEBUG - Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
2024-07-17 00:49:26,053: DEBUG - Get:6 https://packages.sury.org/php bullseye InRelease [7551 B]
2024-07-17 00:49:26,386: DEBUG - Fetched 7551 B in 1s (8672 B/s)
2024-07-17 00:49:27,317: DEBUG - Reading package lists...
2024-07-17 00:49:27,339: DEBUG - ++ mktemp --directory
2024-07-17 00:49:27,341: DEBUG - + local TMPDIR=/tmp/tmp.3ggagbzZAy
2024-07-17 00:49:27,341: DEBUG - + mkdir -p /tmp/tmp.3ggagbzZAy/peertube-ynh-deps/DEBIAN/
2024-07-17 00:49:27,343: DEBUG - + chmod -R 755 /tmp/tmp.3ggagbzZAy/peertube-ynh-deps
2024-07-17 00:49:27,344: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:27,484: DEBUG - + return 0
2024-07-17 00:49:27,484: DEBUG - + cp /tmp/peertube-ynh-deps.control /tmp/tmp.3ggagbzZAy/peertube-ynh-deps/DEBIAN/control
2024-07-17 00:49:27,487: DEBUG - + cd /tmp/tmp.3ggagbzZAy
2024-07-17 00:49:27,487: DEBUG - + dpkg-deb --build peertube-ynh-deps peertube-ynh-deps.deb
2024-07-17 00:49:27,551: DEBUG - + dpkg --force-depends --install ./peertube-ynh-deps.deb
2024-07-17 00:49:27,551: DEBUG - + tee ./dpkg_log
2024-07-17 00:49:27,689: DEBUG - (Reading database ... 68299 files and directories currently installed.)
2024-07-17 00:49:27,696: DEBUG - Preparing to unpack ./peertube-ynh-deps.deb ...
2024-07-17 00:49:27,876: DEBUG - Unpacking peertube-ynh-deps (6.1.0~ynh2) over (6.1.0~ynh2) ...
2024-07-17 00:49:28,272: DEBUG - dpkg: peertube-ynh-deps: dependency problems, but configuring anyway as you requested:
2024-07-17 00:49:28,273: DEBUG -  peertube-ynh-deps depends on yarn; however:
2024-07-17 00:49:28,273: DEBUG -   Package yarn is not installed.
2024-07-17 00:49:28,273: DEBUG - 
2024-07-17 00:49:28,273: DEBUG - Setting up peertube-ynh-deps (6.1.0~ynh2) ...
2024-07-17 00:49:28,562: DEBUG - + ynh_package_install --fix-broken
2024-07-17 00:49:28,562: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2024-07-17 00:49:28,562: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:28,691: DEBUG - + return 0
2024-07-17 00:49:28,692: 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
2024-07-17 00:49:29,065: DEBUG - Reading package lists...
2024-07-17 00:49:29,285: DEBUG - Building dependency tree...
2024-07-17 00:49:29,286: DEBUG - Reading state information...
2024-07-17 00:49:29,477: DEBUG - Correcting dependencies... Done
2024-07-17 00:49:29,707: DEBUG - The following additional packages will be installed:
2024-07-17 00:49:29,708: DEBUG -   libjs-highlight.js libnode72 nodejs nodejs-doc yarn
2024-07-17 00:49:29,712: DEBUG - Suggested packages:
2024-07-17 00:49:29,712: DEBUG -   npm
2024-07-17 00:49:29,736: DEBUG - The following NEW packages will be installed:
2024-07-17 00:49:29,738: DEBUG -   libjs-highlight.js libnode72 nodejs nodejs-doc yarn
2024-07-17 00:49:30,344: DEBUG - 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
2024-07-17 00:49:30,344: DEBUG - Need to get 0 B/12.3 MB of archives.
2024-07-17 00:49:30,344: DEBUG - After this operation, 55.8 MB of additional disk space will be used.
2024-07-17 00:49:30,475: DEBUG - Selecting previously unselected package libjs-highlight.js.
2024-07-17 00:49:30,521: DEBUG - (Reading database ... 68299 files and directories currently installed.)
2024-07-17 00:49:30,528: DEBUG - Preparing to unpack .../libjs-highlight.js_9.18.5+dfsg1-1_all.deb ...
2024-07-17 00:49:30,591: DEBUG - Unpacking libjs-highlight.js (9.18.5+dfsg1-1) ...
2024-07-17 00:49:31,178: DEBUG - Selecting previously unselected package libnode72:amd64.
2024-07-17 00:49:31,188: DEBUG - Preparing to unpack .../libnode72_12.22.12~dfsg-1~deb11u4_amd64.deb ...
2024-07-17 00:49:31,320: DEBUG - Unpacking libnode72:amd64 (12.22.12~dfsg-1~deb11u4) ...
2024-07-17 00:49:32,807: DEBUG - Selecting previously unselected package nodejs.
2024-07-17 00:49:32,817: DEBUG - Preparing to unpack .../nodejs_12.22.12~dfsg-1~deb11u4_amd64.deb ...
2024-07-17 00:49:32,881: DEBUG - Unpacking nodejs (12.22.12~dfsg-1~deb11u4) ...
2024-07-17 00:49:33,394: DEBUG - Selecting previously unselected package nodejs-doc.
2024-07-17 00:49:33,404: DEBUG - Preparing to unpack .../nodejs-doc_12.22.12~dfsg-1~deb11u4_all.deb ...
2024-07-17 00:49:33,469: DEBUG - Unpacking nodejs-doc (12.22.12~dfsg-1~deb11u4) ...
2024-07-17 00:49:34,098: DEBUG - Selecting previously unselected package yarn.
2024-07-17 00:49:34,108: DEBUG - Preparing to unpack .../yarn_1.22.22-1_all.deb ...
2024-07-17 00:49:34,173: DEBUG - Unpacking yarn (1.22.22-1) ...
2024-07-17 00:49:34,749: DEBUG - Setting up libnode72:amd64 (12.22.12~dfsg-1~deb11u4) ...
2024-07-17 00:49:34,935: DEBUG - Setting up libjs-highlight.js (9.18.5+dfsg1-1) ...
2024-07-17 00:49:35,162: DEBUG - Setting up yarn (1.22.22-1) ...
2024-07-17 00:49:35,364: DEBUG - Setting up nodejs (12.22.12~dfsg-1~deb11u4) ...
2024-07-17 00:49:35,504: DEBUG - update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
2024-07-17 00:49:35,625: DEBUG - Setting up nodejs-doc (12.22.12~dfsg-1~deb11u4) ...
2024-07-17 00:49:35,818: DEBUG - Processing triggers for man-db (2.9.4-2) ...
2024-07-17 00:49:38,124: DEBUG - Processing triggers for libc-bin (2.31-13+deb11u10) ...
2024-07-17 00:49:38,666: DEBUG - + [[ -n /tmp/tmp.3ggagbzZAy ]]
2024-07-17 00:49:38,666: DEBUG - + rm --recursive --force /tmp/tmp.3ggagbzZAy
2024-07-17 00:49:38,668: DEBUG - + ynh_package_is_installed peertube-ynh-deps
2024-07-17 00:49:38,683: DEBUG - + dpkg-query --show '--showformat=${Status}' peertube-ynh-deps
2024-07-17 00:49:38,683: DEBUG - + grep --count 'ok installed'
2024-07-17 00:49:38,700: DEBUG - + rm /tmp/peertube-ynh-deps.control
2024-07-17 00:49:38,703: DEBUG - ++ ynh_package_is_installed postgresql-13
2024-07-17 00:49:38,717: DEBUG - ++ dpkg-query --show '--showformat=${Status}' postgresql-13
2024-07-17 00:49:38,717: DEBUG - ++ grep --count 'ok installed'
2024-07-17 00:49:38,735: DEBUG - ++ echo yes
2024-07-17 00:49:38,735: DEBUG - + local psql_installed2=yes
2024-07-17 00:49:38,735: DEBUG - + [[ yes != \y\e\s ]]
2024-07-17 00:49:38,736: DEBUG - ++ apt-mark showauto yarn
2024-07-17 00:49:39,040: DEBUG - + local apps_auto_installed=yarn
2024-07-17 00:49:39,041: DEBUG - + ynh_package_install yarn
2024-07-17 00:49:39,041: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install yarn
2024-07-17 00:49:39,041: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:39,164: DEBUG - + return 0
2024-07-17 00:49:39,165: 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
2024-07-17 00:49:39,213: DEBUG - Reading package lists...
2024-07-17 00:49:39,434: DEBUG - Building dependency tree...
2024-07-17 00:49:39,435: DEBUG - Reading state information...
2024-07-17 00:49:39,814: DEBUG - yarn is already the newest version (1.22.22-1).
2024-07-17 00:49:39,814: DEBUG - yarn set to manually installed.
2024-07-17 00:49:39,814: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2024-07-17 00:49:39,815: DEBUG - + '[' -z yarn ']'
2024-07-17 00:49:39,815: DEBUG - + apt-mark auto yarn
2024-07-17 00:49:40,167: DEBUG - yarn set to automatically installed.
2024-07-17 00:49:40,167: DEBUG - + ynh_remove_extra_repo --name=peertube
2024-07-17 00:49:40,181: DEBUG - + name=peertube
2024-07-17 00:49:40,181: DEBUG - + ynh_secure_remove --file=/etc/apt/sources.list.d/peertube.list
2024-07-17 00:49:40,208: DEBUG - + [[ peertube == \e\x\t\r\a\_\p\h\p\_\v\e\r\s\i\o\n ]]
2024-07-17 00:49:40,209: DEBUG - + ynh_secure_remove /etc/apt/preferences.d/peertube
2024-07-17 00:49:40,235: DEBUG - + '[' -e /etc/apt/trusted.gpg.d/peertube.gpg ']'
2024-07-17 00:49:40,236: DEBUG - + ynh_secure_remove --file=/etc/apt/trusted.gpg.d/peertube.gpg
2024-07-17 00:49:40,262: DEBUG - + '[' -e /etc/apt/trusted.gpg.d/peertube.asc ']'
2024-07-17 00:49:40,263: DEBUG - + ynh_package_update
2024-07-17 00:49:40,263: DEBUG - + ynh_apt update
2024-07-17 00:49:40,263: DEBUG - + ynh_wait_dpkg_free
2024-07-17 00:49:40,397: DEBUG - + return 0
2024-07-17 00:49:40,398: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2024-07-17 00:49:40,718: DEBUG - Hit:1 http://forge.yunohost.org/debian bullseye InRelease
2024-07-17 00:49:40,810: DEBUG - Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
2024-07-17 00:49:40,826: DEBUG - Hit:3 http://deb.debian.org/debian bullseye InRelease
2024-07-17 00:49:40,947: DEBUG - Get:4 https://packages.sury.org/php bullseye InRelease [7551 B]
2024-07-17 00:49:40,953: DEBUG - Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
2024-07-17 00:49:41,380: DEBUG - Fetched 7551 B in 1s (8200 B/s)
2024-07-17 00:49:42,308: DEBUG - Reading package lists...
2024-07-17 00:49:42,331: DEBUG - + ynh_exit_properly
2024-07-17 00:49:42,332: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2024-07-17 00:49:43,333: INFO - Provisioning database...
2024-07-17 00:49:43,463: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database"  7>&1']'
2024-07-17 00:49:43,474: DEBUG - + source /usr/share/yunohost/helpers
2024-07-17 00:49:43,475: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-07-17 00:49:43,476: DEBUG - +++ cd -- /usr/share/yunohost
2024-07-17 00:49:43,476: DEBUG - +++ pwd
2024-07-17 00:49:43,476: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-07-17 00:49:43,476: DEBUG - ++ YNH_HELPERS_VERSION=2
2024-07-17 00:49:43,479: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-07-17 00:49:43,479: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-07-17 00:49:43,508: DEBUG - + ynh_abort_if_errors
2024-07-17 00:49:43,508: DEBUG - + trap ynh_exit_properly EXIT
2024-07-17 00:49:43,509: DEBUG - + ynh_psql_create_user peertube **********
2024-07-17 00:49:43,509: DEBUG - + local user=peertube
2024-07-17 00:49:43,509: DEBUG - + local pwd=**********
2024-07-17 00:49:43,509: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE USER peertube WITH ENCRYPTED PASSWORD '\''**********'\'''
2024-07-17 00:49:43,531: DEBUG - + database=
2024-07-17 00:49:43,531: DEBUG - + '[' -n '' ']'
2024-07-17 00:49:43,531: DEBUG - ++ cat /etc/yunohost/psql
2024-07-17 00:49:43,533: DEBUG - + ynh_psql_connect_as --user=postgres --password=**********
2024-07-17 00:49:43,592: DEBUG - + database=
2024-07-17 00:49:43,592: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ''
2024-07-17 00:49:43,701: DEBUG - CREATE ROLE
2024-07-17 00:49:43,704: DEBUG - + ynh_psql_create_db peertube peertube
2024-07-17 00:49:43,705: DEBUG - + local db=peertube
2024-07-17 00:49:43,705: DEBUG - + local user=peertube
2024-07-17 00:49:43,705: DEBUG - + local 'sql=CREATE DATABASE peertube;'
2024-07-17 00:49:43,705: DEBUG - + '[' -n peertube ']'
2024-07-17 00:49:43,705: DEBUG - + sql+='ALTER DATABASE peertube OWNER TO peertube;'
2024-07-17 00:49:43,705: DEBUG - + sql+='GRANT ALL PRIVILEGES ON DATABASE peertube TO peertube WITH GRANT OPTION;'
2024-07-17 00:49:43,705: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE DATABASE peertube;ALTER DATABASE peertube OWNER TO peertube;GRANT ALL PRIVILEGES ON DATABASE peertube TO peertube WITH GRANT OPTION;'
2024-07-17 00:49:43,728: DEBUG - + database=
2024-07-17 00:49:43,729: DEBUG - + '[' -n '' ']'
2024-07-17 00:49:43,729: DEBUG - ++ cat /etc/yunohost/psql
2024-07-17 00:49:43,730: DEBUG - + ynh_psql_connect_as --user=postgres --password=**********
2024-07-17 00:49:43,790: DEBUG - + database=
2024-07-17 00:49:43,790: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql ''
2024-07-17 00:49:44,526: DEBUG - CREATE DATABASE
2024-07-17 00:49:44,534: DEBUG - ALTER DATABASE
2024-07-17 00:49:44,543: DEBUG - GRANT
2024-07-17 00:49:44,546: DEBUG - + ynh_exit_properly
2024-07-17 00:49:44,547: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]]
2024-07-17 00:49:45,555: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install"  7>&1']'
2024-07-17 00:49:45,566: DEBUG - + source _common.sh
2024-07-17 00:49:45,566: DEBUG - ++ nodejs_version=20
2024-07-17 00:49:45,567: DEBUG - +++ echo peertube
2024-07-17 00:49:45,567: DEBUG - +++ sed s/peertube//g
2024-07-17 00:49:45,569: DEBUG - ++ db_suffix=
2024-07-17 00:49:45,569: DEBUG - + source /usr/share/yunohost/helpers
2024-07-17 00:49:45,570: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2024-07-17 00:49:45,571: DEBUG - +++ cd -- /usr/share/yunohost
2024-07-17 00:49:45,571: DEBUG - +++ pwd
2024-07-17 00:49:45,572: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-07-17 00:49:45,572: DEBUG - ++ YNH_HELPERS_VERSION=2
2024-07-17 00:49:45,574: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2024-07-17 00:49:45,575: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2024-07-17 00:49:45,603: DEBUG - ++ ynh_user_get_info --username=chatsafemedia --key=mail
2024-07-17 00:49:45,645: DEBUG - ++ yunohost user info chatsafemedia --output-as json --quiet
2024-07-17 00:49:46,155: DEBUG - + admin_mail=chatsafemedia@maindomain.tld
2024-07-17 00:49:46,156: DEBUG - ++ ynh_string_random --length=24
2024-07-17 00:49:46,180: DEBUG - ++ length=24
2024-07-17 00:49:46,180: DEBUG - ++ filter=A-Za-z0-9
2024-07-17 00:49:46,180: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2024-07-17 00:49:46,180: DEBUG - ++ tr --complement --delete A-Za-z0-9
2024-07-17 00:49:46,180: DEBUG - ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2024-07-17 00:49:46,185: DEBUG - + admin_pass=**********
2024-07-17 00:49:46,186: DEBUG - ++ ynh_string_random --length=24
2024-07-17 00:49:46,209: DEBUG - ++ length=24
2024-07-17 00:49:46,210: DEBUG - ++ filter=A-Za-z0-9
2024-07-17 00:49:46,210: DEBUG - ++ dd if=/dev/urandom bs=1 count=1000
2024-07-17 00:49:46,210: DEBUG - ++ tr --complement --delete A-Za-z0-9
2024-07-17 00:49:46,210: DEBUG - ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
2024-07-17 00:49:46,216: DEBUG - + secrets_peertube=**********
2024-07-17 00:49:46,216: DEBUG - ++ ynh_redis_get_free_db
2024-07-17 00:49:46,216: DEBUG - ++ local result max db
2024-07-17 00:49:46,217: DEBUG - +++ redis-cli INFO keyspace
2024-07-17 00:49:46,226: DEBUG - ++ result='# Keyspace
'
2024-07-17 00:49:46,228: DEBUG - +++ cat /etc/redis/redis.conf
2024-07-17 00:49:46,228: DEBUG - +++ grep '^databases'
2024-07-17 00:49:46,228: DEBUG - +++ grep -Eow '[0-9]+'
2024-07-17 00:49:46,232: DEBUG - ++ max=16
2024-07-17 00:49:46,232: DEBUG - ++ db=0
2024-07-17 00:49:46,232: DEBUG - +++ seq 0 16
2024-07-17 00:49:46,234: DEBUG - ++ for i in $(seq 0 "$max")
2024-07-17 00:49:46,234: DEBUG - ++ echo '# Keyspace
'
2024-07-17 00:49:46,235: DEBUG - ++ grep -q db0
2024-07-17 00:49:46,237: DEBUG - ++ db=0
2024-07-17 00:49:46,237: DEBUG - ++ break 1
2024-07-17 00:49:46,237: DEBUG - ++ test 0 -eq -1
2024-07-17 00:49:46,237: DEBUG - ++ echo 0
2024-07-17 00:49:46,237: DEBUG - + redis_db=0
2024-07-17 00:49:46,238: DEBUG - + ynh_app_setting_set --app=peertube --key=admin_pass --value=**********
2024-07-17 00:49:46,322: DEBUG - + [[ admin_pass =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:49:46,382: DEBUG - + ynh_app_setting_set --app=peertube --key=secrets_peertube --value=**********
2024-07-17 00:49:46,469: DEBUG - + [[ secrets_peertube =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:49:46,529: DEBUG - + ynh_app_setting_set --app=peertube --key=redis_db --value=0
2024-07-17 00:49:46,617: DEBUG - + [[ redis_db =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:49:46,756: INFO - [++..................] > Installing nodejs...
2024-07-17 00:49:46,757: DEBUG - + ynh_exec_warn_less ynh_install_nodejs --nodejs_version=20
2024-07-17 00:49:46,757: DEBUG - + [[ 2 -eq 1 ]]
2024-07-17 00:49:46,757: DEBUG - + ynh_install_nodejs --nodejs_version=20
2024-07-17 00:49:46,769: DEBUG - + mkdir --parents /opt/node_n
2024-07-17 00:49:46,770: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:46,772: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:46,772: DEBUG - ++ sed s@/usr/local/bin:@@
2024-07-17 00:49:46,775: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:46,775: DEBUG - + test -x /usr/bin/node
2024-07-17 00:49:46,775: DEBUG - + mv /usr/bin/node /usr/bin/node_n
2024-07-17 00:49:46,777: DEBUG - + test -x /usr/bin/npm
2024-07-17 00:49:46,777: DEBUG - + mkdir -p /opt/node_n/bin/
2024-07-17 00:49:46,779: DEBUG - + cp /usr/share/yunohost/helpers.v2.d/vendor/n/n /opt/node_n/bin/n
2024-07-17 00:49:46,781: 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
2024-07-17 00:49:46,869: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:46,870: DEBUG - + test -x /usr/bin/node_n
2024-07-17 00:49:46,870: DEBUG - + mv /usr/bin/node_n /usr/bin/node
2024-07-17 00:49:46,871: DEBUG - + test -x /usr/bin/npm_n
2024-07-17 00:49:46,872: DEBUG - ++ uname --machine
2024-07-17 00:49:46,873: DEBUG - + uname=x86_64
2024-07-17 00:49:46,874: DEBUG - + [[ x86_64 =~ aarch64 ]]
2024-07-17 00:49:46,874: DEBUG - + [[ x86_64 =~ arm64 ]]
2024-07-17 00:49:46,874: DEBUG - + n 20
2024-07-17 00:49:47,059: DEBUG -   installing : node-v20.15.1
2024-07-17 00:49:47,124: DEBUG -        mkdir : /opt/node_n/n/versions/node/20.15.1
2024-07-17 00:49:47,127: DEBUG -        fetch : https://nodejs.org/dist/v20.15.1/node-v20.15.1-linux-x64.tar.xz
2024-07-17 00:49:49,878: DEBUG -      copying : node/20.15.1
2024-07-17 00:49:50,626: DEBUG -    installed : v20.15.1 (with npm 10.7.0)
2024-07-17 00:49:50,626: DEBUG - 
2024-07-17 00:49:50,627: DEBUG - Note: the node command changed location and the old location may be remembered in your current shell.
2024-07-17 00:49:50,627: DEBUG -          old : /usr/bin/node
2024-07-17 00:49:50,627: DEBUG -          new : /opt/node_n/bin/node
2024-07-17 00:49:50,627: DEBUG - If "node --version" shows the old version then start a new shell, or reset the location hash with:
2024-07-17 00:49:50,627: DEBUG - hash -r  (for bash, zsh, ash, dash, and ksh)
2024-07-17 00:49:50,627: DEBUG - rehash   (for csh and tcsh)
2024-07-17 00:49:50,628: DEBUG - ++ sort --version-sort
2024-07-17 00:49:50,629: DEBUG - ++ find /opt/node_n/n/versions/node/20.15.1 -maxdepth 0
2024-07-17 00:49:50,629: DEBUG - ++ tail --lines=1
2024-07-17 00:49:50,631: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/20.15.1
2024-07-17 00:49:50,632: DEBUG - ++ basename /opt/node_n/n/versions/node/20.15.1
2024-07-17 00:49:50,633: DEBUG - + real_nodejs_version=20.15.1
2024-07-17 00:49:50,634: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/20 ']'
2024-07-17 00:49:50,634: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/20.15.1 /opt/node_n/n/versions/node/20
2024-07-17 00:49:50,636: DEBUG - + echo peertube:20
2024-07-17 00:49:50,636: DEBUG - + tee --append /opt/node_n/ynh_app_version
2024-07-17 00:49:50,637: DEBUG - peertube:20
2024-07-17 00:49:50,638: DEBUG - + ynh_app_setting_set --app=peertube --key=nodejs_version --value=20
2024-07-17 00:49:50,726: DEBUG - + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:49:50,787: DEBUG - + ynh_use_nodejs
2024-07-17 00:49:50,788: DEBUG - ++ ynh_app_setting_get --app=peertube --key=nodejs_version
2024-07-17 00:49:50,831: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:49:50,890: DEBUG - + nodejs_version=20
2024-07-17 00:49:50,891: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/20/bin
2024-07-17 00:49:50,891: DEBUG - + shopt -s expand_aliases
2024-07-17 00:49:50,891: DEBUG - + ynh_node=/opt/node_n/n/versions/node/20/bin/node
2024-07-17 00:49:50,891: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/20/bin/node
2024-07-17 00:49:50,891: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2024-07-17 00:49:50,891: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2024-07-17 00:49:50,891: 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\/\2\0\/\b\i\n* ]]
2024-07-17 00:49:50,892: DEBUG - + PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:50,892: DEBUG - + node_PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:50,892: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:50,892: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:50,892: DEBUG - + export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2024-07-17 00:49:50,892: DEBUG - + COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2024-07-17 00:49:50,953: INFO - [##++................] > Initializing PostgreSQL modules...
2024-07-17 00:49:50,953: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE EXTENSION IF NOT EXISTS unaccent;' --database=peertube
2024-07-17 00:49:50,995: DEBUG - + database=peertube
2024-07-17 00:49:50,995: DEBUG - + '[' -n peertube ']'
2024-07-17 00:49:50,995: DEBUG - + database=--database=peertube
2024-07-17 00:49:50,995: DEBUG - ++ cat /etc/yunohost/psql
2024-07-17 00:49:50,997: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** --database=peertube
2024-07-17 00:49:51,084: DEBUG - + database=peertube
2024-07-17 00:49:51,084: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql peertube
2024-07-17 00:49:51,185: DEBUG - CREATE EXTENSION
2024-07-17 00:49:51,188: DEBUG - + ynh_psql_execute_as_root '--sql=CREATE EXTENSION IF NOT EXISTS pg_trgm;' --database=peertube
2024-07-17 00:49:51,232: DEBUG - + database=peertube
2024-07-17 00:49:51,232: DEBUG - + '[' -n peertube ']'
2024-07-17 00:49:51,233: DEBUG - + database=--database=peertube
2024-07-17 00:49:51,233: DEBUG - ++ cat /etc/yunohost/psql
2024-07-17 00:49:51,234: DEBUG - + ynh_psql_connect_as --user=postgres --password=********** --database=peertube
2024-07-17 00:49:51,322: DEBUG - + database=peertube
2024-07-17 00:49:51,322: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql peertube
2024-07-17 00:49:51,429: DEBUG - CREATE EXTENSION
2024-07-17 00:49:51,493: INFO - [####++..............] > Setting up source files...
2024-07-17 00:49:51,494: DEBUG - + ynh_setup_source --dest_dir=/var/www/peertube
2024-07-17 00:49:51,535: DEBUG - + keep=
2024-07-17 00:49:51,535: DEBUG - + full_replace=0
2024-07-17 00:49:51,535: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:49:51,535: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:49:51,535: DEBUG - + toml_to_json
2024-07-17 00:49:51,536: DEBUG - + jq -e .resources.sources
2024-07-17 00:49:51,536: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:49:51,585: DEBUG - + source_id=main
2024-07-17 00:49:51,586: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:49:51,586: DEBUG - ++ toml_to_json
2024-07-17 00:49:51,586: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:49:51,587: DEBUG - ++ jq '.resources.sources["main"]'
2024-07-17 00:49:51,636: DEBUG - + local 'sources_json={
2024-07-17 00:49:51,636: DEBUG -   "url": "https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz",
2024-07-17 00:49:51,637: DEBUG -   "sha256": "7e5d1d0f5c49620ac83602e5b9ebc2f985dc05b110551cde9e2c17094f366733",
2024-07-17 00:49:51,637: DEBUG -   "autoupdate": {
2024-07-17 00:49:51,637: DEBUG -     "strategy": "latest_github_release",
2024-07-17 00:49:51,637: DEBUG -     "asset": "^peertube-v.*\\.tar\\.xz$"
2024-07-17 00:49:51,637: DEBUG -   }
2024-07-17 00:49:51,637: DEBUG - }'
2024-07-17 00:49:51,637: DEBUG - + jq -re .url
2024-07-17 00:49:51,685: DEBUG - https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz
2024-07-17 00:49:51,685: DEBUG - + local arch_prefix=
2024-07-17 00:49:51,736: DEBUG - + local src_url=https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz
2024-07-17 00:49:51,786: DEBUG - + local src_sum=7e5d1d0f5c49620ac83602e5b9ebc2f985dc05b110551cde9e2c17094f366733
2024-07-17 00:49:51,787: DEBUG - + local src_sumprg=sha256sum
2024-07-17 00:49:51,836: DEBUG - + local src_format=
2024-07-17 00:49:51,887: DEBUG - + local src_in_subdir=
2024-07-17 00:49:51,937: DEBUG - + local src_extract=
2024-07-17 00:49:51,988: DEBUG - + local src_platform=
2024-07-17 00:49:52,039: DEBUG - + local src_rename=
2024-07-17 00:49:52,039: DEBUG - + [[ -n https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz ]]
2024-07-17 00:49:52,039: DEBUG - + [[ -n 7e5d1d0f5c49620ac83602e5b9ebc2f985dc05b110551cde9e2c17094f366733 ]]
2024-07-17 00:49:52,039: DEBUG - + [[ -z '' ]]
2024-07-17 00:49:52,039: DEBUG - + [[ https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz =~ ^.*\.zip$ ]]
2024-07-17 00:49:52,040: DEBUG - + [[ https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz =~ ^.*/zipball/.*$ ]]
2024-07-17 00:49:52,040: DEBUG - + [[ https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz =~ ^.*\.tar\.gz$ ]]
2024-07-17 00:49:52,040: DEBUG - + [[ https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz =~ ^.*\.tgz$ ]]
2024-07-17 00:49:52,040: DEBUG - + [[ https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz =~ ^.*/tar\.gz/.*$ ]]
2024-07-17 00:49:52,040: DEBUG - + [[ https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz =~ ^.*/tarball/.*$ ]]
2024-07-17 00:49:52,040: DEBUG - + [[ https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz =~ ^.*\.tar\.xz$ ]]
2024-07-17 00:49:52,041: DEBUG - + src_format=tar.xz
2024-07-17 00:49:52,041: DEBUG - + src_sumprg=sha256sum
2024-07-17 00:49:52,041: DEBUG - + src_in_subdir=true
2024-07-17 00:49:52,041: DEBUG - + src_format=tar.xz
2024-07-17 00:49:52,041: DEBUG - ++ echo tar.xz
2024-07-17 00:49:52,041: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2024-07-17 00:49:52,043: DEBUG - + src_format=tar.xz
2024-07-17 00:49:52,043: DEBUG - + src_extract=true
2024-07-17 00:49:52,043: DEBUG - + [[ true != \t\r\u\e ]]
2024-07-17 00:49:52,043: DEBUG - + local local_src=/opt/yunohost-apps-src/peertube/main
2024-07-17 00:49:52,044: DEBUG - ++ dirname /var/cache/yunohost/download/peertube/main
2024-07-17 00:49:52,045: DEBUG - + mkdir -p /var/cache/yunohost/download/peertube
2024-07-17 00:49:52,047: DEBUG - + src_filename=/var/cache/yunohost/download/peertube/main
2024-07-17 00:49:52,047: DEBUG - + '[' tar.xz = docker ']'
2024-07-17 00:49:52,047: DEBUG - + test -e /opt/yunohost-apps-src/peertube/main
2024-07-17 00:49:52,047: DEBUG - + '[' -n https://github.com/Chocobozzz/PeerTube/releases/download/v6.1.0/peertube-v6.1.0.tar.xz ']'
2024-07-17 00:49:52,047: DEBUG - + '[' -e /var/cache/yunohost/download/peertube/main ']'
2024-07-17 00:49:52,048: DEBUG - + sha256sum --check --status
2024-07-17 00:49:52,317: DEBUG - + '[' '!' -e /var/cache/yunohost/download/peertube/main ']'
2024-07-17 00:49:52,318: DEBUG - + sha256sum --check --status
2024-07-17 00:49:52,586: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2024-07-17 00:49:52,588: DEBUG - + '[' -n '' ']'
2024-07-17 00:49:52,588: DEBUG - + mkdir --parents /var/www/peertube
2024-07-17 00:49:52,590: DEBUG - + '[' -n /var/www/peertube ']'
2024-07-17 00:49:52,590: DEBUG - + '[' /var/www/peertube == /var/www/peertube ']'
2024-07-17 00:49:52,590: DEBUG - + _ynh_apply_default_permissions /var/www/peertube
2024-07-17 00:49:52,590: DEBUG - + local target=/var/www/peertube
2024-07-17 00:49:52,591: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2024-07-17 00:49:52,592: DEBUG - ++ tr -d '<>= '
2024-07-17 00:49:52,614: DEBUG - ++ '[' '!' -e '' ']'
2024-07-17 00:49:52,615: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.json ']'
2024-07-17 00:49:52,615: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml ']'
2024-07-17 00:49:52,615: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:49:52,615: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:49:52,615: DEBUG - ++ grep -q '\.json$'
2024-07-17 00:49:52,618: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:49:52,618: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:49:52,618: DEBUG - ++ jq .requirements.yunohost --raw-output
2024-07-17 00:49:52,668: DEBUG - + local ynh_requirement=null
2024-07-17 00:49:52,668: DEBUG - + dpkg --compare-versions 2.0 ge 2
2024-07-17 00:49:52,671: DEBUG - + chmod o-rwx /var/www/peertube
2024-07-17 00:49:52,672: DEBUG - + chmod g-w /var/www/peertube
2024-07-17 00:49:52,674: DEBUG - + chown -R root:root /var/www/peertube
2024-07-17 00:49:52,675: DEBUG - + ynh_system_user_exists peertube
2024-07-17 00:49:52,689: DEBUG - + getent passwd peertube
2024-07-17 00:49:52,693: DEBUG - + chown peertube:peertube /var/www/peertube
2024-07-17 00:49:52,697: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2024-07-17 00:49:52,700: DEBUG - + '[' -n '' ']'
2024-07-17 00:49:52,700: DEBUG - + [[ true == \f\a\l\s\e ]]
2024-07-17 00:49:52,700: DEBUG - + [[ tar.xz == \d\o\c\k\e\r ]]
2024-07-17 00:49:52,700: DEBUG - + [[ tar.xz == \z\i\p ]]
2024-07-17 00:49:52,700: DEBUG - + local strip=
2024-07-17 00:49:52,700: DEBUG - + '[' true '!=' false ']'
2024-07-17 00:49:52,701: DEBUG - + '[' true == true ']'
2024-07-17 00:49:52,701: DEBUG - + local sub_dirs=1
2024-07-17 00:49:52,701: DEBUG - + strip='--strip-components 1'
2024-07-17 00:49:52,701: DEBUG - + [[ tar.xz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2024-07-17 00:49:52,701: DEBUG - + tar --extract --file=/var/cache/yunohost/download/peertube/main --directory=/var/www/peertube --strip-components 1
2024-07-17 00:49:58,718: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/peertube/main
2024-07-17 00:49:58,755: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/sources/patches/ ']'
2024-07-17 00:49:58,756: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/sources/extra_files/main
2024-07-17 00:49:58,756: DEBUG - + '[' -n '' ']'
2024-07-17 00:49:58,756: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2024-07-17 00:49:58,757: DEBUG - + chmod -R o-rwx /var/www/peertube
2024-07-17 00:49:58,826: DEBUG - + chown -R peertube:www-data /var/www/peertube
2024-07-17 00:49:58,964: INFO - [######++............] > Building Yarn dependencies...
2024-07-17 00:49:58,965: DEBUG - + pushd /var/www/peertube
2024-07-17 00:49:58,965: DEBUG - /var/www/peertube /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/scripts
2024-07-17 00:49:58,966: DEBUG - + ynh_use_nodejs
2024-07-17 00:49:58,966: DEBUG - ++ ynh_app_setting_get --app=peertube --key=nodejs_version
2024-07-17 00:49:59,010: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:49:59,070: DEBUG - + nodejs_version=20
2024-07-17 00:49:59,070: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/20/bin
2024-07-17 00:49:59,070: DEBUG - + shopt -s expand_aliases
2024-07-17 00:49:59,070: DEBUG - + ynh_node=/opt/node_n/n/versions/node/20/bin/node
2024-07-17 00:49:59,071: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/20/bin/node
2024-07-17 00:49:59,071: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2024-07-17 00:49:59,071: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/20/bin/npm
2024-07-17 00:49:59,071: DEBUG - + [[ :/opt/node_n/n/versions/node/20/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\/\2\0\/\b\i\n* ]]
2024-07-17 00:49:59,071: DEBUG - + node_PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:59,071: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:59,072: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:49:59,072: DEBUG - + export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2024-07-17 00:49:59,072: DEBUG - + COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2024-07-17 00:49:59,072: DEBUG - + ynh_exec_warn_less ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn config set network-timeout 300000
2024-07-17 00:49:59,072: DEBUG - + [[ 10 -eq 1 ]]
2024-07-17 00:49:59,072: DEBUG - + ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn config set network-timeout 300000
2024-07-17 00:49:59,073: DEBUG - + local user=peertube
2024-07-17 00:49:59,073: DEBUG - + shift 1
2024-07-17 00:49:59,073: DEBUG - ++ whoami
2024-07-17 00:49:59,073: DEBUG - + [[ peertube = root ]]
2024-07-17 00:49:59,073: DEBUG - + sudo -u peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn config set network-timeout 300000
2024-07-17 00:49:59,363: DEBUG - yarn config v1.22.22
2024-07-17 00:49:59,435: DEBUG - success Set "network-timeout" to "300000".
2024-07-17 00:49:59,435: DEBUG - Done in 0.08s.
2024-07-17 00:49:59,455: DEBUG - + ynh_exec_warn_less ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn install --production --pure-lockfile
2024-07-17 00:49:59,456: DEBUG - + [[ 9 -eq 1 ]]
2024-07-17 00:49:59,456: DEBUG - + ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn install --production --pure-lockfile
2024-07-17 00:49:59,456: DEBUG - + local user=peertube
2024-07-17 00:49:59,456: DEBUG - + shift 1
2024-07-17 00:49:59,457: DEBUG - ++ whoami
2024-07-17 00:49:59,458: DEBUG - + [[ peertube = root ]]
2024-07-17 00:49:59,458: DEBUG - + sudo -u peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn install --production --pure-lockfile
2024-07-17 00:49:59,755: DEBUG - yarn install v1.22.22
2024-07-17 00:49:59,943: DEBUG - [1/5] Validating package.json...
2024-07-17 00:49:59,954: DEBUG - [2/5] Resolving packages...
2024-07-17 00:50:00,738: DEBUG - [3/5] Fetching packages...
2024-07-17 00:50:34,483: DEBUG - [4/5] Linking dependencies...
2024-07-17 00:50:34,493: DEBUG - warning " > @typescript-eslint/eslint-plugin@7.0.2" has unmet peer dependency "@typescript-eslint/parser@^7.0.0".
2024-07-17 00:50:34,493: DEBUG - warning " > chai-json-schema@1.5.1" has incorrect peer dependency "chai@>= 1.6.1 < 5".
2024-07-17 00:50:34,494: DEBUG - warning " > eslint-config-standard-with-typescript@43.0.1" has incorrect peer dependency "@typescript-eslint/eslint-plugin@^6.4.0".
2024-07-17 00:50:34,495: DEBUG - warning "swagger-cli > @apidevtools/swagger-cli > @apidevtools/swagger-parser@10.1.0" has unmet peer dependency "openapi-types@>=7".
2024-07-17 00:51:06,974: DEBUG - [5/5] Building fresh packages...
2024-07-17 00:51:08,134: DEBUG - $ test -n "$NOCLIENT" || (cd client && yarn install --pure-lockfile)
2024-07-17 00:51:08,419: DEBUG - yarn install v1.22.22
2024-07-17 00:51:08,597: DEBUG - [1/4] Resolving packages...
2024-07-17 00:51:09,437: DEBUG - [2/4] Fetching packages...
2024-07-17 00:51:40,987: DEBUG - warning chart.js@4.4.1: The engine "pnpm" appears to be invalid.
2024-07-17 00:51:40,997: DEBUG - [3/4] Linking dependencies...
2024-07-17 00:51:41,265: DEBUG - [4/4] Building fresh packages...
2024-07-17 00:51:41,332: DEBUG - Done in 32.92s.
2024-07-17 00:51:41,372: DEBUG - Done in 101.62s.
2024-07-17 00:51:41,421: DEBUG - + ynh_exec_warn_less ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn cache clean
2024-07-17 00:51:41,421: DEBUG - + [[ 8 -eq 1 ]]
2024-07-17 00:51:41,421: DEBUG - + ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn cache clean
2024-07-17 00:51:41,421: DEBUG - + local user=peertube
2024-07-17 00:51:41,422: DEBUG - + shift 1
2024-07-17 00:51:41,422: DEBUG - ++ whoami
2024-07-17 00:51:41,424: DEBUG - + [[ peertube = root ]]
2024-07-17 00:51:41,424: DEBUG - + sudo -u peertube env PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 yarn cache clean
2024-07-17 00:51:41,719: DEBUG - yarn cache v1.22.22
2024-07-17 00:51:49,419: DEBUG - success Cleared cache.
2024-07-17 00:51:49,419: DEBUG - Done in 7.71s.
2024-07-17 00:51:49,463: DEBUG - + popd
2024-07-17 00:51:49,463: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/scripts
2024-07-17 00:51:49,527: INFO - [########+++.........] > Adding system configurations...
2024-07-17 00:51:49,527: DEBUG - + ynh_add_nginx_config
2024-07-17 00:51:49,527: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,528: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,589: DEBUG - + jinja=0
2024-07-17 00:51:49,590: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/nginx.conf ']'
2024-07-17 00:51:49,590: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/nginx.conf
2024-07-17 00:51:49,590: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,604: DEBUG - ++ ynh_app_setting_get --app=peertube --key=checksum__etc_nginx_conf.d_maindomain.tld.d_peertube.conf
2024-07-17 00:51:49,649: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_peertube.conf =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:51:49,709: DEBUG - + local checksum_value=
2024-07-17 00:51:49,709: DEBUG - + backup_file_checksum=
2024-07-17 00:51:49,709: DEBUG - + '[' -n '' ']'
2024-07-17 00:51:49,710: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,711: DEBUG - + chmod 640 /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,713: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,713: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,714: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2024-07-17 00:51:49,715: DEBUG - ++ tr -d '<>= '
2024-07-17 00:51:49,740: DEBUG - ++ '[' '!' -e '' ']'
2024-07-17 00:51:49,740: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.json ']'
2024-07-17 00:51:49,740: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml ']'
2024-07-17 00:51:49,740: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:49,740: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:49,741: DEBUG - ++ grep -q '\.json$'
2024-07-17 00:51:49,743: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:49,743: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:51:49,743: DEBUG - ++ jq .requirements.yunohost --raw-output
2024-07-17 00:51:49,793: DEBUG - + local ynh_requirement=null
2024-07-17 00:51:49,793: DEBUG - + dpkg --compare-versions 2.0 ge 2
2024-07-17 00:51:49,796: DEBUG - + chmod o-rwx /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,798: DEBUG - + chmod g-w /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,799: DEBUG - + chown -R root:root /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,800: DEBUG - + ynh_system_user_exists peertube
2024-07-17 00:51:49,814: DEBUG - + getent passwd peertube
2024-07-17 00:51:49,816: DEBUG - + chown peertube:peertube /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,818: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2024-07-17 00:51:49,820: DEBUG - + chmod 400 /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,822: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,824: DEBUG - + [[ 0 == 1 ]]
2024-07-17 00:51:49,824: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,826: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,840: DEBUG - + test -n /
2024-07-17 00:51:49,840: DEBUG - + local path_url_slash_less=
2024-07-17 00:51:49,840: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:49,932: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,025: DEBUG - + test -n peertube
2024-07-17 00:51:50,025: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=peertube --target_file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,118: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=peertube --target_file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,209: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=peertube --target_file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,302: DEBUG - + test -n ''
2024-07-17 00:51:50,302: DEBUG - + dpkg --compare-versions 2.0 lt 2
2024-07-17 00:51:50,304: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:51:50,304: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,399: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,399: DEBUG - ++ sort --unique
2024-07-17 00:51:50,399: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2024-07-17 00:51:50,403: DEBUG - + uniques_vars=('data_dir' 'install_dir' 'port')
2024-07-17 00:51:50,410: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,411: DEBUG - + update_only=0
2024-07-17 00:51:50,436: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,436: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-07-17 00:51:50,439: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__etc_nginx_conf.d_maindomain.tld.d_peertube.conf --value=ad64d2bb5161a02e13550bf2b7c6af8c
2024-07-17 00:51:50,531: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_peertube.conf =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:51:50,593: DEBUG - + '[' -n '' ']'
2024-07-17 00:51:50,593: DEBUG - + '[' / '!=' / ']'
2024-07-17 00:51:50,593: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,687: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,689: DEBUG - + update_only=0
2024-07-17 00:51:50,713: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/peertube.conf
2024-07-17 00:51:50,714: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-07-17 00:51:50,716: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__etc_nginx_conf.d_maindomain.tld.d_peertube.conf --value=ad64d2bb5161a02e13550bf2b7c6af8c
2024-07-17 00:51:50,807: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_peertube.conf =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:51:50,868: DEBUG - + '[' -n '' ']'
2024-07-17 00:51:50,869: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2024-07-17 00:51:50,986: DEBUG - + service_name=nginx
2024-07-17 00:51:50,986: DEBUG - + action=reload
2024-07-17 00:51:50,986: DEBUG - + line_match=
2024-07-17 00:51:50,986: DEBUG - + length=20
2024-07-17 00:51:50,986: DEBUG - + log_path=/var/log/nginx/nginx.log
2024-07-17 00:51:50,987: DEBUG - + timeout=300
2024-07-17 00:51:50,987: DEBUG - + '[' reload == stop ']'
2024-07-17 00:51:50,987: DEBUG - + '[' reload == reload ']'
2024-07-17 00:51:50,987: DEBUG - + action=reload-or-restart
2024-07-17 00:51:50,987: DEBUG - ++ date --utc --rfc-3339=seconds
2024-07-17 00:51:50,987: DEBUG - ++ cut -d+ -f1
2024-07-17 00:51:50,990: DEBUG - + local 'time_start=2024-07-17 05:51:50 UTC'
2024-07-17 00:51:50,990: DEBUG - + systemctl reload-or-restart nginx
2024-07-17 00:51:51,192: DEBUG - + ynh_add_systemd_config
2024-07-17 00:51:51,193: DEBUG - + service=peertube
2024-07-17 00:51:51,194: DEBUG - + template=systemd.service
2024-07-17 00:51:51,194: DEBUG - + ynh_add_config --template=systemd.service --destination=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,259: DEBUG - + jinja=0
2024-07-17 00:51:51,259: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/systemd.service ']'
2024-07-17 00:51:51,260: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/systemd.service
2024-07-17 00:51:51,260: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,275: DEBUG - ++ ynh_app_setting_get --app=peertube --key=checksum__etc_systemd_system_peertube.service
2024-07-17 00:51:51,318: DEBUG - ++ [[ checksum__etc_systemd_system_peertube.service =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:51:51,380: DEBUG - + local checksum_value=
2024-07-17 00:51:51,381: DEBUG - + backup_file_checksum=
2024-07-17 00:51:51,381: DEBUG - + '[' -n '' ']'
2024-07-17 00:51:51,381: DEBUG - + touch /etc/systemd/system/peertube.service
2024-07-17 00:51:51,382: DEBUG - + chmod 640 /etc/systemd/system/peertube.service
2024-07-17 00:51:51,384: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/peertube.service
2024-07-17 00:51:51,384: DEBUG - + local target=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,385: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2024-07-17 00:51:51,385: DEBUG - ++ tr -d '<>= '
2024-07-17 00:51:51,410: DEBUG - ++ '[' '!' -e '' ']'
2024-07-17 00:51:51,410: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.json ']'
2024-07-17 00:51:51,411: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml ']'
2024-07-17 00:51:51,411: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:51,411: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:51,411: DEBUG - ++ grep -q '\.json$'
2024-07-17 00:51:51,413: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:51,414: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:51:51,414: DEBUG - ++ jq .requirements.yunohost --raw-output
2024-07-17 00:51:51,464: DEBUG - + local ynh_requirement=null
2024-07-17 00:51:51,472: DEBUG - + dpkg --compare-versions 2.0 ge 2
2024-07-17 00:51:51,472: DEBUG - + chmod o-rwx /etc/systemd/system/peertube.service
2024-07-17 00:51:51,472: DEBUG - + chmod g-w /etc/systemd/system/peertube.service
2024-07-17 00:51:51,474: DEBUG - + chown -R root:root /etc/systemd/system/peertube.service
2024-07-17 00:51:51,475: DEBUG - + ynh_system_user_exists peertube
2024-07-17 00:51:51,490: DEBUG - + getent passwd peertube
2024-07-17 00:51:51,491: DEBUG - + chown peertube:peertube /etc/systemd/system/peertube.service
2024-07-17 00:51:51,494: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2024-07-17 00:51:51,496: DEBUG - + chmod 400 /etc/systemd/system/peertube.service
2024-07-17 00:51:51,497: DEBUG - + chown root:root /etc/systemd/system/peertube.service
2024-07-17 00:51:51,499: DEBUG - + [[ 0 == 1 ]]
2024-07-17 00:51:51,499: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/systemd.service /etc/systemd/system/peertube.service
2024-07-17 00:51:51,539: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,553: DEBUG - + test -n /
2024-07-17 00:51:51,553: DEBUG - + local path_url_slash_less=
2024-07-17 00:51:51,553: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,647: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,790: DEBUG - + test -n peertube
2024-07-17 00:51:51,790: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=peertube --target_file=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,882: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=peertube --target_file=/etc/systemd/system/peertube.service
2024-07-17 00:51:51,973: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=peertube --target_file=/etc/systemd/system/peertube.service
2024-07-17 00:51:52,066: DEBUG - + test -n ''
2024-07-17 00:51:52,066: DEBUG - + dpkg --compare-versions 2.0 lt 2
2024-07-17 00:51:52,068: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:51:52,068: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/peertube.service
2024-07-17 00:51:52,163: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/peertube.service
2024-07-17 00:51:52,164: DEBUG - ++ sort --unique
2024-07-17 00:51:52,164: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2024-07-17 00:51:52,167: DEBUG - + uniques_vars=('app' 'install_dir' 'ynh_node')
2024-07-17 00:51:52,174: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/peertube.service
2024-07-17 00:51:52,175: DEBUG - + update_only=0
2024-07-17 00:51:52,200: DEBUG - ++ md5sum /etc/systemd/system/peertube.service
2024-07-17 00:51:52,201: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-07-17 00:51:52,203: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__etc_systemd_system_peertube.service --value=3b6ccc926a59d8a2ee6ba6c7c97a5414
2024-07-17 00:51:52,296: DEBUG - + [[ checksum__etc_systemd_system_peertube.service =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:51:52,357: DEBUG - + '[' -n '' ']'
2024-07-17 00:51:52,358: DEBUG - + systemctl enable peertube --quiet
2024-07-17 00:51:52,606: DEBUG - + systemctl daemon-reload
2024-07-17 00:51:52,853: DEBUG - + mkdir -p /var/log/peertube
2024-07-17 00:51:52,855: DEBUG - + touch /var/log/peertube/peertube.log
2024-07-17 00:51:52,856: DEBUG - + chown -R peertube:peertube /var/log/peertube
2024-07-17 00:51:52,858: DEBUG - + ynh_use_logrotate
2024-07-17 00:51:52,858: DEBUG - + all_args=()
2024-07-17 00:51:52,859: DEBUG - ++ seq 0 -1
2024-07-17 00:51:52,860: DEBUG - + set --
2024-07-17 00:51:52,861: DEBUG - + logfile=
2024-07-17 00:51:52,862: DEBUG - + specific_user=
2024-07-17 00:51:52,862: DEBUG - + set -o noglob
2024-07-17 00:51:52,862: DEBUG - + [[ -z '' ]]
2024-07-17 00:51:52,862: DEBUG - + logfile='/var/log/peertube/*.log'
2024-07-17 00:51:52,862: DEBUG - + set +o noglob
2024-07-17 00:51:52,862: DEBUG - + for stuff in $logfile
2024-07-17 00:51:52,862: DEBUG - ++ dirname /var/log/peertube/peertube.log
2024-07-17 00:51:52,862: DEBUG - + mkdir --parents /var/log/peertube
2024-07-17 00:51:52,864: DEBUG - + local su_directive=
2024-07-17 00:51:52,865: DEBUG - ++ mktemp
2024-07-17 00:51:52,866: DEBUG - + local tempconf=/tmp/tmp.CIzHDO6XAd
2024-07-17 00:51:52,867: DEBUG - + cat
2024-07-17 00:51:52,869: DEBUG - + [[ true == \t\r\u\e ]]
2024-07-17 00:51:52,869: DEBUG - + cat /tmp/tmp.CIzHDO6XAd
2024-07-17 00:51:52,870: DEBUG - + FIRST_CALL_TO_LOGROTATE=false
2024-07-17 00:51:52,870: DEBUG - + chmod 644 /etc/logrotate.d/peertube
2024-07-17 00:51:52,872: DEBUG - + mkdir -p /var/log/peertube
2024-07-17 00:51:52,874: DEBUG - + chmod 750 /var/log/peertube
2024-07-17 00:51:52,875: DEBUG - + yunohost service add peertube '--description=Federated video streaming platform' --log=/var/log/peertube/peertube.log --needs_exposed_ports 1935
2024-07-17 00:51:53,208: DEBUG - The service 'peertube' was added
2024-07-17 00:51:53,312: INFO - [###########++.......] > Adding peertube configuration file...
2024-07-17 00:51:53,313: DEBUG - + ynh_add_config --template=production.yaml --destination=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,376: DEBUG - + jinja=0
2024-07-17 00:51:53,376: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/production.yaml ']'
2024-07-17 00:51:53,377: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/production.yaml
2024-07-17 00:51:53,377: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,390: DEBUG - ++ ynh_app_setting_get --app=peertube --key=checksum__var_www_peertube_config_production.yaml
2024-07-17 00:51:53,435: DEBUG - ++ [[ checksum__var_www_peertube_config_production.yaml =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:51:53,495: DEBUG - + local checksum_value=
2024-07-17 00:51:53,496: DEBUG - + backup_file_checksum=
2024-07-17 00:51:53,496: DEBUG - + '[' -n '' ']'
2024-07-17 00:51:53,496: DEBUG - + touch /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,497: DEBUG - + chmod 640 /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,499: DEBUG - + _ynh_apply_default_permissions /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,499: DEBUG - + local target=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,501: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2024-07-17 00:51:53,501: DEBUG - ++ tr -d '<>= '
2024-07-17 00:51:53,525: DEBUG - ++ '[' '!' -e '' ']'
2024-07-17 00:51:53,525: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.json ']'
2024-07-17 00:51:53,525: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml ']'
2024-07-17 00:51:53,525: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:53,525: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:53,525: DEBUG - ++ grep -q '\.json$'
2024-07-17 00:51:53,528: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/manifest.toml
2024-07-17 00:51:53,528: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2024-07-17 00:51:53,528: DEBUG - ++ jq .requirements.yunohost --raw-output
2024-07-17 00:51:53,579: DEBUG - + local ynh_requirement=null
2024-07-17 00:51:53,579: DEBUG - + dpkg --compare-versions 2.0 ge 2
2024-07-17 00:51:53,581: DEBUG - + chmod o-rwx /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,583: DEBUG - + chmod g-w /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,584: DEBUG - + chown -R root:root /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,586: DEBUG - + ynh_system_user_exists peertube
2024-07-17 00:51:53,600: DEBUG - + getent passwd peertube
2024-07-17 00:51:53,602: DEBUG - + chown peertube:peertube /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,604: DEBUG - + grep -qE '^(/etc/cron|/etc/php|/etc/nginx/conf.d|/etc/fail2ban|/etc/systemd/system)'
2024-07-17 00:51:53,606: DEBUG - + [[ 0 == 1 ]]
2024-07-17 00:51:53,607: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/conf/production.yaml /var/www/peertube/config/production.yaml
2024-07-17 00:51:53,609: DEBUG - + ynh_replace_vars --file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,623: DEBUG - + test -n /
2024-07-17 00:51:53,623: DEBUG - + local path_url_slash_less=
2024-07-17 00:51:53,623: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,717: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,810: DEBUG - + test -n peertube
2024-07-17 00:51:53,810: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=peertube --target_file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,904: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=peertube --target_file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:53,998: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=peertube --target_file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:54,093: DEBUG - + test -n ''
2024-07-17 00:51:54,093: DEBUG - + dpkg --compare-versions 2.0 lt 2
2024-07-17 00:51:54,095: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/20/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-17 00:51:54,095: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/20/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
2024-07-17 00:51:54,191: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/peertube/config/production.yaml
2024-07-17 00:51:54,192: DEBUG - ++ sort --unique
2024-07-17 00:51:54,192: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2024-07-17 00:51:54,196: DEBUG - + uniques_vars=('admin_mail' 'app' 'data_dir' 'db_pwd' 'db_suffix' 'db_user' 'domain' 'mail_pwd' 'port' 'redis_db' 'secrets_peertube')
2024-07-17 00:51:54,224: DEBUG - + ynh_store_file_checksum --file=/var/www/peertube/config/production.yaml
2024-07-17 00:51:54,225: DEBUG - + update_only=0
2024-07-17 00:51:54,250: DEBUG - ++ md5sum /var/www/peertube/config/production.yaml
2024-07-17 00:51:54,251: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-07-17 00:51:54,253: DEBUG - + ynh_app_setting_set --app=peertube --key=checksum__var_www_peertube_config_production.yaml --value=8493e5a5ada361b2e27f7f601953c193
2024-07-17 00:51:54,346: DEBUG - + [[ checksum__var_www_peertube_config_production.yaml =~ (unprotected|protected|skipped)_ ]]
2024-07-17 00:51:54,408: DEBUG - + '[' -n '' ']'
2024-07-17 00:51:54,408: DEBUG - + chmod 400 /var/www/peertube/config/production.yaml
2024-07-17 00:51:54,409: DEBUG - + chown peertube:peertube /var/www/peertube/config/production.yaml
2024-07-17 00:51:54,411: DEBUG - + chmod 600 /var/www/peertube/config/local-production.json
2024-07-17 00:51:54,413: DEBUG - + chown peertube:peertube /var/www/peertube/config/local-production.json
2024-07-17 00:51:54,479: INFO - [#############++.....] > Starting a systemd service...
2024-07-17 00:51:54,480: DEBUG - + ynh_systemd_action --service_name=peertube --action=start --log_path=systemd '--line_match=HTTP server listening on 127.0.0.1'
2024-07-17 00:51:54,708: DEBUG - + service_name=peertube
2024-07-17 00:51:54,709: DEBUG - + action=start
2024-07-17 00:51:54,709: DEBUG - + line_match='HTTP server listening on 127.0.0.1'
2024-07-17 00:51:54,709: DEBUG - + length=20
2024-07-17 00:51:54,709: DEBUG - + log_path=systemd
2024-07-17 00:51:54,710: DEBUG - + timeout=300
2024-07-17 00:51:54,710: DEBUG - + '[' start == stop ']'
2024-07-17 00:51:54,710: DEBUG - + [[ -n HTTP server listening on 127.0.0.1 ]]
2024-07-17 00:51:54,710: DEBUG - ++ mktemp
2024-07-17 00:51:54,711: DEBUG - + local templog=/tmp/tmp.YhtcwyHw5E
2024-07-17 00:51:54,711: DEBUG - + '[' systemd == systemd ']'
2024-07-17 00:51:54,711: DEBUG - + local pid_tail=66964
2024-07-17 00:51:54,711: DEBUG - + '[' start == reload ']'
2024-07-17 00:51:54,712: DEBUG - + journalctl --unit=peertube --follow --since=-0 --quiet
2024-07-17 00:51:54,712: DEBUG - ++ date --utc --rfc-3339=seconds
2024-07-17 00:51:54,713: DEBUG - ++ cut -d+ -f1
2024-07-17 00:51:54,715: DEBUG - + local 'time_start=2024-07-17 05:51:54 UTC'
2024-07-17 00:51:54,715: DEBUG - + systemctl start peertube
2024-07-17 00:51:54,725: DEBUG - + [[ -n HTTP server listening on 127.0.0.1 ]]
2024-07-17 00:52:24,151: WARNING - (this may take some time)
2024-07-17 00:56:55,374: DEBUG - + '[' 300 -ge 3 ']'
2024-07-17 00:56:55,375: DEBUG - + '[' 300 -eq 300 ']'
2024-07-17 00:56:55,375: DEBUG - + ynh_print_warn '--message=The service peertube didn'\''t fully executed the action start before the timeout.'
2024-07-17 00:56:55,375: DEBUG - 
2024-07-17 00:56:55,389: DEBUG - + ynh_print_log 'The service peertube didn'\''t fully executed the action start before the timeout.'
2024-07-17 00:56:55,389: DEBUG - + echo -e 'The service peertube didn'\''t fully executed the action start before the timeout.'
2024-07-17 00:56:55,389: DEBUG - + ynh_print_warn '--message=Please find here an extract of the end of the log of the service peertube:'
2024-07-17 00:56:55,389: WARNING - The service peertube didn't fully executed the action start before the timeout.
2024-07-17 00:56:55,403: DEBUG - + ynh_print_log 'Please find here an extract of the end of the log of the service peertube:'
2024-07-17 00:56:55,403: DEBUG - + echo -e 'Please find here an extract of the end of the log of the service peertube:'
2024-07-17 00:56:55,403: DEBUG - + ynh_exec_warn journalctl --quiet --no-hostname --no-pager --lines=20 --unit=peertube
2024-07-17 00:56:55,403: DEBUG - + [[ 6 -eq 1 ]]
2024-07-17 00:56:55,403: WARNING - Please find here an extract of the end of the log of the service peertube:
2024-07-17 00:56:55,404: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=peertube
2024-07-17 00:56:55,411: DEBUG - + ynh_print_warn '--message=Jul 17 00:56:54 peertube[69256]:   directory: '\''/home/yunohost.app/peertube/storage/tmp/resumable-uploads'\'',
2024-07-17 00:56:55,411: DEBUG - Jul 17 00:56:54 peertube[69256]:   expiration: { maxAge: undefined, rolling: true },
2024-07-17 00:56:55,411: DEBUG - Jul 17 00:56:54 peertube[69256]:   maxMetadataSize: '\''10MB'\'',
2024-07-17 00:56:55,411: DEBUG - Jul 17 00:56:54 peertube[69256]:   logger: [Function: Object],
2024-07-17 00:56:55,412: DEBUG - Jul 17 00:56:54 peertube[69256]:   userIdentifier: [Function: userIdentifier],
2024-07-17 00:56:55,412: DEBUG - Jul 17 00:56:54 peertube[69256]:   filename: [Function: filename]
2024-07-17 00:56:55,412: DEBUG - Jul 17 00:56:54 peertube[69256]: }
2024-07-17 00:56:55,412: DEBUG - Jul 17 00:56:54 peertube[69256]: [127.0.0.1:443 uploadx] 2024-07-17 00:56:54.801 debug: Registered handlers: DELETE, GET, OPTIONS, PATCH, POST, PUT
2024-07-17 00:56:55,412: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 debug: Checking NodeJS version v20.15.1.
2024-07-17 00:56:55,412: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 info: Using following configuration file hierarchy: /var/www/peertube/config/default.yaml -> /var/www/peertube/config/production.yaml -> /var/www/peertube/config/test.yaml -> /var/www/peertube/config/local-production.json.
2024-07-17 00:56:55,412: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.282 warn: SMTP is not configured so the contact form will not work.
2024-07-17 00:56:55,413: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.283 error: Config error. {
2024-07-17 00:56:55,413: DEBUG - Jul 17 00:56:55 peertube[69256]:   "err": {
2024-07-17 00:56:55,413: DEBUG - Jul 17 00:56:55 peertube[69256]:     "stack": "Error: Video redundancy minimum lifetime should be >= 10 hours for strategy most-views\n    at checkLocalRedundancyConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:129:23)\n    at checkConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:34:5)\n    at file:///var/www/peertube/dist/server.js:27:5",
2024-07-17 00:56:55,413: DEBUG - Jul 17 00:56:55 peertube[69256]:     "message": "Video redundancy minimum lifetime should be >= 10 hours for strategy most-views"
2024-07-17 00:56:55,413: DEBUG - Jul 17 00:56:55 peertube[69256]:   }
2024-07-17 00:56:55,413: DEBUG - Jul 17 00:56:55 peertube[69256]: }
2024-07-17 00:56:55,413: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2024-07-17 00:56:55,414: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Failed with result '\''exit-code'\''.
2024-07-17 00:56:55,414: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Consumed 4.391s CPU time.'
2024-07-17 00:56:55,415: DEBUG - Jul 17 00:56:54 peertube[69256]:   expiration: { maxAge: undefined, rolling: true },
2024-07-17 00:56:55,415: DEBUG - Jul 17 00:56:54 peertube[69256]:   maxMetadataSize: '\''10MB'\'',
2024-07-17 00:56:55,415: DEBUG - Jul 17 00:56:54 peertube[69256]:   logger: [Function: Object],
2024-07-17 00:56:55,415: DEBUG - Jul 17 00:56:54 peertube[69256]:   userIdentifier: [Function: userIdentifier],
2024-07-17 00:56:55,415: DEBUG - Jul 17 00:56:54 peertube[69256]:   filename: [Function: filename]
2024-07-17 00:56:55,415: DEBUG - Jul 17 00:56:54 peertube[69256]: }
2024-07-17 00:56:55,415: DEBUG - Jul 17 00:56:54 peertube[69256]: [127.0.0.1:443 uploadx] 2024-07-17 00:56:54.801 debug: Registered handlers: DELETE, GET, OPTIONS, PATCH, POST, PUT
2024-07-17 00:56:55,416: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 debug: Checking NodeJS version v20.15.1.
2024-07-17 00:56:55,416: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 info: Using following configuration file hierarchy: /var/www/peertube/config/default.yaml -> /var/www/peertube/config/production.yaml -> /var/www/peertube/config/test.yaml -> /var/www/peertube/config/local-production.json.
2024-07-17 00:56:55,416: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.282 warn: SMTP is not configured so the contact form will not work.
2024-07-17 00:56:55,416: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.283 error: Config error. {
2024-07-17 00:56:55,416: DEBUG - Jul 17 00:56:55 peertube[69256]:   "err": {
2024-07-17 00:56:55,416: DEBUG - Jul 17 00:56:55 peertube[69256]:     "stack": "Error: Video redundancy minimum lifetime should be >= 10 hours for strategy most-views\n    at checkLocalRedundancyConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:129:23)\n    at checkConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:34:5)\n    at file:///var/www/peertube/dist/server.js:27:5",
2024-07-17 00:56:55,416: DEBUG - Jul 17 00:56:55 peertube[69256]:     "message": "Video redundancy minimum lifetime should be >= 10 hours for strategy most-views"
2024-07-17 00:56:55,417: DEBUG - Jul 17 00:56:55 peertube[69256]:   }
2024-07-17 00:56:55,417: DEBUG - Jul 17 00:56:55 peertube[69256]: }
2024-07-17 00:56:55,417: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2024-07-17 00:56:55,417: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Failed with result '\''exit-code'\''.
2024-07-17 00:56:55,417: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Consumed 4.391s CPU time.'
2024-07-17 00:56:55,426: DEBUG - + ynh_print_log 'Jul 17 00:56:54 peertube[69256]:   directory: '\''/home/yunohost.app/peertube/storage/tmp/resumable-uploads'\'',
2024-07-17 00:56:55,426: DEBUG - Jul 17 00:56:54 peertube[69256]:   expiration: { maxAge: undefined, rolling: true },
2024-07-17 00:56:55,427: DEBUG - Jul 17 00:56:54 peertube[69256]:   maxMetadataSize: '\''10MB'\'',
2024-07-17 00:56:55,427: DEBUG - Jul 17 00:56:54 peertube[69256]:   logger: [Function: Object],
2024-07-17 00:56:55,427: DEBUG - Jul 17 00:56:54 peertube[69256]:   userIdentifier: [Function: userIdentifier],
2024-07-17 00:56:55,427: DEBUG - Jul 17 00:56:54 peertube[69256]:   filename: [Function: filename]
2024-07-17 00:56:55,427: DEBUG - Jul 17 00:56:54 peertube[69256]: }
2024-07-17 00:56:55,427: DEBUG - Jul 17 00:56:54 peertube[69256]: [127.0.0.1:443 uploadx] 2024-07-17 00:56:54.801 debug: Registered handlers: DELETE, GET, OPTIONS, PATCH, POST, PUT
2024-07-17 00:56:55,427: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 debug: Checking NodeJS version v20.15.1.
2024-07-17 00:56:55,428: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 info: Using following configuration file hierarchy: /var/www/peertube/config/default.yaml -> /var/www/peertube/config/production.yaml -> /var/www/peertube/config/test.yaml -> /var/www/peertube/config/local-production.json.
2024-07-17 00:56:55,428: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.282 warn: SMTP is not configured so the contact form will not work.
2024-07-17 00:56:55,428: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.283 error: Config error. {
2024-07-17 00:56:55,428: DEBUG - Jul 17 00:56:55 peertube[69256]:   "err": {
2024-07-17 00:56:55,428: DEBUG - Jul 17 00:56:55 peertube[69256]:     "stack": "Error: Video redundancy minimum lifetime should be >= 10 hours for strategy most-views\n    at checkLocalRedundancyConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:129:23)\n    at checkConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:34:5)\n    at file:///var/www/peertube/dist/server.js:27:5",
2024-07-17 00:56:55,428: DEBUG - Jul 17 00:56:55 peertube[69256]:     "message": "Video redundancy minimum lifetime should be >= 10 hours for strategy most-views"
2024-07-17 00:56:55,429: DEBUG - Jul 17 00:56:55 peertube[69256]:   }
2024-07-17 00:56:55,429: DEBUG - Jul 17 00:56:55 peertube[69256]: }
2024-07-17 00:56:55,429: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2024-07-17 00:56:55,429: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Failed with result '\''exit-code'\''.
2024-07-17 00:56:55,429: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Consumed 4.391s CPU time.'
2024-07-17 00:56:55,429: DEBUG - + echo -e 'Jul 17 00:56:54 peertube[69256]:   directory: '\''/home/yunohost.app/peertube/storage/tmp/resumable-uploads'\'',
2024-07-17 00:56:55,429: DEBUG - Jul 17 00:56:54 peertube[69256]:   expiration: { maxAge: undefined, rolling: true },
2024-07-17 00:56:55,429: DEBUG - Jul 17 00:56:54 peertube[69256]:   maxMetadataSize: '\''10MB'\'',
2024-07-17 00:56:55,430: DEBUG - Jul 17 00:56:54 peertube[69256]:   logger: [Function: Object],
2024-07-17 00:56:55,430: DEBUG - Jul 17 00:56:54 peertube[69256]:   userIdentifier: [Function: userIdentifier],
2024-07-17 00:56:55,430: DEBUG - Jul 17 00:56:54 peertube[69256]:   filename: [Function: filename]
2024-07-17 00:56:55,430: DEBUG - Jul 17 00:56:54 peertube[69256]: }
2024-07-17 00:56:55,430: DEBUG - Jul 17 00:56:54 peertube[69256]: [127.0.0.1:443 uploadx] 2024-07-17 00:56:54.801 debug: Registered handlers: DELETE, GET, OPTIONS, PATCH, POST, PUT
2024-07-17 00:56:55,430: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 debug: Checking NodeJS version v20.15.1.
2024-07-17 00:56:55,430: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 info: Using following configuration file hierarchy: /var/www/peertube/config/default.yaml -> /var/www/peertube/config/production.yaml -> /var/www/peertube/config/test.yaml -> /var/www/peertube/config/local-production.json.
2024-07-17 00:56:55,431: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.282 warn: SMTP is not configured so the contact form will not work.
2024-07-17 00:56:55,431: DEBUG - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.283 error: Config error. {
2024-07-17 00:56:55,431: DEBUG - Jul 17 00:56:55 peertube[69256]:   "err": {
2024-07-17 00:56:55,431: DEBUG - Jul 17 00:56:55 peertube[69256]:     "stack": "Error: Video redundancy minimum lifetime should be >= 10 hours for strategy most-views\n    at checkLocalRedundancyConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:129:23)\n    at checkConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:34:5)\n    at file:///var/www/peertube/dist/server.js:27:5",
2024-07-17 00:56:55,431: DEBUG - Jul 17 00:56:55 peertube[69256]:     "message": "Video redundancy minimum lifetime should be >= 10 hours for strategy most-views"
2024-07-17 00:56:55,431: DEBUG - Jul 17 00:56:55 peertube[69256]:   }
2024-07-17 00:56:55,431: DEBUG - Jul 17 00:56:55 peertube[69256]: }
2024-07-17 00:56:55,432: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2024-07-17 00:56:55,432: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Failed with result '\''exit-code'\''.
2024-07-17 00:56:55,432: DEBUG - Jul 17 00:56:55 systemd[1]: peertube.service: Consumed 4.391s CPU time.'
2024-07-17 00:56:55,432: DEBUG - + '[' -e systemd ']'
2024-07-17 00:56:55,432: DEBUG - + ynh_clean_check_starting
2024-07-17 00:56:55,432: DEBUG - + '[' -n 66964 ']'
2024-07-17 00:56:55,432: DEBUG - + kill -SIGTERM 66964
2024-07-17 00:56:55,433: DEBUG - + '[' -n /tmp/tmp.YhtcwyHw5E ']'
2024-07-17 00:56:55,433: DEBUG - + ynh_secure_remove --file=/tmp/tmp.YhtcwyHw5E
2024-07-17 00:56:55,434: WARNING - Jul 17 00:56:54 peertube[69256]:   directory: '/home/yunohost.app/peertube/storage/tmp/resumable-uploads',
2024-07-17 00:56:55,434: WARNING - Jul 17 00:56:54 peertube[69256]:   expiration: { maxAge: undefined, rolling: true },
2024-07-17 00:56:55,434: WARNING - Jul 17 00:56:54 peertube[69256]:   maxMetadataSize: '10MB',
2024-07-17 00:56:55,435: WARNING - Jul 17 00:56:54 peertube[69256]:   logger: [Function: Object],
2024-07-17 00:56:55,435: WARNING - Jul 17 00:56:54 peertube[69256]:   userIdentifier: [Function: userIdentifier],
2024-07-17 00:56:55,435: WARNING - Jul 17 00:56:54 peertube[69256]:   filename: [Function: filename]
2024-07-17 00:56:55,435: WARNING - Jul 17 00:56:54 peertube[69256]: }
2024-07-17 00:56:55,436: WARNING - Jul 17 00:56:54 peertube[69256]: [127.0.0.1:443 uploadx] 2024-07-17 00:56:54.801 debug: Registered handlers: DELETE, GET, OPTIONS, PATCH, POST, PUT
2024-07-17 00:56:55,436: WARNING - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 debug: Checking NodeJS version v20.15.1.
2024-07-17 00:56:55,436: WARNING - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.281 info: Using following configuration file hierarchy: /var/www/peertube/config/default.yaml -> /var/www/peertube/config/production.yaml -> /var/www/peertube/config/test.yaml -> /var/www/peertube/config/local-production.json.
2024-07-17 00:56:55,437: WARNING - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.282 warn: SMTP is not configured so the contact form will not work.
2024-07-17 00:56:55,437: WARNING - Jul 17 00:56:55 peertube[69256]: [127.0.0.1:443] 2024-07-17 00:56:55.283 error: Config error. {
2024-07-17 00:56:55,437: WARNING - Jul 17 00:56:55 peertube[69256]:   "err": {
2024-07-17 00:56:55,438: WARNING - Jul 17 00:56:55 peertube[69256]:     "stack": "Error: Video redundancy minimum lifetime should be >= 10 hours for strategy most-views
2024-07-17 00:56:55,438: WARNING -     at checkLocalRedundancyConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:129:23)
2024-07-17 00:56:55,438: WARNING -     at checkConfig (file:///var/www/peertube/dist/core/initializers/checker-after-init.js:34:5)
2024-07-17 00:56:55,439: WARNING -     at file:///var/www/peertube/dist/server.js:27:5",
2024-07-17 00:56:55,439: WARNING - Jul 17 00:56:55 peertube[69256]:     "message": "Video redundancy minimum lifetime should be >= 10 hours for strategy most-views"
2024-07-17 00:56:55,439: WARNING - Jul 17 00:56:55 peertube[69256]:   }
2024-07-17 00:56:55,440: WARNING - Jul 17 00:56:55 peertube[69256]: }
2024-07-17 00:56:55,440: WARNING - Jul 17 00:56:55 systemd[1]: peertube.service: Main process exited, code=exited, status=255/EXCEPTION
2024-07-17 00:56:55,440: WARNING - Jul 17 00:56:55 systemd[1]: peertube.service: Failed with result 'exit-code'.
2024-07-17 00:56:55,441: WARNING - Jul 17 00:56:55 systemd[1]: peertube.service: Consumed 4.391s CPU time.
2024-07-17 00:56:55,522: DEBUG - + pushd /var/www/peertube
2024-07-17 00:56:55,523: DEBUG - /var/www/peertube /var/cache/yunohost/app_tmp_work_dirs/app_lns5_72u/scripts
2024-07-17 00:56:55,523: DEBUG - + ynh_exec_warn_less ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/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/20/bin/npm run plugin:install -- --npm-name peertube-plugin-auth-ldap
2024-07-17 00:56:55,523: DEBUG - + [[ 12 -eq 1 ]]
2024-07-17 00:56:55,523: DEBUG - + ynh_exec_as peertube env PATH=/opt/node_n/n/versions/node/20/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/20/bin/npm run plugin:install -- --npm-name peertube-plugin-auth-ldap
2024-07-17 00:56:55,523: DEBUG - + local user=peertube
2024-07-17 00:56:55,523: DEBUG - + shift 1
2024-07-17 00:56:55,524: INFO - [###############++...] > Installing peertube plugin and password...
2024-07-17 00:56:55,524: DEBUG - ++ whoami
2024-07-17 00:56:55,525: DEBUG - + [[ peertube = root ]]
2024-07-17 00:56:55,525: DEBUG - + sudo -u peertube env PATH=/opt/node_n/n/versions/node/20/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/20/bin/npm run plugin:install -- --npm-name peertube-plugin-auth-ldap
2024-07-17 00:56:56,035: DEBUG - 
2024-07-17 00:56:56,036: DEBUG - > peertube@6.1.0 plugin:install
2024-07-17 00:56:56,036: DEBUG - > node ./dist/scripts/plugin/install.js --npm-name peertube-plugin-auth-ldap
2024-07-17 00:56:56,036: DEBUG - 
2024-07-17 00:56:58,463: DEBUG - [127.0.0.1:443 uploadx] 2024-07-17 00:56:58.461 debug: DiskStorage config: {
2024-07-17 00:56:58,464: DEBUG -   directory: '/home/yunohost.app/peertube/storage/tmp/resumable-uploads',
2024-07-17 00:56:58,464: DEBUG -   expiration: { maxAge: undefined, rolling: true },
2024-07-17 00:56:58,464: DEBUG -   maxMetadataSize: '10MB',
2024-07-17 00:56:58,464: DEBUG -   logger: [Function: Object],
2024-07-17 00:56:58,464: DEBUG -   userIdentifier: [Function: userIdentifier],
2024-07-17 00:56:58,465: DEBUG -   filename: [Function: filename]
2024-07-17 00:56:58,465: DEBUG - }
2024-07-17 00:56:58,465: DEBUG - [127.0.0.1:443 uploadx] 2024-07-17 00:56:58.465 debug: Registered handlers: DELETE, GET, OPTIONS, PATCH, POST, PUT
2024-07-17 00:56:58,951: DEBUG - [127.0.0.1:443] 2024-07-17 00:56:58.950 debug: Executed SQL request - Executing (default): SELECT 1 FROM pg_available_extensions WHERE name = 'pg_trgm' AND installed_version IS NOT NULL;
2024-07-17 00:56:58,952: DEBUG - [127.0.0.1:443] 2024-07-17 00:56:58.952 debug: Executed SQL request - Executing (default): SELECT 1 FROM pg_available_extensions WHERE name = 'unaccent' AND installed_version IS NOT NULL;
2024-07-17 00:56:58,955: DEBUG - [127.0.0.1:443] 2024-07-17 00:56:58.955 debug: Executed SQL request - Executing (default): CREATE OR REPLACE FUNCTION immutable_unaccent(text)
2024-07-17 00:56:58,955: DEBUG -   RETURNS text AS
2024-07-17 00:56:58,955: DEBUG - $func$
2024-07-17 00:56:58,955: DEBUG - SELECT public.unaccent('public.unaccent', $1::text)
2024-07-17 00:56:58,956: DEBUG - $func$  LANGUAGE sql IMMUTABLE;
2024-07-17 00:56:58,991: DEBUG - [127.0.0.1:443] 2024-07-17 00:56:58.991 info: Installing plugin peertube-plugin-auth-ldap.
2024-07-17 00:57:02,037: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.037 debug: Added a yarn package. {
2024-07-17 00:57:02,038: DEBUG -   "yarnStdout": "yarn add v1.22.22\n[1/4] Resolving packages...\n[2/4] Fetching packages...\n[3/4] Linking dependencies...\n[4/4] Building fresh packages...\nsuccess Saved lockfile.\nsuccess Saved 18 new dependencies.\ninfo Direct dependencies\n└─ peertube-plugin-auth-ldap@0.0.12\ninfo All dependencies\n├─ @types/ldapjs@2.2.5\n├─ @types/node@20.14.11\n├─ abstract-logging@2.0.1\n├─ asn1@0.2.6\n├─ backoff@2.5.0\n├─ bcryptjs@2.4.3\n├─ ldap-filter@0.3.3\n├─ ldapauth-fork@5.0.5\n├─ ldapjs@2.3.3\n├─ lru-cache@7.18.3\n├─ once@1.4.0\n├─ peertube-plugin-auth-ldap@0.0.12\n├─ precond@0.2.3\n├─ safer-buffer@2.1.2\n├─ undici-types@5.26.5\n├─ vasync@2.2.1\n├─ verror@1.10.1\n└─ wrappy@1.0.2\nDone in 2.08s.\n"
2024-07-17 00:57:02,038: DEBUG - }
2024-07-17 00:57:02,057: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.056 debug: Executed SQL request - Executing (default): INSERT INTO "plugin" ("name","type","version","enabled","uninstalled","peertubeEngine","description","homepage","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ON CONFLICT ("name","type") DO UPDATE SET "name"=EXCLUDED."name","description"=EXCLUDED."description","homepage"=EXCLUDED."homepage","type"=EXCLUDED."type","version"=EXCLUDED."version","enabled"=EXCLUDED."enabled","uninstalled"=EXCLUDED."uninstalled","peertubeEngine"=EXCLUDED."peertubeEngine","updatedAt"=EXCLUDED."updatedAt" RETURNING "id","name","type","version","latestVersion","enabled","uninstalled","peertubeEngine","description","homepage","settings","storage","createdAt","updatedAt";
2024-07-17 00:57:02,061: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.060 error: Cannot install plugin peertube-plugin-auth-ldap, removing it... {
2024-07-17 00:57:02,061: DEBUG -   "err": {
2024-07-17 00:57:02,061: DEBUG -     "stack": "Error\n    at Query.run (/var/www/peertube/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)\n    at /var/www/peertube/node_modules/sequelize/lib/sequelize.js:315:28\n    at async PostgresQueryInterface.upsert (/var/www/peertube/node_modules/sequelize/lib/dialects/abstract/query-interface.js:341:12)\n    at async PluginModel.upsert (/var/www/peertube/node_modules/sequelize/lib/model.js:1533:20)\n    at async PluginManager.install (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:229:24)\n    at async run (file:///var/www/peertube/dist/scripts/plugin/install.js:28:5)",
2024-07-17 00:57:02,061: DEBUG -     "message": "relation \"plugin\" does not exist",
2024-07-17 00:57:02,061: DEBUG -     "name": "SequelizeDatabaseError",
2024-07-17 00:57:02,061: DEBUG -     "parent": {
2024-07-17 00:57:02,062: DEBUG -       "stack": "error: relation \"plugin\" does not exist\n    at Parser.parseErrorMessage (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:287:98)\n    at Parser.handlePacket (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:126:29)\n    at Parser.parse (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:39:38)\n    at Socket.<anonymous> (/var/www/peertube/node_modules/pg-protocol/dist/index.js:11:42)\n    at Socket.emit (node:events:519:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at TCP.onStreamRead (node:internal/stream_base_commons:191:23)",
2024-07-17 00:57:02,062: DEBUG -       "message": "relation \"plugin\" does not exist",
2024-07-17 00:57:02,062: DEBUG -       "length": 105,
2024-07-17 00:57:02,062: DEBUG -       "name": "error",
2024-07-17 00:57:02,063: DEBUG -       "severity": "ERROR",
2024-07-17 00:57:02,063: DEBUG -       "code": "42P01",
2024-07-17 00:57:02,063: DEBUG -       "position": "13",
2024-07-17 00:57:02,063: DEBUG -       "file": "parse_relation.c",
2024-07-17 00:57:02,063: DEBUG -       "line": "1373",
2024-07-17 00:57:02,063: DEBUG -       "routine": "parserOpenTable",
2024-07-17 00:57:02,063: DEBUG -       "sql": "INSERT INTO \"plugin\" (\"name\",\"type\",\"version\",\"enabled\",\"uninstalled\",\"peertubeEngine\",\"description\",\"homepage\",\"createdAt\",\"updatedAt\") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ON CONFLICT (\"name\",\"type\") DO UPDATE SET \"name\"=EXCLUDED.\"name\",\"description\"=EXCLUDED.\"description\",\"homepage\"=EXCLUDED.\"homepage\",\"type\"=EXCLUDED.\"type\",\"version\"=EXCLUDED.\"version\",\"enabled\"=EXCLUDED.\"enabled\",\"uninstalled\"=EXCLUDED.\"uninstalled\",\"peertubeEngine\"=EXCLUDED.\"peertubeEngine\",\"updatedAt\"=EXCLUDED.\"updatedAt\" RETURNING \"id\",\"name\",\"type\",\"version\",\"latestVersion\",\"enabled\",\"uninstalled\",\"peertubeEngine\",\"description\",\"homepage\",\"settings\",\"storage\",\"createdAt\",\"updatedAt\";",
2024-07-17 00:57:02,064: DEBUG -       "parameters": [
2024-07-17 00:57:02,064: DEBUG -         "auth-ldap",
2024-07-17 00:57:02,064: DEBUG -         1,
2024-07-17 00:57:02,064: DEBUG -         "0.0.12",
2024-07-17 00:57:02,064: DEBUG -         true,
2024-07-17 00:57:02,064: DEBUG -         false,
2024-07-17 00:57:02,064: DEBUG -         ">=2.2.0",
2024-07-17 00:57:02,064: DEBUG -         "Add LDAP support to login form in PeerTube.",
2024-07-17 00:57:02,065: DEBUG -         "https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap",
2024-07-17 00:57:02,065: DEBUG -         "2024-07-17 05:57:02.047 +00:00",
2024-07-17 00:57:02,065: DEBUG -         "2024-07-17 05:57:02.047 +00:00"
2024-07-17 00:57:02,065: DEBUG -       ]
2024-07-17 00:57:02,065: DEBUG -     },
2024-07-17 00:57:02,065: DEBUG -     "sql": "INSERT INTO \"plugin\" (\"name\",\"type\",\"version\",\"enabled\",\"uninstalled\",\"peertubeEngine\",\"description\",\"homepage\",\"createdAt\",\"updatedAt\") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ON CONFLICT (\"name\",\"type\") DO UPDATE SET \"name\"=EXCLUDED.\"name\",\"description\"=EXCLUDED.\"description\",\"homepage\"=EXCLUDED.\"homepage\",\"type\"=EXCLUDED.\"type\",\"version\"=EXCLUDED.\"version\",\"enabled\"=EXCLUDED.\"enabled\",\"uninstalled\"=EXCLUDED.\"uninstalled\",\"peertubeEngine\"=EXCLUDED.\"peertubeEngine\",\"updatedAt\"=EXCLUDED.\"updatedAt\" RETURNING \"id\",\"name\",\"type\",\"version\",\"latestVersion\",\"enabled\",\"uninstalled\",\"peertubeEngine\",\"description\",\"homepage\",\"settings\",\"storage\",\"createdAt\",\"updatedAt\";"
2024-07-17 00:57:02,065: DEBUG -   }
2024-07-17 00:57:02,066: DEBUG - }
2024-07-17 00:57:02,066: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.061 info: Uninstalling plugin peertube-plugin-auth-ldap.
2024-07-17 00:57:02,066: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.061 info: Unregister plugin peertube-plugin-auth-ldap.
2024-07-17 00:57:02,066: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.062 warn: Cannot unregister plugin peertube-plugin-auth-ldap. {
2024-07-17 00:57:02,066: DEBUG -   "err": {
2024-07-17 00:57:02,066: DEBUG -     "stack": "Error: Unknown plugin peertube-plugin-auth-ldap to unregister\n    at PluginManager.unregister (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:198:19)\n    at PluginManager.uninstall (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:280:28)\n    at PluginManager.install (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:248:32)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async run (file:///var/www/peertube/dist/scripts/plugin/install.js:28:5)",
2024-07-17 00:57:02,066: DEBUG -     "message": "Unknown plugin peertube-plugin-auth-ldap to unregister"
2024-07-17 00:57:02,067: DEBUG -   }
2024-07-17 00:57:02,067: DEBUG - }
2024-07-17 00:57:02,068: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.067 debug: Executed SQL request - Executing (default): SELECT "id", "name", "type", "version", "latestVersion", "enabled", "uninstalled", "peertubeEngine", "description", "homepage", "settings", "createdAt", "updatedAt" FROM "plugin" AS "PluginModel" WHERE "PluginModel"."name" = 'auth-ldap' AND "PluginModel"."type" = 1 LIMIT 1;
2024-07-17 00:57:02,070: DEBUG - [127.0.0.1:443] 2024-07-17 00:57:02.069 error: Cannot uninstall plugin peertube-plugin-auth-ldap after failed installation. {
2024-07-17 00:57:02,071: DEBUG -   "err": {
2024-07-17 00:57:02,071: DEBUG -     "stack": "Error\n    at Query.run (/var/www/peertube/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)\n    at /var/www/peertube/node_modules/sequelize/lib/sequelize.js:315:28\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async PostgresQueryInterface.select (/var/www/peertube/node_modules/sequelize/lib/dialects/abstract/query-interface.js:407:12)\n    at async PluginModel.findAll (/var/www/peertube/node_modules/sequelize/lib/model.js:1140:21)\n    at async PluginModel.findOne (/var/www/peertube/node_modules/sequelize/lib/model.js:1240:12)\n    at async PluginManager.uninstall (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:286:24)\n    at async PluginManager.install (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:248:21)\n    at async run (file:///var/www/peertube/dist/scripts/plugin/install.js:28:5)",
2024-07-17 00:57:02,071: DEBUG -     "message": "relation \"plugin\" does not exist",
2024-07-17 00:57:02,071: DEBUG -     "name": "SequelizeDatabaseError",
2024-07-17 00:57:02,071: DEBUG -     "parent": {
2024-07-17 00:57:02,072: DEBUG -       "stack": "error: relation \"plugin\" does not exist\n    at Parser.parseErrorMessage (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:287:98)\n    at Parser.handlePacket (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:126:29)\n    at Parser.parse (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:39:38)\n    at Socket.<anonymous> (/var/www/peertube/node_modules/pg-protocol/dist/index.js:11:42)\n    at Socket.emit (node:events:519:28)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at TCP.onStreamRead (node:internal/stream_base_commons:191:23)",
2024-07-17 00:57:02,072: DEBUG -       "message": "relation \"plugin\" does not exist",
2024-07-17 00:57:02,072: DEBUG -       "length": 106,
2024-07-17 00:57:02,072: DEBUG -       "name": "error",
2024-07-17 00:57:02,072: DEBUG -       "severity": "ERROR",
2024-07-17 00:57:02,072: DEBUG -       "code": "42P01",
2024-07-17 00:57:02,073: DEBUG -       "position": "171",
2024-07-17 00:57:02,073: DEBUG -       "file": "parse_relation.c",
2024-07-17 00:57:02,073: DEBUG -       "line": "1373",
2024-07-17 00:57:02,073: DEBUG -       "routine": "parserOpenTable",
2024-07-17 00:57:02,073: DEBUG -       "sql": "SELECT \"id\", \"name\", \"type\", \"version\", \"latestVersion\", \"enabled\", \"uninstalled\", \"peertubeEngine\", \"description\", \"homepage\", \"settings\", \"createdAt\", \"updatedAt\" FROM \"plugin\" AS \"PluginModel\" WHERE \"PluginModel\".\"name\" = 'auth-ldap' AND \"PluginModel\".\"type\" = 1 LIMIT 1;"
2024-07-17 00:57:02,073: DEBUG -     },
2024-07-17 00:57:02,074: DEBUG -     "sql": "SELECT \"id\", \"name\", \"type\", \"version\", \"latestVersion\", \"enabled\", \"uninstalled\", \"peertubeEngine\", \"description\", \"homepage\", \"settings\", \"createdAt\", \"updatedAt\" FROM \"plugin\" AS \"PluginModel\" WHERE \"PluginModel\".\"name\" = 'auth-ldap' AND \"PluginModel\".\"type\" = 1 LIMIT 1;",
2024-07-17 00:57:02,074: DEBUG -     "parameters": {}
2024-07-17 00:57:02,074: DEBUG -   }
2024-07-17 00:57:02,074: DEBUG - }
2024-07-17 00:57:02,529: DEBUG - Error
2024-07-17 00:57:02,529: DEBUG -     at Query.run (/var/www/peertube/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)
2024-07-17 00:57:02,529: DEBUG -     at /var/www/peertube/node_modules/sequelize/lib/sequelize.js:315:28
2024-07-17 00:57:02,530: DEBUG -     at async PostgresQueryInterface.upsert (/var/www/peertube/node_modules/sequelize/lib/dialects/abstract/query-interface.js:341:12)
2024-07-17 00:57:02,530: DEBUG -     at async PluginModel.upsert (/var/www/peertube/node_modules/sequelize/lib/model.js:1533:20)
2024-07-17 00:57:02,530: DEBUG -     at async PluginManager.install (file:///var/www/peertube/dist/core/lib/plugins/plugin-manager.js:229:24)
2024-07-17 00:57:02,530: DEBUG -     at async run (file:///var/www/peertube/dist/scripts/plugin/install.js:28:5) {
2024-07-17 00:57:02,530: DEBUG -   name: 'SequelizeDatabaseError',
2024-07-17 00:57:02,530: DEBUG -   parent: error: relation "plugin" does not exist
2024-07-17 00:57:02,530: DEBUG -       at Parser.parseErrorMessage (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:287:98)
2024-07-17 00:57:02,531: DEBUG -       at Parser.handlePacket (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:126:29)
2024-07-17 00:57:02,531: DEBUG -       at Parser.parse (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:39:38)
2024-07-17 00:57:02,531: DEBUG -       at Socket.<anonymous> (/var/www/peertube/node_modules/pg-protocol/dist/index.js:11:42)
2024-07-17 00:57:02,531: DEBUG -       at Socket.emit (node:events:519:28)
2024-07-17 00:57:02,531: DEBUG -       at addChunk (node:internal/streams/readable:559:12)
2024-07-17 00:57:02,531: DEBUG -       at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
2024-07-17 00:57:02,531: DEBUG -       at Readable.push (node:internal/streams/readable:390:5)
2024-07-17 00:57:02,531: DEBUG -       at TCP.onStreamRead (node:internal/stream_base_commons:191:23) {
2024-07-17 00:57:02,532: DEBUG -     length: 105,
2024-07-17 00:57:02,532: DEBUG -     severity: 'ERROR',
2024-07-17 00:57:02,532: DEBUG -     code: '42P01',
2024-07-17 00:57:02,532: DEBUG -     detail: undefined,
2024-07-17 00:57:02,532: DEBUG -     hint: undefined,
2024-07-17 00:57:02,532: DEBUG -     position: '13',
2024-07-17 00:57:02,532: DEBUG -     internalPosition: undefined,
2024-07-17 00:57:02,533: DEBUG -     internalQuery: undefined,
2024-07-17 00:57:02,533: DEBUG -     where: undefined,
2024-07-17 00:57:02,533: DEBUG -     schema: undefined,
2024-07-17 00:57:02,533: DEBUG -     table: undefined,
2024-07-17 00:57:02,533: DEBUG -     column: undefined,
2024-07-17 00:57:02,533: DEBUG -     dataType: undefined,
2024-07-17 00:57:02,533: DEBUG -     constraint: undefined,
2024-07-17 00:57:02,533: DEBUG -     file: 'parse_relation.c',
2024-07-17 00:57:02,534: DEBUG -     line: '1373',
2024-07-17 00:57:02,534: DEBUG -     routine: 'parserOpenTable',
2024-07-17 00:57:02,534: DEBUG -     sql: 'INSERT INTO "plugin" ("name","type","version","enabled","uninstalled","peertubeEngine","description","homepage","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ON CONFLICT ("name","type") DO UPDATE SET "name"=EXCLUDED."name","description"=EXCLUDED."description","homepage"=EXCLUDED."homepage","type"=EXCLUDED."type","version"=EXCLUDED."version","enabled"=EXCLUDED."enabled","uninstalled"=EXCLUDED."uninstalled","peertubeEngine"=EXCLUDED."peertubeEngine","updatedAt"=EXCLUDED."updatedAt" RETURNING "id","name","type","version","latestVersion","enabled","uninstalled","peertubeEngine","description","homepage","settings","storage","createdAt","updatedAt";',
2024-07-17 00:57:02,534: DEBUG -     parameters: [
2024-07-17 00:57:02,534: DEBUG -       'auth-ldap',
2024-07-17 00:57:02,534: DEBUG -       1,
2024-07-17 00:57:02,534: DEBUG -       '0.0.12',
2024-07-17 00:57:02,535: DEBUG -       true,
2024-07-17 00:57:02,535: DEBUG -       false,
2024-07-17 00:57:02,535: DEBUG -       '>=2.2.0',
2024-07-17 00:57:02,535: DEBUG -       'Add LDAP support to login form in PeerTube.',
2024-07-17 00:57:02,535: DEBUG -       'https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap',
2024-07-17 00:57:02,535: DEBUG -       '2024-07-17 05:57:02.047 +00:00',
2024-07-17 00:57:02,535: DEBUG -       '2024-07-17 05:57:02.047 +00:00'
2024-07-17 00:57:02,535: DEBUG -     ]
2024-07-17 00:57:02,536: DEBUG -   },
2024-07-17 00:57:02,536: DEBUG -   original: error: relation "plugin" does not exist
2024-07-17 00:57:02,536: DEBUG -       at Parser.parseErrorMessage (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:287:98)
2024-07-17 00:57:02,536: DEBUG -       at Parser.handlePacket (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:126:29)
2024-07-17 00:57:02,536: DEBUG -       at Parser.parse (/var/www/peertube/node_modules/pg-protocol/dist/parser.js:39:38)
2024-07-17 00:57:02,536: DEBUG -       at Socket.<anonymous> (/var/www/peertube/node_modules/pg-protocol/dist/index.js:11:42)
2024-07-17 00:57:02,536: DEBUG -       at Socket.emit (node:events:519:28)
2024-07-17 00:57:02,537: DEBUG -       at addChunk (node:internal/streams/readable:559:12)
2024-07-17 00:57:02,537: DEBUG -       at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
2024-07-17 00:57:02,537: DEBUG -       at Readable.push (node:internal/streams/readable:390:5)
2024-07-17 00:57:02,537: DEBUG -       at TCP.onStreamRead (node:internal/stream_base_commons:191:23) {
2024-07-17 00:57:02,537: DEBUG -     length: 105,
2024-07-17 00:57:02,537: DEBUG -     severity: 'ERROR',
2024-07-17 00:57:02,537: DEBUG -     code: '42P01',
2024-07-17 00:57:02,537: DEBUG -     detail: undefined,
2024-07-17 00:57:02,538: DEBUG -     hint: undefined,
2024-07-17 00:57:02,538: DEBUG -     position: '13',
2024-07-17 00:57:02,538: DEBUG -     internalPosition: undefined,
2024-07-17 00:57:02,538: DEBUG -     internalQuery: undefined,
2024-07-17 00:57:02,538: DEBUG -     where: undefined,
2024-07-17 00:57:02,538: DEBUG -     schema: undefined,
2024-07-17 00:57:02,538: DEBUG -     table: undefined,
2024-07-17 00:57:02,538: DEBUG -     column: undefined,
2024-07-17 00:57:02,539: DEBUG -     dataType: undefined,
2024-07-17 00:57:02,539: DEBUG -     constraint: undefined,
2024-07-17 00:57:02,539: DEBUG -     file: 'parse_relation.c',
2024-07-17 00:57:02,539: DEBUG -     line: '1373',
2024-07-17 00:57:02,539: DEBUG -     routine: 'parserOpenTable',
2024-07-17 00:57:02,539: DEBUG -     sql: 'INSERT INTO "plugin" ("name","type","version","enabled","uninstalled","peertubeEngine","description","homepage","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ON CONFLICT ("name","type") DO UPDATE SET "name"=EXCLUDED."name","description"=EXCLUDED."description","homepage"=EXCLUDED."homepage","type"=EXCLUDED."type","version"=EXCLUDED."version","enabled"=EXCLUDED."enabled","uninstalled"=EXCLUDED."uninstalled","peertubeEngine"=EXCLUDED."peertubeEngine","updatedAt"=EXCLUDED."updatedAt" RETURNING "id","name","type","version","latestVersion","enabled","uninstalled","peertubeEngine","description","homepage","settings","storage","createdAt","updatedAt";',
2024-07-17 00:57:02,539: DEBUG -     parameters: [
2024-07-17 00:57:02,540: DEBUG -       'auth-ldap',
2024-07-17 00:57:02,540: DEBUG -       1,
2024-07-17 00:57:02,540: DEBUG -       '0.0.12',
2024-07-17 00:57:02,540: DEBUG -       true,
2024-07-17 00:57:02,540: DEBUG -       false,
2024-07-17 00:57:02,540: DEBUG -       '>=2.2.0',
2024-07-17 00:57:02,540: DEBUG -       'Add LDAP support to login form in PeerTube.',
2024-07-17 00:57:02,540: DEBUG -       'https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap',
2024-07-17 00:57:02,541: DEBUG -       '2024-07-17 05:57:02.047 +00:00',
2024-07-17 00:57:02,541: DEBUG -       '2024-07-17 05:57:02.047 +00:00'
2024-07-17 00:57:02,541: DEBUG -     ]
2024-07-17 00:57:02,541: DEBUG -   },
2024-07-17 00:57:02,541: DEBUG -   sql: 'INSERT INTO "plugin" ("name","type","version","enabled","uninstalled","peertubeEngine","description","homepage","createdAt","updatedAt") VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ON CONFLICT ("name","type") DO UPDATE SET "name"=EXCLUDED."name","description"=EXCLUDED."description","homepage"=EXCLUDED."homepage","type"=EXCLUDED."type","version"=EXCLUDED."version","enabled"=EXCLUDED."enabled","uninstalled"=EXCLUDED."uninstalled","peertubeEngine"=EXCLUDED."peertubeEngine","updatedAt"=EXCLUDED."updatedAt" RETURNING "id","name","type","version","latestVersion","enabled","uninstalled","peertubeEngine","description","homepage","settings","storage","createdAt","updatedAt";',
2024-07-17 00:57:02,541: DEBUG -   parameters: [
2024-07-17 00:57:02,541: DEBUG -     'auth-ldap',
2024-07-17 00:57:02,542: DEBUG -     1,
2024-07-17 00:57:02,542: DEBUG -     '0.0.12',
2024-07-17 00:57:02,542: DEBUG -     true,
2024-07-17 00:57:02,542: DEBUG -     false,
2024-07-17 00:57:02,542: DEBUG -     '>=2.2.0',
2024-07-17 00:57:02,542: DEBUG -     'Add LDAP support to login form in PeerTube.',
2024-07-17 00:57:02,542: DEBUG -     'https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-plugin-auth-ldap',
2024-07-17 00:57:02,543: DEBUG -     '2024-07-17 05:57:02.047 +00:00',
2024-07-17 00:57:02,543: DEBUG -     '2024-07-17 05:57:02.047 +00:00'
2024-07-17 00:57:02,543: DEBUG -   ]
2024-07-17 00:57:02,543: DEBUG - }
2024-07-17 00:57:02,552: DEBUG - npm notice
2024-07-17 00:57:02,552: DEBUG - npm notice New minor version of npm available! 10.7.0 -> 10.8.2
2024-07-17 00:57:02,552: DEBUG - npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
2024-07-17 00:57:02,552: DEBUG - npm notice To update run: npm install -g npm@10.8.2
2024-07-17 00:57:02,552: DEBUG - npm notice
2024-07-17 00:57:02,563: DEBUG - + ynh_exit_properly
2024-07-17 00:57:02,563: DEBUG - + local exit_code=255
2024-07-17 00:57:02,563: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2024-07-17 00:57:02,565: DEBUG - + '[' 255 -eq 0 ']'
2024-07-17 00:57:04,069: ERROR - Unable to install peertube: An error occurred inside the app installation script