Long time listener, first time caller here. I’ve been having an issue over the last few days with Camera Upload (I think), which seems to have started since I updated my iPhone to iOS11. Basically every morning when I try to watch something on my Netgear ReadyNAS 214 (v6.7.5) and Plex (1.7.6.4058) it says the Plex server is unavailible and I have to restart the NAS to get the app to respond.
I checked the logs on the Plex Server and it looks like every 2am when the library refreshes its trying to rematch all the camera upload photos and videos for some reason and when I go in to check them they are all in the wrong date order and don’t really match up. So i’ve tried to delete the library so I can start again but it won’t remove, and i’ve tried restarting the app to no avail.
Now i’m in a situation where i’ve deleted the Camera Upload files from the NAS but the Camera Upload library shows in the side bar with all the images there, but if you try to open them they aren’t availible. Deleting them throws an error so I can’t do that either. Is there a way for me to force Plex to delete that particular library?
For further information my iOS device got updated last week and I haven’t used the iOS Plex app since, then two days ago when I got the app to upload on Camera Upload it seemed to go okay although it took a looong time for the library to finish updating on the dashboard. That night is when the first occurance happened so i’m guessing PMS didn’t like Camera Uploading from a new device with the same name?
iOS 11 is not yet supported - so there may well be issues
If you have any specific problems that you wish to raise Nd have investigated then please provide logs covering the time when the issue arise together with details of what went wrong and when
Here are the logs from the other day after I tried a few things to get the library to delete; deleting the media stored in the library separately, restarting Plex and restarting the NAS. The iOS app doesn’t have any complaints though so I haven’t attached those.
It seems to be the issue occured when the existing camera upload data (created by Plex app on iOS 10.3.2) was updated by the Plex app in iOS11 and although neither reported errors at the time, soon after Plex became unresponsive and had to restart the NAS to get the app to come back online and following that a reboot has been needed every day.
Interestingly though I deleted the media behind the library off of the NAS on the morning of the 18th and i’ve not had any recurrences of Plex dying so maybe its something there. Its now a case of getting the left over camera upload stuff to go.
Here are the logs from the other day after I tried a few things to get the library to delete; deleting the media stored in the library separately, restarting Plex and restarting the NAS. The iOS app doesn’t have any complaints though so I haven’t attached those.
It seems to be the issue occured when the existing camera upload data (created by Plex app on iOS 10.3.2) was updated by the Plex app in iOS11 and although neither reported errors at the time, soon after Plex became unresponsive and had to restart the NAS to get the app to come back online and following that a reboot has been needed every day.
Interestingly though I deleted the media behind the library off of the NAS on the morning of the 18th and i’ve not had any recurrences of Plex dying so maybe its something there. Its now a case of getting the left over camera upload stuff to go.
Thanks for the logs
I can see the Plex Media Server process running out of memory when processing camera upload images at 02:03
How many files were in this directory /apps/plexmediaserver-annapurna/MediaLibrary/Plex Media Server/Media Upload/Camera Upload
Thanks for checking, as the library still shows in Plex it says 3102 at the time it was last synched. Its a ReadyNAS RN214 with an ARM Cortex A15 and 2GB RAM.
Okay so good news, I tried deleting the library on Plex Web and that seemed to get rid of it. Should I be worried that Plex ate through the memory it had availible (never happened before)?
@buxty said:
Okay so good news, I tried deleting the library on Plex Web and that seemed to get rid of it. Should I be worried that Plex ate through the memory it had availible (never happened before)?
3102 does not sound excessive for a library.
You could try again and see if you can monitor memory usage by process on the NAS - I don’t know anything about the ReadyNAS so cannot advise on that - so start after a reboot and have debug logging but not verbose logging on the server and start to upload the files from the phone and watch the memory usage and see if it gives timeline that can be matched to what is in the logs
I am going to refer the logs to the development team anyway
This is a screengrab from LinuxDash on the NAS after about five mins which looks pretty good I think, plenty of memory left in reserve and I haven’t seen it tip the 1024MB mark. Processor load i’d expect is normal? due to the way linux displays the average rather then the actual current like Windows does?
It wasn’t high at the time, around 20-30% during the library first upload, which succeeded and everything seemed dandy. Came back just now to respond and check Plex and it wasn’t responding again so I restarted the NAS and here are more logs. COuld it be something to do with iOS11, as the sync does finish and media is playable in Plex so past that it must be the app itself no?
It wasn’t high at the time, around 20-30% during the library first upload, which succeeded and everything seemed dandy. Came back just now to respond and check Plex and it wasn’t responding again so I restarted the NAS and here are more logs. COuld it be something to do with iOS11, as the sync does finish and media is playable in Plex so past that it must be the app itself no?
@sa2000 said:
but you are not giving any Plex for iOS logs - so cannot make any comment about IOS 11 - except to say it is unsupported
There are images with what appears as a null filenames - so could well be IOS 11 related
If you could provide matching set of logs - Plex for iOS zipped logs and server logs - then can see if there is something about null filenames in the iOS log as well
could you get a full directory listing of /apps/plexmediaserver-annapurna/MediaLibrary/Plex Media Server/Media Upload/Camera Upload/Sam’s iPhone showing filenames, file sizes, date and time created and date and time modified - to see if the null names are in the files or just in the database
I’ve attached the iOS logs as requested and when I check the directory you listed above I can see all the media however they do appear to have filenames in the correct format. Thats through Windows Explorer but i can SSH into the box and get a more complete list if thats better?
Attached, took a bit of brushing up on Powershell I should have already known I took a look on my iPhone and it appears that some (not all) of the HEIC files are Apple Live Photo’s hence the weird file format. Is this something dev might look into?
Also Plex was offline this morning and again this afternoon, and getting the NAS to turn off PMS was fine, however when you try to restart it comes up with Plex error 22002010000.
@buxty said:
Also Plex was offline this morning and again this afternoon, and getting the NAS to turn off PMS was fine, however when you try to restart it comes up with Plex error 22002010000.
I wonder if there is some database corruption. Could you download a copy of the database and logs and zip and send me by PMS
The download logs interface through Plex Web / Settings / Server / Help also has option for downloading the database
Attached, took a bit of brushing up on Powershell I should have already known I took a look on my iPhone and it appears that some (not all) of the HEIC files are Apple Live Photo’s hence the weird file format. Is this something dev might look into?
Cheers,
The HEIC iOS 11 format is not supported by Plex and results could be indeterminate