My Media Build logoMy Media Build

How to Install Library Doctor on Unraid (Community Applications)

Install Library Doctor on Unraid from Community Applications: the template settings, PUID 99/PGID 100, the Folder check and how the trash works with the cache and mover. Tested on Unraid 7.4.1.

Time
About 10 minutes
Reading
8 min
Updated
4 December 2026
By
spikey1965
Tested with
Library Doctor 0.4.4 on Unraid 7.4.1
How to Install Library Doctor on Unraid

Follow this guide at your own risk, and back up your data first. Full disclaimer

Library Doctor checks your Plex, Jellyfin or Emby library every night for missing files, duplicates, broken or wrong-language copies and stuck downloads, with a button to fix most of them. On Unraid it’s in Community Applications, so you install it from the Apps tab like any other container.

This guide was tested on a real Unraid 7.4.1 server with a cache pool, the mover and Jellyfin. It takes about 10 minutes.

Not on Unraid? On any other Linux server, TrueNAS or a Raspberry Pi, follow the Docker Compose guide. On a Synology, follow the Synology guide. On a Windows PC, follow the Windows guide.

Library Doctor on Unraid: quick answer

To run Library Doctor on Unraid, open Apps, search for Library Doctor and press Install. Point Media at the share with your films and shows, keep PUID 99 and PGID 100, press Apply, then open port 8790, make a password and add your media server.

Before you start Unraid with the array started, Docker switched on and Community Applications installed, plus Plex, Jellyfin or Emby. Radarr and Sonarr are recommended but optional.
Docker image ghcr.io/spikey1965/library-doctor:latest
Time About 10 minutes
Tested with Unraid 7.4.1, Library Doctor 0.4.4, Jellyfin 12.4 (array + cache pool, mover on)

What you need

  • Unraid with the array started and Docker switched on (Settings → Docker).
  • Community Applications, the Apps tab. On Unraid 7.4 the first-run setup offers it; otherwise install it from Plugins.
  • Plex, Jellyfin or Emby, on the same server or elsewhere, and Radarr and Sonarr if you use them (recommended).
  • A share with your films and shows in one folder, for example /mnt/user/data/media.

1Open Apps

Click Apps at the top. The first time you open it, Community Applications shows two notices, one about apps in general and one about plugins. Press I UNDERSTAND on each, then wait a few seconds while it downloads the app list.

Unraid Community Applications first-run notice with the I UNDERSTAND button

2Find Library Doctor

Type Library Doctor in the search box, with a space. (Searching library-doctor with a dash finds nothing.) It’s the card called library-doctor from spikey1965’s Repository, marked Beta. Press Install.

Library Doctor in Unraid Community Applications search results with the Install button

A box may pop up listing what it works with. Press OK.

3Check the settings and press Apply

Unraid opens the Add Container page with everything filled in. Only two fields usually need a look:

  • Media: the share that holds your films and shows (and music, if you use Lidarr), as one folder. The default is /mnt/user/data/media; change it if yours is somewhere else. It must be read-write, because clean-ups move files into a hidden trash folder inside it.
  • Time zone: yours, so the nightly scan runs at night.

Leave the rest as it is. PUID 99 and PGID 100 (under Show more settings) are Unraid’s nobody and users, which own your shares, so Library Doctor’s files stay owned the Unraid way. Press Apply. Unraid downloads the image and starts it; when it says The command finished successfully!, press Done.

Unraid Add Container page for Library Doctor with the Media path and the Apply button

4Open it and make a password

On the Docker tab, click the Library Doctor icon and choose WebUI, or open http://YOUR-UNRAID-IP:8790. Create a password straight away: Library Doctor can move files, so it asks for one before anything else.

Library Doctor create a password screen

5Add your media server and check the folders

In Settings, pick Plex, Jellyfin or Emby, fill in its address and token or API key, press Test, then Save settings. If the media server runs on the same Unraid, use Unraid’s IP address (for example http://192.168.1.20:8096), not localhost.

Then look at Folder check at the top. Containers on Unraid usually see your media under different folders: the linuxserver Jellyfin, for example, sees /data/movies, while Library Doctor sees /media/movies. Folder check finds real files from your server and suggests the mapping. Press Use suggested mapping, then Save settings (it isn’t kept until you save).

Library Doctor Folder check suggesting a folder mapping for Jellyfin on Unraid

Add Radarr and Sonarr the same way if you use them. Without them Library Doctor still finds problems, but it can’t replace files or search for new copies.

6Run the first scan

Go to Scan Library and press Scan now. After that it scans by itself every night at 03:00.

Library Doctor first scan results on Unraid with a duplicate, a metadata gap and a broken file

Unraid notes: cache, mover and the trash

  • Clean-ups are instant on user shares. Library Doctor moves files into a hidden .library-doctor-trash folder inside your media share, on the same disk or pool the file is on, so nothing is copied.
  • The mover is fine. If your share writes to the cache first, the mover later moves the trash to the array along with everything else. Put Back still works after that: tested on Unraid 7.4.1.
  • Sleeping disks. The nightly scan doesn’t read your video files, but it checks they exist, which can wake spun-down disks. If that matters, pick fewer days under Settings → General → Scan on (once a week is fine).
Library Doctor trash on Unraid with Put Back

To put a file back, tick it in the list first; the Put Back button stays grey until something is ticked.

If something’s wrong

  • Every file shows as missing. Your media server or Radarr sees the media under a different folder. Use the suggested mapping in Settings → Folder check and press Save settings.
  • Search finds nothing. Search Library Doctor with a space, and give Apps a few seconds to load its list the first time.
  • “Can’t save settings” or a message about permissions. Check PUID is 99 and PGID is 100, and that /mnt/user/appdata/library-doctor belongs to nobody:users. Library Doctor shows a message saying exactly what to change.
  • Clean-up buttons don’t work on your films. The Media path must be read-write, and your media files owned by nobody:users (Tools → Docker Safe New Perms, from the Fix Common Problems plugin, sets that).

Keep port 8790 on your home network: don’t forward it on your router.

Updating Library Doctor on Unraid

Your password and settings live in /mnt/user/appdata/library-doctor, so they’re kept when you update. When a new version is out, the Docker tab shows apply update next to Library Doctor: click it. What’s new in each version is in the changelog on GitHub.

New in v0.4.5 ✓ (4 December)

  • Clean-ups no longer leave an empty folder behind (Put Back makes it again)
  • With Jellyfin or Emby, the log names your media server instead of “Plex”

New in v0.4.4 ✓ (4 December)

  • Get the app: a new button at the top puts Library Doctor on your phone or computer, full screen with its own icon. How to put it on your phone
  • Fixed: cards you fixed while a scan was running no longer come back as “problems keep coming back”
  • Phones with several media servers show the Library Doctor icon in the top bar instead of a cut-off name

New in v0.4.1 ✓ (2 December)

  • Much faster scans: the virus and fake file check only opens videos that are new or changed since they were last found clean, so a nightly scan takes a minute or two instead of several. The first scan after updating still checks them all
  • That check counts up while it runs (“3,000 of 14,720”) instead of sitting still on the progress bar
  • “To look at” counts on the scan list and Analysis no longer include cards you’ve ignored
  • The page opens on a tile with work to do (missing files first, then damaged files and viruses)

New in v0.4.0 ✓ (28 November)

  • Several media servers at once: add a second (or third) Plex, Jellyfin or Emby under Settings → More media servers. Each gets its own cards, scan history, trash and health score, and All servers shows them side by side (asked for on GitHub)
  • An Ignore now counts on every server
  • Learns what you ignore: after 3 Ignores of the same kind in one library, it offers to hide cards like those. Nothing is hidden unless you say yes
  • Phone layout: the tabs sit along the bottom on a phone, and you can add Library Doctor to your home screen
  • Quality fallback: when Replace finds nothing in your preferred quality, it can try a lower one as a last resort (set for each Radarr/Sonarr)
  • Turn it off now works for indexers that come from Prowlarr
  • Jellyfin and Emby: widescreen films are measured properly, and blank posters get Use the show’s poster and Copy poster from Plex

Fixes in v0.4.0

  • Replace keeps the film or episode monitored, so Radarr/Sonarr keep looking, and the button says “Replacing…” so it isn’t pressed twice
  • Refresh Plex on “Plex lists a file that isn’t on the disk” cards
  • Safer Plex backups, and no more “keeps failing” card once an indexer works again
📱 Put it on your phone: since 0.4.3, Library Doctor can be added to your phone or computer as an app, full screen with its own icon. Press Get the app at the top of the page, or follow How to put Library Doctor on your phone or computer.

Frequently asked questions

Is Library Doctor in Unraid Community Applications?

Yes. Open Apps, search for Library Doctor (with a space) and press Install on the library-doctor card from spikey1965's Repository.

What PUID and PGID do I use on Unraid?

Keep the template's defaults: PUID 99 and PGID 100, Unraid's nobody user and users group, which own your shares.

Which folder do I give Library Doctor on Unraid?

The share that holds your films and shows as one folder, for example /mnt/user/data/media, mounted read-write so clean-ups can move files into its trash folder.

Does Library Doctor work with the Unraid cache and mover?

Yes. Clean-ups move files into a trash folder on the same disk or pool, and when the mover moves the trash to the array, Put Back still works. Tested on Unraid 7.4.1.

Why does every file show as missing after I add Plex or Jellyfin?

The media server sees your files under a different folder, for example /data/movies. Open Settings, Folder check, press Use suggested mapping and then Save settings.

Thank you

Library Doctor is free and open source (MIT) at github.com/spikey1965/library-doctor. It’s been tested on Unraid 7.4.1 on a test server; if you run it on your own Unraid, an issue saying how it went (good or bad) really helps. Unraid is a trademark of Lime Technology, Inc. This site isn’t connected to Lime Technology.

Questions or stuck? Ask in the Library Doctor Discord: setup help, ideas for new checks, and every new version posted the moment it’s out.

Related guides: Library Doctor: how it was built and tested · Library Doctor with Docker Compose · Library Doctor on Synology · Gotify

Using it? Leave a review, it really helps.

Buy me a coffeeEverything here is freeEvery card, guide and download. This site keeps going thanks to people buying me a coffee. Without those donations, My Media Build wouldn’t be here. If something here saved you time or a headache, a coffee helps keep it running.☕ Buy me a coffee

Comments

No comments yet. Questions and tips are welcome.

Leave a comment

Comments appear once I've read them. See the privacy policy.

Get new guides by email

About one email a month: new guides and card releases. No spam, unsubscribe any time.

I'll send a confirmation email first. See the privacy policy.