What is the problem you are having with rclone?
When using rclone serve http
to serve a backend, and then using rclone copy
to transfer files, the resulting files do not have the proper date/time. The date/time ends up being "Dec 31, 1969" for all files.
What is your rclone version (output from rclone version
)
rclone v1.51.0
- os/arch: linux/amd64
- go version: go1.13.7
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Linux, 64 bit
CentOS Linux release 7.8.2003 (Core)
3.10.0-1127.el7.x86_64
Which cloud storage system are you using? (eg Google Drive)
Occurs when backend is S3
or local
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone serve http local: --read-only
rclone copy --http-url http://localhost:8080 :http:test ./test -P
A log from the command with the -vv
flag (eg output from rclone -vv copy /tmp remote:tmp
)
rclone copy --http-url http://localhost:8080 :http:test ./test -vv --dump requests
2020/05/04 15:52:48 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "copy" "--http-url" "http://localhost:8080" ":http:test" "./test" "-vv" "--dump" "requests"]
2020/05/04 15:52:48 DEBUG : Using config file from "/home/mydev/.config/rclone/rclone.conf"
2020/05/04 15:52:48 DEBUG : You have specified to dump information. Please be noted that the Accept-Encoding as shown may not be correct in the request and the response may not show Content-Encoding if the go standard libraries auto gzip encoding was in effect. In this case the body of the request will be gunzipped before showing it.
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : HTTP REQUEST (req 0xc00051a900)
2020/05/04 15:52:48 DEBUG : HEAD /test HTTP/1.1
Host: localhost:8080
User-Agent: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : HTTP RESPONSE (req 0xc00051a900)
2020/05/04 15:52:48 DEBUG : HTTP/1.1 404 Not Found
Content-Length: 11
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 04 May 2020 19:52:48 GMT
Server: rclone/v1.51.0
X-Content-Type-Options: nosniff
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : HTTP REQUEST (req 0xc00051af00)
2020/05/04 15:52:48 DEBUG : GET /test/ HTTP/1.1
Host: localhost:8080
User-Agent: rclone/v1.51.0
Accept-Encoding: gzip
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : HTTP RESPONSE (req 0xc00051af00)
2020/05/04 15:52:48 DEBUG : HTTP/1.1 200 OK
Content-Length: 252
Accept-Ranges: bytes
Content-Type: text/html; charset=utf-8
Date: Mon, 04 May 2020 19:52:48 GMT
Server: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : HTTP REQUEST (req 0xc00051b200)
2020/05/04 15:52:48 DEBUG : HEAD /test/file1.txt HTTP/1.1
Host: localhost:8080
User-Agent: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : HTTP REQUEST (req 0xc00051b400)
2020/05/04 15:52:48 DEBUG : HEAD /test/file2.txt HTTP/1.1
Host: localhost:8080
User-Agent: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : HTTP RESPONSE (req 0xc00051b200)
2020/05/04 15:52:48 DEBUG : HTTP/1.1 200 OK
Content-Length: 6
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 04 May 2020 19:52:48 GMT
Server: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : HTTP RESPONSE (req 0xc00051b400)
2020/05/04 15:52:48 DEBUG : HTTP/1.1 200 OK
Content-Length: 6
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 04 May 2020 19:52:48 GMT
Server: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 INFO : Local file system at /tmp/test: Waiting for checks to finish
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : HTTP REQUEST (req 0xc00051b800)
2020/05/04 15:52:48 DEBUG : GET /test/file1.txt HTTP/1.1
Host: localhost:8080
User-Agent: rclone/v1.51.0
Accept-Encoding: gzip
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 DEBUG : HTTP REQUEST (req 0xc00051ba00)
2020/05/04 15:52:48 DEBUG : GET /test/file2.txt HTTP/1.1
Host: localhost:8080
User-Agent: rclone/v1.51.0
Accept-Encoding: gzip
2020/05/04 15:52:48 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2020/05/04 15:52:48 INFO : Local file system at /tmp/test: Waiting for transfers to finish
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : HTTP RESPONSE (req 0xc00051ba00)
2020/05/04 15:52:48 DEBUG : HTTP/1.1 200 OK
Content-Length: 6
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 04 May 2020 19:52:48 GMT
Last-Modified: Mon, 04 May 2020 19:33:30 GMT
Server: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 DEBUG : HTTP RESPONSE (req 0xc00051b800)
2020/05/04 15:52:48 DEBUG : HTTP/1.1 200 OK
Content-Length: 6
Accept-Ranges: bytes
Content-Type: text/plain; charset=utf-8
Date: Mon, 04 May 2020 19:52:48 GMT
Last-Modified: Mon, 04 May 2020 19:33:26 GMT
Server: rclone/v1.51.0
2020/05/04 15:52:48 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2020/05/04 15:52:48 INFO : file1.txt: Copied (new)
2020/05/04 15:52:48 INFO : file2.txt: Copied (new)
2020/05/04 15:52:48 INFO :
Transferred: 12 / 12 Bytes, 100%, 480 Bytes/s, ETA 0s
Transferred: 2 / 2, 100%
Elapsed time: 0.0s
2020/05/04 15:52:48 DEBUG : 9 go routines active
2020/05/04 15:52:48 DEBUG : rclone: Version "v1.51.0" finishing with parameters ["rclone" "copy" "--http-url" "http://localhost:8080" ":http:test" "./test" "-vv" "--dump" "requests"]