Many errors in log

Hello, i don’t exactly for to post.

I have a problem.
It is some days that after some minutes my playing stops and exit and i cannot make it restart.
After this stop i cannot even manually restart plex. I have to reboot my machine.

Here is the log.
https://paste2.org/x96U2bXt
You can find the errors at the end of file, that is the hour i had this problem yesterday.
Tnx

The storage of your Plex Meta Data has problems: Cannot begin transaction. database is locked. It’s usually in /var/lib/plexmediaserver/Library/Application Support/Plex Media Server. Please tell us more about the file system used for your Meta Data.

I’m using ubuntu 18.04.

Here are rights:

~$ ls -lha "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server"
totale 64K
drwxr-xr-x 14 plex plex 4,0K giu 26 19:50  .
drwxr-xr-x  3 plex plex 4,0K mag 30  2017  ..
drwxr-xr-x  6 plex plex 4,0K giu 27 13:22  Cache
drwxr-xr-x  5 plex plex 4,0K giu 26 16:32  Codecs
drwxr-xr-x 50 plex plex 4,0K giu 26 16:31 'Crash Reports'
drwxr-xr-x  2 plex plex 4,0K mag  4 01:05  Diagnostics
drwxr-xr-x  3 plex plex 4,0K giu 27 08:21  Logs
drwxr-xr-x  3 plex plex 4,0K ago 22  2014  Media
drwxr-xr-x  3 plex plex 4,0K nov 28  2014 'Media Upload'
drwxr-xr-x  7 plex plex 4,0K gen  2 17:25  Metadata
-rw-r--r--  1 plex plex    4 giu 26 19:49  plexmediaserver.pid
drwxr-xr-x  8 plex plex 4,0K giu  9 15:46  Plug-ins
drwxr-xr-x  7 plex plex 4,0K ago 21  2014 'Plug-in Support'
-rw-------  1 plex plex 1,3K giu 26 19:50  Preferences.xml
drwxr-xr-x  2 plex plex 4,0K ago 22  2014  Scanners
drwxr-xr-x  3 plex plex 4,0K mag  5  2015  Thumbnails

What esle should help?

And this is for DB:

:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases$ ls -lha
totale 1,2G
drwxr-xr-x 2 plex plex 4,0K giu 26 16:31 .
drwxr-xr-x 7 plex plex 4,0K ago 21  2014 ..
-rw-r--r-- 1 plex plex  13M mag 18 13:35 com.plexapp.dlna.db
-rw-r--r-- 1 plex plex 486K giu  9 15:44 com.plexapp.plugins.library.blobs.db
-rw-r--r-- 1 plex plex    0 mag 17 08:33 com.plexapp.plugins.library.blobs.db-2018-05-17-tmp
-rw-r--r-- 1 plex plex 486K giu 13 01:31 com.plexapp.plugins.library.blobs.db-2018-06-13
-rw-r--r-- 1 plex plex 486K giu 16 01:24 com.plexapp.plugins.library.blobs.db-2018-06-16
-rw-r--r-- 1 plex plex 486K giu 22 01:03 com.plexapp.plugins.library.blobs.db-2018-06-22
-rw-r--r-- 1 plex plex 486K giu 25 01:01 com.plexapp.plugins.library.blobs.db-2018-06-25
-rw-r--r-- 1 plex plex 486K mag 17 08:33 com.plexapp.plugins.library.blobs.db.original
-rw-r--r-- 1 plex plex  32K giu 26 19:50 com.plexapp.plugins.library.blobs.db-shm
-rw-r--r-- 1 plex plex    0 giu 26 16:31 com.plexapp.plugins.library.blobs.db-wal
-rw-r--r-- 1 plex plex 153M giu 27 08:24 com.plexapp.plugins.library.db
-rw-r--r-- 1 plex plex 151M giu 13 01:31 com.plexapp.plugins.library.db-2018-06-13
-rw-r--r-- 1 plex plex 152M giu 16 01:23 com.plexapp.plugins.library.db-2018-06-16
-rw-r--r-- 1 plex plex 153M giu 22 01:03 com.plexapp.plugins.library.db-2018-06-22
-rw-r--r-- 1 plex plex 154M giu 25 01:01 com.plexapp.plugins.library.db-2018-06-25
-rw-r--r-- 1 plex plex 132M feb 20 21:04 com.plexapp.plugins.library.db.old
-rw-r--r-- 1 plex plex 151M mag 18 13:33 com.plexapp.plugins.library.db.original
-rw-r--r-- 1 plex plex  32K giu 27 08:39 com.plexapp.plugins.library.db-shm
-rw-r--r-- 1 plex plex 1,3M giu 27 08:38 com.plexapp.plugins.library.db-wal
-rw-r--r-- 1 plex plex 4,3M giu 26 21:04 com.plexapp.plugins.trakttv.db
-rw-r--r-- 1 plex plex  32K giu 27 08:36 com.plexapp.plugins.trakttv.db-shm
-rw-r--r-- 1 plex plex 1,8M giu 27 08:36 com.plexapp.plugins.trakttv.db-wal
-rw-r--r-- 1 plex plex 146M mag 18 13:37 dump.sql

