Hello - i am in the process of moving my Plex install from Windows to Docker (Unraid). I am attempting to zip and move the Media / Metadata / Plug-in Support / Plug-ins folders in %LOCALAPPDATA% to my /mnt/user/appdata Plex directory.
I’m encountering an issue when attempting to either zip or manually just copy files over from the “Metadata” folder. It gives me a “READ ERROR” on a file named along the lines of “com.plexapp.agents.plexthememusic_[random string of letters]”. I just restarted the Windows PC so trying to zip again (it fails towards the end of the zip process so will take a while for me to see that error again; maybe need to wait overnight).
Does anyone know what this may be related to? Maybe a running process causing this? Is there a way for me to fix this so i can actually copy the file? I tried manually copying / manually zipping (using Windows built-in zip / 7-Zip / WinRAR) and still encounter an error when it comes across the “com.plexapp.agents.plexthememusic” file
I’ve moved this question into an own thread as it’s not actually related to moving the data directory of a (remaining) server to a new location but about the migration of your server to a new platform (Windows → docker container).
As for the issue at hand… make sure to stop the Plex Media Server before attempting to zip / move those files. You should be able to stop the server app from the system tray – if that’s not working you might want to double-check the task manager.
Thanks Tom. The Plex app was shutdown using the icon in Windows. I don’t think I shut down the “Plex Update Service” which i am attempting now. Let me try that and report back.
I don’t think the problem is actually at all related to the idea of moving to Unraid / Docker itself, but simply i’m not able to copy files in the %LOCALAPPDATA% itself (even if i were moving to another windows install). Let me report back tomorrow morning once I’ve tried to zip the Metadata folder again.
2021/07/24 08:31:14 ERROR : Attempt 3/3 failed with 3 errors and: read \\?\C:\Users\user\AppData\Local\Plex Media Server\Metadata\TV Shows\d\e638a3b764e3d9b09303d03718c3bf8bd548182.bundle\Contents\com.plexapp.agents.thetvdb\seasons\2\episodes\15\thumbs\9cd8d39fbca63cad58bb9d22823dde9c36ad1ad8: Data error (cyclic redundancy check).
2021/07/24 08:31:14 Failed to sync: read \\?\C:\Users\user\AppData\Local\Plex Media Server\Metadata\TV Shows\d\e638a3b764e3d9b09303d03718c3bf8bd548182.bundle\Contents\com.plexapp.agents.thetvdb\seasons\2\episodes\15\thumbs\9cd8d39fbca63cad58bb9d22823dde9c36ad1ad8: Data error (cyclic redundancy check).
2021/07/24 10:50:41 NOTICE: TV Shows/6/2e697e91178fc73c27a208be5a4dbd34c35ba10.bundle/Contents/_stored/themes/com.plexapp.agents.plexthememusic_2d9ac9f5bf0d3bbfe69c17df8dd00044fad0f769: Removing partially written file on error: read \\?\C:\Users\user\AppData\Local\Plex Media Server\Metadata\TV Shows\6\2e697e91178fc73c27a208be5a4dbd34c35ba10.bundle\Contents\_stored\themes\com.plexapp.agents.plexthememusic_2d9ac9f5bf0d3bbfe69c17df8dd00044fad0f769: Data error (cyclic redundancy check).
2021/07/24 10:50:42 ERROR : TV Shows/6/2e697e91178fc73c27a208be5a4dbd34c35ba10.bundle/Contents/_stored/themes/com.plexapp.agents.plexthememusic_2d9ac9f5bf0d3bbfe69c17df8dd00044fad0f769: Failed to copy: read \\?\C:\Users\user\AppData\Local\Plex Media Server\Metadata\TV Shows\6\2e697e91178fc73c27a208be5a4dbd34c35ba10.bundle\Contents\_stored\themes\com.plexapp.agents.plexthememusic_2d9ac9f5bf0d3bbfe69c17df8dd00044fad0f769: Data error (cyclic redundancy check).
so i ran rclone to try copy over each file instead of zipping / native windows copy and paste and got this back in the logs. Any idea what this is and how to fix it in being able to copy the files?
Ok… that error message got nothing to do with the file being locked by another process.
The copying app does a check of the files (CRC); it appears this check has identified an issue with the file mentioned in your log. The issue on its own doesn’t give you a clear picture of what is wrong with the file – basically it just says the data stored on your HDD does not match what it’s supposed to be.
This can be caused by drive corruption or misconfigured files.
You can try to check this out using the chkdsk command.
I’m not a Windows user myself… however I found this guide on a check procedure and what parameters to use for the command:
hmm yes going to run a chkdsk function now. Or see if i have a backup of my C: from earlier that i can mount and see if i can find the same file.
I guess one thing i was thinking, is there a way to identify which specific tv show this metadata is referencing? i could copy and paste everything except this one tiny 20kb thumbs file and then re-run a metadata refresh on that specific tv show when i launch plex on docker.
Otherwise, if i just try to use Plex on docker with everything sans this 1 file, is there any big risks to making Plex “unstable”?
If it’s just that one file, it shouldn’t impact Plex beyond missing that thumb (thumb of s02e15 of a show). You could figure it out by manually checking the database – but to be fair that might be excessive.
Keep in mind: if your HDD is corrupted and you’re going to run your docker container on the same machine, this could still cause problems!
Will be a different machine / drive luckily! I found it on SQLite: it happens to be Arrested Development S02E15.
I noticed while perusing my metadata that i have a lot of junk in there that i don’t use (for example; there’s a “com.plexapp.agents.subzero” in contents sub-folder which i imagine exists for like all my files. i don’t need / want that anymore).
You could export the server’s database (Settings > [Server Name] > Troubleshooting > Download Database) and unzip/open it with an app like sqlitebrowser. You might be able to identify the thumb in the table metadata_items.
Yep figured it out; have two corrupted files: one is the thumb for Arrested Development S02E15 and the other is the Plex Theme Music for American Horror Story. Maybe i will just import everything and then manually for those two redo the plex metadata sync (hopefully that fixes it?)