Repository navigation
Description
While copying from swift to google storage bucket. Things were pretty smooth for a few hours and then GO application started issuing these errors. I've pasted the error log below this message.
rclone --checkers=1 --transfers=1 copy -q downloadfrom:container uploadto:bucket-name/folder
What if I use modify window option and set a long time difference? Not sure if this is what modify window option is used for? --modify-window=600000000000ns (600sec). Then the command for rclone will look like this:
rclone --checkers=1 --transfers=1 --modify-window=600000000000ns copy -q downloadfrom:container uploadto:bucket-name/folder
Thank you,
Zeshan
github.com/ncw/swift.(_Connection).ObjectsWalk(0xc208286240, 0x7fff38d0a6fa, 0x6, 0xc2083e9560, 0xc20805ef08, 0x0
, 0x0)
/home/ncw/Code/Go/src/github.com/ncw/swift/swift.go:840 +0xe7
github.com/ncw/rclone/swift.(_FsSwift).list(0xc208286240, 0xc208034000, 0xc20805efc0)
/home/ncw/Code/Go/src/github.com/ncw/rclone/swift/swift.go:223 +0x155
github.com/ncw/rclone/swift.func·003()
/home/ncw/Code/Go/src/github.com/ncw/rclone/swift/swift.go:246 +0xc4
created by github.com/ncw/rclone/swift.(_FsSwift).List
/home/ncw/Code/Go/src/github.com/ncw/rclone/swift/swift.go:247 +0x1a1
goroutine 1806459 [select]:
net/http.(_persistConn).writeLoop(0xc208048370)
/home/ncw/Code/go/src/net/http/transport.go:945 +0x41d
created by net/http.(_Transport).dialConn
/home/ncw/Code/go/src/net/http/transport.go:661 +0xcbc
goroutine 295 [select]:
net/http.(_persistConn).readLoop(0xc2082eea50)
/home/ncw/Code/go/src/net/http/transport.go:928 +0x9ce
created by net/http.(_Transport).dialConn
/home/ncw/Code/go/src/net/http/transport.go:660 +0xc9f
goroutine 296 [select]:
net/http.(_persistConn).writeLoop(0xc2082eea50)
/home/ncw/Code/go/src/net/http/transport.go:945 +0x41d
created by net/http.(_Transport).dialConn
/home/ncw/Code/go/src/net/http/transport.go:661 +0xcbc
goroutine 625446 [IO wait]:
net.(_pollDesc).Wait(0xc20800b5d0, 0x72, 0x0, 0x0)
/home/ncw/Code/go/src/net/fd_poll_runtime.go:84 +0x47
net.(_pollDesc).WaitRead(0xc20800b5d0, 0x0, 0x0)
/home/ncw/Code/go/src/net/fd_poll_runtime.go:89 +0x43
net.(_netFD).Read(0xc20800b570, 0xc20a6f0000, 0x8000, 0x8000, 0x0, 0x7fc5fc3d2c58, 0xc20a816b50)
/home/ncw/Code/go/src/net/fd_unix.go:242 +0x40f
net.(_conn).Read(0xc26cc44c50, 0xc20a6f0000, 0x8000, 0x8000, 0x0, 0x0, 0x0)
/home/ncw/Code/go/src/net/net.go:121 +0xdc
crypto/tls.(_block).readFromUntil(0xc2082f7380, 0x7fc5fc3d43a8, 0xc26cc44c50, 0x5, 0x0, 0x0)
/home/ncw/Code/go/src/crypto/tls/conn.go:454 +0xe6
crypto/tls.(_Conn).readRecord(0xc2080b3b80, 0x17, 0x0, 0x0)
/home/ncw/Code/go/src/crypto/tls/conn.go:539 +0x2da
crypto/tls.(_Conn).Read(0xc2080b3b80, 0xc26cbd0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/home/ncw/Code/go/src/crypto/tls/conn.go:904 +0x166
net/http.noteEOFReader.Read(0x7fc5fc3d8f30, 0xc2080b3b80, 0xc208048688, 0xc26cbd0000, 0x1000, 0x1000, 0xc26d31a0c
0, 0x0, 0x0)
/home/ncw/Code/go/src/net/http/transport.go:1270 +0x6e
net/http.(_noteEOFReader).Read(0xc2173d7400, 0xc26cbd0000, 0x1000, 0x1000, 0xc208010000, 0x0, 0x0)
:125 +0xd4
bufio.(_Reader).fill(0xc247417f20)
/home/ncw/Code/go/src/bufio/bufio.go:97 +0x1ce
bufio.(_Reader).Peek(0xc247417f20, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/ncw/Code/go/src/bufio/bufio.go:132 +0xf0
net/http.(_persistConn).readLoop(0xc208048630)
/home/ncw/Code/go/src/net/http/transport.go:842 +0xa4
created by net/http.(_Transport).dialConn
/home/ncw/Code/go/src/net/http/transport.go:660 +0xc9f
goroutine 625447 [select]:
net/http.(_persistConn).writeLoop(0xc208048630)
/home/ncw/Code/go/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
/home/ncw/Code/go/src/net/http/transport.go:661 +0xcbc
Activity
ncw commentedon Dec 21, 2014
Thank you for the bug report.
Unfortunately what actually happened is missing from the top of the error you pasted. There should be some lines before the backtrace with the actual error.
Can you send everything rclone prints? If you think it has confidential info in it then you can email it to me privately.
rclone should pick up from where it left off if you retry the transfer.
To answer your other question, you shouldn't need to set
--modify-windownormally. Because the various object storage systems and OSes store time to differing accuracies, rclone calculates the modify window which is the time period it expects the date stamps files to agree in. If you use the-vflag you can see rclone calculating the modify window.zeshanb commentedon Dec 21, 2014
It might not be a bug. I am monitoring the current process now. My theory is that once memory usage for rclone command process reaches a certain level datacenter automation steps in and stops the process.
I'll keep you posted. Thanks so much for making rclone.
Zeshan
ncw commentedon Dec 23, 2014
From private emails, it is now clear there is a memory leak in rclone, most likely in the google cloud storage backend. I'll work on tracking that down.
[-]Copying from swift to google cloud storage bucket[/-][+]Memory leak when copying from swift to google cloud storage bucket[/+]ncw commentedon Dec 23, 2014
Please re-open if this fix doesn't work for you - thanks
-- Nick