# Cannot scan library

**URL:** <https://forums.plex.tv/t/cannot-scan-library/914493>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [April 23, 2025, 6:11pm UTC](https://forums.plex.tv/t/cannot-scan-library/914493 "2025-04-23T18:11:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrelldurrett](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@derrelldurrett](https://forums.plex.tv/u/derrelldurrett)\
**Post date:** [April 23, 2025, 6:11pm UTC](https://forums.plex.tv/t/cannot-scan-library/914493/1 "2025-04-23T18:11:37Z")

</div>

Server Version#: v1.41.6.9685-d301f511a  
Player Version#: n/a

I cannot get the scanner to read the library. This is the log:

> {  
> “type”: “ajax”, {  
> “type”: “ajax”,  
> “url”: “[https://192-168-0-18.7f11299e1d774561bf510834ed2edf53.plex.direct:32400/library/sections/4?name=Music&type=artist&agent=tv.plex.agents.music&scanner=Plex%20Music&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmedia%2Fderrell%2F8a40b384-ba80-4ede-99be-6e927897be79&X-Plex-Product=Plex%20Web&X-Plex-Version=4.145.1&X-Plex-Client-Identifier=6a6lp2pnea4n2q4ye4embkuw&X-Plex-Platform=Chrome&X-Plex-Platform-Version=135.0&X-Plex-Features=external-media%2Cindirect-media%2Chub-style-list&X-Plex-Model=standalone&X-Plex-Device=Chrome%20OS&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=2737x1922%2C3840x2160&X-Plex-Token=TOKEN&X-Plex-Language=en&X-Plex-Session-Id=fcbf2535-3c12-4b4f-83b9-09b5c589c92a](https://192-168-0-18.7f11299e1d774561bf510834ed2edf53.plex.direct:32400/library/sections/4?name=Music&type=artist&agent=tv.plex.agents.music&scanner=Plex%20Music&language=en-US&importFromiTunes=&enableAutoPhotoTags=&location=%2Fmedia%2Fderrell%2F8a40b384-ba80-4ede-99be-6e927897be79&X-Plex-Product=Plex%20Web&X-Plex-Version=4.145.1&X-Plex-Client-Identifier=6a6lp2pnea4n2q4ye4embkuw&X-Plex-Platform=Chrome&X-Plex-Platform-Version=135.0&X-Plex-Features=external-media%2Cindirect-media%2Chub-style-list&X-Plex-Model=standalone&X-Plex-Device=Chrome%20OS&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=2737x1922%2C3840x2160&X-Plex-Token=TOKEN&X-Plex-Language=en&X-Plex-Session-Id=fcbf2535-3c12-4b4f-83b9-09b5c589c92a)”,  
> “status”: 200,  
> “headers”: {  
> “Accept-Language”: “en”,  
> “Accept”: “application/xml”  
> },  
> “responseLength”: 0,  
> “time”: “2025-04-22T19:24:45.060Z”  
> },  
> “url”: “[https://192-168-0-18.7f11299e1d774561bf510834ed2edf53.plex.direct:32400/:/plugins/tv.plex.agents.music/prefs?X-Plex-Product=Plex%20Web&X-Plex-Version=4.145.1&X-Plex-Client-Identifier=6a6lp2pnea4n2q4ye4embkuw&X-Plex-Platform=Chrome&X-Plex-Platform-Version=135.0&X-Plex-Features=external-media%2Cindirect-media%2Chub-style-list&X-Plex-Model=standalone&X-Plex-Device=Chrome%20OS&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=2737x1922%2C3840x2160&X-Plex-Token=TOKEN&X-Plex-Language=en&X-Plex-Session-Id=fcbf2535-3c12-4b4f-83b9-09b5c589c92a](https://192-168-0-18.7f11299e1d774561bf510834ed2edf53.plex.direct:32400/:/plugins/tv.plex.agents.music/prefs?X-Plex-Product=Plex%20Web&X-Plex-Version=4.145.1&X-Plex-Client-Identifier=6a6lp2pnea4n2q4ye4embkuw&X-Plex-Platform=Chrome&X-Plex-Platform-Version=135.0&X-Plex-Features=external-media%2Cindirect-media%2Chub-style-list&X-Plex-Model=standalone&X-Plex-Device=Chrome%20OS&X-Plex-Device-Name=Chrome&X-Plex-Device-Screen-Resolution=2737x1922%2C3840x2160&X-Plex-Token=TOKEN&X-Plex-Language=en&X-Plex-Session-Id=fcbf2535-3c12-4b4f-83b9-09b5c589c92a)”,  
> “status”: 404,  
> “headers”: {  
> “Accept-Language”: “en”,  
> “Accept”: “application/xml”  
> },  
> “statusText”: “Not Found”,  
> “response”: “Not Found
> 
> # 404 Not Found
> ”,  
> “time”: “2025-04-22T19:24:43.564Z”  
> },

When I run it at the command line, there is no output. Here, it looks to say, “not found”.

That’s odd, because I, 1) used the “add library” widget in the server to add the library, and 2) the library has all of the media stored underneath that directory as described in the documentation: `<root>/Media/Music/<artist directories>`.

Note that some failure corrupted a previous version of my server, and that this is a new install of Plex Media Server on a Raspberry Pi (same RPi – a 4B – as the previous server, just with a fresh SD/server software, and all of the media are from that previous server exactly as before: stored on an external drive (hence, `/media/derrell/8a40b384-ba80-4ede-99be-6e927897be79`).

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [April 24, 2025, 2:05am UTC](https://forums.plex.tv/t/cannot-scan-library/914493/2 "2025-04-24T02:05:55Z")

</div>

When using Linux, `/media` is often a reserved directory.

Specifically: `/media/derrell/8a40b384-ba80-4ede-99be-6e927897be79`  
looks like something the automounter did

When this happens:

1. It creates a mount point under `/media/YOUR_USERNAME`
2. If there’s a label on the drive, it’s used, else the UUID is used
3. MOST IMPORTANTLY - exclusive access permission is asserted for ONLY your username.

Since this is a Pi, I suspect you’re using a USB drive for the media ?

If true, I suggest you mount the drive somewhere other than under `/media/your_username` to avoid permission problems.

Please see below (pay attention to the USB part)

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/2):
>
> Using other hard drives (Windows or Linux) with PMS This How-To is written to help with Internal and External drives. It also is written to demonstrate how to cope with NTFS and EXT4 formatted drives. By logical extension, any format supported by Linux can be handled using the technique shown here. In all cases, the goal is to give user plex permission to read your media files which Linux doesn’t allow by default due to its strict security model. We will walk through the steps needed …

---

<div class="post-metadata">

**Author:** ![derrelldurrett](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@derrelldurrett](https://forums.plex.tv/u/derrelldurrett)\
**Post date:** [April 24, 2025, 4:22pm UTC](https://forums.plex.tv/t/cannot-scan-library/914493/3 "2025-04-24T16:22:01Z")

</div>

Interesting! That’s a little less heavy-handed than the thing I did to get things started, which was to chmod to 0777 the root of it.

I’ll definitely want to undo that, and this looks like the way to go about that.

---

<div class="post-metadata">

**Author:** ![derrelldurrett](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@derrelldurrett](https://forums.plex.tv/u/derrelldurrett)\
**Post date:** [April 27, 2025, 7:17pm UTC](https://forums.plex.tv/t/cannot-scan-library/914493/4 "2025-04-27T19:17:05Z")

</div>

Many thanks for the pointers, @ChuckPa.

Reading here ([Linux Tips - #3 by ChuckPa](https://forums.plex.tv/t/linux-tips/276247/3)), I see that I can move the metadata library to a place of my choosing, and I think this is a good idea for my setup (with my music on an external disk, it seems best to store the metadata in the same place). But, my system has metadata I don’t want to lose in the old location. If I create that `override.conf` file, and change the location of the metadata, do I lose the existing metadata? Is it moved for me? Do I need to move it before making the change?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [July 26, 2025, 7:17pm UTC](https://forums.plex.tv/t/cannot-scan-library/914493/5 "2025-07-26T19:17:59Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
