# "Scan library files" doesn't complete for Music

**URL:** <https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786>\
**Category:** Metadata & Adding Files\
**Tags:** server-unraid\
**Created:** [May 9, 2025, 12:58pm UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786 "2025-05-09T12:58:10Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![douglaskirton](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@douglaskirton](https://forums.plex.tv/u/douglaskirton)\
**Post date:** [May 9, 2025, 12:58pm UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/1 "2025-05-09T12:58:10Z")

</div>

Using Plex Media Server in Unraid Docker Container.

All seemed to be working well. Movie and TV libraries run smoohtly. I also have a fairly extensive music library. When I select “scan library files”, it scans music artists and albums. However, the scan doesn’t complete, but stops or stalls. I can then restart it and it continues.

Is my library just too large or anything I can try to have Plex complete the scan?

---

<div class="post-metadata">

**Author:** ![nww](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nww](https://forums.plex.tv/u/nww)\
**Post date:** [May 9, 2025, 3:27pm UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/2 "2025-05-09T15:27:46Z")

</div>

Same thing, for the past 4 days, no music added to Plex gets picked up. Scan never seems to happen.

Edit:

```auto
May 09, 2025 17:32:48.179 [22596633082680] Error — SQLITE3:0x80000001, 11, database corruption at line 69165 of [a29f994989]
May 09, 2025 17:32:48.179 [22596633082680] Error — SQLITE3:0x80000001, 11, statement aborts at 7: [SELECT di.`id` FROM directories di WHERE di.`library_section_id`=:C1] database disk image is malformed
May 09, 2025 17:32:48.183 [22596633082680] Error — LibraryUpdater: exception updating libraries; pausing updates briefly before retrying: std::exception

```

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 9, 2025, 7:58pm UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/3 "2025-05-09T19:58:03Z")

</div>

No suprise that you have issues.

> [@nww](#):
>
> `database corruption at line 69165 of [a29f994989]`

You need to fix that, before it disintegrates completely.

> **[GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server...](https://github.com/ChuckPa/PlexDBRepair)**
>
> Database repair utility for Plex Media Server databases

---

<div class="post-metadata">

**Author:** ![douglaskirton](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@douglaskirton](https://forums.plex.tv/u/douglaskirton)\
**Post date:** [May 10, 2025, 12:35am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/4 "2025-05-10T00:35:53Z")

</div>

Where can I find such log files? Happy to find and post.

---

<div class="post-metadata">

**Author:** ![douglaskirton](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@douglaskirton](https://forums.plex.tv/u/douglaskirton)\
**Post date:** [May 10, 2025, 1:06am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/5 "2025-05-10T01:06:23Z")

</div>

Let me try this

> <https://pastebin.com/5heeZ1Xi>

---

<div class="post-metadata">

**Author:** ![nww](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nww](https://forums.plex.tv/u/nww)\
**Post date:** [May 10, 2025, 7:35am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/6 "2025-05-10T07:35:44Z")

</div>

This worked like a charm.

Thank you!

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 10, 2025, 7:52am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/7 "2025-05-10T07:52:36Z")

</div>

You have several issues.

`Could not resolve host: plex.tv`

This is the most serious one. If your DNS resolver doesn’t deliver a valid IP for the domain plex.tv (and its subdomains), your Plex server won’t work.  
Check your internet filters, VPNs, or DNS server settings. Access to plex.tv must not be blocked.  
If you must, set the “DNS server” setting in your router to eiother Google’s 8.8.8.8 or Cloudflare’s 1.1.1.1

```auto
May 10, 2025 08:47:42.766 [22894772648760] ERROR - Error parsing allowedNetworks entry '192.168.11.*': Invalid argument [system:22]

```

Settings - Server - ‘Show Advanced’ - Network - “List of IP addresses and networks that are allowed without auth”  
If you want to exclude a whole subnetwork, you don’t use the asterisk as a placeholder.  
Use the IP address/netmask notation instead. [https://support.plex.tv/articles/200430283-network/](https://support.plex.tv/articles/200430283-network/)  
In your case, that would be most likely `192.168.11.0/255.255.255.0`

That is all I could glean from this source.  
Next time, please just drag the zip file into the message editor of this here forum.

---

<div class="post-metadata">

**Author:** ![douglaskirton](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@douglaskirton](https://forums.plex.tv/u/douglaskirton)\
**Post date:** [May 10, 2025, 8:35am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/8 "2025-05-10T08:35:01Z")

</div>

No idea why plex.tv is being blocked. I can access it well. I suspect this may be an CGNAT issue. I have disabled remote access for Plex (I don’t use it remotely anyways) and error no longer shows in the logs. So, maybe this addresses it?

I stll get dozens of “invalid argument / system 22” issue. Any idea what’s driving this? i have not changed the seeting you suggest above. WIll try this now, but curious why I would need to exclude networks?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 10, 2025, 8:42am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/9 "2025-05-10T08:42:19Z")

</div>

> [@douglaskirton](#):
>
> WIll try this now, but curious why I would need to exclude networks?

This field is not populated by default.  
You must have put the original, wrong content in there. Probably in an attempt to make it work in the case of an internet outage.

---

<div class="post-metadata">

**Author:** ![douglaskirton](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@douglaskirton](https://forums.plex.tv/u/douglaskirton)\
**Post date:** [May 10, 2025, 9:01am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/10 "2025-05-10T09:01:58Z")

</div>

I didn’t put in anything? It was empty. Can I keep it empty? I still keep getting the “22 error” in the logs. The plex.tv error no longer shows up though.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 10, 2025, 9:03am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/11 "2025-05-10T09:03:15Z")

</div>

> [@douglaskirton](#):
>
> It was empty

Your log says otherwise.

---

<div class="post-metadata">

**Author:** ![douglaskirton](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@douglaskirton](https://forums.plex.tv/u/douglaskirton)\
**Post date:** [May 10, 2025, 9:24am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/12 "2025-05-10T09:24:54Z")

</div>

Mmh… Very weird. I have set “LAN Networks” to 192.168.11.\*, but “List of IP addresses and networks that are allowed without auth” had been empty. Shall I keep both empty?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 10, 2025, 9:27am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/13 "2025-05-10T09:27:54Z")

</div>

> [@douglaskirton](#):
>
> I have set “LAN Networks” to 192.168.11.\*

Then change that one instead. Putting an invalid address in there has consequences that you won’t like. Unnecessary transcoding, or even complete failure of playback, depending on the type of client.

---

<div class="post-metadata">

**Author:** ![douglaskirton](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@douglaskirton](https://forums.plex.tv/u/douglaskirton)\
**Post date:** [May 10, 2025, 9:32am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/14 "2025-05-10T09:32:56Z")

</div>

Shall I change it per above or just keep it empty?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 10, 2025, 9:40am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/15 "2025-05-10T09:40:52Z")

</div>

Normally it should suffice to keep it empty. Only if your home network is consisting of more than one subnet, you will need something in there.  
But that can easily happen if you use a containerized version of the server. I seem to remember that this is the case on unraid, but I’m not sure.  
If you see a setting to use “host network”, activate that.

My correction above is assuming that all IP adresses in your home network do indeed look like `192.168.11.xxx`

---

<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:** [August 8, 2025, 9:41am UTC](https://forums.plex.tv/t/scan-library-files-doesnt-complete-for-music/917786/16 "2025-08-08T09:41:31Z")

</div>

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