I just finished migrating plex (latest version, 1.13.4.5271) to my home kubernetes cluster, and all works great with direct play, but when anything tries to transcode, it just spins and spins.
I found this linkhttps://forums.plex.tv/t/transcoder-fails-when-transcode-is-on-a-network-share/186681/38 that seems similar but that was fixed a while back.
Basically, I have the following set up:
NAS:\ssd store ->plex data mount
local kubernetes node:\tmp\transcode -> /transcode
Plex data is stored on an NFS mount on an SSD datastore, while /transcode comes from the local kubernetes node.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: pms
spec:
replicas: 1
template:
metadata:
labels:
app: pms
spec:
volumes:
- name: nas-rabbit-pms
persistentVolumeClaim:
claimName: nas-rabbit-pms
- name: localhost
hostPath:
path: /tmp
- name: media
persistentVolumeClaim:
claimName: nas-media
containers:
- name: pms
image: plexinc/pms-docker:1.13.4.5271-200287a06
volumeMounts:
- name: nas-rabbit-pms
mountPath: /config
- name: localhost
subPath: transcode
mountPath: /transcode
- name: media
mountPath: /nfs/media
readOnly: true
env:
- name: CHANGE_CONFIG_DIR_OWNERSHIP
value: 'false'
- name: PLEX_UID
value: '1001'
- name: PLEX_GID
value: '1001'
- name: TZ
value: 'America/Los_Angeles'
ports:
- name: pms
containerPort: 32400
- name: webtools
containerPort: 33400
readinessProbe:
tcpSocket:
port: pms
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: pms
initialDelaySeconds: 15
periodSeconds: 20
lifecycle:
postStart:
exec:
command: ["/bin/rm", "-f", "/usr/lib/plexmediaserver/Plex Relay"]
I’ve tried making the /transcode folder 777 thinking it was a permissions issue, but that didn’t fix it. When a transcode starts, nothing logs except the following:
<SessionReport version="2" startTime="0" startTimestamp="Jul 25, 2018 11:24:31.211" key="/library/metadata/51436" session="5ee99426-7ea7-41f6-8842-006aa352c6b5" transcode="446f1284-34c6-4635-86f7-c4c4c973ca1e">
<User id="1" thumb="https://plex.tv/users/<removed>/avatar?c=<removed>" title="<removed>" />
<Player address="10.32.0.1" device="x64" machineIdentifier="5ee99426-7ea7-41f6-8842-006aa352c6b5" model="" platform="Windows" platformVersion="10.0.17134.165" product="Plex for Windows" remotePublicAddress="69.222.xxx.yyy" state="" title="Gaming Desktop" vendor="" version="3.2.20.0" local="1" userID="1" />
<Variants>
<Variant id="c59cb63d-fc50-416a-88cd-bdc1f125cede" targetBitrate="1071" context="streaming" sourceVideoCodec="hevc" sourceAudioCodec="aac" videoDecision="transcode" audioDecision="copy" protocol="hls" container="mpegts" videoCodec="h264" audioCodec="aac" audioChannels="2" transcodeHwRequested="0" transcodeHwFullPipeline="0">
<Media audioProfile="lc" id="186824" videoProfile="main" audioChannels="2" audioCodec="aac" bitrate="890" container="mpegts" duration="2555021" height="360" protocol="hls" videoCodec="h264" videoFrameRate="PAL" videoResolution="SD" width="720" selected="1">
<Part audioProfile="lc" deepAnalysisVersion="2" id="202898" indexes="sd" requiredBandwidths="2422,2008,1742,1742,1742,1742,1742,1742" videoProfile="main" bitrate="890" container="mpegts" duration="2555021" height="360" protocol="hls" width="720" decision="transcode" selected="1">
<Stream bitrate="890" codec="h264" default="1" displayTitle="Unknown (HEVC Main)" frameRate="25" height="360" id="452853" requiredBandwidths="2292,1878,1613,1613,1613,1613,1613,1613" streamType="1" width="720" decision="transcode" location="segments-av" />
<Stream bitrateMode="cbr" channels="2" codec="aac" displayTitle="English (AAC Stereo)" id="452854" language="English" languageCode="eng" requiredBandwidths="130,130,130,130,130,130,130,130" selected="1" streamType="2" decision="copy" location="segments-av" />
</Part>
</Media>
</Variant>
</Variants>
<SegmentList />
<PlaybackReports />
<StateReports />
<StateReports />
</SessionReport>
I can see the transcode temp folder being created:
root@pms-646bd6cdb4-xtqm4:/transcode/Transcode/Sessions# ls -la
total 12
drwxrwxrwx 3 plex plex 4096 Jul 25 11:36 .
drwxr-xr-x 3 plex plex 4096 Jul 25 10:39 ..
drwxr-xr-x 2 plex plex 4096 Jul 25 11:36 plex-transcode-m43xxmmvgmlmyrkzzisdlcs6-25794ae4-b919-4189-9a61-3227a7c66d4b
and i can even see the thumbnail preview updating in “current activity” but nothing ever plays on the player. any thoughts?