Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OVH_BRANCH #135

Closed
franckhomer opened this issue Dec 28, 2019 · 22 comments
Closed

OVH_BRANCH #135

franckhomer opened this issue Dec 28, 2019 · 22 comments
Assignees
Labels
Projects

Comments

@franckhomer
Copy link

Salut j'ai fait la MAJ ce matin.
Première erreur ma version de NODE était trop basse (8.0) je l'ai montée en 8.17 ce qui a permis l'installation de YARN sans erreur.
Cependant je n'ai pas pu redémarrer peertube que dans l'admin de yunohost et j'ai une erreur 502 bad gateway NGINX.
Une idée ? Je peux trouver des logs à te montrer ?
Merci

@yalh76
Copy link
Member

yalh76 commented Dec 28, 2019

Salut @franckhomer

En fait il faut être en nodejs 10, ça explique peut être le problém que tu rencontres:

$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs

@yalh76 yalh76 self-assigned this Dec 28, 2019
@yalh76 yalh76 added the bug label Dec 28, 2019
@yalh76 yalh76 added this to To do in General via automation Dec 28, 2019
@franckhomer
Copy link
Author

franckhomer commented Dec 29, 2019

Salut,
Bon j'ai bien installé node js mais Peertude ne démarre pas.
Je ne sais pas ou trouver un log d'erreur pour aiguiller.
Node est en version 12.14.0 c'est trop haut?
L'erreur est toujours 502 bad gateway donc pas trop d'indication.
Merci de ton aide
j'ai trouvé ça
2019/12/29 18:12:31 [error] 14848#14848: ocsp.int-x3.letsencrypt.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: ocsp.int-x3.letsencrypt.org 2019/12/29 18:23:12 [notice] 3283#3283: signal process started 2019/12/29 18:28:46 [notice] 7957#7957: signal process started 2019/12/29 18:36:09 [info] 8901#8901: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:64
Bon j'ai remis la 1.4 mais meme erreur, je commence à avoir chaud ^^

@franckhomer
Copy link
Author

Bon en relisant la marche à suivre de l'install j'ai lancé

ce qui me donne les erreurs

iphodase.fr peertube[22840]: > peertube@2.0.0 start /var/www/peertube
Jan 03 08:34:24 iphodase.fr peertube[22840]: > node dist/server
Jan 03 08:34:25 iphodase.fr peertube[22840]: Something went wrong installing the "sharp" module
Jan 03 08:34:25 iphodase.fr peertube[22840]: Module did not self-register.
Jan 03 08:34:25 iphodase.fr peertube[22840]: - Remove the "node_modules/sharp" directory, run "npm install" and look for errors
Jan 03 08:34:25 iphodase.fr peertube[22840]: - Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
Jan 03 08:34:25 iphodase.fr peertube[22840]: - Search for this error at https://github.com/lovell/sharp/issues
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! code ELIFECYCLE
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! errno 1
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! peertube@2.0.0 start: node dist/server
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! Exit status 1
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR!
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! Failed at the peertube@2.0.0 start script.
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jan 03 08:34:25 iphodase.fr systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE
Jan 03 08:34:25 iphodase.fr systemd[1]: peertube.service: Unit entered failed state.
Jan 03 08:34:25 iphodase.fr systemd[1]: peertube.service: Failed with result 'exit-code'.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Service hold-off time over, scheduling restart.
Jan 03 08:34:26 iphodase.fr systemd[1]: Stopped peertube daemon.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Start request repeated too quickly.
Jan 03 08:34:26 iphodase.fr systemd[1]: Failed to start peertube daemon.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Unit entered failed state.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Failed with result 'exit-code'.
^C

Si je comprend bien c'est ce module node_modules/sharp qui pose problème.
là je coince je ne comprend pas la doc pour l'installer. Si tu as la patience ^^
Merci

@franckhomer
Copy link
Author

