Plex Migration to Synology DSM 7 Libraries Empty:
Issue:
After Plex Update (incl. migration from Synology DSM 6 to new version on DSM 7) cannot refresh or access pre-migration existing libraries on Plex Client.
Possible resolution: To Resolve unknown permissions issue: see OBSERVATION and ASSUMPTIONS at bottom of post.
Note: System user PlexMediaServer DOES have access to media Shared Folders, as detailed below (See Result and Current Status).
I hope this isn’t overkill. I didn’t do a ‘technical migration’ thinking it was safe so I have recorded from memory all steps and is the path to where I am now as best I can remember - any help to restore original library (with original metadata, usage etc.) which, as an early adopter has been used over many years, would be much appreciated. (…and I should say with much thanks as I have never had to ask for help before as far as I can remember!)
Issue Details:
System Synology DS8515+ Intel Atom C2538, 2.4 GHz, Mem: 6144
Original Plex Install: Volume1
Update of Synology DSM and Plex
APPROACH STEPS:
Pre update activities: Research indicated no impacts to Plex of the following actions except to update to latest Plex following DSM update. It is understood that the update should have migrated Plex correctly to the new version after DSM update.
Steps (high level)
• Updated all impacted software, including Plex to latest DSM 6 versions
• Stopped Plex
• Updated DSM6 to latest DSM 6 Update7
• Updated DSM 6 to DSM 7.0.1-42218 Update 6
• (Note: There is a further manual update offered to DSM7.1.1-42962 Update 6 on ‘staged roll-out’. The server is not displaying any issues so as per release notes I have elected the option to not install the update for the time being).
Note: Original Install Plex Version - Unknown. I still have the files in the /volume1 file system but am not aware of a way to see which version it is. (I do have access to file system via telnet and am Unix aware).
-
Backed up existing installation data folders, ‘Plex Media Server’ to volume1/Plex_Backups
-
Updated Plex to DSM 7 Plex Version: 1.40.4.8840-70008840 on Volume2 (note: I think it was a two stage update: i) update and migrate and then ii) plex server indicated a further update was available so I updated to latest)
-
File Permissions: Shared folder for Plex Media files is on Volume5 named V5-Media e.g. V5-Media/movies and V5-Media/photos
DSM7 File permissions for System user PlexMediaServer are set to R/W for Shared Folder V5-Media -
On starting Plex server and Web client I was able to select a [new] media folder V5-Media/Home Movies and it loaded and served the home movies to the web client. All looking good.
Confirmed client to server access and external access - all green OK
THEN
When attempting to scan existing media folders (e.g. V5-Media/movies) it would allow me to select a folder from V5-Media on the server OK, but will not scan and add media files.
Attempted fixes:
Viewed permissions at command line - checks OK
All seems ok at Server and client level according to various threads and help articles online.
Reviewed various online help articles and implemented following:
• Uninstalled latest version and re-installed - no change to Libraries no-scan issue
• Changed settings to NOT update automatically to ensure not stopping refreshes - no impact
• Read that issues with DB can stop refreshes working. Assuming migration corruption considered options to repair. Backed up migrated data folder and ran SQL Lite commands as instructed here: https://support.plex.tv/articles/repair-a-corrupted-database/) including integrity check, rebuild indexes and low level database recovery.
• Result: Unable to access server through client and lost access to media files.
• Recovered backed up data files (command line unix, moved recovered database files to .OLD and moved original migrated data folders back to ‘Plex Media Server’, then changed owner to PlexMediaServer:PlexMediaServer, as per original).
Result & Current Status
• Back to original migrated state
• Strangely am able to access /Home Movies library (only) AND play files but cannot access the original media /movies, /photos or /music folders which all display as "Empty "
• OBSERVATIONS: - The targetted folders are all under the V5-Media shared folder. The only difference between the original folders /movies, /photos, /music folders is that the originals are all “Empty” and will not scan, whereas the new Library (at /homemovies, which is an existing files folder but new Library to post migration Plex) does scan, does display files and does play the media correctly and these were *** added and scanned post-migration***. I got ahead of myself and added this library before checking all was well with the other libraries post migration so discovered this by accident.
• ASSUMPTIONs - the issue appears like a permissions issue but I cannot find the cause: i.e. am able to scan new /homemovies Library but not original pre-migration libraries - however the other libraries can [apparently] be mapped using Library Edit. (This may imply it can see the folders unless this path is read from the server settings data file?).
• Note that web app Server/General Settings is now showing an update is available in the client server settings page as follows:
Version 1.40.4.8840 An update is available.Please install manually with release notes that include this: (Synology) DSM 7 packages failed to install on some x86 devices (PM-2092). -
NOTE: This is not displayed in DSM packages as an update option and not wishing to update unless advised in current situation.
I have attached server and client logs and can follow any debig steps required that might help indicate the issue. I am new to this so please bear with if I have missed something obvious!
Edit Update: I have just checked the location of /volume2 and it is on the wrong disk set. I’m not sure how this happened but that is a data only drive. However I’m guessing it might be better to fix the above issue first and then work out how to move to a different volume - advice would be welcome of course.
Edit Update 2: Continued reading and implemented two things after stopping server: i) I found a permissions fix so ran it for good measure (it chowned all folder/file permissions to PlexMediaServer:PlexMediaServer) and ii) I decided I was not on the correct Plex Version. I manually installed v.1.41.0.8994-f2c27da23 (September 23, 2024). The install failed due to having the original Volume1/Plex folders and advised to remove it to enable the install. I moved the old install to Plex.OLD (using command line unix) and re-ran install successfully, however Library issue remains.
WebApp_DebugLog_.txt (71.5 KB)
Plex Media Server Logs_2024-10-12_16-46-39.zip (1.1 MB)