TV Shows not finding ANY matches

It looks like you’re mounting that drive as root which means they’re not visible to the plex (linux) user

When a ls -la is performed, the . and .. entries are also listed.
These are very important at this point as they show the directory permissions.

May I see them?

As supplemental test

drwxr-xr-x. 2 chuck chuck 4096 Jan 20 11:32 ./
drwxr-xr-x. 8 chuck chuck 4096 Sep 29  2016 ../
-rw-r--r--. 1 chuck chuck   28 Jan 20 11:32 Angel - S01E01 - City of.mkv
-rw-r--r--. 1 chuck chuck   34 Jan 20 11:32 Angel - S01E02 - Lonely Hearts.mkv
-rw-r--r--. 1 chuck chuck   32 Jan 20 11:32 Angel - S01E03 - In the Dark.mkv
-rw-r--r--. 1 chuck chuck   37 Jan 20 11:32 Angel - S01E04 - I Fall to Pieces.mkv
-rw-r--r--. 1 chuck chuck   30 Jan 20 11:32 Angel - S01E05 - Rm w+a Vu.mkv
-rw-r--r--. 1 chuck chuck   40 Jan 20 11:32 Angel - S01E06 - Sense & Sensitivity.mkv
-rw-r--r--. 1 chuck chuck   35 Jan 20 11:32 Angel - S01E07 - Bachelor Party.mkv
-rw-r--r--. 1 chuck chuck   40 Jan 20 11:32 Angel - S01E08 - I Will Remember You.mkv
-rw-r--r--. 1 chuck chuck   25 Jan 20 11:32 Angel - S01E09 - Hero.mkv
-rw-r--r--. 1 chuck chuck   34 Jan 20 11:32 Angel - S01E10 - Parting Gifts.mkv
-rw-r--r--. 1 chuck chuck   33 Jan 20 11:32 Angel - S01E11 - Somnambulist.mkv
-rw-r--r--. 1 chuck chuck   30 Jan 20 11:32 Angel - S01E12 - Expecting.mkv
-rw-r--r--. 1 chuck chuck   24 Jan 20 11:32 Angel - S01E13 - She.mkv
-rw-r--r--. 1 chuck chuck   47 Jan 20 11:32 Angel - S01E14 - I've Got You Under My Skin.mkv
-rw-r--r--. 1 chuck chuck   33 Jan 20 11:32 Angel - S01E15 - The Prodigal.mkv
-rw-r--r--. 1 chuck chuck   29 Jan 20 11:32 Angel - S01E16 - The Ring.mkv
-rw-r--r--. 1 chuck chuck   29 Jan 20 11:32 Angel - S01E17 - Eternity.mkv
-rw-r--r--. 1 chuck chuck   33 Jan 20 11:32 Angel - S01E18 - Five by Five.mkv
-rw-r--r--. 1 chuck chuck   30 Jan 20 11:32 Angel - S01E19 - Sanctuary.mkv
-rw-r--r--. 1 chuck chuck   29 Jan 20 11:32 Angel - S01E20 - War Zone.mkv
-rw-r--r--. 1 chuck chuck   31 Jan 20 11:32 Angel - S01E21 - Blind Date.mkv
-rw-r--r--. 1 chuck chuck   39 Jan 20 11:32 Angel - S01E22 - To Shanshu in L.A..mkv
[chuck@lizum Season 01.208]$ 

Matching of MKV is fine.

Remaining questions:

  1. Can the files be read?
  2. Is there embedded and conflicting naming information in the AVI files themselves?
  1. Can the files be read?
    Logging off of root and logging back in as my only other user admuser, I can read and interact with the files on the linux console. (admuser does not have sudo)

  2. Is there embedded and conflicting naming information in the AVI files themselves?
    I checked the properties, and I don’t see any information for naming properties inside of them.

Here is my rclone mount command for episodes (complete duplicate for movies and music, just changed the locations):
rclone --allow-non-empty --allow-other mount gdrive:Episodes /mnt/gdrive/episodes --size-only --dir-cache-time=2m --vfs-read-chunk-size=64M --vfs-cache-max-age=675h --vfs-read-chunk-size-limit=1G --buffer-size=32M

And here is my rclone-episodes.service service:
[Unit]
Description=Google Drive-Episodes (rclone)
AssertPathIsDirectory=/mnt/gdrive/episodes
After=plexdrive.service

[Service]
Type=simple
ExecStart=/usr/bin/rclone --allow-non-empty --allow-other mount gdrive:Episodes /mnt/gdrive/episodes --size-only --dir-cache-time=2m --vfs-read-chunk-size=64M --vfs-cache-max-age=675h --vfs-read-chunk-size-limit=1G --buffer-size=32M
ExecStop=/bin/fusermount -u /mnt/gdrive/episodes
Restart=always
RestartSec=10

[Install]
WantedBy=default.target

Should i update something?

