Rclone cache plex URL Error

What is the problem you are having with rclone?

rclone shows error wrong Plex URL

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.1

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.4.0-125-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.5
  • go/linking: static
  • go/tags: none

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

drive

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

root@ds10832:~# rclone mount cache2: ~/mnt/cache2 --allow-other --cache-db-purge --allow-non-empty --buffer-size 256M --use-mmap --dir-cache-time 72h --drive-chunk-size 32M --timeout 1h --vfs-cache-mode minimal --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit 1G &
[2] 20947
root@ds10832:~# 2022/09/08 13:58:58 NOTICE: WARNING: Cache backend is deprecated and may be removed in future. Please use VFS instead.
2022/09/08 13:58:58 Failed to create file system for "cache2:": failed to connect to the Plex API 127.0.0.1:32400: parse "127.0.0.1:32400": invalid URI for request

The rclone config contents with secrets removed.

[drive-2]
type = drive
client_id = xxx.apps.googleusercontent.com
client_secret = xxx
scope = drive
token = {"access_token":"xxx>
team_drive = xxx
root_folder_id =

[cache2]
type = cache
remote = drive-2
plex_url = 127.0.0.1:32400
plex_username = User
plex_password = pass
info_age = 1d

A log from the command with the -vv flag

root@ds10832:~# rclone mount cache2: ~/mnt/cache2 --allow-other --cache-db-purge --allow-non-empty --buffer-size 256M --use-mmap --dir-cache-time 72h --drive-chunk-size 32M --timeout 1h --vfs-cache-mode minimal --vfs-read-chunk-size 128M --vfs-read-chunk-size-limit 1G -vv
2022/09/08 14:09:28 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "mount" "cache2:" "/root/mnt/cache2" "--allow-other" "--cache-db-purge" "--allow-non-empty" "--buffer-size" "256M" "--use-mmap" "--dir-cache-time" "72h" "--drive-chunk-size" "32M" "--timeout" "1h" "--vfs-cache-mode" "minimal" "--vfs-read-chunk-size" "128M" "--vfs-read-chunk-size-limit" "1G" "-vv"]
2022/09/08 14:09:28 DEBUG : Creating backend with remote "cache2:"
2022/09/08 14:09:28 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/09/08 14:09:28 DEBUG : cache2: detected overridden config - adding "{PcTlh}" suffix to name
2022/09/08 14:09:28 NOTICE: WARNING: Cache backend is deprecated and may be removed in future. Please use VFS instead.
2022/09/08 14:09:28 DEBUG : Creating backend with remote "drive-2"
2022/09/08 14:09:28 DEBUG : fs cache: renaming cache item "drive-2" to be canonical "/root/Arn0m-1"
2022/09/08 14:09:28 DEBUG : cache2{PcTlh}: wrapped local:/root/drive-2 at root 
2022/09/08 14:09:28 DEBUG : cache2{PcTlh}: Purging the DB
2022/09/08 14:09:28 Failed to create file system for "cache2:": failed to connect to the Plex API 127.0.0.1:32400: parse "127.0.0.1:32400": invalid URI for request
root@ds10832:~# 

I really don't understand this error. totally I use 8 drives. I setup the 1 drive and cache and its running well. no error and it mounted successfully. now i want to setup the next drive and got this error but all is the same ... same Server, same IP, same Plex Server ... just a other cache and a other drive.

hi,

hi,
not sure what the exact issue is but
i see that you are using two caches at the same time.
--- deprecated cache remote
and
--- the vfs-cache-mode
fwiw, i would remove cache2

i have more then 1 drive I use with Plex. how I can do if I can use only 1 cache?

[cache2]
type = cache
remote = drive-2
plex_url = 127.0.0.1:32400
plex_username = User
plex_password = pass
info_age = 1d

if you must used that depreacted cache remote, i think there is a typo in that.
remote = drive-2
should be
remote = drive-2:

i fit it but the error is the same
I think rclone can't handle multiple drives in cache

i have no idea about cache2 cache remote, that is not needed for plex.

each rclone mount, needs it own vfs cache.
tho the vfs cache is optional, some rclone users do not use the vfs file cache.

1 Like

Thank you ... I will remove the cache.

should be easy to do, try changing
rclone mount cache2:
to
rclone mount drive-2:

should see the same exact set of files at the mountpoint, ~/mnt/cache2

i delete the caches all already. I really don't got it. the path and all I fixed already. the error is the same about the Plex api url ... so I delete the configs of caches all

please understand, cannot see into your machine,

if you change the config file and/or change the mount command,
then need to post all that with a debug log.

and make sure to test the remote, using a simple command, before trying rclone mount
for example,
rclone lsd remote:

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