# Database outdated

**URL:** <https://forums.plex.tv/t/database-outdated/219157>\
**Category:** General Discussions\
**Created:** [December 27, 2017, 9:03am UTC](https://forums.plex.tv/t/database-outdated/219157 "2017-12-27T09:03:27Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 27, 2017, 9:03am UTC](https://forums.plex.tv/t/database-outdated/219157/1 "2017-12-27T09:03:27Z")

</div>

I have installed the server version 1.11.0.4633 on Arch Linux 64 bits.  
I have defined the next settings in `Server` \> `Library`:

But when I delete files in some of my library folders, it doesn’t update the database.  
For example, I have deleted a entire TV show (one folder with its files) but it still shows it:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/3/2/32a4f68e43c4ad4211ded5d946d4338654218744.png)

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/2/2/22654ffffc101c9cb08353760ad6dfba7215cc06.png)

Before I became a premium member, with the previous versions, it worked well for me.

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 27, 2017, 9:23am UTC](https://forums.plex.tv/t/database-outdated/219157/2 "2017-12-27T09:23:12Z")

</div>

Info about this library:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/3/0/30cc7726b94f9e5c32fa1d968223efe32ca20205.png)

Info about the folders of this library:

```auto
$ stat /media/           
  File: /media/
  Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 811h/2065d	Inode: 2 Links: 9
Access: (2775/drwxrwsr-x) Uid: ( 1000/ juan) Gid: ( 992/ plex)

$ stat /media/Transmission 
  File: /media/Transmission
  Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 811h/2065d	Inode: 62717953 Links: 9
Access: (2775/drwxrwsr-x) Uid: ( 1000/ juan) Gid: ( 992/ plex)

$ stat /media/Transmission/juan 
  File: /media/Transmission/juan
  Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 811h/2065d	Inode: 62717954 Links: 5
Access: (2775/drwxrwsr-x) Uid: ( 1000/ juan) Gid: ( 992/ plex)

$ stat /media/Transmission/juan/series 
  File: /media/Transmission/juan/series
  Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 811h/2065d	Inode: 62898179 Links: 2
Access: (2775/drwxrwsr-x) Uid: ( 1000/ juan) Gid: ( 992/ plex)

```

And the info about this partition:

```auto
$ file -sL /dev/sdb1
/dev/sdb1: Linux rev 1.0 ext4 filesystem data, UUID=13e4d10e-c62f-43dc-b3c6-94773e2a79eb, volume name "dunehd" (needs journal recovery) (extents) (large files) (huge files)

$ mount -l -t ext4
/dev/sdb1 on /media type ext4 (rw,noatime,x-gvfs-hide) [dunehd]

$ cat /etc/fstab
...
# /dev/sdb1
UUID=13e4d10e-c62f-43dc-b3c6-94773e2a79eb	/media	ext4	defaults,noatime,data=writeback,x-gvfs-hide	0	2

```

---

