# Metadata Scanning stops working after sometime (only reboot) resolves

**URL:** <https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux\
**Created:** [November 1, 2019, 8:21pm UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354 "2019-11-01T20:21:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 1, 2019, 8:21pm UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/1 "2019-11-01T20:21:48Z")

</div>

Server Version#: 1.18.1.1973  
Player Version#: 4.10.1

Hello,

Everyday my server is failing to match and download metadata for newly added content. The only thing I have found that will fix it temporarily is a restart. This solves the problem for roughly 15 mins to and hour. I have uninstalled, reinstalled, cleared caches… I have attempted to look through the logs but have not been able to identify the error that is occurring when the scanner crashes.

Please assist.

---

<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:** [November 2, 2019, 3:57am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/2 "2019-11-02T03:57:52Z")

</div>

Can you please reproduce this (with Logging set to DEBUG on, VERBOSE off)  
then download the logs and attach them?

---

<div class="post-metadata">

**Author:** ![igowas](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/igowas/32/84717_2.png) [@igowas](https://forums.plex.tv/u/igowas)\
**Post date:** [November 2, 2019, 4:34am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/3 "2019-11-02T04:34:46Z")

</div>

Same here every new contents are not associated. I tought it was only me. Manually association doesnt work.

---

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 2, 2019, 4:40am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/4 "2019-11-02T04:40:25Z")

</div>

[Plex Media Server Logs\_2019-11-02\_00-38-03.zip](https://forums.plex.tv/uploads/short-url/29VlCKml5MdKwmBX4dRdmuKYAcB.zip) (6.1 MB)

@igowas Same here manually matching does not force metadata download, and eventually greys out the option to refresh metadata.

---

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 2, 2019, 4:41am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/5 "2019-11-02T04:41:50Z")

</div>

The most recent file with this issue is Lord of War. I have not restarted yet either so the logs should have it.

---

<div class="post-metadata">

**Author:** ![sentein](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sentein](https://forums.plex.tv/u/sentein)\
**Post date:** [November 2, 2019, 5:05am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/6 "2019-11-02T05:05:54Z")

</div>

Honestly this is by no means an isolated incident. I thought i did something wrong. Manual placement of files does not work. automatic placement with a signal to re-scan does not work. Power went out yesterday, Now i cannot connect to any of my libraries at all. Might have to see if i can figure out how to downgrade a few updates.

---

<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:** [November 2, 2019, 5:07am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/7 "2019-11-02T05:07:04Z")

</div>

Per my request above, Please provide logs. Without them, I can do nothing.

---

<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:** [November 2, 2019, 5:07am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/8 "2019-11-02T05:07:39Z")

</div>

@plex.cnahome

Your logs show errors:

```auto
Nov 02, 2019 00:37:49.317 [0x7fc1c27fc700] ERROR - Couldn't copy file "/home/plex/metadata/Plex Media Server/Metadata/Albums/0/59665286b30eb099188a02b7a900c747036772a.bundle/Uploads/posters/com.plexapp.agents.localmedia_7ab5f2a960186ac8fc2b9cb6b9779924e5aad65a" to "/home/plex/metadata/Plex Media Server/Metadata/Albums/1/a621477f56f13c67288b9c3864cf9d44da67fde.bundle/Uploads/posters/com.plexapp.agents.localmedia_7ab5f2a960186ac8fc2b9cb6b9779924e5aad65a": File exists

```

Which username is PMS running as?

---

<div class="post-metadata">

**Author:** ![sentein](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sentein](https://forums.plex.tv/u/sentein)\
**Post date:** [November 2, 2019, 5:13am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/9 "2019-11-02T05:13:48Z")

</div>

First time i have this much trouble with a Docker. As soon as i figure out how to get the log i will post it. The log its allowing me to read is throwing a Critical: libusb\_init failed

---

<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:** [November 2, 2019, 5:14am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/10 "2019-11-02T05:14:51Z")

</div>

I can’t help with Docker. Sorry. I don’t use it. I have, time and time again, found it to be more trouble than it’s worth.

I do recommend searching and posting in the `server-docker` threads.

---

<div class="post-metadata">

**Author:** ![sentein](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sentein](https://forums.plex.tv/u/sentein)\
**Post date:** [November 2, 2019, 5:17am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/11 "2019-11-02T05:17:00Z")

</div>

Will do. The Linux version of the plex should not be any different for a docker. Just a different way of implementing it.

---

<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:** [November 2, 2019, 5:17am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/12 "2019-11-02T05:17:20Z")

</div>

The containerization is the problem.  
It’s the nature of docker.

I can rehost a native app PMS to another system as quickly as I make a tarball.

---

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 2, 2019, 5:18am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/13 "2019-11-02T05:18:37Z")

</div>

Plex.cnahome.

---

<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:** [November 2, 2019, 5:20am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/14 "2019-11-02T05:20:24Z")

</div>

The error I found above implies a permission problem.

I presume you created a systemd override.conf file?

---

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 2, 2019, 5:20am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/15 "2019-11-02T05:20:50Z")

</div>

Yes I did, and Plex owns the metadata directory

---

<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:** [November 2, 2019, 5:22am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/16 "2019-11-02T05:22:09Z")

</div>

please clarify.

1. You have the metadata in your Linux username’s home directory
2. PMS runs as user `plex:plex` in there?

---

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 2, 2019, 5:25am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/17 "2019-11-02T05:25:24Z")

</div>

Yes, and the user in the override.conf file is plex and a manual group. Which owns the folder: See screenshot. Also I have not had any issues with this until last week. Setup has not changed.

 ![54%20AM](https://global.discourse-cdn.com/plex/original/3X/4/6/46fa005ff213c40a17c39fff7c2dabcdfdb51858.png)

---

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 2, 2019, 5:25am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/18 "2019-11-02T05:25:53Z")

</div>

There is a copy owned by root, because I did a backup before reinstalling plex to see if that would fix the issue

---

<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:** [November 2, 2019, 5:30am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/19 "2019-11-02T05:30:47Z")

</div>

When running this way, because of how some distros are, running mixed mode in your home directory can be a real problem.

I always recommend keeping the home directory sacred and creating that secondary group should you need to access it.

I don’t see why you do need to access the metadata as there’s nothing in there of relevance to a user with the possible exception of adding plug-ins .

If I may suggest? Please consider `/home/plexdata` , user plex, group whatever-you-like, adding both users to that group.

Here’s my quick how-to if it helps.

> [@Moving PMS 'Library'](https://forums.plex.tv/t/moving-pms-library/197342/):
>
> Moving Plex’s metadata (Library) directory on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. If your system returns init, please see the next post in this thread. While you may change /lib/systemd/system/plexmediaserver.service, it is under the control of the package manager and subject to replacement without warning at any time during an update. To provide stability, systemd allows creation of an override.conf file to customiz…

Regarding what I’m seeing in your files is PMS telling me that it’s trying to create metadata and can’t because there is already existing metadata. It’s erroring and making it stop (an impossible situation is occurring).

When’s the last you empties the trash and “Clean Bundles” (which would remove those old metadata diretories which are no longer in the database ) ?

---

<div class="post-metadata">

**Author:** ![plex.cnahome](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/plex.cnahome/32/157576_2.png) [@plex.cnahome](https://forums.plex.tv/u/plex.cnahome)\
**Post date:** [November 2, 2019, 5:36am UTC](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354/20 "2019-11-02T05:36:07Z")

</div>

I appreciate your suggestion, and will keep it in my pocket moving forward if I can find a legitimate reason why what I have is causing problems. The file permissions are correct as a restart fixes the issue. If the problem is that its trying to create a file that already exists would point me to try and figure out why plex is trying to do that, and why it doesnt have built in way to handle it.

With that said I have cleared bundles, emptied trash, and optimized… Along with manually uninstalling PLEX 100%, and reinstalling. The only thing I have not done is forced a removal and refresh of all metadata… REALLY want to avoid that.

[Next page](https://forums.plex.tv/t/metadata-scanning-stops-working-after-sometime-only-reboot-resolves/484354.md?page=2)
