GithubHelp home page GithubHelp logo

Download Issues about bsc-archive-snapshot HOT 11 CLOSED

allada avatar allada commented on June 11, 2024
Download Issues

from bsc-archive-snapshot.

Comments (11)

allada avatar allada commented on June 11, 2024

from bsc-archive-snapshot.

Prof-SD avatar Prof-SD commented on June 11, 2024

The first time failed after around 14 hours and the most recent was around 20 hours. Funnily enough, I think the failure was at around the same time of day both times though.

Is it safe to assume the downloaded data is of no use and it's not possible to use in parts and sync from the missing bit? Sorry, I'm not very familiar with ZFS and how it stores files.

from bsc-archive-snapshot.

Prof-SD avatar Prof-SD commented on June 11, 2024

I cleared it out and started the download again. I'll let you know how it goes.

Thanks again for all of your help and running this project!

from bsc-archive-snapshot.

allada avatar allada commented on June 11, 2024

The fact that this is taking so long makes me think you are downloading this to outside the us-west-1 data center? If so, I might suggest spinning up an EC2 instance first, placing it on the instance manually then copy it to your final location.

I suspect the problem is that AWS terminates any active downloads when a new version is uploaded. Another idea is to download a specific version instead of the active latest version.

from bsc-archive-snapshot.

Prof-SD avatar Prof-SD commented on June 11, 2024

Thanks for getting back to me again, really appreciate it!

Yes, I'm downloading to a server outside of was. I think you're right about the specific version, I think maybe I'm somehow downloading the oldest version and it's being removed before it finishes.

Could you point me in the direction of how I can download a specific version, please? I'm only seeing the command in your script about downloading the file without a version.

from bsc-archive-snapshot.

Prof-SD avatar Prof-SD commented on June 11, 2024

I called aws s3 ls s3://public-blockchain-snapshots/bsc/ --request-payer=requester to see available files but I only see erigon-latest.tar.zstd in there.

from bsc-archive-snapshot.

Prof-SD avatar Prof-SD commented on June 11, 2024

Just a quick update. It failed again at around 9:30pm PST, similar to the other times. Is that around the time you update it?

I've followed your suggestion of keeping it inside us-west-1 and have created a bucket that I'm transferring it to. At current speeds it will probably take around 20 hours still but will hopefully get there just before the new version knocks it off.

from bsc-archive-snapshot.

allada avatar allada commented on June 11, 2024

from bsc-archive-snapshot.

allada avatar allada commented on June 11, 2024

I don't create different files, instead I rely on S3's version system.

I have updated the permissions of the bucket. You should now be able to run:

aws s3api list-object-versions --bucket public-blockchain-snapshots --prefix bsc/

To get the versions available to download. You can try downloading a specific version by running that command, finding the latest version (don't use oldest), then run:

aws s3api get-object --bucket public-blockchain-snapshots --key bsc/erigon-latest.tar.zstd --version-id "VERSION_ID_HERE" /path/to/location/to/download.tar.zstd --request-payer=requester

9:30 seems plausible. It starts uploading at midnight UTC time and takes about 2-3 hours to finish. This would put the upload finishing around 7pm PST. AWS might do some internal bookkeeping that might delay it too.

You may run into issues with using the list-object-version command because it doesn't appear to support requester payer in the CLI (but does on the API layer). Here's the latest version to test out if needed... This should be good for ~3 days: vHFTVtAgp9Nxe1PWdzZT0B_9vsy0gQb0.

In any case I suggest doing what I posted above to see if it helps.

from bsc-archive-snapshot.

Prof-SD avatar Prof-SD commented on June 11, 2024

Thanks so much for this. Before I saw your message, I was able to get the file onto a EC2 server and upload it to an S3 bucket (I was having problems going straight to an S3 bucket because of the list-objects permissions).

Depending on how things go though I may still try to give this a try to know for the future if I need a quick snapshot. Thank you for all of the help!

from bsc-archive-snapshot.

allada avatar allada commented on June 11, 2024

FYI, you might want to checkout: #14

It likely take a few weeks to get a new version uploaded with this fix. It should not cause issues with most people's use case, but if you are a purist, be warned.

from bsc-archive-snapshot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.