<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:** [December 27, 2017, 9:36am UTC](https://forums.plex.tv/t/database-outdated/219157/3 "2017-12-27T09:36:47Z")

</div>

When the parent directory is gone (removed) before the media is, PMS thinks it was unplugged (temporarily unavailable).

Start putting back empty directories (to fake it out) and rescan files. When you’ve created enough, it will fall out. You may then delete the empty directories

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 27, 2017, 9:44am UTC](https://forums.plex.tv/t/database-outdated/219157/4 "2017-12-27T09:44:20Z")

</div>

But that isn’t a solution, it’s a temporary patch.  
A simpler solution is to enable the deletion of files in Plex server and delete the entry from there. But this is also a patch.

---

<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:** [December 27, 2017, 9:58am UTC](https://forums.plex.tv/t/database-outdated/219157/5 "2017-12-27T09:58:45Z")

</div>

No. That’s how it was designed.

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 27, 2017, 10:03am UTC](https://forums.plex.tv/t/database-outdated/219157/6 "2017-12-27T10:03:38Z")

</div>

Well, as you can see, it’s a defective design.  
Another possible solution would be to add an option to remove that entry from the library (_without affecting disk 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:** [December 27, 2017, 12:10pm UTC](https://forums.plex.tv/t/database-outdated/219157/7 "2017-12-27T12:10:57Z")

</div>

Another possible solution would be to use a supported Linux distro and away from GVFS (`/media`) which is known to have problems on the supported distros

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 27, 2017, 3:52pm UTC](https://forums.plex.tv/t/database-outdated/219157/8 "2017-12-27T15:52:54Z")

</div>

The Linux distro is irrelevant. All distros can be modified to adapt. What’s the meaning of “away from GVFS”? Can you send me a link with the explanation (and solution) of the “GVFS problem”? GVFS is used in all Gnome desktops ([https://wiki.gnome.org/Projects/gvfs](https://wiki.gnome.org/Projects/gvfs))?

---

<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:** [December 27, 2017, 4:15pm UTC](https://forums.plex.tv/t/database-outdated/219157/9 "2017-12-27T16:15:02Z")

</div>

1. Linux distro is relevant.
2. PMS isn’t packaged for Arch… PMS isn’t tested on Arch. PMS isn’t supported on Arch.
3. PMS is packaged for (Redhat) RPM and (Debian) DEB package managers not `pkg` or `tar.gz`
4. PMS is supported for those distributions specifically stated on the Downloads page.
5. Gnome GVFS (Gnome Virtual File System), visible in Nautilus (the file manager) and a common problem in Ubuntu and Debian defaults to granting exclusive access to anything mounted in `/media`. Throughout the Linux forum, you will see where I steer everyone away from it for that reason. Even I must stay away from it on Fedora (my personal system).

If you move your content to an agnostic, non-Gnome reserved directory, it will work better for you.

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 27, 2017, 7:30pm UTC](https://forums.plex.tv/t/database-outdated/219157/10 "2017-12-27T19:30:00Z")

</div>

> @ChuckPA said:
> 
> 1. Linux distro is relevant.

No, it isn’t relevant in this case.

> @ChuckPA said:  
> 2. PMS isn’t packaged for Arch… PMS isn’t tested on Arch. PMS isn’t supported on Arch.  
> 3. PMS is packaged for (Redhat) RPM and (Debian) DEB package managers not `pkg` or `tar.gz`  
> 4. PMS is supported for those distributions specifically stated on the Downloads page.

The package system is irrelevant too. Switching from an RPM to a DEB to an Arch package is quite simple.  
If it’s tested in another Linux distros, it’ll work in Arch too.  
Where is it said that PMS is not supported in Arch? ([https://support.plex.tv/hc/en-us/articles/200375666-Plex-Media-Server-Requirements](https://support.plex.tv/hc/en-us/articles/200375666-Plex-Media-Server-Requirements))  
Just because there are no _official_ packages for Arch doesn’t mean it’s not supported.

> @ChuckPA said:  
> 5. Gnome GVFS (Gnome Virtual File System), visible in Nautilus (the file manager) and a common problem in Ubuntu and Debian defaults to granting exclusive access to anything mounted in `/media`. Throughout the Linux forum, you will see where I steer everyone away from it for that reason. Even I must stay away from it on Fedora (my personal system).  
> If you move your content to an agnostic, non-Gnome reserved directory, it will work better for you.

`/media` isn’t the same than `/run/media/...` ([https://forums.plex.tv/discussion/comment/1526087#Comment\_1526087](https://forums.plex.tv/discussion/comment/1526087#Comment_1526087))  
`/media` isn’t a reserved folder for nothing. It’s a folder created by me that points to a hard disk.  
`/media` and its subfolders/files has the right permissions. As I showed in one of my previous posts.  
If this folder is reserved and/or has the wrong permissions, PMS cannot delete files, which it can.  
It could not read my media, as it does.

The bug that I commented on in my first message, which is why I opened this thread, has nothing to do with anything you’re commenting on.  
It is a design flaw (_whether done on purpose or not_). Since in some cases, like the one that has happened to me, it will not detect changes in the library.

---

<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:** [December 27, 2017, 10:01pm UTC](https://forums.plex.tv/t/database-outdated/219157/11 "2017-12-27T22:01:19Z")

</div>

If `/media` was created by you, then that’s an Arch thing. Ubuntu and Fedora create it and have problems. End of discussion.

You want PMS to be able to clean up paths which are no longer there. Let’s presume for a moment that `/media` is a network mount and, for reasons unknown, the NAS didn’t mount before PMS started. Does that mean PMS should delete everything and thereby wipe my library?

Lastly, and I say this again.

Arch is not supported.

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 28, 2017, 9:08am UTC](https://forums.plex.tv/t/database-outdated/219157/12 "2017-12-28T09:08:34Z")

</div>

This is becoming boring and repetitive.  
If you responded to provide fixes and not patches or take note of possible bugs for PMS enhancement, you would be doing your job well.

> @ChuckPA said:  
> You want PMS to be able to clean up paths which are no longer there. Let’s presume for a moment that `/media` is a network mount and, for reasons unknown, the NAS didn’t mount before PMS started. Does that mean PMS should delete everything and thereby wipe my library?

Finding a solution to that is your job, not mine. There are ways to find out if a folder is in a removable media or not. Or PMS might also allow to indicate it when you add a folder to the library.

> @ChuckPA said:  
> Lastly, and I say this again.
> 
> Arch is not supported.

Where did it say that?  
Because if it’s true I want to stop being a premium member and get my money back. I will not pay for a product that, among other things, partially supports Linux.

---

<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:** [December 28, 2017, 6:02pm UTC](https://forums.plex.tv/t/database-outdated/219157/13 "2017-12-28T18:02:37Z")

</div>

> @simonbcn said:  
> I have installed the server version 1.11.0.4633 on Arch Linux 64 bits.  
> I have defined the next settings in `Server` \> `Library`:

---

<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:** [December 28, 2017, 6:06pm UTC](https://forums.plex.tv/t/database-outdated/219157/14 "2017-12-28T18:06:01Z")

</div>

The list of supported distributions can be found at `http://downloads.plex.tv`

Please see the attached screenshot of the supported distributions

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/6/9/69b695c8365adb45bd0e0a80c1b00984cafd2378.png)

---

<div class="post-metadata">

**Author:** ![cayars](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/cayars/32/6296_2.png) [@cayars](https://forums.plex.tv/u/cayars)\
**Post date:** [December 28, 2017, 7:02pm UTC](https://forums.plex.tv/t/database-outdated/219157/15 "2017-12-28T19:02:01Z")

</div>

> @simonbcn said:  
> This is becoming boring and repetitive.  
> If you responded to provide fixes and not patches or take note of possible bugs for PMS enhancement, you would be doing your job well.  
> Yes I agree as well.  
> [https://support.plex.tv/hc/en-us/articles/200375666-Plex-Media-Server-Requirements](https://support.plex.tv/hc/en-us/articles/200375666-Plex-Media-Server-Requirements)  
> We have official Plex Media Server releases available for the following Linux Distributions:

Ubuntu 10.04 or newer  
Fedora 14 or newer  
CentOS 6 or newer

Clear as a bell what versions of Linux are supported. That doesn’t mean you can’t make it work on others but if you insist on doing it your own way then you can’t really come here complaining when something doesn’t work as you expect on an UNSUPPORTED OS.

> > @ChuckPA said:  
> > You want PMS to be able to clean up paths which are no longer there. Let’s presume for a moment that `/media` is a network mount and, for reasons unknown, the NAS didn’t mount before PMS started. Does that mean PMS should delete everything and thereby wipe my library?
> 
> Finding a solution to that is your job, not mine. There are ways to find out if a folder is in a removable media or not. Or PMS might also allow to indicate it when you add a folder to the library.

Plex can not and WILL NOT remove your media if the “root” is gone/missing. This would be foolish and would cause a lot of trouble. What if you have a HDD failure, USB drive come unplugged, or a network mount that didn’t mount correctly? Do you want Plex to remove all the work that could have taken days to do (much longer if using indexes) just because it can’t get to them at any point in time?

Plex provides several proper ways for you to remove your data such as removing the sub directories, using Plex itself to tag and remove or by editing your library entries.

> > @ChuckPA said:  
> > Lastly, and I say this again.
> > 
> > Arch is not supported.
> 
> Where did it say that?  
> Because if it’s true I want to stop being a premium member and get my money back. I will not pay for a product that, among other things, partially supports Linux.

The very first line of your first post “I have installed the server version 1.11.0.4633 on Arch Linux 64 bits.”

Chuck has been explaining over and over again why it’s not supported. Again doesn’t mean you can rig it/force it to work but when things don’t work as expected you can’t come here saying it’s broke when it’s not on supported OSes.

Carlo

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 31, 2017, 1:22pm UTC](https://forums.plex.tv/t/database-outdated/219157/16 "2017-12-31T13:22:48Z")

</div>

Another similar error.  
I have changed the folder name from `/media` to `/multimedia` since, after a little research, it is true that the `/media` folder is used by Gnome (_if it exists_) as if it were a removable device.  
I have changed the configuration of the PMS:

```auto
$ cat /etc/conf.d/plexmediaserver
LD_LIBRARY_PATH=/opt/plexmediaserver
PLEX_MEDIA_SERVER_HOME=/opt/plexmediaserver
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/multimedia
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
PLEX_MEDIA_SERVER_TMPDIR=/tmp
TMPDIR=/tmp

```

and I have changed all libraries folders to equivalent in `/multimedia`.  
All right until here but today I have moved **a file** to another folder ( **_a folder not monitored by PMS_** ) but PMS still it shows it:

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/e/d/ed373a28d6daadee3fb7a5b2cf1abefe581b1ac1.png)

The parent folder exists, I haven’t delete it:

```auto
$ stat /multimedia/Transmission/varios
  File: /multimedia/Transmission/varios
  Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 811h/2065d	Inode: 62742529 Links: 2
Access: (2775/drwxrwsr-x) Uid: ( 1000/ juan) Gid: ( 992/ plex)

```

Then, isn’t this a PMS bug?  
In this case, the parent folder still exists and it is activated the `Update my library automatically` setting.

---

<div class="post-metadata">

**Author:** ![simonbcn](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/simonbcn/32/84090_2.png) [@simonbcn](https://forums.plex.tv/u/simonbcn)\
**Post date:** [December 31, 2017, 1:38pm UTC](https://forums.plex.tv/t/database-outdated/219157/17 "2017-12-31T13:38:08Z")

</div>

I have the same, in another folder, but it has worked well. Perhaps it has been a puntual error.

---

<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:** [January 8, 2020, 12:21am UTC](https://forums.plex.tv/t/database-outdated/219157/18 "2020-01-08T00:21:10Z")

</div>


