Download fail

Thank you for the logs from the server and the app

The downloads for 2001 A Space Odyssey.m4v failed for 2 different reasons

The attempts to download at Feb 17, 2023 08:06 and 08:16 failed because the download needed to be transcoded (because of the subtitles side-car srt file) and there was insufficient disk space on the server for that - At these times you had a ram disk for the transcoder temp files /mnt/ramdisk/Transcode

The 3rd attempt started at 08:41 was ok on the server side - because you then switched the transcode temp files to be default and that used /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode - but the Plex for iOS on the iPad ran out of storage

2023/02/17 08:52:11.066 (141 MB) (909116) ❌ PMKLogging.m:14 | Download failed: Data transfer failed (The operation couldn’t be completed. No space left on device).

This happened when the download reached about half way through
Last logged % complete on the server side was 49.5%

Feb 17, 2023 08:52:11.074 [0x7fb8e940d0] DEBUG - Activity: updated activity 134177f7-4d8c-4829-89a7-d9d5cbf626a8 - completed 49.5% - Media download by Tony__T

The app logs show 3,824,148,473 bytes downloaded

At the time there was about 2.5 Gb of downloads for Fawlty Towers on the iPad

Did you have a Storage Limit set in the Plex for iOS Settings for Downloads ?

The 3rd attempt started at 08:41 was ok on the server side - because you then switched the transcode temp files to be default and that used /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode - but the Plex for iOS on the iPad ran out of storage

The 3rd attempt downloaded to the iPad ok. That was after I set the quality from Original to 1080p HD.

