[Temp fix provided] Peertube Fails

$ cd /var/www/peertube && NODE_CONFIG_DIR="/var/www/peertube/config/" NODE_ENV=production npm run reset-password -- -u root

A last problem, i’m sorry and another time thanks for your help and your patience
I can’t connect in root on peertube.

I have retry after stop peertube this
cd /var/www/peertube && NODE_CONFIG_DIR="/var/www/peertube/config/" NODE_ENV=production npm run reset-password – -u root
and restart but no change

Logout from the Yunohost SSO and do
$ service nginx restart

This time is good!!! Thank you very much for your helpyour more cool than Fonzie!

1 Like

The Peertube app have been updated to fix a security issue of open port. This is fixed by latest commit which close the port for Peertube.

Please update ASAP .
Steps to update are here.

1 Like

Hi @kanhu,
I tried to do the update but i have an issue with the YARN installation

yarn install v1.12.3
[1/5] Validating package.json…
[2/5] Resolving packages…
warning Resolution field “@types/bluebird@3.5.21” is incompatible with requested version “@types/bluebird@3.5.18”
[3/5] Fetching packages…
error https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: “Unexpected end of data”
info Visit yarn install | Yarn for documentation about this command.
Then i retried but same result.
I have continu the command but i have an error 502 bad getaway.
My other application on the server are online (Funkwhale, roundcube and wordpress) any Idea?
My yarn version
yarn -v
1.12.3

You should restore from backup till Peertube upstream fixes it.

Thank you I try to restore my backup.
All is back, wonderfull job of the team because like a genius I have not realise backup before the update.

1 Like

Peertube is updated to version 1.1.0 .

Changelog: https://github.com/Chocobozzz/PeerTube/releases/tag/v1.1.0

2 Likes

Now we could say, all my upgrade have a tradition like christmas gift, they failed XD
ended_at: 2018-12-11 15:37:30.246417
env:
YNH_APP_ID: peertube
YNH_APP_INSTANCE_NAME: peertube
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_CWD: /var/cache/yunohost/from_file/peertube_ynh-1b31e5c42a07009dbd6f22d499f50183a87ab4b7/scripts
YNH_STDINFO: /tmp/tmpqGy6y5/stdinfo
error: Unable to upgrade peertube
operation: app_upgrade
related_to:

    • app
    • peertube
      started_at: 2018-12-11 15:34:48.068871
      success: false

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

2018-12-11 15:35:43,553: WARNING - NOTICE: extension “unaccent” already exists, skipping
2018-12-11 15:35:43,555: WARNING - NOTICE: extension “pg_trgm” already exists, skipping
2018-12-11 15:35:44,257: WARNING - Installation of N - Node.js version management
2018-12-11 15:35:44,762: WARNING - Corrupt source
2018-12-11 15:35:44,762: WARNING - !!
2018-12-11 15:35:44,763: WARNING - peertube’s script has encountered an error. Its execution was cancelled.
2018-12-11 15:35:44,763: WARNING - !!
2018-12-11 15:35:44,763: WARNING - Upgrade failed.
2018-12-11 15:35:46,668: WARNING - Removed /etc/systemd/system/multi-user.target.wants/peertube.service.
2018-12-11 15:35:49,475: WARNING - sed: impossible de lire /opt/node_n/ynh_app_version: Aucun fichier ou dossier de ce type
2018-12-11 15:35:49,476: WARNING - grep: /opt/node_n/ynh_app_version: Aucun fichier ou dossier de ce type
2018-12-11 15:35:49,476: WARNING - /usr/share/yunohost/helpers.d/nodejs: ligne 133: /opt/node_n/bin/n: Aucun fichier ou dossier de ce type
2018-12-11 15:35:49,477: WARNING - /usr/local/n wasn’t deleted because it doesn’t exist.
2018-12-11 15:35:49,478: WARNING - /etc/apt/sources.list.d/jessie-backports.list wasn’t deleted because it doesn’t exist.
2018-12-11 15:35:49,879: WARNING - /var/www/peertube wasn’t deleted because it doesn’t exist.
2018-12-11 15:35:50,180: WARNING - Remove the user peertube
2018-12-11 15:35:50,482: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:35:50,482: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:35:50,483: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:35:50,483: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:36:44,179: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:36:44,179: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:36:44,180: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:36:44,180: WARNING - cannot connect to /var/run/nscd/socket
2018-12-11 15:36:44,381: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-12-11 15:36:51,698: WARNING - debconf: Impossible d’initialiser l’interface : Dialog
2018-12-11 15:36:51,699: WARNING - debconf: (L’interface dialog ne fonctionnera pas avec un terminal rustique (« dumb »), un tampon shell d’Emacs ou sans terminal de contrôle.)
2018-12-11 15:36:51,699: WARNING - debconf: Utilisation de l’interface Readline en remplacement
2018-12-11 15:36:51,699: WARNING - debconf: Impossible d’initialiser l’interface : Readline
2018-12-11 15:36:51,700: WARNING - debconf: (Cette interface a besoin d’un terminal de contrôle.)
2018-12-11 15:36:51,700: WARNING - debconf: Utilisation de l’interface Teletype en remplacement
2018-12-11 15:36:51,700: WARNING - dpkg-preconfigure: impossible de réouvrir stdin :
2018-12-11 15:36:59,219: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/peertube.service → /etc/systemd/system/peertube.service.
2018-12-11 15:37:30,099: WARNING - The app was restored to the way it was before the failed upgrade.
2018-12-11 15:37:30,245: ERROR - Unable to upgrade peertube
I just click on the admin app to upgrade.

BAD GATEWAY ERROR 502 NGINX

can you show complete log ?

Hi,
it’s the complete log give by the admin.
When i can, I retry with manual command by ssh with log.
Thanks for your help

1 Like

A fix has been pushed for Peertube fixing a bug which don’t allow local videos to stream. Thanks to @djsets for the solution.

I tryed to install peertube on command line with

yunohost app install peertube

and It ends with a fail.
I have yunohost updated

Can you please show me the logs?

Hi @kanhu happy new year,
New year, new try, new fail…
Can you look at the log


ended_at: 2019-01-08 10:14:52.809004
env:
YNH_APP_ID: peertube
YNH_APP_INSTANCE_NAME: peertube
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_CWD: /var/cache/yunohost/from_file/peertube_ynh-master/scripts
YNH_STDINFO: /tmp/tmpy3A9gG/stdinfo
error: Unable to upgrade peertube
operation: app_upgrade
related_to:

    • app
    • peertube
      started_at: 2019-01-08 10:11:44.413712
      success: false

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

