What is the problem you are having with rclone?
I have the problem, that the rclone mount crashes when updating a Plex tv-library.
For a lone time I got the same error as postet below ("normal" start), but thought this is no bigger problem, because there was no issue for a year or so. But today I updated my tv-library on my Google-Drive with alot of anime in it (One show could contain single folders with >100 video files) and the mount crashed with the "out of memory" error. I tried to allocate more memory to it (from 20M to 50M) and installed the newes 'go' but I got the same error message.
If I unmount the Google-Drive (fusermount -u /mnt/gsuite) and mount it again i can use Plex as usual, till I update the tv-library where it run in the same error again and again.
Since I do not know how to solve this problem I hope you guys could help me.
What is your rclone version
rclone v1.53.3
- os/arch: linux/386
- go version: go1.15.5
Which OS you are using and how many bits
Proxmox VE 6.3-2 ~ Linux (64bit)
Rclone is running directly on the Proxmox installation
Plex is running in a Proxmox-Container (other IP)
Which cloud storage system are you using?
Google Drive (G Suite)
The command you were trying to run
rclone mount --allow-other --allow-non-empty gcrypt: /mnt/gsuite
The rclone config contents with secrets removed.
[gcache]
type = cache
remote = gsuite:/crypt
plex_url = https://192.168.188.102:32400/
plex_username = XXX
plex_password = *** ENCRYPTED ***
chunk_size = 50M
info_age = 1d
chunk_total_size = 50G
plex_token = XXX
[gcrypt]
type = crypt
remote = gcache:/media
filename_encryption = off
directory_name_encryption = false
password = *** ENCRYPTED ***
password2 = *** ENCRYPTED ***
[gcrypt2]
type = crypt
remote = gsuite:/crypt
filename_encryption = off
directory_name_encryption = false
password = *** ENCRYPTED ***
password2 = *** ENCRYPTED ***
[gsuite]
type = drive
scope = drive
token = XXX
client_id = XXX
client_secret = XXX
A "normal" start, mounting with rclone with no problems using Plex
root@pve:~# rclone mount --allow-other --allow-non-empty gcrypt: /mnt/gsuite &
[1] 22895
root@pve:~# 2020/12/04 13:06:20 ERROR : plex: websocket.Dial wss://192.168.188.102:32400/:/websockets/notifications?X-Plex-Token=XXX: x509: cannot validate certificate for 192.168.188.102 because it doesn't contain any IP SANs
A log from the command with the -v
flag
root@pve:~# 2020/12/04 12:57:55 ERROR : plex: websocket.Dial wss://192.168.188.102:32400/:/websockets/notifications?X-Plex-Token=XXX: x509: cannot validate certificate for 192.168.188.102 because it doesn't contain any IP SANs
2020/12/04 12:57:55 INFO : gcache: Cache DB path: /root/.cache/rclone/cache-backend/gcache.db
2020/12/04 12:57:55 INFO : gcache: Cache chunk path: /root/.cache/rclone/cache-backend/gcache
2020/12/04 12:57:55 INFO : gcache: Chunk Memory: true
2020/12/04 12:57:55 INFO : gcache: Chunk Size: 50M
2020/12/04 12:57:55 INFO : gcache: Chunk Total Size: 50G
2020/12/04 12:57:55 INFO : gcache: Chunk Clean Interval: 1m0s
2020/12/04 12:57:55 INFO : gcache: Workers: 4
2020/12/04 12:57:55 INFO : gcache: File Age: 1d
A log from the command with the -vv
flag
root@pve:~# 2020/12/04 12:59:46 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "mount" "-vv" "--allow-other" "--allow-non-empty" "gcrypt:" "/mnt/gsuite"]
2020/12/04 12:59:46 DEBUG : Creating backend with remote "gcrypt:"
2020/12/04 12:59:46 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/12/04 12:59:46 DEBUG : Creating backend with remote "gcache:/media"
2020/12/04 12:59:46 DEBUG : Creating backend with remote "gsuite:/crypt/media"
2020/12/04 12:59:46 DEBUG : Google drive root 'crypt/media': root_folder_id = "XXX" - save this in the config to speed up startup
2020/12/04 12:59:47 DEBUG : fs cache: renaming cache item "gsuite:/crypt/media" to be canonical "gsuite:crypt/media"
2020/12/04 12:59:47 DEBUG : gcache: wrapped gsuite:crypt/media at root media
2020/12/04 12:59:47 ERROR : plex: websocket.Dial wss://192.168.188.102:32400/:/websockets/notifications?X-Plex-Token=XXX: x509: cannot validate certificate for 192.168.188.102 because it doesn't contain any IP SANs
2020/12/04 12:59:47 INFO : gcache: Cache DB path: /root/.cache/rclone/cache-backend/gcache.db
2020/12/04 12:59:47 INFO : gcache: Cache chunk path: /root/.cache/rclone/cache-backend/gcache
2020/12/04 12:59:48 ERROR : /root/.cache/rclone/cache-backend/gcache.db: Error opening storage cache. Is there another rclone running on the same remote? failed to open a cache connection to "/root/.cache/rclone/cache-backend/gcache.db": timeout
2020/12/04 12:59:48 Failed to create file system for "gcrypt:": failed to make remote "gcache:/media" to wrap: failed to start cache db: failed to open a cache connection to "/root/.cache/rclone/cache-backend/gcache.db": timeout
When the mount crashes, which cause the problems
[...]
2020/12/04 11:42:47 ERROR : media/Animation/One Piece (1998)/Season 15/One Piece - S15E35.mp4.bin: failed to authenticate to Plex: failed to obtain token: EOF
runtime: out of memory: cannot allocate 54525952-byte block (3336732672 in use)
fatal error: out of memory
runtime: out of memory: cannot allocate 54525952-byte block (3336732672 in use)
fatal error: out of memory
runtime stack:
runtime.throw(0x92502bd, 0xd)
runtime/panic.go:1116 +0x6a
runtime.largeAlloc(0x3200200, 0x9040101, 0x9042240)
runtime/malloc.go:1179 +0x15d
runtime.mallocgc.func1()
runtime/malloc.go:1071 +0x39
runtime.systemstack(0xbb801c0)
runtime/asm_386.s:391 +0x53
runtime.mstart()
runtime/proc.go:1116
Full-Error:
Greetings, Clone4Ever