What I meant was: is this local ext4 storage or are those locations stored on some network drive or external NTFS drive or something like this?

My plex location is on an internal ssd disk where root is mounted. With fdisk -l i have

Disk /dev/mapper/ubuntu--vg-root: 117,8 GiB, 126466654208 bytes, 247005184 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

My movie files are on an unionfuse mount dir. Where 2 locations are usb HDD and 1 is a gdrive mounted with rclone i mounted like this:

unionfs-fuse -o cow,allow_other /FIRST_USB_HDD=RW:/SECOND_USB_HDD=RW:/GDRIVE=RW /media/google_crypt/crypt/Movies

Do you need some other info?

Local SSD is fine :slight_smile: However, somehow the access to your sqlite db is veeeeeery slow. Is there something special about your hardware?

Please perform a global “Optimize Database” behind “…” in next to “Libraries” in the web frontend.

Do you use special Plex plugins? Maybe, one of those plugins locks the database too long?

When did you trim your SSD the last time?

I’m using a NUC. I’ve used for about 4 years and never had problems, Now it is about 1 mouth that i have this problem. I though it was a problem with my OS, so i reisntall new OS about 1 week ago. Before doing it made a backup of /var/lib/plexmediaserver folder and restore it. But the problem is still there.

About plugins i just have trakt.tv and webtools, anything else. I have my user and 4 managed user that are my family.

what do you mean when i did trim my ssd? How to do it?

I’m afraid my filesystem is not EXT4

df -T | awk '{print $1,$2,$NF}' | grep "^/sda"
/dev/sda1 vfat /boot/efi

That’s just the EFI System Partition, not your Linux system. Please take a look at mount. It will tell you more about your partitions. You also use lvm2, so you won’t find the sda2 in your output.

Regarding trim, please read the answer in the following post:

So it shoud be ext4 right?:


mount 

/dev/mapper/ubuntu--vg-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)

I gave:

fstrim -v /
/: 78,5 GiB (84264148992 bytes) trimmed

Do you think it could help for plex DB problem?

Yes, it is ext4. Perfect.

Definitively :sweat_smile: Trim, i.e. garbage collection, is crucial for the health and performance of SSDs. 80GB have been garbage collected right now, so your SSD could not operate normally before.Please do the “Optimize Database” one more time.

Tnx so much, tonight all have been OK watching a movie

Do you think it is ok to make a trim once a day?

One a week is enough. Just enable the following timer and it will be done automatically.

sudo systemctl enable fstrim.timer

Oh noo, it happened again today.
I was watching a movie and it stopped at about 12:38 am

Here is the log from when i begun to watch till when i reboot my machine.
https://paste2.org/YJt2cMGX

I’m using atv4 to watch.

Any other idea?

I just tried to trim again, and again i have like yesterday, is it normal?

fstrim -v /                               
/: 78,2 GiB (83935956992 bytes) trimmed

I had to educate myself on this: Linux looses the information about the previous trim state at reboot. Thus, the first trim after a reboot always reports the complete unused space on the drive. So that’s normal and nothing to worry about.

The logs look OK to me and the database query times are now OK-ish. The only other unusual things I can think of are your unionfs-fuse configuration and your google drive setup. Please get rid of the unionfs configuration if possible. You can add multiple directories to a single plex library. And how do you mount google drive? rclone cache or something else? Did you watch a movie from google drive? A hung fuse file system operation could also cause your current issues.

