Connection reset / context canceled

Hello, and thank you for rclone

What is the problem you are having with rclone?

Recently I started using rclone with restic and Jottacloud. Tested it for about a month with version 1.54.0 and no issues.
I upgraded jottacloud to a paid account and started it using it in production with version 1.54.1

I now get messages like copied below.

Is this an issue with rclone, jottacloud, or something else?

Also, it is unclear to me if these errors are corrected during the restic backup or not.

Can someone clarify?

Thank you

What is your rclone version (output from rclone version)

rclone v1.54.1

  • os/arch: linux/arm
  • go version: go1.15.8

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Debian 8 (jessie), 32 bit (readynas)

Which cloud storage system are you using? (eg Google Drive)


The command you were trying to run (eg rclone copy /tmp remote:tmp)

started by restic, with command

./rclone -o rclone.args="serve restic --stdio --b2-hard-delete --drive-use-trash=false

The rclone config contents with secrets removed.

type = jottacloud
client_id = jottacli
client_secret = 
tokenURL =
device = Jotta
mountpoint = Archive
configVersion = 1

A log from the command with the -vv flag

rclone: 2021/03/17 12:59:31 ERROR : data/e5/e5f8f74c...: Post request put error: Post "": write tcp> write: connection reset by peer

Save(<data/e5f8f74c10>) returned error, retrying after 720.254544ms: server response unexpected: 500 Internal Server Error (500)

rclone: 2021/03/17 13:14:11 ERROR : data/e6/e6d1....: Post request put error: HTTP error 500 (500 Server Error) returned body: "{\"code\":500,\"message\":null,\"cause\":\"\",\"error_id\":\"UndeclaredThrowableException\",\"x-id\":\"775077916577\"}"

rclone: 2021/03/19 11:34:56 ERROR : index/372....: Didn't finish writing GET request (wrote 61838/700620 bytes): context canceled
Load(<index/3721797015>, 0, 0) returned error, retrying after 873.42004ms: open /data/home/upback/restic/cache/66266....: permission denied

These are all returned from Jotta cloud.

This can be a timeout or if restic stopped writing for some reason. Not sure.

Thank you @ncw for your kind reply.

Do you know if these errors are automatically corrected by rclone during the process?

I believe restic retries errors like this.

You can tell from the log of restic.

Thank you @ncw, I will try to find out.
In the meantime I revert back rclone version to the version I was using before, to see if that makes a difference.

FYI: Reverting back rclone doesn't make any difference, the messages are still there.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.