Bon, j'ai trouvé ça
Chocobozzz/PeerTube#2341
Visiblement je ne suis pas le seul mais les solutions ne passe pas pour moi.
@yalh76 si tu as une idée

@yalh76
Copy link
Member

yalh76 commented Jan 8, 2020

Node est en version 12.14.0 c'est trop haut?

Oui c'est peut être trop haut, actuellement le package installe nodejs 10

@yalh76
Copy link
Member

yalh76 commented Jan 8, 2020

Bon en relisant la marche à suivre de l'install j'ai lancé

ce qui me donne les erreurs

iphodase.fr peertube[22840]: > peertube@2.0.0 start /var/www/peertube
Jan 03 08:34:24 iphodase.fr peertube[22840]: > node dist/server
Jan 03 08:34:25 iphodase.fr peertube[22840]: Something went wrong installing the "sharp" module
Jan 03 08:34:25 iphodase.fr peertube[22840]: Module did not self-register.
Jan 03 08:34:25 iphodase.fr peertube[22840]: - Remove the "node_modules/sharp" directory, run "npm install" and look for errors
Jan 03 08:34:25 iphodase.fr peertube[22840]: - Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
Jan 03 08:34:25 iphodase.fr peertube[22840]: - Search for this error at https://github.com/lovell/sharp/issues
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! code ELIFECYCLE
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! errno 1
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! peertube@2.0.0 start: node dist/server
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! Exit status 1
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR!
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! Failed at the peertube@2.0.0 start script.
Jan 03 08:34:25 iphodase.fr peertube[22840]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jan 03 08:34:25 iphodase.fr systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE
Jan 03 08:34:25 iphodase.fr systemd[1]: peertube.service: Unit entered failed state.
Jan 03 08:34:25 iphodase.fr systemd[1]: peertube.service: Failed with result 'exit-code'.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Service hold-off time over, scheduling restart.
Jan 03 08:34:26 iphodase.fr systemd[1]: Stopped peertube daemon.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Start request repeated too quickly.
Jan 03 08:34:26 iphodase.fr systemd[1]: Failed to start peertube daemon.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Unit entered failed state.
Jan 03 08:34:26 iphodase.fr systemd[1]: peertube.service: Failed with result 'exit-code'.
^C

Si je comprend bien c'est ce module node_modules/sharp qui pose problème.
là je coince je ne comprend pas la doc pour l'installer. Si tu as la patience ^^
Merci

normalement il faut juste suivre les instructions:

  • supprimer le dossier node_modules/sharp rm -rf /var/www/peertube/node_modules/sharp/
  • exécuter depuis /var/www/peertube : sudo -u peertube env PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn install --production --pure-lockfile

@franckhomer
Copy link
Author

Merci @yalh76.

Bon du coup j'ai une nouvelle erreur

/var/www/peertube# sudo -u peertube env PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn install --production --pure-lockfile
yarn install v1.21.1
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > marked-man@0.7.0" has unmet peer dependency "marked@^0.7.0".
error An unexpected error occurred: "EACCES: permission denied, unlink '/var/www/peertube/node_modules/.bin/bittorrent-tracker'".
info If you think this is a bug, please open a bug report with the information provided in "/var/www/peertube/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

visiblement ça rejoint encore le point du dessus, il me semble que c'est un soucis avec.
je ne sais pas à quoi servent ces modules, enfin le bittorrent je comprend bien que pour peertube est fondamentale

@yalh76
Copy link
Member

yalh76 commented Jan 9, 2020

Est ce que tu as essayé de supprimer peertube et de le réinstaller maintenant que tu as la bonne version de nodejs ?

@franckhomer
Copy link
Author

franckhomer commented Jan 10, 2020

Je crois que je vais m'y résoudre mais je voulais éviter pour ne pas avoir à uploader à nouveau mes vidéos. Toujours pas la fibre donc c'est long avec une connexion à 5M ^^
Je peux récup par SFTP le fichier avec les videos?
Je me ballade mais ne trouve pas (pour le moment)

