[Temp fix provided] Peertube Fails


#41

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


#42

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


#43


Logout from the Yunohost SSO and do
$ service nginx restart


#44

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


#45

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.


#46

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 https://yarnpkg.com/en/docs/cli/install 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


#47

You should restore from backup till Peertube upstream fixes it.


#48

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.


#49

Peertube is updated to version 1.1.0 .

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


#50

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


#51

can you show complete log ?


#52

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