2019-01-08 10:11:44,514: DEBUG - Executing command ‘sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=peertube YNH_CWD=/var/cache/yunohost/from_file/peertube_ynh-master/scripts YNH_APP_INSTANCE_NAME=peertube YNH_STDINFO=/tmp/tmpy3A9gG/stdinfo BASH_XTRACEFD=7 /bin/bash -x “./upgrade” peertube 7>&1’…
2019-01-08 10:11:44,514: DEBUG - About to run the command ‘[‘sh’, ‘-c’, ‘YNH_APP_INSTANCE_NUMBER=1 YNH_APP_ID=peertube YNH_CWD=/var/cache/yunohost/from_file/peertube_ynh-master/scripts YNH_APP_INSTANCE_NAME=peertube YNH_STDINFO=/tmp/tmpy3A9gG/stdinfo BASH_XTRACEFD=7 /bin/bash -x “./upgrade” peertube 7>&1’]’
2019-01-08 10:11:44,524: DEBUG - + source _common.sh
2019-01-08 10:11:44,524: DEBUG - + source /usr/share/yunohost/helpers
2019-01-08 10:11:44,524: DEBUG - +++ run-parts --list /usr/share/yunohost/helpers.d
2019-01-08 10:11:44,525: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,525: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/backend ‘]’
2019-01-08 10:11:44,525: DEBUG - ++ . /usr/share/yunohost/helpers.d/backend
2019-01-08 10:11:44,525: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,525: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/filesystem ‘]’
2019-01-08 10:11:44,525: DEBUG - ++ . /usr/share/yunohost/helpers.d/filesystem
2019-01-08 10:11:44,526: DEBUG - +++ CAN_BIND=1
2019-01-08 10:11:44,526: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,526: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/getopts ‘]’
2019-01-08 10:11:44,526: DEBUG - ++ . /usr/share/yunohost/helpers.d/getopts
2019-01-08 10:11:44,526: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,526: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/ip ‘]’
2019-01-08 10:11:44,526: DEBUG - ++ . /usr/share/yunohost/helpers.d/ip
2019-01-08 10:11:44,527: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,527: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/mysql ‘]’
2019-01-08 10:11:44,527: DEBUG - ++ . /usr/share/yunohost/helpers.d/mysql
2019-01-08 10:11:44,527: DEBUG - +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
2019-01-08 10:11:44,527: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,528: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/network ‘]’
2019-01-08 10:11:44,528: DEBUG - ++ . /usr/share/yunohost/helpers.d/network
2019-01-08 10:11:44,528: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,528: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/nodejs ‘]’
2019-01-08 10:11:44,528: DEBUG - ++ . /usr/share/yunohost/helpers.d/nodejs
2019-01-08 10:11:44,529: DEBUG - +++ n_install_dir=/opt/node_n
2019-01-08 10:11:44,529: DEBUG - +++ node_version_path=/opt/node_n/n/versions/node
2019-01-08 10:11:44,529: DEBUG - +++ export N_PREFIX=/opt/node_n
2019-01-08 10:11:44,529: DEBUG - +++ N_PREFIX=/opt/node_n
2019-01-08 10:11:44,529: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,530: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/package ‘]’
2019-01-08 10:11:44,530: DEBUG - ++ . /usr/share/yunohost/helpers.d/package
2019-01-08 10:11:44,530: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,530: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/print ‘]’
2019-01-08 10:11:44,530: DEBUG - ++ . /usr/share/yunohost/helpers.d/print
2019-01-08 10:11:44,530: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,531: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/psql ‘]’
2019-01-08 10:11:44,531: DEBUG - ++ . /usr/share/yunohost/helpers.d/psql
2019-01-08 10:11:44,531: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,531: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/setting ‘]’
2019-01-08 10:11:44,531: DEBUG - ++ . /usr/share/yunohost/helpers.d/setting
2019-01-08 10:11:44,532: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,532: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/string ‘]’
2019-01-08 10:11:44,532: DEBUG - ++ . /usr/share/yunohost/helpers.d/string
2019-01-08 10:11:44,532: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,532: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/system ‘]’
2019-01-08 10:11:44,533: DEBUG - ++ . /usr/share/yunohost/helpers.d/system
2019-01-08 10:11:44,533: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,533: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/user ‘]’
2019-01-08 10:11:44,533: DEBUG - ++ . /usr/share/yunohost/helpers.d/user
2019-01-08 10:11:44,533: DEBUG - ++ for helper in $(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)
2019-01-08 10:11:44,533: DEBUG - ++ ‘[’ -r /usr/share/yunohost/helpers.d/utils ‘]’
2019-01-08 10:11:44,534: DEBUG - ++ . /usr/share/yunohost/helpers.d/utils
2019-01-08 10:11:44,534: DEBUG - + source psql.sh
2019-01-08 10:11:44,634: DEBUG - + app=peertube
2019-01-08 10:11:44,635: DEBUG - ++ ynh_app_setting_get peertube domain
2019-01-08 10:11:44,635: DEBUG - ++ sudo yunohost app setting peertube domain --output-as plain --quiet
2019-01-08 10:11:44,835: DEBUG - + domain=video.iphodase.fr
2019-01-08 10:11:44,836: DEBUG - + path_url=/
2019-01-08 10:11:44,836: DEBUG - ++ ynh_app_setting_get peertube is_public
2019-01-08 10:11:44,836: DEBUG - ++ sudo yunohost app setting peertube is_public --output-as plain --quiet
2019-01-08 10:11:45,137: DEBUG - + is_public=1
2019-01-08 10:11:45,137: DEBUG - ++ ynh_app_setting_get peertube admin_email
2019-01-08 10:11:45,137: DEBUG - ++ sudo yunohost app setting peertube admin_email --output-as plain --quiet
2019-01-08 10:11:45,338: DEBUG - + admin_email=homerc@free.fr
2019-01-08 10:11:45,338: DEBUG - ++ ynh_app_setting_get peertube final_path
2019-01-08 10:11:45,338: DEBUG - ++ sudo yunohost app setting peertube final_path --output-as plain --quiet
2019-01-08 10:11:45,639: DEBUG - + final_path=/var/www/peertube
2019-01-08 10:11:45,639: DEBUG - ++ ynh_app_setting_get peertube port
2019-01-08 10:11:45,640: DEBUG - ++ sudo yunohost app setting peertube port --output-as plain --quiet
2019-01-08 10:11:45,941: DEBUG - + port=9000
2019-01-08 10:11:45,941: DEBUG - ++ ynh_app_setting_get peertube psql_db
2019-01-08 10:11:45,941: DEBUG - ++ sudo yunohost app setting peertube psql_db --output-as plain --quiet
2019-01-08 10:11:46,142: DEBUG - + db_name=peertube_peertube
2019-01-08 10:11:46,142: DEBUG - ++ ynh_app_setting_get peertube psqlpwd
2019-01-08 10:11:46,142: DEBUG - ++ sudo yunohost app setting peertube psqlpwd --output-as plain --quiet
2019-01-08 10:11:46,443: DEBUG - + db_pwd=osXUbGAgOw0bRKRBBD3UkQwAR69jgf
2019-01-08 10:11:46,443: DEBUG - + ‘[’ 1 = Yes ‘]’
2019-01-08 10:11:46,443: DEBUG - + ‘[’ 1 = No ‘]’
2019-01-08 10:11:46,444: DEBUG - + ynh_backup_before_upgrade
2019-01-08 10:11:46,444: DEBUG - + ‘[’ ‘!’ -e /etc/yunohost/apps/peertube/scripts/backup ‘]’
2019-01-08 10:11:46,444: DEBUG - + backup_number=1
2019-01-08 10:11:46,444: DEBUG - + local old_backup_number=2
2019-01-08 10:11:46,444: DEBUG - + local app_bck=peertube
2019-01-08 10:11:46,444: DEBUG - + NO_BACKUP_UPGRADE=0
2019-01-08 10:11:46,444: DEBUG - + ‘[’ 0 -eq 0 ‘]’
2019-01-08 10:11:46,445: DEBUG - + sudo yunohost backup list
2019-01-08 10:11:46,445: DEBUG - + grep -q peertube-pre-upgrade1
2019-01-08 10:11:46,745: DEBUG - + sudo BACKUP_CORE_ONLY=1 yunohost backup create --apps peertube --name peertube-pre-upgrade1
2019-01-08 10:12:39,566: DEBUG - Backup created
2019-01-08 10:12:39,566: DEBUG - name: peertube-pre-upgrade1
2019-01-08 10:12:39,566: DEBUG - results:
2019-01-08 10:12:39,566: DEBUG - apps:
2019-01-08 10:12:39,567: DEBUG - peertube: Success
2019-01-08 10:12:39,567: DEBUG - system:
2019-01-08 10:12:39,567: DEBUG - size: 215567378
2019-01-08 10:12:39,667: DEBUG - + ‘[’ 0 -eq 0 ‘]’
2019-01-08 10:12:39,668: DEBUG - + sudo yunohost backup list
2019-01-08 10:12:39,668: DEBUG - + grep -q peertube-pre-upgrade2
2019-01-08 10:12:39,868: DEBUG - + sudo yunohost backup delete peertube-pre-upgrade2
2019-01-08 10:12:40,169: DEBUG - + ynh_abort_if_errors
2019-01-08 10:12:40,170: DEBUG - + set -eu
2019-01-08 10:12:40,170: DEBUG - + trap ynh_exit_properly EXIT
2019-01-08 10:12:40,170: DEBUG - + systemctl stop peertube
2019-01-08 10:12:40,271: DEBUG - + ynh_psql_execute_as_root ‘\connect peertube_peertube
2019-01-08 10:12:40,271: WARNING - NOTICE: extension “unaccent” already exists, skipping
2019-01-08 10:12:40,271: DEBUG - CREATE EXTENSION IF NOT EXISTS unaccent;CREATE EXTENSION IF NOT EXISTS pg_trgm;’
2019-01-08 10:12:40,271: WARNING - NOTICE: extension “pg_trgm” already exists, skipping
2019-01-08 10:12:40,272: DEBUG - + sql=‘\connect peertube_peertube
2019-01-08 10:12:40,272: DEBUG - CREATE EXTENSION IF NOT EXISTS unaccent;CREATE EXTENSION IF NOT EXISTS pg_trgm;’
2019-01-08 10:12:40,272: DEBUG - + sudo --login --user=postgres psql
2019-01-08 10:12:40,272: DEBUG - You are now connected to database “peertube_peertube” as user “postgres”.
2019-01-08 10:12:40,272: DEBUG - CREATE EXTENSION
2019-01-08 10:12:40,273: DEBUG - CREATE EXTENSION
2019-01-08 10:12:40,273: DEBUG - ++ mktemp -d
2019-01-08 10:12:40,273: DEBUG - + tmpdir=/tmp/tmp.TQSlQMTaIR
2019-01-08 10:12:40,273: DEBUG - + cp -a /var/www/peertube/config/local-production.json /tmp/tmp.TQSlQMTaIR/local-production.json
2019-01-08 10:12:40,273: DEBUG - + ynh_secure_remove /var/www/peertube
2019-01-08 10:12:40,274: DEBUG - + local path_to_remove=/var/www/peertube
2019-01-08 10:12:40,274: DEBUG - + local ‘forbidden_path= /var/www /home/yunohost.app’
2019-01-08 10:12:40,274: DEBUG - + [[ /var/www /home/yunohost.app =~ /var/www/peertube ]]
2019-01-08 10:12:40,274: DEBUG - + [[ /var/www/peertube =~ ^/[[:alnum:]]+$ ]]
2019-01-08 10:12:40,274: DEBUG - + [[ e = / ]]
2019-01-08 10:12:40,275: DEBUG - + ‘[’ -e /var/www/peertube ‘]’
2019-01-08 10:12:40,275: DEBUG - + sudo rm -R /var/www/peertube
2019-01-08 10:12:40,776: DEBUG - + datadir=/home/yunohost.app/peertube/storage
2019-01-08 10:12:40,776: DEBUG - + mkdir -p /home/yunohost.app/peertube/storage
2019-01-08 10:12:40,776: DEBUG - + yunohost firewall list
2019-01-08 10:12:40,777: DEBUG - + grep -q ‘- 9000$’
2019-01-08 10:12:41,078: DEBUG - + ynh_system_user_create peertube
2019-01-08 10:12:41,078: WARNING - Installation of N - Node.js version management
2019-01-08 10:12:41,078: DEBUG - + ynh_system_user_exists peertube
2019-01-08 10:12:41,079: DEBUG - + getent passwd peertube
2019-01-08 10:12:41,079: DEBUG - + ynh_install_nodejs 8
2019-01-08 10:12:41,079: DEBUG - + nodejs_version=8
2019-01-08 10:12:41,080: DEBUG - + mkdir -p /opt/node_n
2019-01-08 10:12:41,080: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-01-08 10:12:41,080: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-01-08 10:12:41,080: DEBUG - ++ sed s@/usr/local/bin:@@
2019-01-08 10:12:41,081: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2019-01-08 10:12:41,081: DEBUG - + test -x /usr/bin/node
2019-01-08 10:12:41,081: DEBUG - + mv /usr/bin/node /usr/bin/node_n
2019-01-08 10:12:41,082: DEBUG - + test -x /usr/bin/npm
2019-01-08 10:12:41,082: DEBUG - + mv /usr/bin/npm /usr/bin/npm_n
2019-01-08 10:12:41,082: DEBUG - ++ n --version
2019-01-08 10:12:41,083: DEBUG - + test
2019-01-08 10:12:41,083: DEBUG - + ynh_install_n
2019-01-08 10:12:41,083: DEBUG - + echo ‘Installation of N - Node.js version management’
2019-01-08 10:12:41,083: DEBUG - + mkdir -p …/conf
2019-01-08 10:12:41,084: DEBUG - + echo ‘SOURCE_URL=https://github.com/tj/n/archive/v2.1.7.tar.gz
2019-01-08 10:12:41,084: DEBUG - SOURCE_SUM=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f’
2019-01-08 10:12:41,084: DEBUG - + ynh_setup_source /opt/node_n/git n
2019-01-08 10:12:41,084: DEBUG - + local dest_dir=/opt/node_n/git
2019-01-08 10:12:41,085: DEBUG - + local src_id=n
2019-01-08 10:12:41,085: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/n.src
2019-01-08 10:12:41,085: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:41,085: DEBUG - + local src_url=https://github.com/tj/n/archive/v2.1.7.tar.gz
2019-01-08 10:12:41,085: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/n.src
2019-01-08 10:12:41,086: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:41,086: DEBUG - + local src_sum=2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f
2019-01-08 10:12:41,086: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/n.src
2019-01-08 10:12:41,086: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:41,087: DEBUG - + local src_sumprg=
2019-01-08 10:12:41,087: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/n.src
2019-01-08 10:12:41,087: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:41,087: DEBUG - + local src_format=
2019-01-08 10:12:41,087: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/n.src
2019-01-08 10:12:41,088: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:41,088: DEBUG - + local src_extract=
2019-01-08 10:12:41,088: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/n.src
2019-01-08 10:12:41,088: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:41,089: DEBUG - + local src_in_subdir=
2019-01-08 10:12:41,089: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/n.src
2019-01-08 10:12:41,089: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:41,089: DEBUG - + local src_filename=
2019-01-08 10:12:41,089: DEBUG - + src_sumprg=sha256sum
2019-01-08 10:12:41,090: DEBUG - + src_in_subdir=true
2019-01-08 10:12:41,090: DEBUG - + src_format=tar.gz
2019-01-08 10:12:41,090: DEBUG - ++ echo tar.gz
2019-01-08 10:12:41,090: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
2019-01-08 10:12:41,090: DEBUG - + src_format=tar.gz
2019-01-08 10:12:41,091: DEBUG - + src_extract=true
2019-01-08 10:12:41,091: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
2019-01-08 10:12:41,091: DEBUG - + src_filename=n.tar.gz
2019-01-08 10:12:41,091: DEBUG - + local local_src=/opt/yunohost-apps-src/peertube/n.tar.gz
2019-01-08 10:12:41,092: DEBUG - + test -e /opt/yunohost-apps-src/peertube/n.tar.gz
2019-01-08 10:12:41,092: DEBUG - ++ wget -nv -O n.tar.gz https://github.com/tj/n/archive/v2.1.7.tar.gz
2019-01-08 10:12:41,794: DEBUG - + local ‘out=2019-01-08 10:12:41 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] → “n.tar.gz” [1]’
2019-01-08 10:12:41,794: DEBUG - + echo ‘2ba3c9d4dd3c7e38885b37e02337906a1ee91febe6d5c9159d89a9050f2eea8f n.tar.gz’
2019-01-08 10:12:41,795: DEBUG - + sha256sum -c --status
2019-01-08 10:12:41,795: DEBUG - + mkdir -p /opt/node_n/git
2019-01-08 10:12:41,795: DEBUG - + true
2019-01-08 10:12:41,796: DEBUG - + ‘[’ tar.gz = zip ‘]’
2019-01-08 10:12:41,796: DEBUG - + local strip=
2019-01-08 10:12:41,796: DEBUG - + true
2019-01-08 10:12:41,797: DEBUG - + strip=‘–strip-components 1’
2019-01-08 10:12:41,797: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2019-01-08 10:12:41,797: DEBUG - + tar -xf n.tar.gz -C /opt/node_n/git --strip-components 1
2019-01-08 10:12:41,798: DEBUG - ++ find /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/sources/patches/ -type f -name ‘n-.patch’
2019-01-08 10:12:41,798: DEBUG - ++ wc -l
2019-01-08 10:12:41,798: DEBUG - + (( 0 > 0 ))
2019-01-08 10:12:41,799: DEBUG - + test -e /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/sources/extra_files/n
2019-01-08 10:12:41,799: DEBUG - + cd /opt/node_n/git
2019-01-08 10:12:41,799: DEBUG - + PREFIX=/opt/node_n
2019-01-08 10:12:41,800: DEBUG - + make install
2019-01-08 10:12:41,800: DEBUG - mkdir -p /opt/node_n/bin/
2019-01-08 10:12:41,800: DEBUG - cp bin/n /opt/node_n/bin/n
2019-01-08 10:12:41,801: DEBUG - + ynh_replace_string '^N_PREFIX=${N_PREFIX-.
}$’ ‘N_PREFIX=${N_PREFIX-/opt/node_n}’ /opt/node_n/bin/n
2019-01-08 10:12:41,801: DEBUG - + local delimit=@
2019-01-08 10:12:41,801: DEBUG - + local ‘match_string=^N_PREFIX=${N_PREFIX-.}$’
2019-01-08 10:12:41,802: DEBUG - + local ‘replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}’
2019-01-08 10:12:41,802: DEBUG - + local workfile=/opt/node_n/bin/n
2019-01-08 10:12:41,802: DEBUG - + match_string='^N_PREFIX=${N_PREFIX-.
}$’
2019-01-08 10:12:41,803: DEBUG - + replace_string=‘N_PREFIX=${N_PREFIX-/opt/node_n}’
2019-01-08 10:12:41,803: DEBUG - + sudo sed --in-place ‘s@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g’ /opt/node_n/bin/n
2019-01-08 10:12:41,803: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-01-08 10:12:41,803: DEBUG - + test -x /usr/bin/node_n
2019-01-08 10:12:41,803: DEBUG - + mv /usr/bin/node_n /usr/bin/node
2019-01-08 10:12:41,804: DEBUG - + test -x /usr/bin/npm_n
2019-01-08 10:12:41,804: DEBUG - + mv /usr/bin/npm_n /usr/bin/npm
2019-01-08 10:12:41,804: DEBUG - + n 8
2019-01-08 10:12:42,005: DEBUG -
2019-01-08 10:12:42,005: DEBUG - e[36m installe[0m : e[2mnode-v8.15.0e[22me[0m
2019-01-08 10:12:42,206: DEBUG - e[36m mkdire[0m : e[2m/opt/node_n/n/versions/node/8.15.0e[22me[0m
2019-01-08 10:12:42,206: DEBUG - e[36m fetche[0m : e[2mhttps://nodejs.org/dist/v8.15.0/node-v8.15.0-linux-x64.tar.gze[22me[0m
2019-01-08 10:12:44,411: WARNING -
0.2%
1.2%

3.8%

7.7%

######### 13.1%
########### 16.0%
################ 22.7%
##################### 29.5%
########################## 36.4%
############################## 42.8%
################################### 49.6%
######################################## 56.3%
############################################ 61.8%
################################################# 68.6%
###################################################### 75.3%
########################################################### 82.1%
############################################################### 88.8%
#################################################################### 95.6%
######################################################################## 100.0%
2019-01-08 10:12:44,612: DEBUG - e[36m installede[0m : e[2mv8.15.0e[22me[0m
2019-01-08 10:12:44,612: DEBUG -
2019-01-08 10:12:44,612: DEBUG - ++ sort --version-sort
2019-01-08 10:12:44,612: DEBUG - ++ find /opt/node_n/n/versions/node/8.15.0 -maxdepth 0
2019-01-08 10:12:44,613: DEBUG - ++ tail --lines=1
2019-01-08 10:12:44,613: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/8.15.0
2019-01-08 10:12:44,613: DEBUG - ++ basename /opt/node_n/n/versions/node/8.15.0
2019-01-08 10:12:44,613: DEBUG - + real_nodejs_version=8.15.0
2019-01-08 10:12:44,613: DEBUG - + ‘[’ ‘!’ -e /opt/node_n/n/versions/node/8 ‘]’
2019-01-08 10:12:44,613: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/8.15.0 /opt/node_n/n/versions/node/8
2019-01-08 10:12:44,614: DEBUG - + echo peertube:8
2019-01-08 10:12:44,614: DEBUG - + tee --append /opt/node_n/ynh_app_version
2019-01-08 10:12:44,614: DEBUG - peertube:8
2019-01-08 10:12:44,614: DEBUG - + ynh_app_setting_set peertube nodejs_version 8
2019-01-08 10:12:44,614: DEBUG - + sudo yunohost app setting peertube nodejs_version --value=8 --quiet
2019-01-08 10:12:44,915: DEBUG - + ynh_cron_upgrade_node
2019-01-08 10:12:44,915: DEBUG - + cat
2019-01-08 10:12:44,915: DEBUG - + chmod +x /opt/node_n/node_update.sh
2019-01-08 10:12:44,916: DEBUG - + cat
2019-01-08 10:12:44,916: DEBUG - + chmod +x /etc/cron.daily/node_update
2019-01-08 10:12:44,916: DEBUG - + ynh_use_nodejs
2019-01-08 10:12:44,916: DEBUG - ++ ynh_app_setting_get peertube nodejs_version
2019-01-08 10:12:44,916: DEBUG - ++ sudo yunohost app setting peertube nodejs_version --output-as plain --quiet
2019-01-08 10:12:45,217: DEBUG - + nodejs_version=8
2019-01-08 10:12:45,217: DEBUG - + nodejs_use_version=‘echo “Deprecated command, should be removed”’
2019-01-08 10:12:45,218: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/8/bin
2019-01-08 10:12:45,218: DEBUG - + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: == :/\o\p\t/\n\o\d\e_\n/\n/\v\e\r\s\i\o\n\s/\n\o\d\e/\8/\b\i\n ]]
2019-01-08 10:12:45,218: DEBUG - + PATH=/opt/node_n/n/versions/node/8/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2019-01-08 10:12:45,218: DEBUG - ++ lsb_release --codename --short
2019-01-08 10:12:45,219: DEBUG - + ‘[’ stretch == jessie ‘]’
2019-01-08 10:12:45,219: DEBUG - + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg
2019-01-08 10:12:45,219: DEBUG - + apt-key add -
2019-01-08 10:12:45,320: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2019-01-08 10:12:47,024: DEBUG - OK
2019-01-08 10:12:47,024: DEBUG - + echo ‘deb https://dl.yarnpkg.com/debian/ stable main’
2019-01-08 10:12:47,025: DEBUG - + tee /etc/apt/sources.list.d/yarn.list
2019-01-08 10:12:47,025: DEBUG - deb https://dl.yarnpkg.com/debian/ stable main
2019-01-08 10:12:47,025: DEBUG - + ynh_package_update
2019-01-08 10:12:47,025: DEBUG - + ynh_apt update
2019-01-08 10:12:47,025: DEBUG - + ynh_wait_dpkg_free
2019-01-08 10:12:47,026: DEBUG - + local try
2019-01-08 10:12:47,026: DEBUG - ++ seq 1 17
2019-01-08 10:12:47,026: DEBUG - + for try in seq 1 17
2019-01-08 10:12:47,026: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-01-08 10:12:47,127: DEBUG - + return 0
2019-01-08 10:12:47,127: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-01-08 10:12:47,127: DEBUG - + sudo apt-get -y update
2019-01-08 10:12:47,328: DEBUG - Hit:1 Index of /debian/ stretch InRelease
2019-01-08 10:12:47,328: DEBUG - Ign:2 Index of /debian/ stretch InRelease
2019-01-08 10:12:47,329: DEBUG - Get:3 Index of /debian/ stretch-updates InRelease [91.0 kB]
2019-01-08 10:12:47,429: DEBUG - Get:5 Index of /debian/ stretch Release [118 kB]
2019-01-08 10:12:47,630: DEBUG - Hit:6 Index of /debian-security stretch/updates InRelease
2019-01-08 10:12:47,630: DEBUG - Hit:7 https://deb.nodesource.com/node_8.x stretch InRelease
2019-01-08 10:12:48,332: DEBUG - Fetched 209 kB in 1s (199 kB/s)
2019-01-08 10:12:49,134: DEBUG - Reading package lists…
2019-01-08 10:12:49,134: DEBUG - + ynh_install_app_dependencies postgresql postgresql-contrib openssl g++ ffmpeg redis-server redis-tools mailutils yarn apt-transport-https
2019-01-08 10:12:49,135: DEBUG - + local ‘dependencies=postgresql postgresql-contrib openssl g++ ffmpeg redis-server redis-tools mailutils yarn apt-transport-https’
2019-01-08 10:12:49,135: DEBUG - + local ‘dependencies=postgresql, postgresql-contrib, openssl, g++, ffmpeg, redis-server, redis-tools, mailutils, yarn, apt-transport-https’
2019-01-08 10:12:49,135: DEBUG - + local ‘dependencies=postgresql, postgresql-contrib, openssl, g++, ffmpeg, redis-server, redis-tools, mailutils, yarn, apt-transport-https’
2019-01-08 10:12:49,135: DEBUG - + local manifest_path=…/manifest.json
2019-01-08 10:12:49,135: DEBUG - + ‘[’ ‘!’ -e …/manifest.json ‘]’
2019-01-08 10:12:49,136: DEBUG - ++ cut -d ‘"’ -f 4
2019-01-08 10:12:49,136: DEBUG - ++ grep '"version": ’ …/manifest.json
2019-01-08 10:12:49,136: DEBUG - + local version=1.1.0
2019-01-08 10:12:49,136: DEBUG - + ‘[’ 5 -eq 0 ‘]’
2019-01-08 10:12:49,137: DEBUG - + local dep_app=peertube
2019-01-08 10:12:49,137: DEBUG - + cat
2019-01-08 10:12:49,137: DEBUG - + ynh_package_install_from_equivs /tmp/peertube-ynh-deps.control
2019-01-08 10:12:49,137: DEBUG - + local controlfile=/tmp/peertube-ynh-deps.control
2019-01-08 10:12:49,137: DEBUG - ++ grep '^Package: ’ /tmp/peertube-ynh-deps.control
2019-01-08 10:12:49,138: DEBUG - ++ cut '-d ’ -f 2
2019-01-08 10:12:49,138: DEBUG - + local pkgname=peertube-ynh-deps
2019-01-08 10:12:49,138: DEBUG - ++ grep ‘^Version: ’ /tmp/peertube-ynh-deps.control
2019-01-08 10:12:49,138: DEBUG - ++ cut ‘-d ’ -f 2
2019-01-08 10:12:49,139: DEBUG - + local pkgversion=1.1.0
2019-01-08 10:12:49,139: DEBUG - + [[ -z peertube-ynh-deps ]]
2019-01-08 10:12:49,139: DEBUG - + [[ -z 1.1.0 ]]
2019-01-08 10:12:49,139: DEBUG - + ynh_package_update
2019-01-08 10:12:49,139: DEBUG - + ynh_apt update
2019-01-08 10:12:49,140: DEBUG - + ynh_wait_dpkg_free
2019-01-08 10:12:49,140: DEBUG - + local try
2019-01-08 10:12:49,140: DEBUG - ++ seq 1 17
2019-01-08 10:12:49,140: DEBUG - + for try in seq 1 17
2019-01-08 10:12:49,141: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-01-08 10:12:49,241: DEBUG - + return 0
2019-01-08 10:12:49,241: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-01-08 10:12:49,241: DEBUG - + sudo apt-get -y update
2019-01-08 10:12:49,442: DEBUG - Ign:1 Index of /debian/ stretch InRelease
2019-01-08 10:12:49,442: DEBUG - Get:2 Index of /debian/ stretch-updates InRelease [91.0 kB]
2019-01-08 10:12:49,443: DEBUG - Hit:3 Index of /debian-security stretch/updates InRelease
2019-01-08 10:12:49,443: DEBUG - Get:4 Index of /debian/ stretch Release [118 kB]
2019-01-08 10:12:49,443: DEBUG - Hit:5 Index of /debian/ stretch InRelease
2019-01-08 10:12:49,543: DEBUG - Hit:6 https://dl.yarnpkg.com/debian stable InRelease
2019-01-08 10:12:49,544: DEBUG - Hit:7 https://deb.nodesource.com/node_8.x stretch InRelease
2019-01-08 10:12:50,446: DEBUG - Fetched 209 kB in 1s (205 kB/s)
2019-01-08 10:12:51,248: DEBUG - Reading package lists…
2019-01-08 10:12:51,248: DEBUG - ++ mktemp -d
2019-01-08 10:12:51,249: DEBUG - + local TMPDIR=/tmp/tmp.fKmvo5dvcw
2019-01-08 10:12:51,249: DEBUG - + echo 10
2019-01-08 10:12:51,249: DEBUG - + ynh_wait_dpkg_free
2019-01-08 10:12:51,249: DEBUG - + local try
2019-01-08 10:12:51,249: DEBUG - ++ seq 1 17
2019-01-08 10:12:51,249: DEBUG - + for try in seq 1 17
2019-01-08 10:12:51,249: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-01-08 10:12:51,350: DEBUG - + return 0
2019-01-08 10:12:51,350: DEBUG - + cp /tmp/peertube-ynh-deps.control /tmp/tmp.fKmvo5dvcw/control
2019-01-08 10:12:51,350: DEBUG - + cd /tmp/tmp.fKmvo5dvcw
2019-01-08 10:12:51,350: DEBUG - + equivs-build ./control
2019-01-08 10:12:52,252: DEBUG - + sudo dpkg --force-depends -i ./peertube-ynh-deps_1.1.0_all.deb
2019-01-08 10:12:52,353: DEBUG - (Reading database … 48518 files and directories currently installed.)
2019-01-08 10:12:52,353: DEBUG - Preparing to unpack …/peertube-ynh-deps_1.1.0_all.deb …
2019-01-08 10:12:52,554: DEBUG - Unpacking peertube-ynh-deps (1.1.0) over (1.0.1) …
2019-01-08 10:12:52,755: DEBUG - Setting up peertube-ynh-deps (1.1.0) …
2019-01-08 10:12:52,956: DEBUG - + ynh_package_install -f
2019-01-08 10:12:52,956: DEBUG - + ynh_apt --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
2019-01-08 10:12:52,956: DEBUG - + ynh_wait_dpkg_free
2019-01-08 10:12:52,956: DEBUG - + local try
2019-01-08 10:12:52,956: DEBUG - ++ seq 1 17
2019-01-08 10:12:52,957: DEBUG - + for try in seq 1 17
2019-01-08 10:12:52,957: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-01-08 10:12:53,057: DEBUG - + return 0
2019-01-08 10:12:53,057: DEBUG - + DEBIAN_FRONTEND=noninteractive
2019-01-08 10:12:53,057: DEBUG - + sudo apt-get -y --no-remove -o Dpkg::Options::=–force-confdef -o Dpkg::Options::=–force-confold install -f
2019-01-08 10:12:53,258: DEBUG - Reading package lists…
2019-01-08 10:12:53,359: DEBUG - Building dependency tree…
2019-01-08 10:12:53,359: DEBUG - Reading state information…
2019-01-08 10:12:53,559: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2019-01-08 10:12:53,560: DEBUG - + [[ -n /tmp/tmp.fKmvo5dvcw ]]
2019-01-08 10:12:53,560: DEBUG - + rm -rf /tmp/tmp.fKmvo5dvcw
2019-01-08 10:12:53,560: DEBUG - + ynh_package_is_installed peertube-ynh-deps
2019-01-08 10:12:53,560: DEBUG - + ynh_wait_dpkg_free
2019-01-08 10:12:53,560: DEBUG - + local try
2019-01-08 10:12:53,560: DEBUG - ++ seq 1 17
2019-01-08 10:12:53,560: DEBUG - + for try in seq 1 17
2019-01-08 10:12:53,561: DEBUG - + sudo lsof /var/lib/dpkg/lock
2019-01-08 10:12:53,661: DEBUG - + return 0
2019-01-08 10:12:53,661: DEBUG - + dpkg-query -W -f ‘${Status}’ peertube-ynh-deps
2019-01-08 10:12:53,661: DEBUG - + grep -c ‘ok installed’
2019-01-08 10:12:53,661: DEBUG - + rm /tmp/peertube-ynh-deps.control
2019-01-08 10:12:53,662: DEBUG - + ynh_app_setting_set peertube apt_dependencies postgresql, postgresql-contrib, openssl, g++, ffmpeg, redis-server, redis-tools, mailutils, yarn, apt-transport-https
2019-01-08 10:12:53,662: DEBUG - + sudo yunohost app setting peertube apt_dependencies --value=postgresql, --quiet
2019-01-08 10:12:53,963: DEBUG - ++ ynh_normalize_url_path /
2019-01-08 10:12:53,963: DEBUG - ++ local path_url=/
2019-01-08 10:12:53,963: DEBUG - ++ test -n /
2019-01-08 10:12:53,964: DEBUG - ++ ‘[’ / ‘!=’ / ‘]’
2019-01-08 10:12:53,964: DEBUG - ++ ‘[’ / == / ‘]’
2019-01-08 10:12:53,964: DEBUG - ++ ‘[’ 1 -gt 1 ‘]’
2019-01-08 10:12:53,965: DEBUG - ++ echo /
2019-01-08 10:12:53,965: DEBUG - + path_url=/
2019-01-08 10:12:53,965: DEBUG - + ynh_setup_source /var/www/peertube
2019-01-08 10:12:53,966: DEBUG - + local dest_dir=/var/www/peertube
2019-01-08 10:12:53,966: DEBUG - + local src_id=app
2019-01-08 10:12:53,966: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/app.src
2019-01-08 10:12:53,967: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:53,967: DEBUG - + local src_url=https://github.com/Chocobozzz/PeerTube/releases/download/v1.1.0/peertube-v1.1.0.tar.xz
2019-01-08 10:12:53,967: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/app.src
2019-01-08 10:12:53,968: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:53,968: DEBUG - + local src_sum=b775bab2bb9f9a957b7f4decc1d3372bf209628cede7e0a6a908bc0d6f4eb595
2019-01-08 10:12:53,968: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/app.src
2019-01-08 10:12:53,969: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:53,969: DEBUG - + local src_sumprg=sha256sum
2019-01-08 10:12:53,969: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/app.src
2019-01-08 10:12:53,970: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:53,970: DEBUG - + local src_format=tar.xz
2019-01-08 10:12:53,970: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/app.src
2019-01-08 10:12:53,971: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:53,971: DEBUG - + local src_extract=
2019-01-08 10:12:53,971: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/app.src
2019-01-08 10:12:53,972: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:53,972: DEBUG - + local src_in_subdir=true
2019-01-08 10:12:53,972: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/conf/app.src
2019-01-08 10:12:53,973: DEBUG - ++ cut -d= -f2-
2019-01-08 10:12:53,973: DEBUG - + local src_filename=
2019-01-08 10:12:53,973: DEBUG - + src_sumprg=sha256sum
2019-01-08 10:12:53,974: DEBUG - + src_in_subdir=true
2019-01-08 10:12:53,974: DEBUG - + src_format=tar.xz
2019-01-08 10:12:53,974: DEBUG - ++ echo tar.xz
2019-01-08 10:12:53,975: DEBUG - ++ tr ‘[:upper:]’ ‘[:lower:]’
2019-01-08 10:12:53,975: DEBUG - + src_format=tar.xz
2019-01-08 10:12:53,975: DEBUG - + src_extract=true
2019-01-08 10:12:53,975: DEBUG - + ‘[’ ‘’ = ‘’ ‘]’
2019-01-08 10:12:53,976: DEBUG - + src_filename=app.tar.xz
2019-01-08 10:12:53,976: DEBUG - + local local_src=/opt/yunohost-apps-src/peertube/app.tar.xz
2019-01-08 10:12:53,976: DEBUG - + test -e /opt/yunohost-apps-src/peertube/app.tar.xz
2019-01-08 10:12:53,976: DEBUG - ++ wget -nv -O app.tar.xz https://github.com/Chocobozzz/PeerTube/releases/download/v1.1.0/peertube-v1.1.0.tar.xz
2019-01-08 10:12:55,180: DEBUG - + local ‘out=2019-01-08 10:12:55 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/45213667/61a89180-f7a2-11e8-9b21-8659d641d1fb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190108T101254Z&X-Amz-Expires=300&X-Amz-Signature=5989c1004b9bd87bfdd08f0eb1d985a62a494a3e3be6a49d8ac809756ddbbeb0&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dpeertube-v1.1.0.tar.xz&response-content-type=application%2Foctet-stream [2224520/2224520] → “app.tar.xz” [1]’
2019-01-08 10:12:55,180: DEBUG - + sha256sum -c --status
2019-01-08 10:12:55,180: DEBUG - + echo ‘b775bab2bb9f9a957b7f4decc1d3372bf209628cede7e0a6a908bc0d6f4eb595 app.tar.xz’
2019-01-08 10:12:55,180: DEBUG - + mkdir -p /var/www/peertube
2019-01-08 10:12:55,180: DEBUG - + true
2019-01-08 10:12:55,180: DEBUG - + ‘[’ tar.xz = zip ‘]’
2019-01-08 10:12:55,181: DEBUG - + local strip=
2019-01-08 10:12:55,181: DEBUG - + true
2019-01-08 10:12:55,181: DEBUG - + strip=’–strip-components 1’
2019-01-08 10:12:55,181: DEBUG - + [[ tar.xz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2019-01-08 10:12:55,181: DEBUG - + tar -xf app.tar.xz -C /var/www/peertube --strip-components 1
2019-01-08 10:12:55,582: DEBUG - ++ find /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/sources/patches/ -type f -name ‘app-*.patch’
2019-01-08 10:12:55,582: DEBUG - ++ wc -l
2019-01-08 10:12:55,583: DEBUG - + (( 0 > 0 ))
2019-01-08 10:12:55,583: DEBUG - + test -e /var/cache/yunohost/from_file/peertube_ynh-master/scripts/…/sources/extra_files/app
2019-01-08 10:12:55,583: DEBUG - + cp …/conf/production.yaml /var/www/peertube/config/production.yaml
2019-01-08 10:12:55,583: DEBUG - + cp -a /tmp/tmp.TQSlQMTaIR/local-production.json /var/www/peertube/config/local-production.json
2019-01-08 10:12:55,583: DEBUG - + ynh_secure_remove /tmp/tmp.TQSlQMTaIR
2019-01-08 10:12:55,583: DEBUG - + local path_to_remove=/tmp/tmp.TQSlQMTaIR
2019-01-08 10:12:55,583: DEBUG - + local ‘forbidden_path= /var/www /home/yunohost.app’
2019-01-08 10:12:55,584: DEBUG - + [[ /var/www /home/yunohost.app =~ /tmp/tmp.TQSlQMTaIR ]]
2019-01-08 10:12:55,584: DEBUG - + [[ /tmp/tmp.TQSlQMTaIR =~ ^/[[:alnum:]]+$ ]]
2019-01-08 10:12:55,584: DEBUG - + [[ R = / ]]
2019-01-08 10:12:55,584: DEBUG - + ‘[’ -e /tmp/tmp.TQSlQMTaIR ‘]’
2019-01-08 10:12:55,584: DEBUG - + sudo rm -R /tmp/tmp.TQSlQMTaIR
2019-01-08 10:12:55,584: DEBUG - + cd /var/www/peertube
2019-01-08 10:12:55,584: DEBUG - + yarn install --production --pure-lockfile
2019-01-08 10:12:56,086: DEBUG - yarn install v1.12.3
2019-01-08 10:12:56,287: DEBUG - [1/5] Validating package.json…
2019-01-08 10:12:56,287: DEBUG - [2/5] Resolving packages…
2019-01-08 10:12:56,688: WARNING - warning Resolution field “@types/bluebird@3.5.21” is incompatible with requested version “@types/bluebird@3.5.18”
2019-01-08 10:12:57,189: DEBUG - [3/5] Fetching packages…
2019-01-08 10:12:58,091: DEBUG - info fsevents@1.2.4: The platform “linux” is incompatible with this module.
2019-01-08 10:12:58,091: DEBUG - info “fsevents@1.2.4” is an optional dependency and failed compatibility check. Excluding it from installation.
2019-01-08 10:12:58,091: DEBUG - [4/5] Linking dependencies…
2019-01-08 10:13:04,403: DEBUG - [5/5] Building fresh packages…
2019-01-08 10:13:06,407: DEBUG - info Visit yarn install | Yarn for documentation about this command.
2019-01-08 10:13:06,407: WARNING - error /var/www/peertube/node_modules/rdf-canonize: Command failed.
2019-01-08 10:13:06,408: WARNING - Exit code: 1
2019-01-08 10:13:06,408: WARNING - Command: node-gyp rebuild
2019-01-08 10:13:06,408: WARNING - Arguments:
2019-01-08 10:13:06,408: WARNING - Directory: /var/www/peertube/node_modules/rdf-canonize
2019-01-08 10:13:06,409: WARNING - Output:
2019-01-08 10:13:06,409: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-01-08 10:13:06,410: WARNING - sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-01-08 10:13:06,410: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-01-08 10:13:06,410: WARNING - gyp info it worked if it ends with ok
2019-01-08 10:13:06,411: WARNING - gyp info using node-gyp@3.8.0
2019-01-08 10:13:06,411: WARNING - gyp info using node@8.15.0 | linux | x64
2019-01-08 10:13:06,411: WARNING - gyp http GET https://nodejs.org/download/release/v8.15.0/node-v8.15.0-headers.tar.gz
2019-01-08 10:13:06,412: WARNING - gyp http 200 https://nodejs.org/download/release/v8.15.0/node-v8.15.0-headers.tar.gz
2019-01-08 10:13:06,412: WARNING - gyp http GET https://nodejs.org/download/release/v8.15.0/SHASUMS256.txt
2019-01-08 10:13:06,413: WARNING - gyp http 200 https://nodejs.org/download/release/v8.15.0/SHASUMS256.txt
2019-01-08 10:13:06,413: WARNING - gyp info spawn /usr/bin/python2
2019-01-08 10:13:06,413: WARNING - gyp info spawn args [ ‘/opt/node_n/n/versions/node/8.15.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py’,
2019-01-08 10:13:06,414: WARNING - gyp info spawn args ‘binding.gyp’,
2019-01-08 10:13:06,414: WARNING - gyp info spawn args ‘-f’,
2019-01-08 10:13:06,415: WARNING - gyp info spawn args ‘make’,
2019-01-08 10:13:06,415: WARNING - gyp info spawn args ‘-I’,
2019-01-08 10:13:06,415: WARNING - gyp info spawn args ‘/var/www/peertube/node_modules/rdf-canonize/build/config.gypi’,
2019-01-08 10:13:06,415: WARNING - gyp info spawn args ‘-I’,
2019-01-08 10:13:06,416: WARNING - gyp info spawn args ‘/opt/node_n/n/versions/node/8.15.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi’,
2019-01-08 10:13:06,416: WARNING - gyp info spawn args ‘-I’,
2019-01-08 10:13:06,416: WARNING - gyp info spawn args ‘/root/.node-gyp/8.15.0/include/node/common.gypi’,
2019-01-08 10:13:06,416: WARNING - gyp info spawn args ‘-Dlibrary=shared_library’,
2019-01-08 10:13:06,417: WARNING - gyp info spawn args ‘-Dvisibility=default’,
2019-01-08 10:13:06,417: WARNING - gyp info spawn args ‘-Dnode_root_dir=/root/.node-gyp/8.15.0’,
2019-01-08 10:13:06,417: WARNING - gyp info spawn args ‘-Dnode_gyp_dir=/opt/node_n/n/versions/node/8.15.0/lib/node_modules/npm/node_modules/node-gyp’,
2019-01-08 10:13:06,417: WARNING - gyp info spawn args ‘-Dnode_lib_file=/root/.node-gyp/8.15.0/<(target_arch)/node.lib’,
2019-01-08 10:13:06,418: WARNING - gyp info spawn args ‘-Dmodule_root_dir=/var/www/peertube/node_modules/rdf-canonize’,
2019-01-08 10:13:06,418: WARNING - gyp info spawn args ‘-Dnode_engine=v8’,
2019-01-08 10:13:06,418: WARNING - gyp info spawn args ‘–depth=.’,
2019-01-08 10:13:06,418: WARNING - gyp info spawn args ‘–no-parallel’,
2019-01-08 10:13:06,419: WARNING - gyp info spawn args ‘–generator-output’,
2019-01-08 10:13:06,419: WARNING - gyp info spawn args ‘build’,
2019-01-08 10:13:06,419: WARNING - gyp info spawn args ‘-Goutput_dir=.’ ]
2019-01-08 10:13:06,419: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-01-08 10:13:06,420: WARNING - /bin/sh: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-01-08 10:13:06,420: WARNING - gyp: Call to ‘node -e “require(‘nan’)”’ returned exit status 0 while in binding.gyp. while trying to load binding.gyp
2019-01-08 10:13:06,420: WARNING - gyp ERR! configure error
2019-01-08 10:13:06,420: WARNING - gyp ERR! stack Error: gyp failed with exit code: 1
2019-01-08 10:13:06,421: WARNING - gyp ERR! stack at ChildProcess.onCpExit (/opt/node_n/n/versions/node/8.15.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
2019-01-08 10:13:06,421: WARNING - gyp ERR! stack at emitTwo (events.js:126:13)
2019-01-08 10:13:06,421: WARNING - gyp ERR! stack at ChildProcess.emit (events.js:214:7)
2019-01-08 10:13:06,421: WARNING - gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
2019-01-08 10:13:06,422: WARNING - gyp ERR! System Linux 4.9.0-8-amd64
2019-01-08 10:13:06,422: WARNING - gyp ERR! command “/opt/node_n/n/versions/node/8.15.0/bin/node” “/opt/node_n/n/versions/node/8.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
2019-01-08 10:13:06,422: WARNING - gyp ERR! cwd /var/www/peertube/node_modules/rdf-canonize
2019-01-08 10:13:06,422: WARNING - gyp ERR! node -v v8.15.0
2019-01-08 10:13:06,423: WARNING - gyp ERR! node-gyp -v v3.8.0
2019-01-08 10:13:06,423: WARNING - gyp ERR! not ok
2019-01-08 10:13:06,523: DEBUG - + ynh_exit_properly
2019-01-08 10:13:06,524: WARNING - !!
2019-01-08 10:13:06,524: DEBUG - + local exit_code=1
2019-01-08 10:13:06,524: WARNING - peertube’s script has encountered an error. Its execution was cancelled.
2019-01-08 10:13:06,524: DEBUG - + ‘[’ 1 -eq 0 ‘]’
2019-01-08 10:13:06,525: WARNING - !!
2019-01-08 10:13:06,525: DEBUG - + trap ‘’ EXIT
2019-01-08 10:13:06,525: WARNING - Upgrade failed.
2019-01-08 10:13:06,525: DEBUG - + set +eu
2019-01-08 10:13:06,525: DEBUG - + echo -e ‘!!\n peertube’'‘s script has encountered an error. Its execution was cancelled.\n!!’
2019-01-08 10:13:06,526: DEBUG - + type -t ynh_clean_setup
2019-01-08 10:13:06,526: DEBUG - + ynh_clean_setup
2019-01-08 10:13:06,526: DEBUG - + ynh_restore_upgradebackup
2019-01-08 10:13:06,526: DEBUG - + echo ‘Upgrade failed.’
2019-01-08 10:13:06,526: DEBUG - + local app_bck=peertube
2019-01-08 10:13:06,527: DEBUG - + NO_BACKUP_UPGRADE=0
2019-01-08 10:13:06,527: DEBUG - + ‘[’ 0 -eq 0 ‘]’
2019-01-08 10:13:06,527: DEBUG - + sudo yunohost backup list
2019-01-08 10:13:06,527: DEBUG - + grep -q peertube-pre-upgrade1
2019-01-08 10:13:06,828: DEBUG - + sudo yunohost app remove peertube
2019-01-08 10:13:08,432: WARNING - Removed /etc/systemd/system/multi-user.target.wants/peertube.service.
2019-01-08 10:13:11,439: WARNING - /usr/local/n wasn’t deleted because it doesn’t exist.
2019-01-08 10:13:11,440: WARNING - /etc/apt/sources.list.d/jessie-backports.list wasn’t deleted because it doesn’t exist.
2019-01-08 10:13:12,542: WARNING - Remove the user peertube
2019-01-08 10:13:12,782: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:13:12,782: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:13:12,783: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:13:12,783: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:13:16,291: DEBUG - peertube has been removed
2019-01-08 10:13:16,391: DEBUG - The SSOwat configuration has been generated
2019-01-08 10:13:16,492: DEBUG - + sudo yunohost backup restore peertube-pre-upgrade1 --apps peertube --force
2019-01-08 10:14:06,078: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:14:06,079: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:14:06,079: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:14:06,079: WARNING - cannot connect to /var/run/nscd/socket
2019-01-08 10:14:06,380: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2019-01-08 10:14:21,816: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/peertube.service → /etc/systemd/system/peertube.service.
2019-01-08 10:14:52,593: DEBUG - The SSOwat configuration has been generated
2019-01-08 10:14:52,593: DEBUG - Restore complete
2019-01-08 10:14:52,593: DEBUG - apps:
2019-01-08 10:14:52,594: DEBUG - peertube: Success
2019-01-08 10:14:52,594: DEBUG - system:
2019-01-08 10:14:52,694: DEBUG - + ynh_die ‘The app was restored to the way it was before the failed upgrade.’
2019-01-08 10:14:52,695: WARNING - The app was restored to the way it was before the failed upgrade.
2019-01-08 10:14:52,695: DEBUG - + echo ‘The app was restored to the way it was before the failed upgrade.’
2019-01-08 10:14:52,696: DEBUG - + exit 1
2019-01-08 10:14:52,808: ERROR - Unable to upgrade peertube
Thanks for your help
EDIT : by the application https://paste.yunohost.org/raw/feqasimeqi

@homerc
I think you tried installing the master branch by chance? You need to use the ovh_fix branch.

For installing:

$ yunohost app install --debug https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix

1 Like

Thanks, what a shame I forget this details…

Sorry I wake up my brain, so the good news is this time the upgrade by the branch OVH_FIX is a success!!!
Thanks for your help and time with no brain like me

1 Like

Nginx problem can anyone tell for me where is a problem?

$ service nginx restart