Download failing to iOS/iPadOS - 8.16->8.17 regression

Server Version#: 1.31.3.6868
Player Version#: 8.17

Attempting to download shows and all failing. Log should be for downloading an episode of FBI at 5:03 PM

It appears to be certficate related. Bolding is mine.

Message in the app is “Data Transfer Failed”

Client log:
2023/04/09 17:03:34.998 (175 MB) (714738) :wrench: PMKLogging.m:29 | Updating disk space information
2023/04/09 17:03:34.999 (175 MB) (714726) :wrench: PMKNetworkTask.m:201 | Started: 1394: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): GET http://127.0.0.1:32500/media/subscriptions/scheduled
2023/04/09 17:03:34.999 (175 MB) (713927) :wrench: PMKNetworkTask.m:201 | Started: 1395: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): GET http://127.0.0.1:32500/media/subscriptions?includeGrabs=1&includeStorage=1&includeTarget=1
2023/04/09 17:03:35.008 (175 MB) (713653) :wrench: PMKNetworkTask.m:225 | Completed [200]: 1394: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): GET http://127.0.0.1:32500/media/subscriptions/scheduled
2023/04/09 17:03:35.011 (175 MB) (714726) :wrench: PMKNetworkTask.m:225 | Completed [200]: 1395: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): GET http://127.0.0.1:32500/media/subscriptions?includeGrabs=1&includeStorage=1&includeTarget=1
2023/04/09 17:03:35.033 (175 MB) (714726) :wrench: PMKNetworkTask.m:201 | Started: 1396: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): GET http://127.0.0.1:32500/media/providers?includeStorage=1
2023/04/09 17:03:35.039 (175 MB) (714732) :wrench: PMKNetworkTask.m:225 | Completed [200]: 1396: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): GET http://127.0.0.1:32500/media/providers?includeStorage=1
2023/04/09 17:03:35.100 (175 MB) (714347) :x: PMKLogging.m:14 | Download failed: Data transfer failed (The certificate for this server is invalid. You might be connecting to a server that is pretending to be “192.168.0.200” which could put your confidential information at risk.).
2023/04/09 17:03:35.101 (175 MB) (714347) :wrench: PMKNetworkTask.m:201 | Started: 1397: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): PUT http://127.0.0.1:32500/media/grabbers/operations/cd56ad5057d334d2f2fc7a66bac33021472ba1a8?error=Data%20transfer%20failed.
2023/04/09 17:03:35.114 (175 MB) (714732) :wrench: PMKNetworkTask.m:225 | Completed [200]: 1397: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): PUT http://127.0.0.1:32500/media/grabbers/operations/cd56ad5057d334d2f2fc7a66bac33021472ba1a8?error=Data%20transfer%20failed.

