Rest-server "unexpected HTTP response (416)"

Hi all,

Recieving
Load(<lock/6653209ede>, 0, 0) returned error, retrying after 524.203116ms: unexpected HTTP response (416): 416 Requested Range Not Satisfiable
from the rest-server using commands snapshots, backup both locally and over the local network.

The problem occured after upgrading to
$ restic version
restic 0.9.4 (v0.9.4-1-gb96ef485) compiled with go1.11.4 on linux/arm
and
rest-server 0.9.7 (v0.9.7-0-g2209f14) compiled with go1.11.4 on linux/arm but also tried with my old
rest-server 0.9.5 (v0.9.5-16-g8d8ecd7) compiled with go1.8.3 on linux/arm

I in actual use I ssh tunnel to do pull backups but it also fails locally.
Anyone knows whats going on?

–debug gives the following log on the rest-server

$ /usr/local/bin/rest-server --debug --path /traveller/bkp/restic/ --listen localhost:8000
rest-server 0.9.7 (v0.9.7-0-g2209f14) compiled with go1.11.4 on linux/arm
Data directory: /traveller/bkp/restic/
Authentication disabled
Private repositories disabled
Starting server on localhost:8000
HEAD /config
CheckConfig()
GET /keys/
ListBlobs()
ListBlobsV2()
GET /keys/9a908d369639954bf1fb738558f1c7bcebf72fa389f59f250a366808ee07bc62
GetBlob()
GET /config
GetConfig()
GET /locks/
ListBlobs()
ListBlobsV2()
GET /locks/6653209edec56b2a7afb6361e7f1348b0fc6d1c1f000f9220237000eab0eb75a
GetBlob()
GET /locks/6653209edec56b2a7afb6361e7f1348b0fc6d1c1f000f9220237000eab0eb75a
GetBlob()
GET /locks/6653209edec56b2a7afb6361e7f1348b0fc6d1c1f000f9220237000eab0eb75a
GetBlob()

For instance this command gives the above log on the server.

/usr/local/bin/restic snapshots -r rest:http://localhost:8000
repository 4056f127 opened successfully, password is correct
Load(<lock/6653209ede>, 0, 0) returned error, retrying after 524.203116ms: unexpected HTTP response (416): 416 Requested Range Not Satisfiable
Load(<lock/6653209ede>, 0, 0) returned error, retrying after 778.404037ms: unexpected HTTP response (416): 416 Requested Range Not Satisfiable
Load(<lock/6653209ede>, 0, 0) returned error, retrying after 1.660856201s: unexpected HTTP response (416): 416 Requested Range Not Satisfiable

Regards

I’m guessing here: Maybe there’s an empty file in the locks folder on the server, with a filename starting with 6653209ede? Can you check that please? Try removing it and report back :slight_smile:

1 Like

Yep removing the lock file sorted the issue. Thanks!

Those locks are something to watch out for when using restic, next time I’ll look there first.