April 19, 20197 yr Community Expert Hi All, I tried to find an answer in the posts here but did not have a lot of success. found one close to my issue in the Plex forums and tried those steps. Objective: Migrate my Plex plugin (PhAzE's plugin) to a docker (any docker is fine but I tried with the LinuxServer one) while retaining the history and the configuration. I backed up the Plex folder from my cache/appdata/ folder (screenshot below), then installed the docker with the settings below and copied over the old plex directory to the /config location and started the container. But I'm not getting the old settings and library migrated over. Instead i'm getting a fresh config - Add a Library - in the WEB UI. What am I doing wrong? All help is appreciated. Thanks in advance for all suggestions. P.S: I delayed migrating till now because of this issue of having to start setting up everything again in Plex and loosing all my viewing history and configuration. I have my Trakt account linked to Plex - so maybe it isn't as hard as I think it would be. Also does any one know whether the support for Phaze's plugins has ended? I loved using the Plugin but it is not updating to the latest version of Plex anymore - the update script errors out with "Unable to obtain download url"
April 19, 20197 yr Community Expert Just compare the folder structure of the appdata the plugin made to the folder structure of the appdata the docker made and you may be able to see what goes where and adjust the mapping in the docker. I helped another user through just this process. The relevant portion of the thread starts here: https://forums.unraid.net/topic/77260-solved-having-trouble-updating-unraid/?do=findComment&comment=714266
April 19, 20197 yr Community Expert And while we're at it, since you let things get so out-of-date, which version of Unraid are you running?
April 26, 20197 yr Author Community Expert Sorry for the late reply - been out on work. Thanks for that link - referring to it now. Funny i did not find that thread while searching the forum. I am on the most up-to-date stable version of Unraid 6.6.7
April 26, 20197 yr Author Community Expert Tried reading through - not sure I understand the fix. Quote Host path 2 as it is in the screenshot is going to make your /mnt/user appear as /media inside the plex container, but the database you already have is expecting your media to be at /mnt/user. So you need to edit that mapping and change the container path to /mnt/user. Not understanding this - is this relevant to my docker setup - if it is then please explain what am I changing the existing Media mapping to? Edited April 26, 20197 yr by abhi.ko
April 26, 20197 yr Community Expert 1 hour ago, abhi.ko said: Tried reading through - not sure I understand the fix. Not understanding this - is this relevant to my docker setup - if it is then please explain what am I changing the existing Media mapping to? Just like it says.
April 27, 20197 yr Community Expert 2 hours ago, trurl said: Just like it says. Was on mobile before so I will elaborate. Plugins don't have mappings. Your plex plugin was using the paths just as they are in Unraid. Dockers have mappings, which allows you to specify a path inside the container, and have that path "mapped" to a different path in the host. Since your plex library was created with the plugin, the library expects the media files to be located at the Unraid paths. So you need the docker mapping to be a direct mapping to the Unraid paths. Edit the Media mapping so that the host path /mnt/user is mapped to the container path /mnt/user instead of /media.
April 27, 20197 yr Author Community Expert Thank You! Trying this now. I am starting with a new docker image. Here is what I updated the media mapping to look like: Question - what all files from the old appdata/plex (plugin) folder should I copy over to the new docker folder appdata/PlexNew?
April 27, 20197 yr Community Expert 28 minutes ago, abhi.ko said: Question - what all files from the old appdata/plex (plugin) folder should I copy over to the new docker folder appdata/PlexNew? None if you have configured the docker container to use the same appdata folder as the plugin was using.
April 27, 20197 yr Author Community Expert 57 minutes ago, itimpi said: None if you have configured the docker container to use the same appdata folder as the plugin was using. Thanks! Tried that - docker mappings below. Changed the /config folder to the same location as the plugin folder appdata/plex. Edited the container mapping as trurl suggested - both container and hot mapping is now pointing to /mnt/user/. Still Plex does not get old settings, plugins and library - it starts up as a fresh brand new install and asks to add libraries. Edited April 27, 20197 yr by abhi.ko
April 27, 20197 yr Community Expert Did you do this? On 4/19/2019 at 11:42 AM, trurl said: compare the folder structure of the appdata the plugin made to the folder structure of the appdata the docker made and you may be able to see what goes where and adjust the mapping in the docker.
April 27, 20197 yr Community Expert From looking at the screenshot you posted of the plugin, it might be that the appdata the plugin makes is actually in appdata/config. I don't recall how that plugin worked, it has an install folder and a config folder below that.
April 27, 20197 yr Author Community Expert 1 hour ago, trurl said: From looking at the screenshot you posted of the plugin, it might be that the appdata the plugin makes is actually in appdata/config. I don't recall how that plugin worked, it has an install folder and a config folder below that. Tried pointing the /config to /appdata/plex/config/ but no luck still the same. 1 hour ago, trurl said: Did you do this? Since I'm now pointing the docker to the same Plex folder that the plugin had created, based on itmpi's suggestion - they would be the same, right? After testing the docker and seeing that it is asking me to start from scratch, I stop it and revert back to the plugin by starting it and everything works flawlessly. No idea what is going on. Thanks for all your help so far.
April 27, 20197 yr Community Expert Make a new plex docker and point it to a different place for appdata. Then you can compare the appdata the new one creates to the appdata from the plugin.
Archived
This topic is now archived and is closed to further replies.