Emby + Rclone + GDrive: unable to add SOME folders as media library

What is the problem you are having with rclone?

Whening adding some google team drive folders to the emby library, emby was not able to show the contents, hence leaving blank for the folder path.
This only applies to some folders, however other folders are completely fine.
Not sure if it's Emby, Rclone, or Gdrive's problem.

What is your rclone version (output from rclone version)

rclone v1.52.0

  • os/arch: linux/amd64
  • go version: go1.14.3

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Tried on Unbuntu 18 on VPS and Synology DSM 6, both turned same results for the same folders.

Which cloud storage system are you using? (eg Google Drive)

Google drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone --config=/root/.config/rclone/rclone.conf mount Gsuite: /root/rclone/Gsuite --allow-other  --buffer-size 256M --vfs-read-chunk-size=512M --vfs-read-chunk-size-limit=off --vfs-cache-mode writes --dir-cache-time 1000h --daemon --umask 002 --allow-non-empty

The rclone config contents with secrets removed.

[Gsuite]
type = drive
client_id=masked
client_secret=masked
scope = drive
token = masked
team_drive = masked

A log from the command with the -vv flag

2020/05/30 20:14:17 DEBUG : rclone: Version "v1.52.0" starting with parameters ["rclone" "--config=/root/.config/rclone/rclone.conf" "mount" "Gsuite:" "/root/rclone/Gsuite" "--allow-other" "--buffer-size" "256M" "--vfs-read-chunk-size=512M" "--vfs-read-chunk-size-limit=off" "--vfs-cache-mode" "writes" "--dir-cache-time" "1000h" "--daemon" "--umask" "002" "--allow-non-empty" "-vv"]
2020/05/30 20:14:17 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/05/30 20:14:17 DEBUG : rclone: Version "v1.52.0" finishing with parameters ["rclone" "--config=/root/.config/rclone/rclone.conf" "mount" "Gsuite:" "/root/rclone/Gsuite" "--allow-other" "--buffer-size" "256M" "--vfs-read-chunk-size=512M" "--vfs-read-chunk-size-limit=off" "--vfs-cache-mode" "writes" "--dir-cache-time" "1000h" "--daemon" "--umask" "002" "--allow-non-empty" "-vv"]

You seemed to miss to include the rclone config and the log.

Can you please add those and give an example of something you can see and Emby can't?

I have updated the log file and config file.

The problem is:
I have several folders in my google drive mounted as Gsuite using rclone, some folders can be successfully added as the libraries in my Emby, some folders can't.

  • All folders are first level subfolders under Gsuite. Folder size varies.
  • Thought it's the size of the folder, however I can add folder with 2T without problem.
  • Though it's the age of the folder, so I moved some files to a test folder outside those unaccesable folders and tried again, emby still can't see it.

Here are screen shots:

trying add "CLUB中文"

Nothing show up

Also tried manually add file path, emby creats the libiary, but when scanning for media file, nothing shows up.

When you browse the folder, can you share the debug log when that happens.

I'd guess it is something unicode related, but need the log file.

Thank you,

Here is the debug log, I noticed that the all Size=0, and did some search on this, is it related to my mount settings : --dir-cache-time 1000h ?

