# Metadata folder becoming unruly

**URL:** <https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590>\
**Category:** Plex Media Server\
**Tags:** server-synology\
**Created:** [February 21, 2022, 5:53pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590 "2022-02-21T17:53:52Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [February 21, 2022, 5:53pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/1 "2022-02-21T17:53:52Z")

</div>

Server Version#: 1.25.5  
Player Version#:  
My Metadata folder has become unruly plexmediaserver/appdata/plex media server/metadata It is literally 10’s of thousands of little files which clogs up my backup and causes it to hang. Is there a way of cleaning this up? I’m assuming if i delete the contents I will lose all info on my media files and have to start from scratch? I admit to a lot of movies and music. My Hyperbackups have hung at 99% for hours and the log files generated point to files in that folder stating “Incomplete backup, The file is a symbolic link”

---

<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:** [February 21, 2022, 6:20pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/2 "2022-02-21T18:20:56Z")

</div>

Which file is/files are a symbolic link?

Does the link file(s) point to a valid location?

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [February 21, 2022, 6:40pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/3 "2022-02-21T18:40:24Z")

</div>

hundreds of them. I’d upload the csv log file, but can’t here, so here’s a photo of some of them to give you an idea

 ![image_2022-02-21_134016](https://global.discourse-cdn.com/plex/original/4X/6/3/d/63dfe5f7a6fc6625b9886a9ef1eac50163078447.png)

---

<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:** [February 21, 2022, 7:03pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/4 "2022-02-21T19:03:30Z")

</div>

Those are indeed your metadata.

How many files do you have indexed in Plex?

How are you doing your backup? rsync?

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [February 21, 2022, 7:20pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/5 "2022-02-21T19:20:46Z")

</div>

As stated, I have a lot of music and movies/TV Shows, not sure of how many, but a pretty good amount. No, I’m using Synology, Local Folder and USB. Even deleted that folder from a previous backup takes a long time for Windows to tally up all the files

---

<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:** [February 21, 2022, 7:44pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/6 "2022-02-21T19:44:37Z")

</div>

I have a suggestion.

1. Use HyperBackup to make the backup.
2. It creates a main output file with a few extras.
3. The result is a much faster backup than a Copy/Rsync.
4. DSM itself manages all the permissions such that , if you ever needed to restore, the PlexMediaServer shared folder will be properly intact.

(MUCH has changed in DSM 7. Synology has ‘clamped down’ on apps. PMS no longer has **any** privileges on DSM 7 (their design changes)

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [February 21, 2022, 8:18pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/7 "2022-02-21T20:18:11Z")

</div>

I’m using Hyperbackup. And I haven’t been using rsync

---

<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:** [February 21, 2022, 8:33pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/8 "2022-02-21T20:33:36Z")

</div>

I have a medium-sized server.

I have 75891 media files.

> chuck@papyplex:/var/lib/plexmediaserver/Plex Media Server$ find /nas/media -type f -print | wc -l  
> 75891  
> chuck@papyplex:/var/lib/plexmediaserver/Plex Media Server$

Of those, there are 21867 symlinks for cross referenced metadata which was migrated forward from the old agents. The new agents use flat text files.

> chuck@papyplex:/var/lib/plexmediaserver/Plex Media Server$ find . -print | wc -l  
> 331678  
> chuck@papyplex:/var/lib/plexmediaserver/Plex Media Server$ find ./Metadata -print | wc -l  
> 154094  
> chuck@papyplex:/var/lib/plexmediaserver/Plex Media Server$ find . -type l -print | wc -l  
> 21867  
> chuck@papyplex:/var/lib/plexmediaserver/Plex Media Server$

This is how Plex has always been. It does take time to make backups.  
If you have thumbnails and chapter images, it will take longer and be much larger.

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [February 21, 2022, 8:46pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/9 "2022-02-21T20:46:44Z")

</div>

ok, but that doesn’t resolve my issue or answer my question

---

<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:** [February 21, 2022, 9:07pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/10 "2022-02-21T21:07:02Z")

</div>

If Hyperbackup isn’t completing the backup , not to push, but that’s either a storage method or a Synology problem.

What is the actual backup destination device? USB drive?

If USB, is it USB 2 or USB 3 ?

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [February 21, 2022, 9:34pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/11 "2022-02-21T21:34:09Z")

</div>

Yes, on the Plex files. It’s USB 3,0. Everything else backsup and transfers but it chokes and throws errors on those files.

---

<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:** [February 21, 2022, 10:09pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/12 "2022-02-21T22:09:02Z")

</div>

I will go retest that.

I checked it out thoroughly when I put the DSM 7 package together.  
Part of making`PlexMediaServer` shared folder visible was so that you can easily make backups.

I need to find out what’s changed.

---

<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:** [February 22, 2022, 12:59am UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/13 "2022-02-22T00:59:07Z")

</div>

No changes found.

Recommend:

1. Create a shared folder to hold the backup
2. Backup Plex to that shared folder.
3. When complete, Copy those few files to the USB device.

Gains: Faster I/O both while backing up and when sending final backup to USB drive.

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [May 1, 2022, 10:19pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/14 "2022-05-01T22:19:32Z")

</div>

![image_2022-05-01_181727341](https://global.discourse-cdn.com/plex/original/4X/a/2/d/a2d2844e4a5200939e51da56074fadd9d118d0d6.png)

Here we go again with the “symbolic link” BS. My Hyperbackup has been stuck at 12% all day with no movement. If I remove the PlexMediaServer folder from the folders to backup it behaves and completes normally. I include that one and it hangs forever. I’d REALLY love to complete a full backup in a reasonable amount of time. It’s worked fine since shortly after my original post here and today, so something changed. I tried cleaning metadata bundles and optimizing the DB. Still sitting there.

Media Server version 1.26.0.5715-7000. It was updated recently, i don’t know if that’s 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:** [May 2, 2022, 12:15am UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/15 "2022-05-02T00:15:11Z")

</div>

@david148

How big is the shared folder ? (GB?)

Have you made any modifications to any of the files in the “PlexMediaServer” shared folder?

By “modifications”, I mean:

1. Manually restored / moved files into - the shared folder contents using FileStation  
-or-
2. Have any non-Plex plug-ins installed in the server which write in the metadata directory?

Asking because, as verification, I ran my local backup again with 1.26.1 installed.  
It completed without incident.

 ![Screenshot from 2022-05-01 19-19-30](https://global.discourse-cdn.com/plex/original/4X/9/6/9/9692fda96d0f6a98b31d25bfb747875e5902d700.png)

 ![Screenshot from 2022-05-01 19-48-41](https://global.discourse-cdn.com/plex/original/4X/2/0/5/205c40b0d1d430ea9bfac882d2669a7604f81a4b.jpeg)

Backup integrity verified.

 ![Screenshot from 2022-05-01 20-14-46](https://global.discourse-cdn.com/plex/original/4X/0/7/e/07eabfe8875828f7813b5d2a042c1c4bbdbbd80d.png)

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [May 2, 2022, 12:42am UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/16 "2022-05-02T00:42:16Z")

</div>

I downgraded to the previous release, 1.25 and low and behold it’s already gone past where it was hanging before. Simple deduction. Worked fine last week, did update, doesn’t work. Ding ding ding! Something in the latest update. Haven’t touched the PMS shared folder. My backup is approximately 3.4 TB, but it’s incremental, so it only backs up what’s changed. No non-plex plug-ins installed. In the log it looks like I’m getting the same warnings, so apparently that’s not related to the hanging

---

<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:** [May 2, 2022, 1:11am UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/17 "2022-05-02T01:11:50Z")

</div>

Downgrading Plex doesn’t instantly change your entire store of metadata (the symlinks). There is something else going on here.

Do you really have 4.5TB of metadata or have you also stored media in the PlexMediaServer shared folder?

If you have 4.5TB of metadata (PlexMediaServer), how many media items do you have / how big is your storage volume(s) ?

I would very much like to see the full error message text which you referenced above.  
Would that be possible ? (I only need to see 1 or 2)

---

<div class="post-metadata">

**Author:** ![david148](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@david148](https://forums.plex.tv/u/david148)\
**Post date:** [May 8, 2022, 3:39pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/18 "2022-05-08T15:39:39Z")

</div>

No, 3.2 TB of full data. The Metadata is probably around 12 gb or so. I created a whole new backup task with just the Metadata folder and it completed in a reasonable amount of time. I then deleted the original backed up metadata folder and ran the original job and though it took awhile, it eventually completed. A new one ran this morning, it took about 9 hours, but completed

 ![image_2022-05-08_113738339](https://global.discourse-cdn.com/plex/original/4X/f/3/a/f3aea43d6b0a0da9c49ad8b6fc808f5068d868a2.png)

---

<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 6, 2022, 3:40pm UTC](https://forums.plex.tv/t/metadata-folder-becoming-unruly/777590/19 "2022-08-06T15:40:16Z")

</div>

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