rclone v1.46
- os/arch: linux/amd64
- go version: go1.11.5
Config entry:
[backups]
type = crypt
remote = Amazon:Backups
filename_encryption = off
password = imnotsaying
password2 =
Mounted:
rclone mount backups: /mnt
So far so good.
Now in another window I try to do a compare between my local files and the Amazon encrypted files. eg diff -r /BACKUPS /mnt
And I start to see errors from the mount process:
2019/04/14 10:25:40 NOTICE: Encrypted drive 'backups:': ChangeNotify was unable to decrypt "hass": not an encrypted file - no ".bin" suffix
2019/04/14 10:25:40 NOTICE: Encrypted drive 'backups:': ChangeNotify was unable to decrypt "plexserver": not an encrypted file - no ".bin" suffix
2019/04/14 10:25:40 NOTICE: Encrypted drive 'backups:': ChangeNotify was unable to decrypt "monitor": not an encrypted file - no ".bin" suffix
The names mentioned in the errors are directories, not files.
Looking at the -vv logs doesn’t show anything. I can see it read-chunking nicely some files and then, in the middle of nowhere, these ChangeNotify errors…
2019/04/15 12:51:56 DEBUG : &{alexa/20180121.root.0.gz_aa (r)}: Read: len=131072, offset=690864128
2019/04/15 12:51:56 DEBUG : &{alexa/20180121.root.0.gz_aa (r)}: >Read: read=131072, err=<nil>
2019/04/15 12:51:56 DEBUG : &{alexa/20180121.root.0.gz_aa (r)}: Read: len=131072, offset=690995200
2019/04/15 12:51:56 NOTICE: Encrypted drive 'backups:': ChangeNotify was unable to decrypt "hass": not an encrypted file - no ".bin" suffix
2019/04/15 12:51:56 NOTICE: Encrypted drive 'backups:': ChangeNotify was unable to decrypt "plexserver": not an encrypted file - no ".bin" suffix
....
2019/04/15 12:51:56 DEBUG : &{alexa/20180121.root.0.gz_aa (r)}: >Read: read=131072, err=<nil>
2019/04/15 12:51:56 DEBUG : &{alexa/20180121.root.0.gz_aa (r)}: Read: len=131072, offset=691126272
2019/04/15 12:51:56 DEBUG : &{alexa/20180121.root.0.gz_aa (r)}: >Read: read=131072, err=<nil>
That’s the only line where “hass” shows
grep -w hass /tmp/acd
2019/04/15 12:51:56 NOTICE: Encrypted drive 'backups:': ChangeNotify was unable to decrypt "hass": not an encrypted file - no ".bin" suffix
It seems to be confused as to whether “hass” is a file or a directory so that might be a problem with the ACD change notify code confusing files and directories, perhaps specifically in the filename_encryption = off mode…
chhangenotify is ignoring the entrytype which will make a difference for filename_encryption = off. It should be calling DecryptDirName for directories.
That shouldn’t be too hard to fix… Fancy having a go or making a new issue on github?