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
This is perhaps a devops issue (where would I report that?), but the snapshots don't appear to be using a web server that supports HTTP range header which means that continuing a download isn't supported. For big files as they are it would be helpful if resuming were supported.
In the meantime, have you considered using wget instead of curl? The benefits would be:
A more robust client for large file downloads over lossy links and so more likely to complete on the first try without needing to use a continue flag (which generates a range request)
Won't hard fail on using the continue flag when the origin server doesn't support get byte range requests and in the worst case will re-download the full file rather than potentially breaking scripts.
Ex: wget [--debug] --continue $URL
Another possibility mentioned in one of the old duplicates is to fetch direct from the s3 bucket URL to get support for byte ranges, example:
Range requests are now supported for cardano-db-sync snapshot artifacts and properly return 206 with accept-ranges and content-range headers.
@eyeinsky, your initial curl command pasted above which previously hard failed will now succeed.
Wget is still recommended for use where possible due to more robustness vs. curl.
This is perhaps a devops issue (where would I report that?), but the snapshots don't appear to be using a web server that supports HTTP
range
header which means that continuing a download isn't supported. For big files as they are it would be helpful if resuming were supported.To reproduce do a download:
Cancel the above and then run the following to try to resume:
After which curl exits with
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
OS
Your OS: NixOS
Versions
The
db-sync
version (egcardano-db-sync --version
): N/APostgreSQL version: N/A
Build/Install Method
The method you use to build or install
cardano-db-sync
: N/ARun method
The method you used to run
cardano-db-sync
(eg Nix/Docker/systemd/none): N/AAdditional context
Add any other context about the problem here.
Problem Report
Please do not include screenshots or images, but instead cut and paste any relevant log messages
or errors.
The text was updated successfully, but these errors were encountered: