i have 3 plexdrive that mount en encrypted Gdrive storage (obfuscated)
They are pooled with mergerfs 2.28.3 under /mnt/plexdrive/pool with theses settings in fstab
/mnt/plexdrive/mount1=RO:/mnt/plexdrive/mount2=RO:/mnt/plexdrive/mount3=RO /mnt/plexdrive/pool fuse.mergerfs ro,async_read=false,sync_read,use_ino,allow_other,auto_cache,func.getattr=all,category.action=all,category.create=all,category.search=eprand,dev,suid 0 0
If i copy an encrypted file directly from the pool /mnt/plexdrive/pool, the file copy without any issue (so the file is still encrypted but copy at 100%)
The issue begin when i add a rclone cache and uncrypt rclone settings over /mnt/plexdrive/pool (so the pool is mergerfs)
type = cache
remote = /mnt/plexdrive/pool
plex_url = https://127.0.0.1:32400
info_age = 1m
chunk_total_size = 250G
chunk_size = 10M
plex_insecure = true
db_path = /cache/pool
chunk_path = /cache/pool
db_purge = false
writes = false
tmp_upload_path = /cache/pool/upload
tmp_wait_time = 3s
type = crypt
remote = pool_c:/
filename_encryption = obfuscate
directory_name_encryption = true
and mount in fstab
#rclonefs#pool_d:/ /mnt/vault fuse config=/data/program/rclone/config/pool.conf,allow-other,allow-non-empty,read-only,daemon,umask=0,buffer-size=128M,poll-interval=15s,timeout=1h,cache-read-retries=1,attr-timeout=1000h,dir-cache-time=1000h,log-level=DEBUG,log-file=/var/log/rclone_pool_d.log 0 0
Now when i read decrypted file from /mnt/vault that is over a cache, cache over a mergerfs pool, i get these king of error in rclone log
2019/11/04 10:10:00 DEBUG : : ChunkedReader.openRange at 10420224 length 134217728
2019/11/04 10:10:00 DEBUG : : moving offset set from 0 to 0
2019/11/04 10:10:00 DEBUG : : cache reader closed 32
2019/11/04 10:10:00 DEBUG : : moving offset set from 0 to 10422800
2019/11/04 10:10:00 DEBUG : : cache reader closed 10488352
2019/11/04 10:10:00 DEBUG : : ReadFileHandle.Read seek failed: failed to authenticate decrypted block - bad password?
2019/11/04 10:10:00 ERROR : : ReadFileHandle.Read error: failed to authenticate decrypted block - bad password?
2019/11/04 10:10:00 DEBUG : (r)}: >Read: read=0, err=failed to authenticate decrypted block - bad password?
My file faile to copy at 5%
If i try the same without pooling with mergerfs, i don't have the issue.
I have read that async_read=false have to be set, things done in my fstab.
I have also try adding sync_read, same issue.
I have read here and there that it could be a incompatibility between rclone and mergerfs with offset that could be different in seaking but not found any solution.
Does anyone have an idea?