I am using Rclone cache+crypt+mount together with Plex and GDrive following this guide: Setting Up Google Drive With Rclone Cache And Crypt. The playback worked fine in the beginning. But after a couple of minutes, the playback is terminated. The log file shows: Fatal error: runtime: out of memory. The machine hosting the Plex media server has a memory of 1GB.
My config file is as follows:
[gdrive]
type = drive
client_id = ***
client_secret = ***
scope = drive
token = ***
[gcache]
type = cache
remote = gdrive:/plexlibrary
plex_url = http://127.0.0.1:32400
plex_username = ***
plex_password = ***
chunk_size = 10M
info_age = 1d
chunk_total_size = 5G
[gcrypt]
type = crypt
remote = gcache:/crypt
filename_encryption = standard
directory_name_encryption = true
password = ***
password2 = ***
My command is:
rclone mount gcrypt: /mnt/gdrive -v --log-file=/rclone.log --allow-other --allow-non-empty
Part of the log:
fatal error: runtime: out of memory
runtime stack:
runtime.throw(0x138ddca, 0x16)
/home/travis/.gimme/versions/go1.12.4.linux.amd64/src/runtime/panic.go:617 +0x72
runtime.sysMap(0xc018000000, 0x4000000, 0x20a5798)
/home/travis/.gimme/versions/go1.12.4.linux.amd64/src/runtime/mem_linux.go:170 +0xc7
runtime.(*mheap).sysAlloc(0x208cb80, 0xa02000, 0x208cb90, 0x501)
/home/travis/.gimme/versions/go1.12.4.linux.amd64/src/runtime/malloc.go:633 +0x1cd
runtime.(*mheap).grow(0x208cb80, 0x501, 0x0)
/home/travis/.gimme/versions/go1.12.4.linux.amd64/src/runtime/mheap.go:1232 +0x42
runtime.(*mheap).allocSpanLocked(0x208cb80, 0x501, 0x20a57a8, 0xc0000b3a20)
/home/travis/.gimme/versions/go1.12.4.linux.amd64/src/runtime/mheap.go:1150 +0x3a7
runtime.(*mheap).alloc_m(0x208cb80, 0x501, 0x101, 0x0)
/home/travis/.gimme/versions/go1.12.4.linux.amd64/src/runtime/mheap.go:977 +0xc2
runtime.(*mheap).alloc.func1()
followed by lots of lines similar to this.