@yalh76
Copy link
Member

yalh76 commented Jan 10, 2020

ouaip normalement elles sont dans /home/yunohost.app/peertube/

@franckhomer
Copy link
Author

franckhomer commented Jan 12, 2020

Bon j'ai tenté désinstallation, réinstallaltion de zéro
502
Remise de la dernière version ok
502
Montée de version en reprenant tout
502

e[24086]: npm ERR! code ELIFECYCLE
Jan 12 17:37:32 iphodase.fr peertube[24086]: npm ERR! errno 1
Jan 12 17:37:32 iphodase.fr peertube[24086]: npm ERR! peertube@2.0.0 start: node dist/server
Jan 12 17:37:32 iphodase.fr peertube[24086]: npm ERR! Exit status 1
Jan 12 17:37:32 iphodase.fr peertube[24086]: npm ERR!
Jan 12 17:37:32 iphodase.fr peertube[24086]: npm ERR! Failed at the peertube@2.0.0 start script.
Jan 12 17:37:32 iphodase.fr peertube[24086]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jan 12 17:37:32 iphodase.fr peertube[24086]: npm ERR!

systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 17:37:38 iphodase.fr systemd[1]: peertube.service: Unit entered failed state.
Jan 12 17:37:38 iphodase.fr systemd[1]: peertube.service: Failed with result 'exit-code'.
Jan 12 17:37:38 iphodase.fr systemd[1]: peertube.service: Service hold-off time over, scheduling restart.
Jan 12 17:37:38 iphodase.fr systemd[1]: Stopped peertube daemon.
Jan 12 17:37:38 iphodase.fr systemd[1]: Started peertube daemon.
^C

@yalh76
Copy link
Member

yalh76 commented Jan 12, 2020

Tu peux lancer manuellement peertube en exécutant:
NODE_ENV=production NODE_CONFIG_DIR=/var/www/peertube/config PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /bin/sh -c ' npm start' et voir quel est le message d'erreur

@franckhomer
Copy link
Author

Merci

code ENOENT
npm ERR! syscall open
npm ERR! path /package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

info it worked if it ends with ok
1 verbose cli [ '/opt/node_n/n/versions/node/10.18.1/bin/node',
1 verbose cli '/opt/node_n/n/versions/node/10/bin/npm',
1 verbose cli 'start' ]
2 info using npm@6.13.4
3 info using node@v10.18.1
4 verbose stack Error: ENOENT: no such file or directory, open '/package.json'
5 verbose cwd /
6 verbose Linux 4.9.0-11-amd64
7 verbose argv "/opt/node_n/n/versions/node/10.18.1/bin/node" "/opt/node_n/n/versions/node/10/bin/npm" "start"
8 verbose node v10.18.1
9 verbose npm v6.13.4
10 error code ENOENT
11 error syscall open
12 error path /package.json
13 error errno -2
14 error enoent ENOENT: no such file or directory, open '/package.json'
15 error enoent This is related to npm not being able to find a file.
16 verbose exit [ -2, true ]

Merde j'ai l'impression d'être revenu en arrière avec une mauvaise version

@yalh76
Copy link
Member

yalh76 commented Jan 12, 2020

tu as lancé la commande depuis le dossier /var/www/peertube ?

@franckhomer
Copy link
Author

franckhomer commented Jan 13, 2020

La commande d'install

sudo -u peertube env PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin yarn install --production --pure-lockfile

Ou de redémarrage
NODE_ENV=production NODE_CONFIG_DIR=/var/www/peertube/config PATH=/opt/node_n/n/versions/node/10/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /bin/sh -c ' npm start'

?

Car là maintenant le service est démarré, plus en fail dans mon yunohost.

Mais j'ai toujours l'erreur 502 Bad Gateway
(Si je ne suis pas clair désolé et encore merci de l'aide)

@yalh76
Copy link
Member

yalh76 commented Jan 13, 2020

les deux sont a exécutées depuis /var/www/peertube

maintenant si le service est démarré mais que tu as une erreur 502, je ne comprends pas pourquoi

@franckhomer
Copy link
Author

Salut,

J'ai tout refais, relancé, le service est démarré mais erreur NGINX.
voila le résultat de journalctrl -feu peertube

Jan 14 13:56:07 iphodase.fr peertube[26978]: "process": {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "pid": 26989,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "uid": 998,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "gid": 998,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "cwd": "/var/www/peertube",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "execPath": "/opt/node_n/n/versions/node/10.18.1/bin/node",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "version": "v10.18.1",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "argv": [
Jan 14 13:56:07 iphodase.fr peertube[26978]: "/opt/node_n/n/versions/node/10.18.1/bin/node",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "/var/www/peertube/dist/server"
Jan 14 13:56:07 iphodase.fr peertube[26978]: ],
Jan 14 13:56:07 iphodase.fr peertube[26978]: "memoryUsage": {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "rss": 131592192,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "heapTotal": 90574848,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "heapUsed": 50830744,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "external": 189848
Jan 14 13:56:07 iphodase.fr peertube[26978]: }
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: "os": {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "loadavg": [
Jan 14 13:56:07 iphodase.fr peertube[26978]: 0.57763671875,
Jan 14 13:56:07 iphodase.fr peertube[26978]: 0.75830078125,
Jan 14 13:56:07 iphodase.fr peertube[26978]: 0.765625
Jan 14 13:56:07 iphodase.fr peertube[26978]: ],
Jan 14 13:56:07 iphodase.fr peertube[26978]: "uptime": 1044673
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: "trace": [
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 18,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._extensions..node",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 807,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": ".node",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 32,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 653,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 12,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "tryModuleLoad",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 593,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 3,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 585,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 17,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 692,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 18,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/helpers.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 25,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 16,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "/var/www/peertube/node_modules/bcrypt/bcrypt.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 6,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 30,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 778,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 10,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._extensions..js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 789,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": ".js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 32,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 653,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 12,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "tryModuleLoad",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 593,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 3,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 585,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 17,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 692,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 18,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/helpers.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 25,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 16,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "/var/www/peertube/dist/server/helpers/peertube-crypto.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 19,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 30,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 778,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 10,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._extensions..js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 789,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": ".js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 32,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 653,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 12,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "tryModuleLoad",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 593,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 3,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 585,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 17,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 692,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 18,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/helpers.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 25,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 27,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "/var/www/peertube/dist/server/models/account/user.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 26,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 30,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 778,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 10,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._extensions..js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 789,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": ".js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 32,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 653,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 12,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "tryModuleLoad",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 593,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 3,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 585,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 17,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 692,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 18,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/helpers.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 25,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 16,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "/var/www/peertube/dist/server/initializers/checker-after-init.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 14,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 30,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 778,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 10,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._extensions..js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 789,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": ".js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 32,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 653,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 12,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "tryModuleLoad",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 593,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 3,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 585,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_load",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 17,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module.require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 692,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 18,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/helpers.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "require",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 25,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 30,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "/var/www/peertube/dist/server.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 45,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": null,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: },
Jan 14 13:56:07 iphodase.fr peertube[26978]: {
Jan 14 13:56:07 iphodase.fr peertube[26978]: "column": 30,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "file": "internal/modules/cjs/loader.js",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "function": "Module._compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "line": 778,
Jan 14 13:56:07 iphodase.fr peertube[26978]: "method": "_compile",
Jan 14 13:56:07 iphodase.fr peertube[26978]: "native": false
Jan 14 13:56:07 iphodase.fr peertube[26978]: }
Jan 14 13:56:07 iphodase.fr peertube[26978]: ]
Jan 14 13:56:07 iphodase.fr peertube[26978]: }
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! code ELIFECYCLE
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! errno 1
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! peertube@2.0.0 start: node dist/server
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! Exit status 1
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR!
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! Failed at the peertube@2.0.0 start script.
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! A complete log of this run can be found in:
Jan 14 13:56:10 iphodase.fr peertube[26978]: npm ERR! /home/peertube/.npm/_logs/2020-01-14T13_56_10_791Z-debug.log
Jan 14 13:56:10 iphodase.fr systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE
Jan 14 13:56:10 iphodase.fr systemd[1]: peertube.service: Unit entered failed state.
Jan 14 13:56:10 iphodase.fr systemd[1]: peertube.service: Failed with result 'exit-code'.
Jan 14 13:56:11 iphodase.fr systemd[1]: peertube.service: Service hold-off time over, scheduling restart.
Jan 14 13:56:11 iphodase.fr systemd[1]: Stopped peertube daemon.
Jan 14 13:56:11 iphodase.fr systemd[1]: Started peertube daemon.
Jan 14 13:56:11 iphodase.fr peertube[27011]: > peertube@2.0.0 start /var/www/peertube
Jan 14 13:56:11 iphodase.fr peertube[27011]: > node dist/server
^C

@yalh76
Copy link
Member

yalh76 commented Jan 15, 2020

A priori il faudrait que tu ailles regarder le contenu de /home/peertube/.npm/_logs/2020-01-14T13_56_10_791Z-debug.log pour voir ce qui pose probléme.

@franckhomer
Copy link
Author

Bon, le dernier fichier contient

0 info it worked if it ends with ok
1 verbose cli [ '/opt/node_n/n/versions/node/10.18.1/bin/node',
1 verbose cli '/opt/node_n/n/versions/node/10/bin/npm',
1 verbose cli 'start' ]
2 info using npm@6.13.4
3 info using node@v10.18.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle peertube@2.0.0prestart: peertube@2.0.0
6 info lifecycle peertube@2.0.0
start: peertube@2.0.0
7 verbose lifecycle peertube@2.0.0start: unsafe-perm in lifecycle true
8 verbose lifecycle peertube@2.0.0
start: PATH: /opt/node_n/n/versions/node/10.18.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/peertube/node_modules/.bin:/opt/node_n/n/versions/node/10/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle peertube@2.0.0start: CWD: /var/www/peertube
10 silly lifecycle peertube@2.0.0
start: Args: [ '-c', 'node dist/server' ]
11 silly lifecycle peertube@2.0.0start: Returned: code: 1 signal: null
12 info lifecycle peertube@2.0.0
start: Failed to exec start script
13 verbose stack Error: peertube@2.0.0 start: node dist/server
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/opt/node_n/n/versions/node/10.18.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid peertube@2.0.0
15 verbose cwd /var/www/peertube
16 verbose Linux 4.9.0-11-amd64
17 verbose argv "/opt/node_n/n/versions/node/10.18.1/bin/node" "/opt/node_n/n/versions/node/10/bin/npm" "start"
18 verbose node v10.18.1
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error peertube@2.0.0 start: node dist/server
22 error Exit status 1
23 error Failed at the peertube@2.0.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
(END)

Bon ben là en fait j'ai mon nginx qui est parti en vrille, je lance une appli par exemple wordpress impossible d'accéder à l'admin.
j'ai eu une idée de génie apt-get update et là c'est pire, toute les appli sont touché et sur mon admin
j'ai plus accès à mes mise à jour...
Bref je vais repartir de ma dernière sauvegarde complète

@franckhomer
Copy link
Author

franckhomer commented Jan 16, 2020

Ok donc là maintenant visiblement le soucis c'est tout ce qui touche à des base de données pour se connecter wordpress, phpmysql, garradin, fresh rss.
Je suis repassé sur une version que je pensais stable mais donc le soucis viens du serveur je pense.

Unable to update the cache of APT (Debian's package manager). Here is a dump of the sources.list lines which might help to identify problematic lines :
sources.list:deb http://debian.mirrors.ovh.net/debian stretch main contrib non-free
sources.list:deb-src http://debian.mirrors.ovh.net/debian stretch main contrib non-free
sources.list:deb http://security.debian.org/debian-security stretch/updates main
sources.list:deb-src http://security.debian.org/debian-security stretch/updates main
sources.list:deb http://debian.mirrors.ovh.net/debian stretch-updates main
sources.list:deb-src http://debian.mirrors.ovh.net/debian stretch-updates main
sources.list.d/yunohost.list:deb http://forge.yunohost.org/debian/ stretch stable
sources.list.d/collabora.list:deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian9 ./
sources.list.d/collabora.list:deb https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian9 ./
sources.list.d/nodesource.list:deb https://deb.nodesource.com/node_10.x stretch main
sources.list.d/nodesource.list:deb-src https://deb.nodesource.com/node_10.x stretch main
sources.list.d/docker.list:deb [arch=amd64] https://download.docker.com/linux/debian stretch edge

W: Target Translations (fr) is configured multiple times in /etc/apt/sources.list.d/collabora.list:1 and /etc/apt/sources.list.d/collabora.list:2

W: Target Translations (en) is configured multiple times in /etc/apt/sources.list.d/collabora.list:1 and /etc/apt/sources.list.d/collabora.list:2

W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list.d/collabora.list:1 and /etc/apt/sources.list.d/collabora.list:2

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://deb.nodesource.com/node_10.x stretch InRelease: Splitting up /var/lib/apt/lists/deb.nodesource.com_node%5f10.x_dists_stretch_InRelease into data and signature failed

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://collaboraoffice.com/repos/CollaboraOnline/CODE-debian9 ./ InRelease: Splitting up /var/lib/apt/lists/collaboraoffice.com_repos_CollaboraOnline_CODE-debian9_._InRelease into data and signature failed

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://download.docker.com/linux/debian stretch InRelease: Splitting up /var/lib/apt/lists/download.docker.com_linux_debian_dists_stretch_InRelease into data and signature failed

E: The repository 'http://forge.yunohost.org/debian stretch Release' does no longer have a Release file.

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.debian.org/debian-security stretch/updates InRelease: Splitting up /var/lib/apt/lists/security.debian.org_debian-security_dists_stretch_updates_InRelease into data and signature failed

E: The repository 'http://debian.mirrors.ovh.net/debian stretch-updates Release' does no longer have a Release file.

E: The repository 'http://debian.mirrors.ovh.net/debian stretch Release' does no longer have a Release file.

Voilà ce que me donne l'erreur quand sur la partie admin je veux accéder aux mise à jour

@franckhomer
Copy link
Author

@yalh76 BON gagné!!!
Alors je suis reparti de zéro, base stretch neuve
j'ai réinstallé YUNOHST depuis ma sauvegarde avant la première tentaive.
Une fois mon instance qui marchait (mais pas peertube) j'ai fait dans l'odre
`curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
yunohost app upgrade peertube -u https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix --debug
cd /var/www/peertube && yarn install --production --pure-lockfile

chown -R peertube:peertube /var/www/peertube

service peertube restart
`
Et là joie et bonheur j'ai mon peertube 2.0 sans les miniature des vidéo mais on n'est pas vraiment regardant de suite.

Encore merci

General automation moved this from To do to Done Jan 22, 2020
@franckhomer
Copy link
Author

Salut @yalh76 pour info j'ai trouvé comment contourner le problème.
Je ne sais pas pourquoi mais il faut découper la commande
$ cd /var/www/peertube && yarn install --production --pure-lockfile
Il faut d'abord se placer dans le repertoire $ cd /var/www/peertube
puis faire un
sudo yarn install --production --pure-lockfile
je présume que c'est lié au fait que maintenant on passe par admin et plus par root pour exécuter les commandes sur YUNOHOST.

Voilà si ça peut aider.

yalh76 added a commit that referenced this issue Jul 7, 2020
@yalh76 yalh76 mentioned this issue Jul 7, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
General
  
Done
Development

No branches or pull requests

2 participants