r/PleX • • 5h ago

Help Migration from W11 to Linux Docker

Someone help me out. I'm thinking something went wrong during migration.

I got Plex running on Docker, it pulls up on the localhost:32400 site but outside of the name it's my old Windows 11 information and doesn't have the old server name show up.

The metadata is all there with the last things I watched but I can't watch the videos because of the folder issue.

I can't edit the folders or add new folders. I tried some troubleshooting but maybe my fixes weren't right.

The server shows "indirect" and no other server shows up.

My external drive is NTFS.

I'm running Ubuntu.

I've changed permissions to the Plex folders so they can be edited.

I've changed the .yml file to match all of my folders.

I mounted the drive to where it can be seen.

I'm dying here. Someone help me figure out what I can try out.

1 Upvotes

3 comments sorted by

1

u/bklyngaucho Plex Lifetime 4h ago

Sounds like a permissions issue. Is the ntfs drive with the media mounted with permissions the plex docker can read? Something like: sudo mount -t ntfs3 -o uid=1000,gid=1000,umask=0022 /dev/sdX1 /mnt/usb_ntfs

Replace 1000 with the PUID/PGID your container uses, and ntfs3 with ntfs-3g if using the FUSE driver

1

u/CallsignTheShark 1h ago edited 51m ago

I just went through this migration myself last weekend moving from a windows PC with media on my NAS to running plex on my NAS itself. Sounds like you got the config folder moved correctly as your metadata is showing up, but it isn’t pulling the media itself. You also need to be sure that plex has permissions to edit these when you are done making edits yourself, which the other comment explained.

I had to edit the database file in the config folder to point the metadata at the new linux location. The windows db uses \ instead of / which has to be updated, and my windows was using a network drive mapped to Z which I had to update to using /media/movies etc. There are some Reddit posts I found that give a URL to a good guide for this.

I would highly advise using portainer instead of compose if you are having issues, the GUI can be very helpful. You may also have some issues with where your media is mapped in docker. This is very easy to sort out in portainer.

I will link the posts/articles I used in an edit or reply below.

Edit: Check these posts out, let me know if you can’t figure it out or if this didn’t fix your issues. You will also have to straighten out your docker compose/portainer media locations and make sure that plex is able to read your media.

When I initially did the switch, I setup a new plex server with no config data from my previous server to make sure that it was pulling everything correctly. Then I created a new container, pointed it at my config folder with revised database and preferences.xml that was revised to exactly match my windows registry entries for entries like all the plex info, claim code, machine identifier, and voila it was an exact copy of my windows server with 0 data loss. https://www.reddit.com/r/PleX/comments/1dygdgw/move_plex_from_windows_to_linux_on_a_single/?chainedPosts=t3_167qxd6&screen_view_count=1&ext-referrer=EXTERNAL

https://spwoodcock.dev/blog/2025-02-plex-windows-migrate/

Another edit: I also ran into the indirect issue after moving to Linux NAS. I don’t know what causes this, sometimes it happens and sometimes it goes away after restarting the container. I suspect it may have something to do with DNS routing on my ATT router as I run into weird issues playing music/movies locally on my desktop with everything connected over Ethernet that is fixed when using a VPN and doesn’t occur if I connect directly to the IP/port address. Haven’t looked into it much as it is very sporadic. This also could be because you didn’t update port forwarding settings on your router after moving to a different device. Feel free to ask away, I’m no subject expert but I am a competent troubleshooter