Server Log:
Apr 09, 2023 17:03:34.946 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] Found session GUID of f3a0b7b5e98be9785c8399df2b7285ba3bc153b9 in session start.
Apr 09, 2023 17:03:34.946 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: add-direct-play-profile(type=videoProfile&protocol=http&container=mp4,mov,mkv&videoCodec=h264,mpeg4,hevc&audioCodec=aac,ac3,eac3&subtitleCodec=mov_text,tx3g,ttxt,text,webvtt)+add-transcode-target(type=videoProfile&context=static&protocol=http&container=mkv&videoCodec=h264,mpeg4,hevc&audioCodec=aac,ac3,eac3&subtitleCodec=mov_text,tx3g,ttxt,text,webvtt&replace=true)+add-limitation(scope=videoAudioCodec&scopeName=&type=upperBound&name=audio.channels&value=6&replace=true)+add-limitation(scope=videoCodec&scopeName=&type=upperBound&name=video.width&value=4096&replace=true)+add-limitation(scope=videoCodec&scopeName=&type=upperBound&name=video.height&value=2160&replace=true)+add-limitation(scope=videoCodec&scopeName=&type=upperBound&name=video.width&value=4096&onlyTranscodes=true&replace=false)+add-limitation(scope=videoCodec&scopeName=*&type=upperBound&name=video.height&value=2160&onlyTranscodes=true&replace=false)
Apr 09, 2023 17:03:34.947 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] TranscodeUniversalRequest: using augmented profile iOS
Apr 09, 2023 17:03:34.947 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/67072?includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=EB19C2DC-B552-4DCA-B80E-19828DCB535B
Apr 09, 2023 17:03:34.969 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode/Req#ebf5] We’re going to try to auto-select an audio stream for account 1.
Apr 09, 2023 17:03:34.969 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode/Req#ebf5] Selecting best audio stream for part ID 768983 (language: )
Apr 09, 2023 17:03:34.969 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode/Req#ebf5] Audio Stream: 1551096, Subtitle Stream: 0
Apr 09, 2023 17:03:34.972 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] MDE: Selected protocol http; container: mp4
Apr 09, 2023 17:03:34.972 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] MDE: analyzing media item 766417
Apr 09, 2023 17:03:34.972 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] MDE: E17 - Imminent Threat (II): DirectPlay
Apr 09, 2023 17:03:34.973 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] MDE: FBI - S5 E17 - Imminent Threat (II): selected media 0 / 766417
Apr 09, 2023 17:03:34.973 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] Streaming Resource: Added session 0x7f990424bc58:EB19C2DC-B552-4DCA-B80E-19828DCB535B
Apr 09, 2023 17:03:34.974 [0x7f98ffaf6b38] DEBUG - [Req#ebea/Transcode] Streaming Resource: Reached Decision id=67072 codes=(General=1000,Direct play OK. Direct Play=1000,Direct play OK.) media=(id=766417 part=(id=768983 decision=direct play protocol=http streams=(Video=(id=1551095 decision= width=1920 height=1080) Audio=(id=1551096 decision= channels=6 rate=48000))))
Apr 09, 2023 17:03:34.976 [0x7f99048c5b38] DEBUG - Completed: [192.168.0.143:57909] 200 GET /video/:/transcode/universal/decision?context=static&mediaBufferSize=20000&offlineTranscode=1&path=%2Flibrary%2Fmetadata%2F67072&protocol=http&session=f3a0b7b5e98be9785c8399df2b7285ba3bc153b9 (19 live) #ebea TLS GZIP 30ms 1937 bytes (pipelined: 15)
*Apr 09, 2023 17:03:35.097 [0x7f9904ac8b38] DEBUG - CERT: incomplete TLS handshake from [::ffff:192.168.0.143]:57926: stream truncated

1 Like

Your PMS ceritificate at plex.tv is valid:

Screenshot from 2023-04-09 19-56-52

PMS loaded its cert successfully.

Apr 09, 2023 11:33:07.312 [0x7f9904f2ab38] INFO - Compiler is - Clang 11.0.1 (https://plex.tv 9b997da8e5b47bdb4a9425b3a3b290be393b4b1f)
Apr 09, 2023 11:33:07.312 [0x7f9904f2ab38] INFO - /var/packages/Plex Media Server/target/Plex Media Server
Apr 09, 2023 11:33:07.186 [0x7f99051bbaa8] DEBUG - BPQ: [Idle] -> [Starting]
Apr 09, 2023 11:33:07.263 [0x7f99051bbaa8] DEBUG - FeatureManager: Using cached data for features list
Apr 09, 2023 11:33:07.495 [0x7f99051bbaa8] DEBUG - [CERT] Subject name is /CN=*.db4d12496195492f9671c7f5970924a7.plex.direct
Apr 09, 2023 11:33:07.496 [0x7f99051bbaa8] DEBUG - [CERT] Installed certificate with fingerprint 9c:50:ce:1a:f7:e5:5b:45:ce:f8:bc:fc:c1:a8:66:1e:0d:38:47:85.
Apr 09, 2023 11:33:07.496 [0x7f99051bbaa8] DEBUG - [CERT/OCSP] Stapling requests will be made to 'http://r3.o.lencr.org/'.
Apr 09, 2023 11:33:07.522 [0x7f99051bbaa8] INFO - [CERT/OCSP] Successfully retrieved response from cache.
Apr 09, 2023 11:33:07.522 [0x7f99051bbaa8] DEBUG - HttpServer: Listening on IPv6 as well as IPv4.
Apr 09, 2023 11:33:07.522 [0x7f99051bbaa8] DEBUG - HttpServer: Listening on port 32400.
Apr 09, 2023 11:33:07.523 [0x7f99051bbaa8] DEBUG - HttpServer: Listening on port 32401.
Apr 09, 2023 11:33:07.523 [0x7f99051bbaa8] DEBUG - Running server...

PMS knows the certificate won’t expire soon.

Apr 09, 2023 11:33:41.437 [0x7f9901932b38] DEBUG - CERT: Certificate will not expire soon; we’ll check again in a week.

I see where your iPhone complains

2023/04/09 17:01:08.315 (173 MB) (712347) :wrench: PMKNetworkTask.m:225 | Completed [200]: 1203: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): GET http://127.0.0.1:32500/media/providers?includeStorage=1
2023/04/09 17:01:08.374 (173 MB) (713652) :x: PMKLogging.m:14 | Download failed: Data transfer failed (The certificate for this server is invalid. You might be connecting to a server that is pretending to be “192.168.0.200” which could put your confidential information at risk.).
2023/04/09 17:01:08.374 (173 MB) (713652) :wrench: PMKNetworkTask.m:201 | Started: 1204: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): PUT http://127.0.0.1:32500/media/grabbers/operations/cd56ad5057d334d2f2fc7a66bac33021472ba1a8?error=Data%20transfer%20failed.
2023/04/09 17:01:08.382 (173 MB) (712347) :wrench: PMKNetworkTask.m:225 | Completed [200]: 1204: iPhone (6FC4DA21-C7B8-4B32-9287-A24A864FD30D): PUT http://127.0.0.1:32500/media/grabbers/operations/cd56ad5057d334d2f2fc7a66bac33021472ba1a8?error=Data%20transfer%20failed.

