You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal: unable to open repo at rclone:mega:/folder_rclone_restic: error talking HTTP to rclone: Get http://localhost/file-5577006791947779410: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
What backend/server/service did you use to store the repository?
internal rclone serve and MEGA.nz
Expected behavior
Proper backup
Actual behavior
I got a timeout error (which I was half expecting). Mega is notorious for being slow upon loading up its website, especially with large amounts of data. (In my case, ~2TB). Their website usually hangs at a "Loading" or "Decrypting" screen for 2 mins before showing my files.
Steps to reproduce the behavior
Do a restic -r rclone:mega:/ backup / (successfully backing up 2TB)
Attempt again with the SAME command. (Timeout)
Do you have any idea what may have caused this?
Doing a google search of net/http: request canceled (Client.Timeout exceeded while awaiting headers) brings up a lot of info about the net/http go lib, so it can be rclone (written in go) or restic (also go)
I did a
$ rclone serve restic -v mega:/folder_rclone_restic
2021/09/12 20:16:03 NOTICE: mega root 'folder_rclone_restic': Serving restic REST API on http://localhost:8080/
though it takes a minute, it seemed to have no issues. That rules our rclone.
// send an HTTP request to the base URL, see if the server is there
client := &http.Client{
Transport: debug.RoundTripper(tr),
Timeout: 60 * time.Second,
}
Only allowing a 60-second timeout.
Do you have an idea how to solve the issue?
Allow for a CLI argument to override the 60s?
Did restic help you today? Did it make you happy in any way?
Yes, by far the fastest and best backup solution out of the multiple I have tested.
I would love to contribute but I know nothing about go and am far too busy to learn it at the moment.
If you'd like, I could test a compiled binary with the proposed changes that should fix this issue. Heck, I will add it to the docs too.
The text was updated successfully, but these errors were encountered:
The output of
restic version
How did you run restic exactly?
or even
results in
What backend/server/service did you use to store the repository?
internal
rclone serve
and MEGA.nzExpected behavior
Proper backup
Actual behavior
I got a timeout error (which I was half expecting). Mega is notorious for being slow upon loading up its website, especially with large amounts of data. (In my case, ~2TB). Their website usually hangs at a "Loading" or "Decrypting" screen for 2 mins before showing my files.
Steps to reproduce the behavior
Do a
restic -r rclone:mega:/ backup /
(successfully backing up 2TB)Attempt again with the SAME command. (Timeout)
Do you have any idea what may have caused this?
Doing a google search of
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
brings up a lot of info about thenet/http
go lib, so it can be rclone (written in go) or restic (also go)I did a
though it takes a minute, it seemed to have no issues. That rules our rclone.
Looking at restic, I think it is this line here : Line 222 of https://github.com/restic/restic/blob/master/internal/backend/rclone/backend.go
Only allowing a 60-second timeout.
Do you have an idea how to solve the issue?
Allow for a CLI argument to override the 60s?
Did restic help you today? Did it make you happy in any way?
Yes, by far the fastest and best backup solution out of the multiple I have tested.
I would love to contribute but I know nothing about go and am far too busy to learn it at the moment.
If you'd like, I could test a compiled binary with the proposed changes that should fix this issue. Heck, I will add it to the docs too.
The text was updated successfully, but these errors were encountered: