Cannot scan library

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”,
“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”,
“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).

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)

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.

Many thanks for the pointers, @ChuckPa.

Reading here (Linux Tips - #3 by ChuckPa), 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?

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