Stupid questions time:

  1. When’s the last time the iPhone app was restarted ?
  2. Is there a cert or proxy running on the Syno?

I force closed the app on both the iPad and iPhone. I also just restarted my iPhone and am still seeing the same download error on the screen.

As a test, I installed another server on my desktop PC (Win10) and get the error right away if I try to download media. At dinner, I even tried to sync using my Wife’s phone with the Synology and it failed right away also.

No cert or proxy running on the Synology. Would any more detailed logging on the client/server help?

Feel free to keep the stupid questions coming. This was working a couple of weeks ago when I added some stuff to sync. I have no idea what version of the iOS app I was running at the time.

I forgot to mention, but all the devices can play content from the server just fine.

Just in case they got out of sync somehow,

  1. I force reset your certificate
  2. Restart the server
  3. Restart all players/apps

Same result on both iPad and iPhone. I killed both apps and stopped restarted both the Syno and Windows plex servers. (logs below are iOS and Syno)

I am seeing the same errors in the server log.
CERT: incomplete TLS handshake from [::ffff:192.168.0.143]:58690: stream truncated

And in the client log
2023/04/09 21:11:29.534 (239 MB) (41405) :x: PMKLogging.m:14 | Download failed: Data transfer failed (The certificate for this server is invalid. You might be connecting to a server that is pretending to be “192.168.0.200” which could put your confidential information at risk.).

Just in case, I uninstalled the app from my iPhone since it doesn’t have much content, reinstalled, logged in, and attempted a download. Also failed. same error.

It appears to be a regression from 8.16.

I decided to see what version my wife’s iPad had on it and it has 8.16 and is able to download videos without issue.

iOS app v8.17 fails and iOS app v8.16 works.

Unfortunately, no way to rollback, so hopefully there is an 8.18 coming soon.

EDIT - I looked and my plex app on my iPad updated today. :frowning: If only I could have sync’ed for the week.

Luckily, I had a device still with the old version, or this could have gone on for MUCH longer.

The person in this post may be having the same challenge.
Download fail - Plex Players / Mobile Devices - Plex Forum

Thanks again for checking on my certs and following along on my troubleshooting on a Sunday night (my time).

After figuring out it worked in 8.16 and breaks in 8.17, I found this reddit post that at least got me unblocked to sync today.

Plex for iOS v8.17 Released : PleX (reddit.com)

If I connect to my guest network (that can’t connect directly to my plex), I can sync fine. This is only a short term fix because it is sending all my sync traffic out to a plex relay and back in, but at least I can get sync’ed.

This also means if you are out of your house it may also work. I plan to test this later.

Same EXACT issue here. I only sync on local network or Tailscale based VPN. Problem exists in both scenarios..

Version 1.32.0.6918

IOS Client 8.18

PMKLogging.m:14 | Download failed: Data transfer failed (The certificate for this server is invalid. You might be connecting to a server that is pretending to be…

I have the same problem for 15 days impossible to download a series or a film
A year ago we also had download bugs, it would be nice if the Plex team reacted.f

Same issue here. 8.17 on iPad throws CERT errors. Server running on Syno Docker.

To all following:

Chatted with the team.

There is a fix coming for this.

I looked at the task they have and the fix is pending peer review then applying the change to the main code and sending for QA and release.

1 Like

Eagerly looking forward to that fix, have the same issue!!! and as I travel a lot, downloads are critical.

It appears that today’s mobile app update 8.18 fixes the download regression issue. Error message is gone and I’ve got files coming down now.

Did you have to do anything to make it work again beyond updating iOS app? I’m on 8.18, I’ve updated, then reinstalled, then restarted server, then deleted all downloads, restarted server and tried to set up a new download and still data transfer failed.

The latest update (8.18) did not work on my Iphone or on my Ipad (M1)
However, if you go to IOS settings → Plex and disable LAN access
The restart of the app is required to apply modification !
I can download and the server shows the local network in the dashboard.

I really like the new download progress bars, but it still failed for me unless I was on the guest network.

Issue still exists with 8.18

1 Like

Switching off Local Network has worked for me - thanks @Erufu for the tip.

Shame hopefully that bug gets squashed soon, but I’m very glad to have it working again.