About unionfuse, i use it because i have some movies in local and some on google drive.
When i have a movie locally i want to use it. If i add 2 different folders on plex library (local and remote) i don’t know which version is local and which is remote. Is there a way to found out origin or to tell plex to use one folder first?

About rclone i use cache and encrypted data. It is lot of time a use rclone and cache and i feel it works fine.
Also on my remote serve i have the same with no problem.

The difference is unionfs (that i don’t use on my vps). Maybe that is the problem. Do you have a suggestion on how to check if it is the problem without getting rid of it?
Do you know if there is another way to mount it different from mine?
unionfs-fuse -o cow,allow_other /FIRST_USB_HDD=RW:/SECOND_USB_HDD=RW:/GDRIVE=RW /media/google_crypt/crypt/Movies

There is still something wrong with my plex.
Yesterday night it stoped playing no way to resume movie i was watching.

It was late and i when bed.

This morning i saw my plex web ui was stack in library scan so i gave a ps via terminal and this is what i see.:

ps -aux | grep plex
plex      1400  0.0  0.0   4628   704 ?        Ss   giu28   0:00 /bin/sh -c LD_LIBRARY_PATH=/usr/lib/plexmediaserver "/usr/lib/plexmediaserver/Plex Media Server"
plex      1405  1.7  5.0 1356496 201532 ?      Sl   giu28 124:26 /usr/lib/plexmediaserver/Plex Media Server
plex      1565  0.1  2.7 1742380 107368 ?      SNl  giu28  13:39 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-20455f518/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.3.5208-20455f518 /usr/lib/plexmediaserver/Resources/Plug-ins-20455f518/System.bundle
plex      1777  0.8  1.3 1623780 55372 ?       Sl   giu28  59:19 Plex Plug-in [com.plexapp.plugins.trakttv] /usr/lib/plexmediaserver/Resources/Plug-ins-20455f518/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.3.5208-20455f518 /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Trakttv.bundle
plex      1779  0.0  0.0 963084  3176 ?        Sl   giu28   3:11 Plex Plug-in [com.plexapp.plugins.WebTools] /usr/lib/plexmediaserver/Resources/Plug-ins-20455f518/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.13.3.5208-20455f518 /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/WebTools.bundle
plex      1819  0.0  0.0 523096  1232 ?        Sl   giu28   2:51 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.13.3.5208-20455f518 32600 /waitmutex
root      3091  0.0  0.0   4628   816 ?        Ss   04:00   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3104  0.0  0.7  94996 29504 ?        S    04:00   0:16 python /root/scripts/python-plexlibrary/plexlibrary watchlist
plex      3132  0.0  0.0      4     4 ?        SN   04:00   0:00 [Plex Media Serv]
root      3153  0.0  0.0   4628   780 ?        Ss   04:01   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3157  0.0  0.7  94964 29488 ?        S    04:01   0:16 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3199  0.0  0.0   4628   924 ?        Ss   04:02   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3204  0.0  0.7  94972 29300 ?        S    04:02   0:15 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3241  0.0  0.0   4628   920 ?        Ss   04:03   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3247  0.0  0.7  94972 29492 ?        S    04:03   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3283  0.0  0.0   4628   884 ?        Ss   04:04   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3286  0.0  0.7  94972 29468 ?        S    04:04   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3343  0.0  0.0   4628   808 ?        Ss   04:05   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3347  0.0  0.7  94976 29440 ?        S    04:05   0:16 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3405  0.0  0.0   4628   864 ?        Ss   04:06   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3409  0.0  0.7  94976 29456 ?        S    04:06   0:15 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3464  0.0  0.0   4628   788 ?        Ss   04:07   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3468  0.0  0.7  94972 29432 ?        S    04:07   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3514  0.0  0.0   4628   776 ?        Ss   04:08   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3523  0.0  0.7  94980 29528 ?        S    04:08   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3563  0.0  0.0   4628   784 ?        Ss   04:09   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3568  0.0  0.7  94972 29528 ?        S    04:09   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3630  0.0  0.0   4628   884 ?        Ss   04:10   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3632  0.0  0.7  94892 29456 ?        S    04:10   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3696  0.0  0.0   4628   924 ?        Ss   04:11   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3700  0.0  0.7  94884 29432 ?        S    04:11   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3782  0.0  0.0   4628   776 ?        Ss   04:12   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3785  0.0  0.7  94964 29296 ?        S    04:12   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3876  0.0  0.0   4628   860 ?        Ss   04:13   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3882  0.0  0.7  94972 29444 ?        S    04:13   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3958  0.0  0.0   4628   860 ?        Ss   04:14   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      3962  0.0  0.7  94972 29524 ?        S    04:14   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4051  0.0  0.0   4628   788 ?        Ss   04:15   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4060  0.0  0.7  94896 29304 ?        S    04:15   0:15 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4150  0.0  0.0   4628   864 ?        Ss   04:16   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4153  0.0  0.7  94968 29488 ?        S    04:16   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4242  0.0  0.0   4628   832 ?        Ss   04:17   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4244  0.0  0.7  94900 29528 ?        S    04:17   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4334  0.0  0.0   4628   832 ?        Ss   04:18   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4338  0.0  0.7  94980 29376 ?        S    04:18   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4449  0.0  0.0   4628   784 ?        Ss   04:19   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4455  0.0  0.7  94892 29368 ?        S    04:19   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4562  0.0  0.0   4628   924 ?        Ss   04:20   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4569  0.0  0.7  94892 29500 ?        S    04:20   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4666  0.0  0.0   4628   804 ?        Ss   04:21   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4671  0.0  0.7  94896 29440 ?        S    04:21   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4750  0.0  0.0   4628   828 ?        Ss   04:22   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4751  0.0  0.7  94968 29300 ?        S    04:22   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4830  0.0  0.0   4628   780 ?        Ss   04:23   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4834  0.0  0.7  94972 29428 ?        S    04:23   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4905  0.0  0.0   4628   888 ?        Ss   04:24   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4908  0.0  0.7  94956 29548 ?        S    04:24   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      4998  0.0  0.0   4628   832 ?        Ss   04:25   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5001  0.0  0.7  94984 29472 ?        S    04:25   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5111  0.0  0.0   4628   816 ?        Ss   04:26   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5115  0.0  0.7  94972 29376 ?        S    04:26   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5250  0.0  0.0   4628   828 ?        Ss   04:27   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5254  0.0  0.7  94964 29524 ?        S    04:27   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5409  0.0  0.0   4628   888 ?        Ss   04:28   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5417  0.0  0.7  94956 29360 ?        S    04:28   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5541  0.0  0.0   4628   784 ?        Ss   04:29   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5543  0.0  0.7  94892 29368 ?        S    04:29   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5588  0.0  0.0   4628   880 ?        Ss   04:30   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5593  0.0  0.7  94972 29440 ?        S    04:30   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5654  0.0  0.0   4628   776 ?        Ss   04:31   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5657  0.0  0.7  94968 29492 ?        S    04:31   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5688  0.0  0.0   4628   852 ?        Ss   04:32   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5692  0.0  0.7  94980 29316 ?        S    04:32   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5730  0.0  0.0   4628   812 ?        Ss   04:33   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5734  0.0  0.7  94972 29368 ?        S    04:33   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5772  0.0  0.0   4628   852 ?        Ss   04:34   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5781  0.0  0.7  94896 29448 ?        S    04:34   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5821  0.0  0.0   4628   880 ?        Ss   04:35   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5826  0.0  0.7  94968 29404 ?        S    04:35   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5878  0.0  0.0   4628   780 ?        Ss   04:36   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5883  0.0  0.7  94968 29528 ?        S    04:36   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5947  0.0  0.0   4628   812 ?        Ss   04:37   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5950  0.0  0.7  94896 29560 ?        S    04:37   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5994  0.0  0.0   4628   920 ?        Ss   04:38   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      5996  0.0  0.7  94948 29300 ?        S    04:38   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6046  0.0  0.0   4628   856 ?        Ss   04:39   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6051  0.0  0.7  94900 29508 ?        S    04:39   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6094  0.0  0.0   4628   788 ?        Ss   04:40   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6099  0.0  0.7  94968 29552 ?        S    04:40   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6153  0.0  0.0   4628   828 ?        Ss   04:41   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6156  0.0  0.7  94960 29412 ?        S    04:41   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6201  0.0  0.0   4628   924 ?        Ss   04:42   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6207  0.0  0.7  94976 29428 ?        S    04:42   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6242  0.0  0.0   4628   864 ?        Ss   04:43   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6245  0.0  0.7  94956 29432 ?        S    04:43   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6292  0.0  0.0   4628   808 ?        Ss   04:44   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6299  0.0  0.7  94968 29516 ?        S    04:44   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6336  0.0  0.0   4628   812 ?        Ss   04:45   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6343  0.0  0.7  94980 29412 ?        S    04:45   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6373  0.0  0.0   4628   924 ?        Ss   04:46   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6381  0.0  0.7  94936 29556 ?        S    04:46   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6414  0.0  0.0   4628   760 ?        Ss   04:47   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6421  0.0  0.7  94892 29556 ?        S    04:47   0:14 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6455  0.0  0.0   4628   804 ?        Ss   04:48   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6458  0.0  0.7  94964 29368 ?        S    04:48   0:13 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6500  0.0  0.0   4628   816 ?        Ss   04:49   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6505  0.0  0.7  94972 29492 ?        S    04:49   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6543  0.0  0.0   4628   784 ?        Ss   04:50   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6546  0.0  0.7  94976 29556 ?        S    04:50   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6594  0.0  0.0   4628   920 ?        Ss   04:51   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6597  0.0  0.7  94900 29412 ?        S    04:51   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6636  0.0  0.0   4628   884 ?        Ss   04:52   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6640  0.0  0.7  94964 29432 ?        S    04:52   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6708  0.0  0.0   4628   808 ?        Ss   04:53   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6716  0.0  0.7  94976 29436 ?        S    04:53   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6757  0.0  0.0   4628   788 ?        Ss   04:54   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6758  0.0  0.7  94964 29496 ?        S    04:54   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6793  0.0  0.0   4628   864 ?        Ss   04:55   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6797  0.0  0.7  94976 29476 ?        S    04:55   0:11 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6829  0.0  0.0   4628   772 ?        Ss   04:56   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6833  0.0  0.7  94960 29296 ?        S    04:56   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6869  0.0  0.0   4628   920 ?        Ss   04:57   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6872  0.0  0.7  94988 29556 ?        S    04:57   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6907  0.0  0.0   4628   780 ?        Ss   04:58   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6912  0.0  0.7  94900 29560 ?        S    04:58   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6947  0.0  0.0   4628   836 ?        Ss   04:59   0:00 /bin/sh -c python /root/scripts/python-plexlibrary/plexlibrary watchlist
root      6951  0.0  0.7  94980 29468 ?        S    04:59   0:12 python /root/scripts/python-plexlibrary/plexlibrary watchlist
fabio    15241  0.0  0.0  21536  1056 pts/0    S+   08:44   0:00 grep --color=auto plex
plex     23372  0.0  0.0      4     4 ?        D    lug02   0:00 [Plex Media Serv]
plex     23459  0.0  0.0      4     4 ?        D    lug02   0:00 [Plex Media Serv]
plex     23463  0.0  0.0      4     4 ?        D    lug02   0:00 [Plex Media Serv]
plex     23477  0.0  0.0      4     4 ?        D    lug02   0:00 [Plex Media Serv]
plex     23479  0.0  0.0      4     4 ?        D    lug02   0:00 [Plex Media Serv]
plex     28778  0.0  0.0      4     4 ?        D    01:09   0:00 [Plex Media Serv]
plex     30995  0.0  0.0      4     4 ?        S    02:10   0:00 [Plex Media Serv]

Sure it is something not good.
If i give a
service plexmediaserver stop
nothing happens.
The only option seems to be a reboot, but what can i try to do not to have this?

Is it can help here is the log from when i had the problem
https://paste2.org/3ZMW3b4M

Please do not mix the gdrive with the normal HDDs in an unionfs. That won’t work. And also disable any automatic scan and scheduled scan and “Perform extensive media analysis during maintenance”. This will get you temp banned by google periodically. And of course this could result in the hung processes you are seeing above.

Please create two different movie libraries and do not use unionfs at all. Library 1: add both HDDs. Library 2: only add gdrive. Manually “Scan Library Files”.

And make sure your rclone setup is the following “cloud remote -> cache -> crypt” and not the other way around.

https://rclone.org/cache/

In summary, your setup is very experimental. If it does work, perfect, if it does not we can just guess because your setup is very special and uses beta software with known problems. And this software is out of scope of Plex support.

Edit: I just saw, that you are using another external tool to perform library scans. Please also disable this with gdrive.