I realized that the RAM disk was too small (Fawlry Towers being small files d’l’'d ok in ram), so I switched to the Plex default cache for transcoding).

Did you have a Storage Limit set in the Plex for iOS Settings for Downloads ?

I have it as “No Limit”
…but I have 10G available on the iPad, so with 2001 a Space Odyssey being about 8G Original, space on the iPad was tight for that test d/l.

With that said, The New Downloads is now working for me.

How do you set the cache for transcoding? I believe mine is at default, but my larger vids 25-35GB always fail. Maybe this is something I can tweak.

Also, my server is windows, but my devices are Android, not iOS.

Do you mean the location?
PMS->Settings->Transcoder->Transcoder temporary directory
If left blank its the default

Tried another test, this time with Dr. Strangelove.
Media file is 5G, iPad Available Space is 9G.
Did 2 tests, Original Quality and 1080p HD.
Both Transcoded, but freezes on Downloading.

Logs attached.



Plex Media Server Logs_2023-02-17_16-19-30.zip (316.7 KB)
PlexDebugInfo-Tony__T-8.15-5092 (2023-02-17 16.18.34 -0500).zip (852.4 KB)

I have PLEX on my Galaxy Galaxy S22 Ulra. If I’m on Wifi I can save photos to my phone. If I’m on 5G cellular, I can’t even though I have it selected and made sure to have enough internal storage space on my DOWNLOAD settings.

Downloading vids seems fine on cellular, why not saving photos? I can’t share them to an email either as a work around.

Tried Dr Strangelove again this morning and it downloaded fine. Not sure what happened yesterday, but the New Downloads is working much better now (in the past I was never able to download any movies or TV shows)

image
It’s a virtual machine and has 55gb free. That’s more space than the movies I’m trying to DL.

I can make it bigger pretty easily, but I don’t see how that helps unless the transcoder is taking up more space than the original movie.

Actually, increasing the size of the disk is easy, expanding the volume in windows is impossible due to the recovery partition being placed next to the main partition. I could get an app that would do it, but more trouble than it’s worth. But I gave the transcoder it’s own drive with 128GB to play with. No change. Still barfs.
Plex Media Scanner Deep Analysis (2).zip (595.3 KB)

The actual precise times for the freeze / start are very important

I can see a download starting at Feb 17, 2023 16:09:47 for Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb

I can see it in progress in the logs but then at 16:17:25 it was cancelled - there is no indication as to why - did you abort what you believed was a frozen / hung download ?

This shows the progress up to 2 seconds before it was cancelled

Time	        Mbytes
16:08:41.847	0
16:08:44.876	0
16:08:47.892	1
16:08:51.034	1
16:09:48.964	0
16:09:51.974	1
16:09:55.010	2
16:09:58.016	3
16:10:01.034	5
16:10:04.070	5
16:10:07.101	7
16:10:10.122	8
16:10:13.130	9
16:10:16.170	10
16:10:19.186	11
16:10:22.189	12
16:10:25.204	13
16:10:28.221	14
16:10:31.236	15
16:10:34.267	16
16:10:37.302	18
16:10:40.313	19
16:10:43.328	20
16:10:46.328	21
16:10:49.368	22
16:10:52.374	23
16:10:55.379	24
16:10:58.414	25
16:11:01.422	26
16:11:04.428	27
16:11:07.440	28
16:11:10.459	29
16:11:13.486	30
16:11:16.516	32
16:11:19.519	33
16:11:22.525	34
16:11:25.525	35
16:11:28.545	36
16:11:31.549	37
16:11:34.551	38
16:11:37.550	39
16:11:40.568	40
16:11:43.597	41
16:11:46.625	42
16:11:49.648	43
16:11:52.660	44
16:11:55.661	45
16:11:58.673	46
16:12:01.694	48
16:12:04.713	49
16:12:07.745	50
16:12:10.786	51
16:12:13.799	52
16:12:16.811	53
16:12:19.827	54
16:12:22.868	55
16:12:25.869	56
16:12:28.904	57
16:12:31.910	58
16:12:34.926	59
16:12:37.933	61
16:12:40.949	62
16:12:43.996	63
16:12:47.026	64
16:12:50.039	65
16:12:53.056	66
16:12:56.069	67
16:12:59.080	68
16:13:02.117	69
16:13:05.149	70
16:13:08.168	71
16:13:11.185	72
16:13:14.186	73
16:13:17.230	74
16:13:20.247	75
16:13:23.266	76
16:13:26.270	77
16:13:29.284	78
16:13:32.311	79
16:13:35.315	80
16:13:38.334	81
16:13:41.371	82
16:13:44.376	83
16:13:47.405	84
16:13:50.406	85
16:13:53.410	86
16:13:56.438	87
16:13:59.462	88
16:14:02.486	89
16:14:05.490	90
16:14:08.513	91
16:14:11.553	92
16:14:14.584	94
16:14:17.624	95
16:14:20.635	96
16:14:23.640	97
16:14:26.636	98
16:14:29.656	99
16:14:32.679	100
16:14:35.686	101
16:14:38.698	102
16:14:41.707	103
16:14:44.725	104
16:14:47.739	105
16:14:50.758	106
16:14:53.784	107
16:14:56.829	108
16:14:59.850	109
16:15:02.902	110
16:15:05.910	111
16:15:08.947	112
16:15:11.982	113
16:15:14.991	114
16:15:18.033	115
16:15:21.086	116
16:15:24.087	117
16:15:27.099	118
16:15:30.107	119
16:15:33.117	120
16:15:36.129	121
16:15:39.171	122
16:15:42.191	123
16:15:45.205	124
16:15:48.204	125
16:15:51.206	126
16:15:54.217	127
16:15:57.224	129
16:16:00.237	130
16:16:03.262	131
16:16:06.279	132
16:16:09.300	133
16:16:12.303	134
16:16:15.337	135
16:16:18.345	136
16:16:21.528	137
16:16:24.548	138
16:16:27.549	139
16:16:30.585	140
16:16:33.623	141
16:16:36.630	142
16:16:39.670	143
16:16:42.679	144
16:16:45.714	145
16:16:48.723	146
16:16:51.732	147
16:16:54.764	149
16:16:57.778	150
16:17:00.788	151
16:17:03.815	152
16:17:07.008	153
16:17:10.036	154
16:17:13.067	155
16:17:16.083	156
16:17:19.103	157
16:17:22.121	158

I have not looked yet at the server logs to see if there was a reason for the download / transcode being slow

Yes, It looked like the d/l froze, so I aborted.

I have not looked yet at the server logs to see if there was a reason for the download / transcode being slow

I was watching the transcode by viewing the file in

plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions

and also in the WebUI, and the transcode (looked like it) completed, so I suspect the problem was the transfer to the iPad

But…(as noted in the subsequent post), it downloaded fine the next morning.

In any event, the “New Downloads” are definitely working better now.

Thanks for the server logs. For downloads issues, it is crucial that diagnostics are provided from both sides - the plex app doing the download and the plex media server

I can see transcodes for downloads starting for Toy Story.mkv and Toy Story 2.mkv at 21:00 on 18th Feb but the transcode is beings topped by the Plex client app a few seconds later. Would need the corresponding logs for this period from the Plex app

Observation: Seeing a lot of relaunches of Plex Media Server - a bit strange relaunching every few minutes. - was it to do with the network issue I mention below?

PMS Launch at 17:43 - ran to 20:38
PMS Launch at 20:39 - ran to 20:40
PMS Launch at 20:42 - ran to 20:47
PMS Launch at 20:52 - ran to 21:00
PMS Launch at 21:00 - ran to 21:02
PMS Launch at 21:02 - ran to 21:05

I see you are running PMS as service or scheduled task - there is PMS As A Service wrapper provided by a user here which you could consider PMS as a service - General Discussions / Tips, Tricks & How-Tos - Plex Forum

Another observation: Some transient network issues

DNS / Internet down at these times - repeated errors at these times

Feb 18, 2023 20:39:43.947 [7176] WARN - [HttpClient/HCl#1] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)

Feb 18, 2023 20:42:53.179 [7108] WARN - [HttpClient/HCl#1] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)

Feb 18, 2023 20:52:46.002 [6520] WARN - [HttpClient/HCl#1] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)

Feb 18, 2023 21:00:27.138 [6896] WARN - [HttpClient/HCl#1] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)

Feb 18, 2023 21:02:47.338 [6360] WARN - [HttpClient/HCl#1] HTTP error requesting GET https://plex.tv/media/providers?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx (6, Couldn't resolve host name) (Could not resolve host: plex.tv)

Yes that was what happened

Transcode completed within 2.5 minutes but 5 minutes later when you thought it was frozen - the download was going but the speed for some reason was only about 350 Kbytes a second and it had only downloaded 157 MBytes.

You mentioned the movie was 5Gb in size - do you recall noticing how big was the output.mkv file in the transcode sessions folder when the transcode completed ?

Yes, It was about 4.8Gb in the transcode sessions folder when the transcode completed. The Original was already reduced to 1080p with Handbrake, and I had the iPad setting to 1080p HD (Medium) (higher than needed for an iPad, but I was testing different quality settings)

uhh, how do I find the logs on an android device to post them?

fyi: downloading seems to be working again.

Weird on internet being down.

As to relaunching, I was making change and rebooting it, that’s probably what you are seeing.

PMS as a service. Yes, this should be a native thing. However, this method has been working for quite some time, I’m reluctant to change it, but I’ll read up on it more for sure. Thanks.

You get the android logs emailed to your mailbox and then attach the zip here together with the server logs zip and indication of when the download was abd what it was

See this support article for how to email the android app debug info to yourself
https://support.plex.tv/articles/201573117-android-android-tv-fire-tv-logs/

The android logs stay for a while so if you do that now, it will probably still have the relevant logs

How do I reset the transcoder?

I’ve got this mostly working, but on some that the transcoder did the transcode, but didn’t dl, I’ve deleted and made new the transcode directory, but Plex seems to think it’s still avail and won’t re-transcode the vids.

If I do a new vid, it works, but on these ones that were transcoded it just sits and spins.

If Deleting Downloads on the plex mobile client is not clearing up then please provide diagnostics for it, so it can be investigated

Download the Plex for Android logs zip after attempting to delete the earlier attempted download and starting a fresh download

Also include the debug server logs
And also screenshots of the downloads screen on the Plex for Android app and details of what was downloaded earlier and being deleted / re-downloaded

Please make sure the server debug logging is not disabled and ensure it is already enabled before starting the sequence of deleting / re-downloading …

Plex for iOS 8.17 has some improvements to downloads for cases when iOS puts the process in the background

Release Note:

  • Improved reliability of background downloads.

To ensure all downloads complete. please keep the iPhone / iPad on the Downloads screen when downloading

I am completely unable to download anything onto my iOS device. I am puzzled that an application with this much “community” support consistently fails, and fails in incomprehensibly myriad ways.

1 Like