Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Moving Plex server form Desktop to Docker on Unraid. Desktop works Dock has connection error

Featured Replies

I can still run plex from my desktop and everything is fine. When I start plex in the from unraid I get connection error on WebUI from docker. 
I went through a bunch of topics here and several hours using chat gpt.
I went through setting environmental variables and it suggested a file Preferences.xml could be corrupt but I was unable to resolve the issue. 

 

When I go to the logs on the plex container I get the below message repeated over and over.  and eventually it starts repeating


Starting Plex Media Server.
Stopping Plex Media Server.
Starting Plex Media Server.
Stopping Plex Media Server.
Starting Plex Media Server.

kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
libc++abi: terminating with uncaught exception of type boost::filesystem::filesystem_error: boost::filesystem::create_directories: I/O error [system:5]: "/config/Library/Application Support/Plex Media Server/Cache", "/config/Library/Application Support/Plex Media Server/Cache"

 

I think I included the Diag file correctly, but please let me know if I need to do something different

 

tower-diagnostics-20250517-1114.zip

Solved by bmartino1

  • Community Expert

Your better off starting fresh...


do to the database and previous configurations. You would need to recreate the database in docker. It is easier to move from docker to desktop.

Essential, there quite a few files in the desktop version trying to point to non linux and or docker variable and settings.

while the content is the same, the metadata needs rebuilt.

You can atempt a database restore to the sqlite file that is used by docker...
https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/

https://support.plex.tv/articles/repair-a-corrupted-database/

 

plex done't have a good way to export and inport its database it uses.

  • Author

I am fine with starting fresh as long as I dont lose my media, but I am not sure how to do that. What is the easiest way to "Start fresh"

 

  • Community Expert
  • Solution

you may need to delete the unraid plex appdata folder.

cd /mnt/user/appdata/

and delete the plex folder

 

on unraid have your content in a folder structure...

https://trash-guides.info/Plex/

https://trash-guides.info/File-and-Folder-Structure/

 

if setting up the *Ars  (sonar, radar for other autmated media gathering...)

 

you should have a unraid data sahre called data

data
├── torrents
│   ├── books
│   ├── movies
│   ├── music
│   └── tv
├── usenet
│   ├── incomplete
│   └── complete
│       ├── books
│       ├── movies
│       ├── music
│       └── tv
└── media
    ├── books
    ├── movies
    ├── music
    └── tv

 

so plex data foldder will be the media / data folder...

 

I recommend using the linux server plex CA template
image.png.72739c7c7cfca0a9e5583846cae6a5f8.png

 

filling in the folder structure where you movies, tv shows are located at..

image.thumb.png.b3831e7ab1e6d2f8d3b7ed480f445f6d.png

 

as you can edit this to be any continer folder pat such as /data and map it to teh unraid conting folder.

image.png.84a521c5d9b196d643dee90065ce48b2.png

 

then in plex libaries you add the continer pat folder that has the content...
image.png.454cb4b8e2b1f18605bf95b8d1fdb580.png

image.png.86488e66eb812d0f8d8628a562d85ca5.png

 

this will keep your meai content that you have on unraid and reload any and all video metadata downloaded from plex movie database.

  • Author

If I understand correctly step one is to delete. I used the below line  
root@Tower:~# rm -rf "/mnt/user/appdata/Plex-Media-Server"

and got this response


rm: cannot remove '/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Crash Reports': Input/output error

  • Community Expert
7 minutes ago, OsoSuerte said:

If I understand correctly step one is to delete. I used the below line  
root@Tower:~# rm -rf "/mnt/user/appdata/Plex-Media-Server"

and got this response


rm: cannot remove '/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Crash Reports': Input/output error

correct. plex can't be running when doing this... as this is the plex dockers data. the docker needs to be off....

you may need to double check unraid shares for appdata and make sure only a primary storage location is set.

 

image.thumb.png.6cca3f6824fc84ea4cbbf70edf8e02f6.png

 


I usualy use mc to delete folders..

in web terminal.

cd /mnt/user/appdata/

mc

Highlight the plex folder

pres f8 key and answer promts to delete folder and its contents...

then reinstall plex form the template.

 

You may also need to fix folder file permissions

cd /mnt/user/appdata/

chmod 777 -R *

chown nobody:users -R *

 

  • Author

Goring the f8 option I deleted the plex media server file it ran and I got a red pop up box that says
"Directory /"mnt/user/appda~x-Media-Server" not empty.
Delete recursively?
Options are: Yes, No, All, Abort

what should I do?

 

  • Author

I opted for yes and got the pop up 
cannot remove directory "mnt/user/appda~plaexapp.system"directory not empty (39)

I got it for a couple files and selected "ignore all"

 

Not sure if that will cause problems

  • Author

I did the recursive delete and ignore all. reinstalled the plex app and I am up and running

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.