Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.07k stars 1.51k forks source link

The media could not be loaded with big video files #268

Closed r3k2 closed 6 years ago

r3k2 commented 6 years ago

Im getting that for the lasted video I uploaded, is the same type and format than all the other 20 I uploaded last week.. only difference is that I updated the server... Any reason why will this happen? file to big? torrent/browser issue? peertubeerror

Thanks.

r3k2 commented 6 years ago

This may help.

eb 02 06:47:05 video peertube[6224]: Error: Can't set headers after they are sent.
Feb 02 06:47:05 video peertube[6224]:     at validateHeader (_http_outgoing.js:494:11)
Feb 02 06:47:05 video peertube[6224]:     at ServerResponse.setHeader (_http_outgoing.js:501:3)
Feb 02 06:47:05 video peertube[6224]:     at ServerResponse.header (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/response.js:767:10)
Feb 02 06:47:05 video peertube[6224]:     at ServerResponse.contentType (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/response.js:595:15)
Feb 02 06:47:05 video peertube[6224]:     at ServerResponse.sendStatus (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/response.js:357:8)
Feb 02 06:47:05 video peertube[6224]:     at /var/www/PeerTube/versions/peertube-v0.0.20-alpha/dist/server.js:127:9
Feb 02 06:47:05 video peertube[6224]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/layer.js:71:5)
Feb 02 06:47:05 video peertube[6224]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 02 06:47:05 video peertube[6224]:     at /var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:284:7
Feb 02 06:47:05 video peertube[6224]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 02 06:47:05 video peertube[6224]:     at next (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 02 06:47:05 video peertube[6224]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 02 06:47:05 video peertube[6224]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 02 06:47:05 video peertube[6224]:     at /var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:284:7
Feb 02 06:47:05 video peertube[6224]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 02 06:47:05 video peertube[6224]:     at next (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 02 06:47:05 video peertube[6224]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 02 06:47:05 video peertube[6224]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 02 06:47:05 video peertube[6224]:     at /var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:284:7
Feb 02 06:47:05 video peertube[6224]:     at param (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:354:14)
Feb 02 06:47:05 video peertube[6224]:     at param (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:365:14)
Feb 02 06:47:05 video peertube[6224]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:410:3)
Feb 02 06:47:05 video peertube[6224]:     at next (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 02 06:47:05 video peertube[6224]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 02 06:47:05 video peertube[6224]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 02 06:47:05 video peertube[6224]:     at /var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:284:7
Feb 02 06:47:05 video peertube[6224]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 02 06:47:05 video peertube[6224]:     at next (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 02 06:47:05 video peertube[6224]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 02 06:47:05 video peertube[6224]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 02 06:47:05 video peertube[6224]:     at /var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:284:7
Feb 02 06:47:05 video peertube[6224]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 02 06:47:05 video peertube[6224]:     at next (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 02 06:47:05 video peertube[6224]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 02 06:47:05 video peertube[6224]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 02 06:47:05 video peertube[6224]:     at /var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:284:7
Feb 02 06:47:05 video peertube[6224]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 02 06:47:05 video peertube[6224]:     at next (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 02 06:47:05 video peertube[6224]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 02 06:47:05 video peertube[6224]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.20-alpha/node_modules/express/lib/router/index.js:315:13)
r3k2 commented 6 years ago

I downgraded to .19 and I dont get that. But now it wont show any video, nor the ones on my node or the other ones linked/following I mean it shows loading but never start to play.

Feb 03 00:02:37 video peertube[12303]: > peertube@0.0.19-alpha start /var/www/PeerTube/versions/peertube-v0.0.19-alpha
Feb 03 00:02:37 video peertube[12303]: > node dist/server
r3k2 commented 6 years ago

ok so got home and I get the same video output but I dont get that msg on the log.. so it may not be related.. also if I go to another node that follows me and try to see the video from there I also get the same error screen as the first post screenshot. https://tubes.libox.fr/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7 check for yourself..

r3k2 commented 6 years ago

Another note, people can download via torrent or direct download from the "download" option that works fine is only the streaming part.

bnjbvr commented 6 years ago

Interesting. There are a few errors showing up in the developer console, the first two being:

Media resource blob:https://tubes.libox.fr/bd222bc7-dad1-4a2c-8864-b24380f95738 could not be decoded.

Second one:

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported.

But what's weird is that the client keeps on requesting media bytes from the server, although an error happened; so this is hammering the server's bandwidth despite the client error preventing from playing the video.

r3k2 commented 6 years ago

@bnjbvr maybe is because is to big? it is a .mp4 file, I am converting as I write this to .webm and will upload that to test.

r3k2 commented 6 years ago

so I uploaded it again, a lower resolution instead of 18G is 6G and same issue https://video.hispagatos.org/videos/watch/6b198426-579c-41da-9c08-df9b0268800a is odd I had only 5-6G video uploaded and they work just fine... :(

r3k2 commented 6 years ago

@bnjbvr @Chocobozzz more logs.

Feb 03 07:04:07 video peertube[14409]: [video.hispagatos.org:443] 2018-02-06 07:04:07.320 error: TypeError: req.query.url.startsWith is not a function
Feb 03 07:04:07 video peertube[14409]:     at Object.<anonymous> (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:43:41)
Feb 03 07:04:07 video peertube[14409]:     at Generator.next (<anonymous>)
Feb 03 07:04:07 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:7:71
Feb 03 07:04:07 video peertube[14409]:     at new Promise (<anonymous>)
Feb 03 07:04:07 video peertube[14409]:     at __awaiter (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:3:12)
Feb 03 07:04:07 video peertube[14409]:     at oembedValidator (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:34:25)
Feb 03 07:04:07 video peertube[14409]:     at async_1.eachSeries (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/async.js:8:33)
Feb 03 07:04:07 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:3096:16
Feb 03 07:04:07 video peertube[14409]:     at replenish (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:998:17)
Feb 03 07:04:07 video peertube[14409]:     at iterateeCallback (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:983:17)
Feb 03 07:04:07 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:958:16
Feb 03 07:04:07 video peertube[14409]:     at runner.then.errors (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express-validator/check/check.js:16:7)
Feb 03 07:04:07 video peertube[14409]:     at <anonymous>
Feb 03 07:04:07 video peertube[14409]:     at process._tickCallback (internal/process/next_tick.js:188:7)
Feb 03 07:04:08 video peertube[14409]: [video.hispagatos.org:443] 2018-02-06 07:04:08.124 error: TypeError: req.query.url.startsWith is not a function
Feb 03 07:04:08 video peertube[14409]:     at Object.<anonymous> (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:43:41)
Feb 03 07:04:08 video peertube[14409]:     at Generator.next (<anonymous>)
Feb 03 07:04:08 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:7:71
Feb 03 07:04:08 video peertube[14409]:     at new Promise (<anonymous>)
Feb 03 07:04:08 video peertube[14409]:     at __awaiter (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:3:12)
Feb 03 07:04:08 video peertube[14409]:     at oembedValidator (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:34:25)
Feb 03 07:04:08 video peertube[14409]:     at async_1.eachSeries (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/async.js:8:33)
Feb 03 07:04:08 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:3096:16
Feb 03 07:04:08 video peertube[14409]:     at replenish (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:998:17)
Feb 03 07:04:08 video peertube[14409]:     at iterateeCallback (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:983:17)
Feb 03 07:04:08 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:958:16
Feb 03 07:04:08 video peertube[14409]:     at runner.then.errors (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express-validator/check/check.js:16:7)
Feb 03 07:04:08 video peertube[14409]:     at <anonymous>
Feb 03 07:04:08 video peertube[14409]:     at process._tickCallback (internal/process/next_tick.js:188:7)
Feb 03 07:04:09 video peertube[14409]: [video.hispagatos.org:443] 2018-02-06 07:04:09.019 error: TypeError: req.query.url.startsWith is not a function
Feb 03 07:04:09 video peertube[14409]:     at Object.<anonymous> (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:43:41)
Feb 03 07:04:09 video peertube[14409]:     at Generator.next (<anonymous>)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:7:71
Feb 03 07:04:09 video peertube[14409]:     at new Promise (<anonymous>)
Feb 03 07:04:09 video peertube[14409]:     at __awaiter (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:3:12)
Feb 03 07:04:09 video peertube[14409]:     at oembedValidator (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:34:25)
Feb 03 07:04:09 video peertube[14409]:     at async_1.eachSeries (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/async.js:8:33)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:3096:16
Feb 03 07:04:09 video peertube[14409]:     at replenish (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:998:17)
Feb 03 07:04:09 video peertube[14409]:     at iterateeCallback (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:983:17)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:958:16
Feb 03 07:04:09 video peertube[14409]:     at runner.then.errors (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express-validator/check/check.js:16:7)
Feb 03 07:04:09 video peertube[14409]:     at <anonymous>
Feb 03 07:04:09 video peertube[14409]:     at process._tickCallback (internal/process/next_tick.js:188:7)
Feb 03 07:04:09 video peertube[14409]: [video.hispagatos.org:443] 2018-02-06 07:04:09.090 error: TypeError: req.query.url.startsWith is not a function
Feb 03 07:04:09 video peertube[14409]:     at Object.<anonymous> (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:43:41)
Feb 03 07:04:09 video peertube[14409]:     at Generator.next (<anonymous>)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:7:71
Feb 03 07:04:09 video peertube[14409]:     at new Promise (<anonymous>)
Feb 03 07:04:09 video peertube[14409]:     at __awaiter (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:3:12)
Feb 03 07:04:09 video peertube[14409]:     at oembedValidator (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:34:25)
Feb 03 07:04:09 video peertube[14409]:     at async_1.eachSeries (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/async.js:8:33)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:3096:16
Feb 03 07:04:09 video peertube[14409]:     at replenish (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:998:17)
Feb 03 07:04:09 video peertube[14409]:     at iterateeCallback (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:983:17)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:958:16
Feb 03 07:04:09 video peertube[14409]:     at runner.then.errors (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express-validator/check/check.js:16:7)
Feb 03 07:04:09 video peertube[14409]:     at <anonymous>
Feb 03 07:04:09 video peertube[14409]:     at process._tickCallback (internal/process/next_tick.js:188:7)
Feb 03 07:04:09 video peertube[14409]: [video.hispagatos.org:443] 2018-02-06 07:04:09.457 error: TypeError: req.query.url.startsWith is not a function
Feb 03 07:04:09 video peertube[14409]:     at Object.<anonymous> (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:43:41)
Feb 03 07:04:09 video peertube[14409]:     at Generator.next (<anonymous>)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:7:71
Feb 03 07:04:09 video peertube[14409]:     at new Promise (<anonymous>)
Feb 03 07:04:09 video peertube[14409]:     at __awaiter (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:3:12)
Feb 03 07:04:09 video peertube[14409]:     at oembedValidator (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:34:25)
Feb 03 07:04:09 video peertube[14409]:     at async_1.eachSeries (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/async.js:8:33)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:3096:16
Feb 03 07:04:09 video peertube[14409]:     at replenish (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:998:17)
Feb 03 07:04:09 video peertube[14409]:     at iterateeCallback (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:983:17)
Feb 03 07:04:09 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:958:16
Feb 03 07:04:09 video peertube[14409]:     at runner.then.errors (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express-validator/check/check.js:16:7)
Feb 03 07:04:09 video peertube[14409]:     at <anonymous>
Feb 03 07:04:09 video peertube[14409]:     at process._tickCallback (internal/process/next_tick.js:188:7)
Feb 03 07:04:30 video peertube[14409]: [video.hispagatos.org:443] 2018-02-06 07:04:30.084 error: TypeError: req.query.url.startsWith is not a function
Feb 03 07:04:30 video peertube[14409]:     at Object.<anonymous> (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:43:41)
Feb 03 07:04:30 video peertube[14409]:     at Generator.next (<anonymous>)
Feb 03 07:04:30 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:7:71
Feb 03 07:04:30 video peertube[14409]:     at new Promise (<anonymous>)
Feb 03 07:04:30 video peertube[14409]:     at __awaiter (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:3:12)
Feb 03 07:04:30 video peertube[14409]:     at oembedValidator (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/validators/oembed.js:34:25)
Feb 03 07:04:30 video peertube[14409]:     at async_1.eachSeries (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server/middlewares/async.js:8:33)
Feb 03 07:04:30 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:3096:16
Feb 03 07:04:30 video peertube[14409]:     at replenish (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:998:17)
Feb 03 07:04:30 video peertube[14409]:     at iterateeCallback (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:983:17)
Feb 03 07:04:30 video peertube[14409]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/async/dist/async.js:958:16
Feb 03 07:04:30 video peertube[14409]:     at runner.then.errors (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express-validator/check/check.js:16:7)
Feb 03 07:04:30 video peertube[14409]:     at <anonymous>
Feb 03 07:04:30 video peertube[14409]:     at process._tickCallback (internal/process/next_tick.js:188:7)
Feb 03 22:09:06 video peertube[14409]: npm ERR! code ELIFECYCLE
Feb 03 22:09:06 video peertube[14409]: npm ERR! errno 1
Feb 03 22:09:06 video peertube[14409]: npm ERR! peertube@0.0.19-alpha start: `node dist/server`
Feb 03 22:09:06 video peertube[14409]: npm ERR! Exit status 1
Feb 03 22:09:06 video peertube[14409]: npm ERR!
Feb 03 22:09:06 video peertube[14409]: npm ERR! Failed at the peertube@0.0.19-alpha start script.
Feb 03 22:09:06 video peertube[14409]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Feb 03 22:09:06 video peertube[14409]: npm ERR! A complete log of this run can be found in:
Feb 03 22:09:06 video peertube[14409]: npm ERR!     /home/peertube/.npm/_logs/2018-02-03T22_09_06_376Z-debug.log
Feb 03 22:09:06 video systemd[1]: peertube.service: Main process exited, code=exited, status=1/FAILURE
Feb 03 22:09:06 video systemd[1]: peertube.service: Unit entered failed state.
Feb 03 22:09:06 video systemd[1]: peertube.service: Failed with result 'exit-code'.

and...

eb 04 03:24:55 video peertube[21069]: Error: Can't set headers after they are sent.
Feb 04 03:24:55 video peertube[21069]:     at validateHeader (_http_outgoing.js:494:11)
Feb 04 03:24:55 video peertube[21069]:     at ServerResponse.setHeader (_http_outgoing.js:501:3)
Feb 04 03:24:55 video peertube[21069]:     at ServerResponse.header (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/response.js:767:10)
Feb 04 03:24:55 video peertube[21069]:     at ServerResponse.contentType (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/response.js:595:15)
Feb 04 03:24:55 video peertube[21069]:     at ServerResponse.sendStatus (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/response.js:357:8)
Feb 04 03:24:55 video peertube[21069]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/dist/server.js:127:9
Feb 04 03:24:55 video peertube[21069]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/layer.js:71:5)
Feb 04 03:24:55 video peertube[21069]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 04 03:24:55 video peertube[21069]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:284:7
Feb 04 03:24:55 video peertube[21069]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 04 03:24:55 video peertube[21069]:     at next (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 04 03:24:55 video peertube[21069]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 04 03:24:55 video peertube[21069]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 04 03:24:55 video peertube[21069]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:284:7
Feb 04 03:24:55 video peertube[21069]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 04 03:24:55 video peertube[21069]:     at next (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 04 03:24:55 video peertube[21069]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 04 03:24:55 video peertube[21069]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 04 03:24:55 video peertube[21069]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:284:7
Feb 04 03:24:55 video peertube[21069]:     at param (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:354:14)
Feb 04 03:24:55 video peertube[21069]:     at param (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:365:14)
Feb 04 03:24:55 video peertube[21069]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:410:3)
Feb 04 03:24:55 video peertube[21069]:     at next (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 04 03:24:55 video peertube[21069]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 04 03:24:55 video peertube[21069]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 04 03:24:55 video peertube[21069]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:284:7
Feb 04 03:24:55 video peertube[21069]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 04 03:24:55 video peertube[21069]:     at next (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 04 03:24:55 video peertube[21069]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 04 03:24:55 video peertube[21069]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 04 03:24:55 video peertube[21069]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:284:7
Feb 04 03:24:55 video peertube[21069]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 04 03:24:55 video peertube[21069]:     at next (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 04 03:24:55 video peertube[21069]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 04 03:24:55 video peertube[21069]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:315:13)
Feb 04 03:24:55 video peertube[21069]:     at /var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:284:7
Feb 04 03:24:55 video peertube[21069]:     at Function.process_params (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:335:12)
Feb 04 03:24:55 video peertube[21069]:     at next (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:275:10)
Feb 04 03:24:55 video peertube[21069]:     at Layer.handle_error (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/layer.js:67:12)
Feb 04 03:24:55 video peertube[21069]:     at trim_prefix (/var/www/PeerTube/versions/peertube-v0.0.19-alpha/node_modules/express/lib/router/index.js:315:13)
bnjbvr commented 6 years ago

Can you try the following:

r3k2 commented 6 years ago

@bnjbvr thanks a lot for helping, I just woke up, im on PST time, will have some lunch and check into all this since nobody can watch the video now only download :/

@bnjbvr nodejs I have the stable that comes on ubuntu Ubuntu 16.04.3 LTS Xenial.

video:~# nodejs -v
v8.9.4

I removed the folder and run that command no luck, also with --production also no luck. still only that video broken.. :/ going to add the debug

@bnjbvr did a fast research on duckduckgo and seems this error is a regular error on video players like html5 players, etc for diverse reasons.. so it may be whatever player peertube is using to stream the video, this will explain the video is just fine when people download it. Also consider all other videos work.

ok well going to update nodejs to 9x

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

see if this helps.

ok no luck... grgrgrgr

r3k2 commented 6 years ago

@bnjbvr @Chocobozzz Hey, sorry but where exactly and how to I enable debug so I can paste it here? I am a systems C/GO/QT/Ruby(not rails) person so anything webapp dev I am clueless, no JS...etc :) Thanks.

bnjbvr commented 6 years ago
diff --git a/dist/server/middlewares/validators/oembed.js b/dist/server/middlewares/validators/oembed.js
index ddf4b33..3621046 100644
--- a/dist/server/middlewares/validators/oembed.js
+++ b/dist/server/middlewares/validators/oembed.js
@@ -40,6 +40,11 @@ const oembedValidator = [
                 .json({ error: 'Requested format is not implemented on server.' })
                 .end();
         }
+        console.log('DEBUGGING: typeof String.prototype.startsWith =', typeof String.prototype.startsWith);
+        console.log('DEBUGGING: url =', req.query.url);
+        console.log('DEBUGGING: typeof url =', typeof req.query.url);
+        console.log('DEBUGGING: typeof url.startsWith =', typeof req.query.url.startsWith);
+        console.log('DEBUGGING: typeof "url".startsWith =', typeof ('' + req.query.url).startsWith);
         const startIsOk = req.query.url.startsWith(urlShouldStartWith);
         const matches = videoWatchRegex.exec(req.query.url);
         if (startIsOk === false || matches === null) {
r3k2 commented 6 years ago

@bnjbvr thanks! not using docker but should be in the same place I suppose. ok I added those changes on that file.. and restarted peertube.

ok did this changes.

    (req, res, next) => __awaiter(this, void 0, void 0, function* () {
        logger_1.logger.debug('Checking oembed parameters', { parameters: req.query });
        if (utils_1.areValidationErrors(req, res))
            return;
        if (req.query.format !== undefined && req.query.format !== 'json') {
            return res.status(501)
                .json({ error: 'Requested format is not implemented on server.' })
                .end();
        }

        console.log('DEBUGGING: typeof String.prototype.startsWith =', typeof String.prototype.startsWith);
        console.log('DEBUGGING: url =', req.query.url);
        console.log('DEBUGGING: typeof url =', typeof req.query.url);
        console.log('DEBUGGING: typeof url.startsWith =', typeof req.query.url.startsWith);
        console.log('DEBUGGING: typeof "url".startsWith =', typeof ('' + req.query.url).startsWith);
        const startIsOk = req.query.url.startsWith(urlShouldStartWith);
        const matches = videoWatchRegex.exec(req.query.url);
        if (startIsOk === false || matches === null) {

went to the site and started that video and nothing came out... did some more test with diff outputs.

sudo journalctl -n 200 -eu peertube

Feb 06 23:18:24 video systemd[1]: Stopping PeerTube daemon...
Feb 06 23:18:24 video systemd[1]: Stopped PeerTube daemon.
Feb 06 23:18:24 video systemd[1]: Started PeerTube daemon.
Feb 06 23:18:24 video peertube[24057]: > peertube@0.0.20-alpha start /var/www/PeerTube/versions/peertube-v0.0.20-alpha
Feb 06 23:18:24 video peertube[24057]: > node dist/server
Feb 06 23:18:30 video peertube[24057]: [video.hispagatos.org:443] 2018-02-02 23:18:30.709 error: Cannot use SMTP server because of lack of configuration. PeerTube will not be able to send mails!

with: sudo journalctl -xe -n130

Feb 06 23:18:24 video systemd[1]: Stopping PeerTube daemon...
-- Subject: Unit peertube.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit peertube.service has begun shutting down.
Feb 06 23:18:24 video systemd[1]: Stopped PeerTube daemon.
-- Subject: Unit peertube.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit peertube.service has finished shutting down.
Feb 06 23:18:24 video systemd[1]: Started PeerTube daemon.
-- Subject: Unit peertube.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit peertube.service has finished starting up.
-- 
-- The start-up result is done.
Feb 06 23:18:24 video polkitd(authority=local)[1374]: Unregistered Authentication Agent for unix-process:24048:273882646 (system bus name :1.276, object path /org/freedesktop/PolicyKit1/AuthenticationAgen
Feb 06 23:18:24 video peertube[24057]: > peertube@0.0.20-alpha start /var/www/PeerTube/versions/peertube-v0.0.20-alpha
Feb 06 23:18:24 video peertube[24057]: > node dist/server
Feb 06 23:18:30 video peertube[24057]: [video.hispagatos.org:443] 2018-02-02 23:18:30.709 error: Cannot use SMTP server because of lack of configuration. PeerTube will not be able to send mails!

nginx access.log grepping for this video while I try to play it.

67.21.0.132 - - [06/Feb/2018:23:24:35 +0000] "GET /videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7 HTTP/2.0" 304 107 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:35 +0000] "GET /static/webseed/4f68b57b-7aa0-4116-95e0-995ef91106f7-1080.mp4 HTTP/2.0" 206 3309884 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:35 +0000] "GET /static/webseed/4f68b57b-7aa0-4116-95e0-995ef91106f7-1080.mp4 HTTP/2.0" 206 1081659 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/config/ HTTP/2.0" 304 106 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/videos/categories HTTP/2.0" 304 107 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/videos/languages HTTP/2.0" 304 106 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/videos/licences HTTP/2.0" 304 106 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/videos/privacies HTTP/2.0" 304 107 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/oauth-clients/local HTTP/2.0" 304 105 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /client/assets/images/favicon.png HTTP/2.0" 200 1018 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/videos/?start=0&count=5&sort=-createdAt HTTP/2.0" 304 107 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/videos/4f68b57b-7aa0-4116-95e0-995ef91106f7 HTTP/2.0" 200 4441 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /api/v1/videos/121/comment-threads?start=0&count=10&sort=-createdAt HTTP/2.0" 304 105 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /static/torrents/4f68b57b-7aa0-4116-95e0-995ef91106f7-1080.torrent HTTP/2.0" 304 191 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /static/webseed/4f68b57b-7aa0-4116-95e0-995ef91106f7-1080.mp4 HTTP/2.0" 206 1076359 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:36 +0000] "GET /static/webseed/4f68b57b-7aa0-4116-95e0-995ef91106f7-1080.mp4 HTTP/2.0" 206 196922 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"
67.21.0.132 - - [06/Feb/2018:23:24:38 +0000] "GET /static/webseed/4f68b57b-7aa0-4116-95e0-995ef91106f7-1080.mp4 HTTP/2.0" 206 4194613 "https://video.hispagatos.org/videos/watch/4f68b57b-7aa0-4116-95e0-995ef91106f7" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36"

Only errors I see now at this moment is the one on my browser "The media could not be loaded, either because the server or network failed or because the format is not supported." everyone I ask get the same error eventually after trying to play it.. What other logs do you need?

Chocobozzz commented 6 years ago

Hi, thanks for the investigation!

I think it is related to this issue: https://github.com/feross/render-media/issues/28

@ReK2Fernandez could you try to reduce the video file size to < 4GB and reupload it?

bnjbvr commented 6 years ago

Potential nice find! But I still think there is/was also a different error happening here.

@ReK2Fernandez, could you replace all the occurrences of console.log by logger_1.logger.warn and restart peertube, please? (grep "DEBUGGING" which should be printed at some point?...)

r3k2 commented 6 years ago

@Chocobozzz is there a way to reduce the file with out loosing quality? I am afraid that if this is not possible, this is still a mayor bug, since lot of people that we do video podcast the videos are 1-2 hours for special events like this one that has interview from the 34c3 hacker conference... @bnjbvr Thanks! hopefully I can do that after work today after work, and post the logs. thanks again.

Chocobozzz commented 6 years ago

Solutions:

Remember that Dailymotion has a maximum duration of 60 minutes per video or Vimeo has a quota of 500MB per week so I don't think it's really a major bug.

r3k2 commented 6 years ago

@Chocobozzz you are right.. the video shows under 720p is there a way to remove the 1080 so I dont have to re-upload? [update] I re-uploaded anyways, had to many people wanting to watch the show :) but will be good into to write down in how to remove it in case other people come looking for the same thing at least until there is a permanent fix, or an option so admins can say what is the limit not a bug :) thanks

skid9000 commented 6 years ago

Hmm, i have this bug on my instance :s

Same crap as @ReK2Fernandez in the logs ...

https://peertube.nsa.ovh/videos/watch/0bdea558-8a92-4d63-96e1-f547bcc4d757

I just updated to the last version 10 minutes ago but it changed nothing :/

Chocobozzz commented 6 years ago

@ReK2Fernandez No you can't remove a specific video resolution with the web interface. But you can delete the file from the disk and the entry in the videoFile table in database.

@skid9000 I think your issue is different: your file is broken https://peertube.nsa.ovh/static/webseed/0bdea558-8a92-4d63-96e1-f547bcc4d757-240.mp4

r3k2 commented 6 years ago

@Chocobozzz yes that is what I meant, from the database/disk.. so just a sql DELETE from that table and delete the files? ok good to know. Thanks.

r3k2 commented 6 years ago

@Chocobozzz someone uploaded a new video that is under 1g and is not working, same error msg video is .mp4 and size 701M https://video.hispagatos.org/videos/watch/6a506a16-5fc4-47f8-880e-868299a1394a

Chocobozzz commented 6 years ago

It works on my side.

ghost commented 6 years ago

I have just uploaded around 2 videos with username mlsuyt1 on https://video.tedomum.net instance. I uploaded the video by using youtube-dl, flexget and peeror. All videos format are webm. Normally this format is supposed to be a valid format. The size of the both videos is respectively 13M and 15M when I try to watch the video, I have the same error : The media could not be loaded, either because the server or network failed or because the format is not supported

The browser used is Chromium Version 57.0.2987.98 Built on 8.7, running on Debian buster/sid

Maybe this issue is only for me, anyone can confirm the same issue ?

The links to the both videos are : https://video.tedomum.net/videos/watch/03734e88-83bd-47d5-8fdc-fc62d9ccdfea https://video.tedomum.net/videos/watch/9ff75a18-40c3-4bd8-ba3a-ad8f787fbfae

The conversion of the format video from webm to mp4 is necessary maybe ?

I don't know for the moment how gaining more debugging information as regarding this issue since it is not my instance.

ghost commented 6 years ago

I don't know if it can help but for information as regarding the previous comment, VLC manage to open the both videos, so files are not malformed on my computer.

ghost commented 6 years ago

the instance https://video.tedomum.net has for version : PeerTube v0.0.20-alpha - CopyLeft 2015-2017

r3k2 commented 6 years ago

@Chocobozzz you are right, it works now, maybe it was rendering?

ghost commented 6 years ago

Ok. I have juste tested the both videos in firefox and it works:). So there is issue linked to Chromium. Ok. Je viens donc de testé les 2 vidéos sur fireforx and cela fonctionne. Donc le problème viendrait de chromium qui n'est pas content.

Chocobozzz commented 6 years ago

@Tekprog-fr I fixed your issue: https://github.com/Chocobozzz/PeerTube/commit/16f16570978bc57bbe14524e6d0cc27260191bfd

@ReK2Fernandez Sometimes videos are not suitable for the web, transcoding resolve most of the issues.

Chocobozzz commented 6 years ago

Closing this issue. I added an error message if a user try to upload a big video: https://github.com/Chocobozzz/PeerTube/commit/81c263c86fe2a030f09e942e118551727f145b6d