2020/05/30 23:58:49 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/05/30 23:58:49 DEBUG : Google drive root '': Mounting on "/root/rclone/Gsuite"
2020/05/30 23:58:50 DEBUG : vfs cache root is "/root/.cache/rclone/vfs/Gsuite"
2020/05/30 23:58:50 DEBUG : Adding path "vfs/forget" to remote control registry
2020/05/30 23:58:50 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/05/30 23:58:50 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/05/30 23:58:50 DEBUG : : Root:
2020/05/30 23:58:50 DEBUG : : >Root: node=/, err=
2020/05/30 23:59:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:00:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:01:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:02:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:03:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:04:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:05:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:06:39 DEBUG : /: Attr:
2020/05/31 00:06:39 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:06:50 DEBUG : /: Attr:
2020/05/31 00:06:50 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:50 DEBUG : /: ReadDirAll:
2020/05/31 00:06:51 DEBUG : /: >ReadDirAll: item=9, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="1024"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=1024/, err=
2020/05/31 00:06:51 DEBUG : 1024/: Attr:
2020/05/31 00:06:51 DEBUG : 1024/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="CLUB中文"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=CLUB中文/, err=
2020/05/31 00:06:51 DEBUG : CLUB中文/: Attr:
2020/05/31 00:06:51 DEBUG : CLUB中文/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="MEK"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=MEK/, err=
2020/05/31 00:06:51 DEBUG : MEK/: Attr:
2020/05/31 00:06:51 DEBUG : MEK/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="Test"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=Test/, err=
2020/05/31 00:06:51 DEBUG : Test/: Attr:
2020/05/31 00:06:51 DEBUG : Test/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="亚洲黑丝"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=亚洲黑丝/, err=
2020/05/31 00:06:51 DEBUG : 亚洲黑丝/: Attr:
2020/05/31 00:06:51 DEBUG : 亚洲黑丝/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="女优-无中文"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=女优-无中文/, err=
2020/05/31 00:06:51 DEBUG : 女优-无中文/: Attr:
2020/05/31 00:06:51 DEBUG : 女优-无中文/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="步兵"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=步兵/, err=
2020/05/31 00:06:51 DEBUG : 步兵/: Attr:
2020/05/31 00:06:51 DEBUG : 步兵/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="番号-中文字幕"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=番号-中文字幕/, err=
2020/05/31 00:06:51 DEBUG : 番号-中文字幕/: Attr:
2020/05/31 00:06:51 DEBUG : 番号-中文字幕/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:06:51 DEBUG : /: Lookup: name="素人"
2020/05/31 00:06:51 DEBUG : /: >Lookup: node=素人/, err=
2020/05/31 00:06:51 DEBUG : 素人/: Attr:
2020/05/31 00:06:51 DEBUG : 素人/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:07:26 DEBUG : /: Attr:
2020/05/31 00:07:26 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:07:26 DEBUG : /: Lookup: name="club中文"
2020/05/31 00:07:26 DEBUG : /: >Lookup: node=, err=no such file or directory
2020/05/31 00:07:26 DEBUG : /: Lookup: name="club中文"
2020/05/31 00:07:26 DEBUG : /: >Lookup: node=, err=no such file or directory
2020/05/31 00:07:26 DEBUG : /: Lookup: name="club中文"
2020/05/31 00:07:26 DEBUG : /: >Lookup: node=, err=no such file or directory
2020/05/31 00:07:34 DEBUG : /: Attr:
2020/05/31 00:07:34 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:07:34 DEBUG : /: Lookup: name="CLUB中文"
2020/05/31 00:07:34 DEBUG : /: >Lookup: node=CLUB中文/, err=
2020/05/31 00:07:34 DEBUG : CLUB中文/: Attr:
2020/05/31 00:07:34 DEBUG : CLUB中文/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:07:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:08:42 DEBUG : /: Attr:
2020/05/31 00:08:42 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:08:42 DEBUG : /: Lookup: name="MEK"
2020/05/31 00:08:42 DEBUG : /: >Lookup: node=MEK/, err=
2020/05/31 00:08:42 DEBUG : MEK/: Attr:
2020/05/31 00:08:42 DEBUG : MEK/: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=
2020/05/31 00:08:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:09:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:10:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:11:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:12:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:13:50 DEBUG : Google drive root '': Checking for changes on remote
2020/05/31 00:14:50 DEBUG : Google drive root '': Checking for changes on remote

Can you run a rclone ls with the problematic file and share that with -vv?

I found what went wrong!
It's Emby's fault, if the subfolder contains a long name, it won't be loaded into the "Add media library" window, I cut unwanted part of the name and now I can see them again!

Thanks a lot for the help though, learnt some new rclone command!

Awesome. Glad to hear you figured it out!

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