Skip to content

rclone vfs - cache cleanup leads to error "Device not configured (os error 6)" #620

@rustikus

Description

@rustikus

Thanks for the great software!

I am using rclone to access my files stored in a public cloud and gocryptfs to encrypt everything. To not download all files but have something like a smart selective sync I use rclone mount - https://rclone.org/commands/rclone_mount/

This works fine especially using VFS file caching of rclone - https://rclone.org/commands/rclone_mount/#vfs-file-caching

I use the following options to mount the directories:

rclone --vfs-cache-mode full --allow-other

gocryptfs -ko modules=iconv,from_code=UTF-8,to_code=UTF-8-MAC

Nevertheless after some time the mounted directory of gocryptfs is not accessible anymore and gives an error Device not configured (os error 6)

If I unmount the gocryptfs directory and mount it again with gocryptfs everything is working again. So the rclone mount seems to work fine.

Not sure what I am doing wrong or where to find more specific logs. The only hint I found was that some files were removed from cache automatically by rclone. Does this have an effect on gocryptfs?

Environment:

$ gocryptfs --version                    
gocryptfs v2.2.1-6-gd530fbd without_openssl; 
go-fuse v2.1.1-0.20210825171523-3ab5d95a30ae; 
2021-11-02 go1.17.2 darwin/arm64
$ rclone --version
rclone v1.57.0
- os/version: darwin 12.0.1 (64 bit)
- os/kernel: 21.1.0 (arm64)
- os/type: darwin
- os/arch: arm64
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount

Metadata

Metadata

Assignees

No one assigned

    Labels

    macOSApple macOS ("darwin") specific issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions