UnicornTranscoder / UnicornLoadBalancer

MIT License
128 stars 16 forks source link

Cannot Optimize Media files stuck on Waiting #26

Open donicrosby opened 4 years ago

donicrosby commented 4 years ago

I have a Unicorn Loadbalancer, Plex, and Transcoders all running in a Kubernetes cluster, so this may be an issue with that rather than an issue with the Loadblancer/Transcoders themselves.

Basically when I try to run an optimize on any of the media on my server they never hit the conversion queue and just sit in the optimized versions section with the words "Waiting".

The plex logs don't show anything erroring or timing out and the loadblancer doesn't seem to have kicked off anything either. Is there some configuration setting that needs to be done in order for the transcoders to be able to perform optimization?

Maxou44 commented 4 years ago

Can we have unicorn transcoder/load balancer logs and Plex version ?

donicrosby commented 4 years ago

Plex Version: 1.18.5.2309-f5213a238

Loadbalancer:

> unicorn-ffmpeg@2.2.1 start /opt/UnicornFFMPEG
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:compiler initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/compiler.js
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:parser initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/parser.js
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:compiler initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/compiler.js
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:parser initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/parser.js
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:compiler initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/compiler.js
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:parser initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/parser.js
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:compiler initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/compiler.js
Fri, 07 Feb 2020 13:12:30 GMT snapdragon:parser initializing /opt/UnicornFFMPEG/node_modules/snapdragon/lib/parser.js
> unicorn-load-balancer@2.0.0 start /opt/UnicornLoadBalancer
2020-02-07T13:12:35.996Z UnicornLoadBalancer Redis not found, fallback on LocalSessionStore
2020-02-07T13:12:35.998Z UnicornLoadBalancer WARNING: On restart all sessions will be lost
2020-02-07T13:12:37.418Z UnicornLoadBalancer Using sqlite as database
2020-02-07T13:12:37.509Z UnicornLoadBalancer Version: 2.0.0
Fri, 07 Feb 2020 13:12:37 GMT express:application set "views" to '/opt/UnicornLoadBalancer/views'
2020-02-07T13:12:37.522Z UnicornLoadBalancer Initializing API routes...
2020-02-07T13:12:37.568Z UnicornLoadBalancer Launched on http://127.0.0.1:443/

Transcoder:

> UnicornTranscoder@2.2.2 start /opt/UnicornTranscoder
2020-02-07T13:04:47.323Z UnicornTranscoder Starting EAE
2020-02-07T13:04:47.365Z UnicornTranscoder2:server Listening on port 32400
Maxou44 commented 4 years ago

Maybe plex made optimizer changes in 1.18.x

Did you had this issue on 1.17.x builds ?

donicrosby commented 4 years ago

I haven't tried to downgrade my server to one of those versions. I spun up the server this week to make a helm chart for the UnicornTranscoder project so I haven't used any versions other than 1.18.x. I don't know if I can downgrade to 1.17.x without nuking the the whole server.

Maxou44 commented 4 years ago

Can you update LoadBalancer and transcoder and give us a feedback?

BuffaloBun commented 4 years ago

I've had similar issues to this, the cause for my issues was NGINX, client_max_body_size was set to 1k, changing this to a higher value resolved the issue for me.