Can user plex read the mount point directory path when unmounted?
It needs to. I cannot tell if you’re root or another username in the output above but assume ‘root’.

  1. Unmount the gdrive
  2. chown 755 /mnt/gdrive /mnt/gdrive/episodes
  3. Mount the gdrive

(I did that long hand not knowing what else might be in /mnt. Please adjust accordingly)

not sure how to check if plex can/cannot read a directory when it is unmounted.

plex listing 4

With the gdrive unmounted nobody and nothing can read the directory /mnt/gdrive/episodes. (refer to above picture.)

Per a previous post I saw of yours, (Linux password for 'plex' user) , you mention it is probably best to leave plex with its impossible password, so I don’t know what plex can/cannot see.

I think the problem may be something with this version of the Plex Media Server, because I just went and added 4 movies and it also could not find the metadata for that as well. What was the version for Ubuntu before 1.18.4.2171? Does anyone have the list of versions?

EDIT- Well I tried downgrading, but now the logs show “Timeout or error reading status line from plug-in pipe [com.plexapp.agents.thetvdb], were killing it.” and “Error received reading configuration for com.plexapp.agents.thetvdb”

I am getting quite frustrated with this.

Plex Media Server Logs_2020-01-20_18-57-33.zip (1.4 MB)

Are you going to use 1.18.4 or 1.18.5 ?

In the 1.18.5 server log, I do see it looking at Angel:

Jan 20, 2020 18:53:20.202 [0x7f18d1ffb700] DEBUG - HTTP requesting GET https://plex.tv/servers/b2193ee7e586c22bd65ceb7536de27e8a6001f69/sync_lists?auth_token=xxxxxxxxxxxxxxxxxxxx
Jan 20, 2020 18:53:20.385 [0x7f18eaffd700] DEBUG - [Notify] Now watching "/mnt/gdrive/episodes/Angel/Season 00"
Jan 20, 2020 18:53:20.570 [0x7f18eaffd700] DEBUG - [Notify] Now watching "/mnt/gdrive/episodes/Angel/Season 01"
Jan 20, 2020 18:53:20.842 [0x7f18eaffd700] DEBUG - [Notify] Now watching "/mnt/gdrive/episodes/Angel/Season 02"
Jan 20, 2020 18:53:21.043 [0x7f18eaffd700] DEBUG - [Notify] Now watching "/mnt/gdrive/episodes/Angel/Season 03"

Installing a version, running it or 2 minutes, and expecting it to work will not happen.

It takes 1 minute to recover from the change and stabilize especially when bouncing from 1.18.5 -> 1.18.0.

I have done some investigating.

  1. Please look at your directory listing of episodes. Notice the d???????? ?
  2. This is a stale connection as far as the fuse mount is concerned.

I just mounted my google drive to verify.

