# \[Peertube\] Error 502

**URL:** https://forum.yunohost.org/t/peertube-error-502/13277
**Category:** Support
**Tags:** english
**Created:** [November 13, 2020, 5:57am UTC](https://forum.yunohost.org/t/peertube-error-502/13277 "2020-11-13T05:57:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tedd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tedd/32/4655_2.png) [@tedd](https://forum.yunohost.org/u/tedd)
#### Post date: [November 13, 2020, 5:57am UTC](https://forum.yunohost.org/t/peertube-error-502/13277/1 "2020-11-13T05:57:50Z")

</div>

### My YunoHost server

**Hardware:** VPS bought online  
**YunoHost version:** 4.0.8.2 (stable)  
**I have access to my server :** Through SSH  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no  
**If yes, please explain:**

### Description of my issue

1. After install - Peertube ОК
2. Reeboot server
3. Got error 502 (log)

```nohighlight
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/opt/node_n/n/versions/node/12.19.0/bin/node',
1 verbose cli '/opt/node_n/n/versions/node/12/bin/npm',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm@6.14.8
3 info using node@v12.19.0
4 verbose config Skipping project config: /var/www/peertube/.npmrc. (matches userconfig)
5 verbose run-script ['prestart', 'start', 'poststart']
6 info lifecycle peertube@2.4.0~prestart: peertube@2.4.0
7 info lifecycle peertube@2.4.0~start: peertube@2.4.0
8 verbose lifecycle peertube@2.4.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle peertube@2.4.0~start: PATH: /opt/node_n/n/versions/node/12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/var/www/peertube/node_modules/.bin:/opt/node_n/n/versions/node/12/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle peertube@2.4.0~start: CWD: /var/www/peertube
11 silly lifecycle peertube@2.4.0~start: Args: ['-c', 'node dist/server']
12 silly lifecycle peertube@2.4.0~start: Returned: code: 1 signal: null
13 info lifecycle peertube@2.4.0~start: Failed to exec start script
14 verbose stack Error: peertube@2.4.0 start: `node dist/server`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/opt/node_n/n/versions/node/12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
14 verbose stack at EventEmitter.emit (events.js:314:20)
14 verbose stack at ChildProcess.<anonymous> (/opt/node_n/n/versions/node/12.19.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
14 verbose stack at ChildProcess.emit (events.js:314:20)
14 verbose stack at maybeClose (internal/child_process.js:1021:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
15 verbose pkgid peertube@2.4.0
16 verbose cwd /var/www/peertube
17 verbose Linux 4.19.0-12-cloud-amd64
18 verbose argv "/opt/node_n/n/versions/node/12.19.0/bin/node" "/opt/node_n/n/versions/node/12/bin/npm" "start"
19 verbose node v12.19.0
20 verbose npm v6.14.8
21 error code ELIFECYCLE
22 error errno 1
23 error peertube@2.4.0 start: `node dist/server`
23 error Exit status 1
24 error Failed at the peertube@2.4.0 start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [1, true]

```

---

<div class="post-metadata">

### Author: ![tedd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tedd/32/4655_2.png) [@tedd](https://forum.yunohost.org/u/tedd)
#### Post date: [November 14, 2020, 7:56am UTC](https://forum.yunohost.org/t/peertube-error-502/13277/2 "2020-11-14T07:56:41Z")

</div>

need help

---

<div class="post-metadata">

### Author: ![ericg](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ericg/32/1543_2.png) [@ericg](https://forum.yunohost.org/u/ericg)
#### Post date: [November 14, 2020, 9:56am UTC](https://forum.yunohost.org/t/peertube-error-502/13277/3 "2020-11-14T09:56:40Z")

</div>

@tedd Have you tried restarting the Peertube service from webadmin -\> Services -\> peertube ?  
If the servise still fails, can you share the logs with the **Share with YunoPast** button?

---

<div class="post-metadata">

### Author: ![tedd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tedd/32/4655_2.png) [@tedd](https://forum.yunohost.org/u/tedd)
#### Post date: [November 14, 2020, 11:01am UTC](https://forum.yunohost.org/t/peertube-error-502/13277/4 "2020-11-14T11:01:48Z")

</div>

Thank you. Yes, I tried to restart the peertube service restart and it was successful, but on the browser side I got a 502 error.  
I decided that the problem could not be solved and made a complete removal and a new installation. Now I will watch how everything will work, if there are any problems I will inform you additionally.

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [November 29, 2020, 11:01am UTC](https://forum.yunohost.org/t/peertube-error-502/13277/5 "2020-11-29T11:01:51Z")

</div>

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