Crypt write errors google drive

Can someone please telll me why this works: /data/Media3 is a rclone mount of a crypt volume on a google drive.

-># rclone --stats 0 --config=$RCLONECONF --transfers=16 --checkers=64 copy -vv -c $OPT /data/Media1/Videos/Series/Mad.Dogs/Season.1/Mad.Dogs.S01E01.webrip.h264.mp4 /data/Media3/
2017/03/01 15:39:08 DEBUG : rclone: Version “v1.35-137-ge2f0feeβ” starting with parameters [“rclone” “–stats” “0” “–config=/home/robert/.rclone.conf” “–transfers=16” “–checkers=64” “copy” “-vv” “-c” “/data/Media1/Videos/Series/Mad.Dogs/Season.1/Mad.Dogs.S01E01.webrip.h264.mp4” “/data/Media3/”]
2017/03/01 15:39:08 INFO : Local file system at /data/Media3: Modify window is 1ns
2017/03/01 15:39:08 INFO : Local file system at /data/Media3: Waiting for checks to finish
2017/03/01 15:39:08 INFO : Local file system at /data/Media3: Waiting for transfers to finish
2017/03/01 15:43:17 INFO : Mad.Dogs.S01E01.webrip.h264.mp4: Copied (new)
2017/03/01 15:43:17 DEBUG : Go routines at exit 2
2017/03/01 15:43:17 DEBUG : rclone: Version “v1.35-137-ge2f0feeβ” finishing with parameters [“rclone” “–stats” “0” “–config=/home/robert/.rclone.conf” “–transfers=16” “–checkers=64” “copy” “-vv” “-c” “/data/Media1/Videos/Series/Mad.Dogs/Season.1/Mad.Dogs.S01E01.webrip.h264.mp4” “/data/Media3/”]
root@HS: ~

but this doesn’t?

-># rclone --stats 0 --config=$RCLONECONF --transfers=16 --checkers=64 --include=.nfo copy -vv -c $OPT /data/Media1/Videos /data/Media3/Videos 2>&1 | egrep -v “identi|Unchang|Exclude|copy-links”
2017/03/01 15:49:42 DEBUG : rclone: Version “v1.35-137-ge2f0feeβ” starting with parameters [“rclone” “–stats” “0” “–config=/home/robert/.rclone.conf” “–transfers=16” “–checkers=64” "–include=
.nfo" “copy” “-vv” “-c” “/data/Media1/Videos” “/data/Media3/Videos”]
2017/03/01 15:49:42 INFO : Local file system at /data/Media3/Videos: Modify window is 1ns
2017/03/01 15:49:43 DEBUG : Series/Van.Helsing/tvshow.nfo: MD5 = 21823f62fb2822d14c7b42c15fed58b1 (Local file system at /data/Media1/Videos)
2017/03/01 15:49:43 DEBUG : Series/Van.Helsing/tvshow.nfo: MD5 = 73758a0d8836f93e88ebda6f20f14bf3 (Local file system at /data/Media3/Videos)
2017/03/01 15:49:43 DEBUG : Series/Van.Helsing/tvshow.nfo: MD5 differ
2017/03/01 15:49:43 ERROR : Series/Van.Helsing/tvshow.nfo: Failed to copy: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error

The only real difference is the size of the files one is tiny (nfo) and one is large. Both are using rclone itself to write to the rclone crypt mount. I can use cp also to copy the small file just fine.

This also fails:

rclone --stats 0 --config=$RCLONECONF --transfers=16 --checkers=64 copy -vv -c $OPT /data/Media1/Videos/Series/Van.Helsing/tvshow.nfo /data/Media3/Videos/Series/Van.Helsing
2017/03/01 15:54:28 DEBUG : rclone: Version “v1.35-137-ge2f0feeβ” starting with parameters [“rclone” “–stats” “0” “–config=/home/robert/.rclone.conf” “–transfers=16” “–checkers=64” “copy” “-vv” “-c” “/data/Media1/Videos/Series/Van.Helsing/tvshow.nfo” “/data/Media3/Videos/Series/Van.Helsing”]
2017/03/01 15:54:28 INFO : Local file system at /data/Media3/Videos/Series/Van.Helsing: Modify window is 1ns
2017/03/01 15:54:28 INFO : Local file system at /data/Media3/Videos/Series/Van.Helsing: Waiting for checks to finish
2017/03/01 15:54:28 DEBUG : tvshow.nfo: MD5 = 21823f62fb2822d14c7b42c15fed58b1 (Local file system at /data/Media1/Videos/Series/Van.Helsing)
2017/03/01 15:54:28 DEBUG : tvshow.nfo: MD5 = 73758a0d8836f93e88ebda6f20f14bf3 (Local file system at /data/Media3/Videos/Series/Van.Helsing)
2017/03/01 15:54:28 DEBUG : tvshow.nfo: MD5 differ
2017/03/01 15:54:28 INFO : Local file system at /data/Media3/Videos/Series/Van.Helsing: Waiting for transfers to finish
2017/03/01 15:54:28 ERROR : tvshow.nfo: Failed to copy: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error
2017/03/01 15:54:28 ERROR : Attempt 1/3 failed with 1 errors and: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error
2017/03/01 15:54:28 INFO : Local file system at /data/Media3/Videos/Series/Van.Helsing: Waiting for checks to finish
2017/03/01 15:54:29 DEBUG : tvshow.nfo: MD5 = 21823f62fb2822d14c7b42c15fed58b1 (Local file system at /data/Media1/Videos/Series/Van.Helsing)
2017/03/01 15:54:29 DEBUG : tvshow.nfo: MD5 = 73758a0d8836f93e88ebda6f20f14bf3 (Local file system at /data/Media3/Videos/Series/Van.Helsing)
2017/03/01 15:54:29 DEBUG : tvshow.nfo: MD5 differ
2017/03/01 15:54:29 INFO : Local file system at /data/Media3/Videos/Series/Van.Helsing: Waiting for transfers to finish
2017/03/01 15:54:29 ERROR : tvshow.nfo: Failed to copy: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error
2017/03/01 15:54:29 ERROR : Attempt 2/3 failed with 1 errors and: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error
2017/03/01 15:54:29 INFO : Local file system at /data/Media3/Videos/Series/Van.Helsing: Waiting for checks to finish
2017/03/01 15:54:29 DEBUG : tvshow.nfo: MD5 = 21823f62fb2822d14c7b42c15fed58b1 (Local file system at /data/Media1/Videos/Series/Van.Helsing)
2017/03/01 15:54:29 DEBUG : tvshow.nfo: MD5 = 73758a0d8836f93e88ebda6f20f14bf3 (Local file system at /data/Media3/Videos/Series/Van.Helsing)
2017/03/01 15:54:29 DEBUG : tvshow.nfo: MD5 differ
2017/03/01 15:54:29 INFO : Local file system at /data/Media3/Videos/Series/Van.Helsing: Waiting for transfers to finish
2017/03/01 15:54:29 ERROR : tvshow.nfo: Failed to copy: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error
2017/03/01 15:54:29 ERROR : Attempt 3/3 failed with 1 errors and: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error
2017/03/01 15:54:29 Failed to copy: open /data/Media3/Videos/Series/Van.Helsing/tvshow.nfo: input/output error
root@HS: ~

Further if I use a crypt mount on amazon (rather than google) it works. :smile: I guess this is a bug? Im hestitant to open more issues about writing to crypt volumes because there are so many already. Im not sure if this is already captured somewhere?

I created an issue for this. I think it has to do with changing times on the file.

https://github.com/ncw/rclone/issues/1195

Now fixed for anyone following along at home!