peertube container / npm start fails #4

Open
opened 2020-04-17 12:00:34 +00:00 by hheiss · 4 comments

Hi! I am trying to set up my own instance on a Hetzner cloud compute instance with Ubuntu 18. All containers work except peertube, which keeps restarting. I get the following error:


> peertube@2.1.1 start /app
> node dist/server

npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! peertube@2.1.1 start: `node dist/server`
npm ERR! Exit status 255
npm ERR! 
npm ERR! Failed at the peertube@2.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-17T11_54_53_201Z-debug.log

The debug log says:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using npm@6.13.4
3 info using node@v10.19.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle peertube@2.1.1~prestart: peertube@2.1.1
6 info lifecycle peertube@2.1.1~start: peertube@2.1.1
7 verbose lifecycle peertube@2.1.1~start: unsafe-perm in lifecycle true
8 verbose lifecycle peertube@2.1.1~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle peertube@2.1.1~start: CWD: /app
10 silly lifecycle peertube@2.1.1~start: Args: [ '-c', 'node dist/server' ]
11 silly lifecycle peertube@2.1.1~start: Returned: code: 255  signal: null
12 info lifecycle peertube@2.1.1~start: Failed to exec start script
13 verbose stack Error: peertube@2.1.1 start: `node dist/server`
13 verbose stack Exit status 255
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/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 ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.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.1.1
15 verbose cwd /app
16 verbose Linux 4.15.0-91-generic
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v10.19.0
19 verbose npm  v6.13.4
20 error code ELIFECYCLE
21 error errno 255
22 error peertube@2.1.1 start: `node dist/server`
22 error Exit status 255
23 error Failed at the peertube@2.1.1 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 255, true ]

dist/server.js exists.

The image is chocobozzz/peertube v2.1.1-buster

Do you have any idea how to fix this? Thanks

Hi! I am trying to set up my own instance on a Hetzner cloud compute instance with Ubuntu 18. All containers work except peertube, which keeps restarting. I get the following error: ``` > peertube@2.1.1 start /app > node dist/server npm ERR! code ELIFECYCLE npm ERR! errno 255 npm ERR! peertube@2.1.1 start: `node dist/server` npm ERR! Exit status 255 npm ERR! npm ERR! Failed at the peertube@2.1.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-04-17T11_54_53_201Z-debug.log ``` The debug log says: ``` 0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ] 2 info using npm@6.13.4 3 info using node@v10.19.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle peertube@2.1.1~prestart: peertube@2.1.1 6 info lifecycle peertube@2.1.1~start: peertube@2.1.1 7 verbose lifecycle peertube@2.1.1~start: unsafe-perm in lifecycle true 8 verbose lifecycle peertube@2.1.1~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 verbose lifecycle peertube@2.1.1~start: CWD: /app 10 silly lifecycle peertube@2.1.1~start: Args: [ '-c', 'node dist/server' ] 11 silly lifecycle peertube@2.1.1~start: Returned: code: 255 signal: null 12 info lifecycle peertube@2.1.1~start: Failed to exec start script 13 verbose stack Error: peertube@2.1.1 start: `node dist/server` 13 verbose stack Exit status 255 13 verbose stack at EventEmitter.<anonymous> (/usr/local/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 ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.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.1.1 15 verbose cwd /app 16 verbose Linux 4.15.0-91-generic 17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 18 verbose node v10.19.0 19 verbose npm v6.13.4 20 error code ELIFECYCLE 21 error errno 255 22 error peertube@2.1.1 start: `node dist/server` 22 error Exit status 255 23 error Failed at the peertube@2.1.1 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 255, true ] ``` `dist/server.js` exists. The image is `chocobozzz/peertube v2.1.1-buster` Do you have any idea how to fix this? Thanks
Author

BTW do you run ansible on the server as root or did you create a peertube user?

BTW do you run ansible on the server as `root` or did you create a `peertube` user?
Author

I also get database errors:

postgres_1  | 2020-04-17 12:01:55.053 UTC [109] ERROR:  relation "public.Pods" does not exist
postgres_1  | 2020-04-17 12:01:55.053 UTC [109] STATEMENT:  ALTER TABLE "public"."Pods" ADD COLUMN "email" VARCHAR(400) NOT NULL DEFAULT '';

Thanks.

I also get database errors: ``` postgres_1 | 2020-04-17 12:01:55.053 UTC [109] ERROR: relation "public.Pods" does not exist postgres_1 | 2020-04-17 12:01:55.053 UTC [109] STATEMENT: ALTER TABLE "public"."Pods" ADD COLUMN "email" VARCHAR(400) NOT NULL DEFAULT ''; ``` Thanks.
Author

v2.1.0-buster and production-buster have the same error. chocobozzz/peertube:latest works, but it's 2 years old

chocobozzz/peertube    production-buster   efa39b0ad53c        7 weeks ago         1.06GB
chocobozzz/peertube    v2.1.1-buster       42a9d7f827ca        7 weeks ago         1.06GB
chocobozzz/peertube    v2.1.0-buster       5e3b8a394820        2 months ago        1.03GB
chocobozzz/peertube    latest              0ad18e0291b8        2 years ago         1.26GB
`v2.1.0-buster` and `production-buster` have the same error. `chocobozzz/peertube:latest` works, but it's 2 years old ``` chocobozzz/peertube production-buster efa39b0ad53c 7 weeks ago 1.06GB chocobozzz/peertube v2.1.1-buster 42a9d7f827ca 7 weeks ago 1.06GB chocobozzz/peertube v2.1.0-buster 5e3b8a394820 2 months ago 1.03GB chocobozzz/peertube latest 0ad18e0291b8 2 years ago 1.26GB ```
Owner

Hi, I'm not sure why you are getting those problems, but they look like general Peertube problems, not related to the config in this repo. I suggest you try if the official Peertube docker-compose setup works for you.

I have Ansible connect with my own user, and use sudo.

Hi, I'm not sure why you are getting those problems, but they look like general Peertube problems, not related to the config in this repo. I suggest you try if the official [Peertube docker-compose setup](https://github.com/Chocobozzz/PeerTube/tree/develop/support/docker/production) works for you. I have Ansible connect with my own user, and use sudo.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: nutomic/peertube.social#4
No description provided.