wnielson / Plex-Remote-Transcoder

A distributed transcoding backend for Plex
MIT License
646 stars 58 forks source link

Possible Ubuntu 18 LTS issue #76

Open boxpenguin opened 6 years ago

boxpenguin commented 6 years ago

I spun up three Ubuntu 18 LTS VMs in Virtual Box. Connected the compute-node (master) to the other two compute-00 and compute-01. Linked all the NFS and the setup as suggested in the wiki. Media is a NFS share from local server with the correct NFS settings. However I keep getting these errors on the compute-00/01 at the start of each task.

Sep  3 21:41:30 compute-01 systemd[12314]: gpgconf: running /usr/bin/gpg-agent failed (exitcode=2): General error
Sep  3 21:41:30 compute-01 systemd[12314]: gpgconf: fatal error (exit status 1)

It previously had issues with the libcrypto

Sep  3 20:31:42 compute-node sh[2130]: ssh: /usr/lib/plexmediaserver/libcrypto.so.1.0.0: no version information available (required by ssh)
Sep  3 20:31:50 compute-node sh[2130]: message repeated 11 times: [ ssh: /usr/lib/plexmediaserver/libcrypto.so.1.0.0: no version information available (required by ssh)]

I resolved that by moving the libs in /usr/lib/pms away and linking the local (/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0)

So no activity on any of the nodes and I can get the media to read just fine and appear on the web app. Direct media also works and is logged on the node as normal but anything needing trans coding sits in limbo and gives up.

2018-09-03 21:32:22,902 - prt - INFO - Transcode stopped on host '192.168.1.133'
2018-09-03 21:41:28,047 - prt - INFO - Checking for orphaned PRT processes
2018-09-03 21:41:28,052 - prt - INFO - Found 0 orphaned PRT processes
2018-09-03 21:41:30,009 - prt - INFO - Host with minimum load is '192.168.1.133'
2018-09-03 21:41:30,009 - prt - INFO - Using transcode host '192.168.1.133'
2018-09-03 21:41:30,009 - prt - INFO - Launching transcode_remote with args ['ssh', '-tt', '-R', '32400:127.0.0.1:32400', u'plex@192.168.1.133', '-p', u'22', "export LANG=C.UTF-8;export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR='/var/lib/plexmediaserver/Library/Application Support';export PLEX_MEDIA_SERVER_TMPDIR=/tmp;export LIBVA_DRIVERS_PATH=/usr/lib/plexmediaserver/dri;export JOURNAL_STREAM=9:90829;export XDG_DATA_HOME=/usr/lib/plexmediaserver/Resources;export X_PLEX_TOKEN=yCZ3qexJYzWpjf3KHRJk;export XDG_CACHE_HOME='/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache';export EAE_ROOT=/tmp/pms-ca823284-2b11-49ab-82e7-c4a60010ada9/EasyAudioEncoder;export PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver;export PWD=/;export SHELL=/bin/bash;export LOGNAME=plex;export USER=plex;export FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Codecs/e944d3a-1322-linux-ubuntu-x86_64/';export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin;export HOME=/var/lib/plexmediaserver;export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6;export LD_LIBRARY_PATH=/usr/lib/plexmediaserver;export INVOCATION_ID=371f042f40e64502b10a42a5ad550c76;export PRT_ID=1d0a450aafc211e8b24f080027aa951a;cd '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-v8wfn0pdnhdk91n29yufllmm-3cee464f-dfad-4a9c-8009-be4b6e10adf8';prt_local -codec:0 h264 -i '/mnt/media/sort/[redacted]' -filter_complex '[0:0]scale=w=1280:h=720[0];[0]format=pix_fmts=yuv420p|nv12[1]' -map '[1]' -metadata:s:0 language=jpn -codec:0 libx264 -crf:0 16 -maxrate:0 7950k -bufsize:0 15900k -r:0 23.975999999999999 -preset:0 veryfast -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 'expr:gte(t,0+n_forced*3)' -map 0:1 -metadata:s:1 language=jpn -codec:1 copy -copypriorss:1 0 -f dash -min_seg_duration 3000000 -skip_to_segment 1 -time_delta 0.0625 -manifest_name http://127.0.0.1:32400/video/:/transcode/session/v8wfn0pdnhdk91n29yufllmm/3cee464f-dfad-4a9c-8009-be4b6e10adf8/manifest -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 dash -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/v8wfn0pdnhdk91n29yufllmm/3cee464f-dfad-4a9c-8009-be4b6e10adf8/progress"]

2018-09-03 21:41:31,374 - prt - INFO - Transcode stopped on host '192.168.1.133'

I might try throwing 14 LTS and 16 LTS at this but just wanted to share my efforts.

liviynz commented 6 years ago

Thanks for that...yeah, anything above 16.04 isn’t currently supported. It’s something that I’ve been putting off for a while as it wasn’t a high priority but considering we’re now a major LTS behind (as 17.04 wasn’t an LTS) it’s getting to the point that I need to allocate some time to it once I get some critical things dealt to so I can push my systems up off 16.04. You won’t have issues with 16.04.

liviynz commented 6 years ago

I upgraded one of my slaves to 18.04...hit the exact same issue you had and I believe I might have found the issue. It was with the standard 18.04 configuration it pushes on the users. I’m going to let the slave run for a few days to be sure I’ve correctly identified & resolved the root cause. But so far so good! I’ll just need to look at upgrading the master at some point then I’ll update the wiki with the details & supported version too.

liviynz commented 6 years ago

Master is now on 18.04 so it’s looking good (apart from Ubuntu issues with the upgrade which I’ve fixed all but one which isn’t critical or PMS/PRT impacting and I’ll sort that soon) but again I’ll give it a few days to bed in before officially saying it’s supported.