Peertube: Transcoding jobs seems to stay in inactive state, for some reason

Created on 13 Jun 2018  路  10Comments  路  Source: Chocobozzz/PeerTube

  • PeerTube version or URL: Beta.8
  • NodeJS version: v8.11.2

  • What is the expected behaviour?
    Do all the video-file transcoding jobs.

  • What do you see instead?
    When I manually add several video transcoding jobs with npm run create-transcoding-job, it seems that the last one is proceeded and the other stay in inactive state forever.
Type

All 10 comments

Only the first one is proceeded?
If you upload another video, transcoding jobs for it are proceeded?

I add 3 videos with npm run create-transcoding-job : the last one added is proceeded and the others are in inactive state.
Newly uploaded videos are well transcoded.

If you restart the server, are these jobs being run?

Doing sudo systemctl restart peertube seems to do nothing with these inactive jobs.

I had the same issue with create-import-video-file-job. The only way to fix this was to run the kue dashboard and run each job manually.

Do you use Docker?

Florent

Ok,
I am not using Docker.

We should not have to run kue dashboard to run these jobs, this is definitely a bug :thinking: Will try to reproduce

I think @rigelk tried to reproduce, but without success. Also it seems that it's a bug of kue.

We should not have to run kue dashboard to run these jobs

Sure, that's only a workaround.

we may be impacted by that also on peertube.mastodon.host ( baremetal deployment, 1 transcode thread with only 720p and 480p enabled ).

A lot of videos in the queue are shown as inactive.

It may have been triggered by a crash we had 10 days ago ( node segfault ). Upon restarting the service after the crash, if refused to start, mentioning a missing -1080p video file ( there was a file at the location mentionned, so I just erased it and it allowed to restart ). Maybe it is what triggered the bug ?

Restarting the service does not trigger those inactive jobs to start.

[edit after more tests]
It seems like setting bumping the transcode threads to 2 and restarting peertube triggered 1 transcode job... Gonna let that run for a while and see if it clears the queue.
I don't have 2 transcode threads running atm though, just 1 apparently.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

XenonFiber picture XenonFiber  路  3Comments

XenonFiber picture XenonFiber  路  3Comments

Nutomic picture Nutomic  路  3Comments

milleniumbug picture milleniumbug  路  3Comments

ChameleonScales picture ChameleonScales  路  3Comments