[chuck@lizum ~.186]$ sudo rclone --config /home/chuck/.rclone.conf mount gdrive:/Music /mnt
[chuck@lizum ~.187]$ mount | grep gdrive
gdrive:Music on /mnt type fuse.rclone (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
[chuck@lizum ~.188]$ sudo ls -la /mnt
total 0
drwxr-xr-x. 1 root root 0 Aug 22 19:01 MP3-1
drwxr-xr-x. 1 root root 0 Aug 22 19:07 MP3-2
drwxr-xr-x. 1 root root 0 Aug 22 19:11 MP3-2x
drwxr-xr-x. 1 root root 0 Aug 22 19:56 MP3-3
drwxr-xr-x. 1 root root 0 Aug 22 20:10 MP3-4
drwxr-xr-x. 1 root root 0 Aug 22 20:10 MP3-5
drwxr-xr-x. 1 root root 0 Aug 22 20:10 MP3-6
drwxr-xr-x. 1 root root 0 Aug 22 20:10 MP3-7
drwxr-xr-x. 1 root root 0 Aug 22 20:10 MP3-8
drwxr-xr-x. 1 root root 0 Aug 22 20:10 MP3-9
drwxr-xr-x. 1 root root 0 Aug 23 12:27 MP3-Special
[chuck@lizum ~.189]$ 

Since everything at google is root, I needed root privilege to mount and access.

Lastly, as expected, user plex can’t access it. (it can’t be seen)

I will investigate further but this part of it isn’t a Plex issue.

Chuck:

That problem was directly in response to your post:

Can user plex read the mount point directory path when unmounted?
It needs to. I cannot tell if you’re root or another username in the output above but assume ‘root’.

  1. Unmount the gdrive
  2. chown 755 /mnt/gdrive /mnt/gdrive/episodes
  3. Mount the gdrive

(I did that long hand not knowing what else might be in /mnt. Please adjust accordingly)

‐----------

Out of curiosity can you share with me your rclone connection string. Perhaps mine is causing the issues…

I don’t think I’m understanding your request.
As I understand rclone, a simple rclone mount host:/path /dest is all that’s needed.

I removed the elevated privilege and brought it down to my UID.

[chuck@lizum debian.204]$ sudo rclone --config /home/chuck/.rclone.conf mount gdrive:/Music /google
^C[chuck@lizum debian.205]$ rclone --config /home/chuck/.rclone.conf mount gdrive:/Music /google

Now, accessing as myself, all normal permission bits are there. Notice I didn’t specify any special options on the command line.

I am going to copy up some more music and verify against PMS again.

[chuck@lizum ~.195]$ ls /google
MP3-1/  MP3-2/  MP3-2x/  MP3-3/  MP3-4/  MP3-5/  MP3-6/  MP3-7/  MP3-8/  MP3-9/  MP3-Special/
[chuck@lizum ~.196]$ whoami
chuck
[chuck@lizum ~.197]$ ls -lsR MP3-1
/bin/ls: cannot access 'MP3-1': No such file or directory
[chuck@lizum ~.198]$ ls -la /google/MP3-1
total 59368
-rw-r--r--. 1 chuck chuck 3621197 Aug 22 19:04 Angel Eyes.mp3
-rw-r--r--. 1 chuck chuck 2425363 Aug 22 19:03 As Time Goes By.mp3
-rw-r--r--. 1 chuck chuck 2554518 Aug 22 19:03 A Time For Us.mp3
-rw-r--r--. 1 chuck chuck 5578384 Aug 22 19:02 Believe.mp3
-rw-r--r--. 1 chuck chuck 2256351 Aug 22 19:03 Desperado.mp3
-rw-r--r--. 1 chuck chuck 3444667 Aug 22 19:04 In The Mood.mp3
-rw-r--r--. 1 chuck chuck 4121028 Aug 22 19:05 Irving Berlin Medley.mp3
-rw-r--r--. 1 chuck chuck 3677143 Aug 22 19:04 Memories.mp3
-rw-r--r--. 1 chuck chuck 4172821 Aug 22 19:03 Moondance.mp3
-rw-r--r--. 1 chuck chuck 1051496 Aug 22 19:05 Moon River.mp3
-rw-r--r--. 1 chuck chuck 1571954 Aug 22 19:05 Musicbox Dancer.mp3
-rw-r--r--. 1 chuck chuck 1866748 Aug 22 19:05 My Heart Will Go On.mp3
-rw-r--r--. 1 chuck chuck    1335 Aug 22 19:02 Refrigerator Art 2.m3u
-rw-r--r--. 1 chuck chuck 3138288 Aug 22 19:05 Route 66.mp3
-rw-r--r--. 1 chuck chuck 3378164 Aug 22 19:07 Serenade In Blue.mp3
-rw-r--r--. 1 chuck chuck 1797177 Aug 22 19:05 Shangri La.mp3
-rw-r--r--. 1 chuck chuck 3814976 Aug 22 19:06 She Believes In Me.mp3
-rw-r--r--. 1 chuck chuck 2137971 Aug 22 19:06 Somewhere Over The Rainbow.mp3
-rw-r--r--. 1 chuck chuck 4249150 Aug 22 19:07 That Ol' Wind.mp3
-rw-r--r--. 1 chuck chuck 2842744 Aug 22 19:06 They Call It The Blues.mp3
-rw-r--r--. 1 chuck chuck 3086299 Aug 22 19:07 Wind Beneath My Wings.mp3
[chuck@lizum ~.199]$ 

What does your config file contain… as I don’t utilize those currently.

Also how do you get this to run as your local user as a service?

In the service file, just as you can with any .service,
specify the User= and Group=

Using Plex as an example, you’ll want

  1. Environment variable assignments
  2. ExecStartPre (if needed)
  3. ExecStart (which is the rclone itself)
  4. User= (the user to run as)
  5. Group= (group to assign to)

This part of the Plex service file makes a great starting point

Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

Thank you, and what does your rclone config file contain… as I don’t utilize those currently.

I don’t use rclone on a regular basis. I have 110TB of local NAS storage instead.

In order to help diagnose what you’re seeing, I’m uploading my QA TV library now to google and will manually start it from the shell.

Would you like the ExecStart command or see my config within rclone itself?

If you dont mind both… This is my 2nd server that I maintain, my primary has a 16TB local NAS without these problems, but my upload speeds suck, so I maintain thos one for watching when I am remote.

My upload is worse than abysmal. 40 down, 1.5 up. All this presumes the goats haven’t chewed the wires again.

This is all my rclone has in it.

[gdrive]
type = drive
scope = drive
token = {"access_token":"[redacted]","token_type":"Bearer","refresh_token":"[redacted]","expiry":"2020-01-21T13:25:17.286365527-05:00"}
client_id =

Hmmm…

Not much different than mine (traveling at the moment, so not the greatest connection.) I will try the changes you suggested later this evening. In the meantime…

But here is something when I try to run a scan on the folder Angel: