Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geth full archive snapshots might not be working #351

Closed
azeonmarket opened this issue Nov 19, 2024 · 25 comments
Closed

geth full archive snapshots might not be working #351

azeonmarket opened this issue Nov 19, 2024 · 25 comments

Comments

@azeonmarket
Copy link

The Geth full archive snapshots not working for downloading snapshot to be able to run a full archive Geth Node. https://mainnet-archive-snapshots.base.org/$(curl https://mainnet-archive-snapshots.base.org/latest)

If true of malfunctions/not working properly, changes on https://docs.base.org/tutorials/run-a-base-node/ on this ligne from the table :

Mainnet | Geth | Archive | wget https://mainnet-archive-snapshots.base.org/$(curl https://mainnet-archive-snapshots.base.org/latest) -- | -- | -- | --

would need to be implemented to allow node operators to deploy easily.

@azeonmarket
Copy link
Author

### This was shared from a community member :

this is what i just tested with 2 servers (dedicated, 7tb nvme, amd 5950x , 128gb ram)

Both download stopped at the same time.

server 1 : (wget with long timeout flag)
wget --timeout=60 --tries=100 -c https://mainnet-full-snapshots.base.org/base-mainnet-full-173 1839014.tar.zst
--2024-11-19 10:48:04-- https://mainnet-full-snapshots.base.org/base-mainnet-full-1731839014.tar.zst
Resolving mainnet-full-snapshots.base.org (mainnet-full-snapshots.base.org)... 2606:4700:4400::ac40:9367, 2606:4700:4400::6812 :2899, 104.18.40.153, ...
Connecting to mainnet-full-snapshots.base.org (mainnet-full-snapshots.base.org)|2606:4700:4400::ac40:9367|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1844290065485 (1.7T)
Saving to: ‘base-mainnet-full-1731839014.tar.zst’

base-mainnet-full-1731839014.tar.zst 6%[====> ] 119.68G 19.5MB/s in 71m 19s

2024-11-19 11:59:24 (28.6 MB/s) - Connection closed at byte 128505195208. Retrying.

server 2: aria with longer timeout flag + -x4 -s4
aria2c -x4 -s4 --timeout=120 --retry-wait=10 --file-allocation=none https://mainnet-full-snapshots.base.org/base-mainnet-full-1731839014.tar.zst

Download Progress Summary as of Tue Nov 19 12:59:18 2024

[#0b986e 417GiB/1,717GiB(24%) CN:1 DL:78MiB ETA:4h43m55s]
FILE: /home/temp/newgeth/base-mainnet-full-1731839014.tar.zst

[#0b986e 417GiB/1,717GiB(24%) CN:1 DL:53MiB ETA:6h58m13s]
11/19 12:59:24 [ERROR] CUID#7 - Download aborted. URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731839014.tar.zst
Exception: [AbstractCommand.cc:351] errorCode=22 URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731839014.tar.zst
-> [HttpSkipResponseCommand.cc:239] errorCode=22 The response status is not successful. status=403

11/19 12:59:24 [NOTICE] Download GID#0b986e92a962bf6a not complete: /home/temp/newgeth/base-mainnet-full-1731839014.tar.zst

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
0b986e|ERR | 79MiB/s|/home/temp/newgeth/base-mainnet-full-1731839014.tar.zst

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.

@0x00101010
Copy link
Contributor

Hey y'all, have you tried again after the failure, we hosted our snapshots on cloudflare, and this does seem like either a cloudflare issue or network issue.

Also FYI, there's some cloudflare maintenance going on that seems relevant: https://www.cloudflarestatus.com/

@liusDong
Copy link

Hey y'all, have you tried again after the failure, we hosted our snapshots on cloudflare, and this does seem like either a cloudflare issue or network issue.

Also FYI, there's some cloudflare maintenance going on that seems relevant: https://www.cloudflarestatus.com/

same question. I try more than 10 times always 403 error

11/20 09:31:59 [ERROR] CUID#7 - Download aborted. URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731839014.tar.zst
Exception: [AbstractCommand.cc:351] errorCode=22 URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731839014.tar.zst
-> [HttpSkipResponseCommand.cc:239] errorCode=22 The response status is not successful. status=403

11/20 09:31:59 [NOTICE] Download GID#8a9a7f7227700a58 not complete: /home/snap1/base-mainnet-full-1731839014.tar.zst

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
8a9a7f|ERR | 41MiB/s|/home/snap1/base-mainnet-full-1731839014.tar.zst

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.

@0x00101010
Copy link
Contributor

Trying 2 downloads to see if I could reproduce:

  1. base-mainnet-full-1731925706.tar.zst => latest
  2. base-mainnet-full-1731839014.tar.zst => the ones you mentioned

@liusDong
Copy link

Trying 2 downloads to see if I could reproduce:

  1. base-mainnet-full-1731925706.tar.zst => latest
  2. base-mainnet-full-1731839014.tar.zst => the ones you mentioned

I download latest

11/21 02:53:43 [ERROR] CUID#7 - Download aborted. URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731925706.tar.zst
Exception: [AbstractCommand.cc:351] errorCode=22 URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731925706.tar.zst
-> [HttpSkipResponseCommand.cc:239] errorCode=22 The response status is not successful. status=403

11/21 02:53:43 [NOTICE] Download GID#a702387759a7b2b3 not complete: /home/snap1/base-mainnet-full-1731925706.tar.zst

Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
a70238|ERR | 12MiB/s|/home/snap1/base-mainnet-full-1731925706.tar.zst

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.

@0x00101010
Copy link
Contributor

0x00101010 commented Nov 22, 2024

Trying 2 downloads to see if I could reproduce:

  1. base-mainnet-full-1731925706.tar.zst => latest
  2. base-mainnet-full-1731839014.tar.zst => the ones you mentioned

I download latest

11/21 02:53:43 [ERROR] CUID#7 - Download aborted. URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731925706.tar.zst Exception: [AbstractCommand.cc:351] errorCode=22 URI=https://mainnet-full-snapshots.base.org/base-mainnet-full-1731925706.tar.zst -> [HttpSkipResponseCommand.cc:239] errorCode=22 The response status is not successful. status=403

11/21 02:53:43 [NOTICE] Download GID#a702387759a7b2b3 not complete: /home/snap1/base-mainnet-full-1731925706.tar.zst

Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= a70238|ERR | 12MiB/s|/home/snap1/base-mainnet-full-1731925706.tar.zst

Status Legend: (ERR):error occurred.

aria2 will resume download if the transfer is restarted. If there are any errors, then see the log file. See '-l' option in help/man page for details.

How long before your download was aborted?

I was able to replicate this myself, digging into this

@0x00101010
Copy link
Contributor

submitted ticket to cloudflare (where we host the snapshts) for triage, will update here once we hear back

@usoftvn
Copy link

usoftvn commented Nov 23, 2024

I can't download with wget, I can download for a while and then have to download again. I download it takes about 10% to 30% and then the connection is lost and it asks to re-download. This happens constantly and I can't complete the download.
Is there any way to fix this problem?

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 36 100 36 0 0 115 0 --:--:-- --:--:-- --:--:-- 115
--2024-11-23 03:17:52-- https://mainnet-full-snapshots.base.org/base-mainnet-full-1732178835.tar.zst
Resolving mainnet-full-snapshots.base.org (mainnet-full-snapshots.base.org)... 2606:4700:4400::6812:2899, 2606:4700:4400::ac40:9367, 104.18.40.153, ...
Connecting to mainnet-full-snapshots.base.org (mainnet-full-snapshots.base.org)|2606:4700:4400::6812:2899|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1871006057191 (1.7T)
Saving to: ‘base-mainnet-full-1732178835.tar.zst’

base-mainnet-full-1732178835.tar.zst 0%[ ] 3.88G 7.31MB/s in 3m 16s

2024-11-23 03:21:09 (20.3 MB/s) - Connection closed at byte 4162936404. Retrying.

--2024-11-23 03:21:10-- (try: 2) https://mainnet-full-snapshots.base.org/base-mainnet-full-1732178835.tar.zst
Connecting to mainnet-full-snapshots.base.org (mainnet-full-snapshots.base.org)|2606:4700:4400::6812:2899|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1871006057191 (1.7T)
Saving to: ‘base-mainnet-full-1732178835.tar.zst’

base-mainnet-full-1732178835.tar.zst 0%[ ] 2.69G 31.9MB/s in 1m 46s

2024-11-23 03:23:00 (25.9 MB/s) - Connection closed at byte 4162936404. Retrying.

--2024-11-23 03:23:02-- (try: 3) https://mainnet-full-snapshots.base.org/base-mainnet-full-1732178835.tar.zst
Connecting to mainnet-full-snapshots.base.org (mainnet-full-snapshots.base.org)|2606:4700:4400::6812:2899|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1871006057191 (1.7T)
Saving to: ‘base-mainnet-full-1732178835.tar.zst’

base-mainnet-full-1732178835.tar.zst 0%[ ] 2.09G 28.9MB/s in 84s

2024-11-23 03:24:26 (25.7 MB/s) - Connection closed at byte 4162936404. Retrying.

--2024-11-23 03:24:29-- (try: 4) https://mainnet-full-snapshots.base.org/base-mainnet-full-1732178835.tar.zst
Connecting to mainnet-full-snapshots.base.org (mainnet-full-snapshots.base.org)|2606:4700:4400::6812:2899|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1871006057191 (1.7T)
Saving to: ‘base-mainnet-full-1732178835.tar.zst’

@bab3nk0v
Copy link

I am experiencing the same issues. I believe the problem can be addressed by enabling the server to support the Accept-Ranges header. This would allow downloads to resume from where the connection was interrupted instead of restarting from the beginning.

@bab3nk0v
Copy link

Update: The download just failed again. I confirm that the issue persists, and I have been unable to download the snapshot for several days. I tried around 10 times, and none of the downloads exceeded 500GB before the connection dropped.

In my opinion, connection interruptions are not the core issue—network reliability is inherently variable. The key is to ensure that downloads can resume from where they left off. Utilities like aria2 and wget are capable of resuming interrupted downloads. However, for this to work, the server must support certain features, such as:

  • Returning the Accept-Ranges header in HTTP responses to indicate that range-based downloads are supported.
  • Handling Range requests properly to allow clients to request specific parts of a file.

If the server can ensure these features are correctly implemented, it would allow users to resume downloads seamlessly, even after interruptions, resolving much of the frustration around this issue.

@usoftvn
Copy link

usoftvn commented Nov 26, 2024

Is there anywhere else that stores the snapshot?

@0x00101010
Copy link
Contributor

Hey everybody, just wanna pop in here to say that we're actively investigating this issue along with cloudflare, and will update here asap when we have a solution.

In the meantime, you can follow the incident at https://status.base.org/

cc: @usoftvn @Mohammed-Alanazisa @bab3nk0v @liusDong @azeonmarket

@0x00101010
Copy link
Contributor

Update that cloudflare team has seen range request headers being dropped, they're investigating further

@jun0tpyrc
Copy link

it did work for me but unstable ..
i need to use aria2 with more download threads and still regularly check back when all being broken to rerun and pulled a working one finally

was doing with base-mainnet-full-1731147805.tar.zst

@usoftvn
Copy link

usoftvn commented Nov 28, 2024

This issue is taking a while to resolve. While investigating, is it possible to push the snapshot to another server?

@usoftvn
Copy link

usoftvn commented Dec 1, 2024

It's been two weeks and I can't run the node because I can't download the snapshot. Does anyone have a quick solution while waiting for the project to resolve this issue?

@0x00101010
Copy link
Contributor

0x00101010 commented Dec 2, 2024

Hey y'all, we've worked with cloudflare team and believe this issue is fixed now. Please try again and let us know if you are still experiencing the issue.

TLDR of the root cause is that there's this cache feature for cloudflare R2 that tries to cache the underlying object when serving the download requests, and since our snapshots are too big (in terabytes), the cache feature is not actually designed for that (it does not issue range request for large files), therefore the download breaks a lot.

Now that we've disabled the caching feature, it should work now.

cc: @usoftvn @Mohammed-Alanazisa @bab3nk0v @liusDong @azeonmarket @jun0tpyrc

@usoftvn
Copy link

usoftvn commented Dec 3, 2024

Hey y'all, we've worked with cloudflare team and believe this issue is fixed now. Please try again and let us know if you are still experiencing the issue.

TLDR of the root cause is that there's this cache feature for cloudflare R2 that tries to cache the underlying object when serving the download requests, and since our snapshots are too big (in terabytes), the cache feature is not actually designed for that (it does not issue range request for large files), therefore the download breaks a lot.

Now that we've disabled the caching feature, it should work now.

cc: @usoftvn @Mohammed-Alanazisa @bab3nk0v @liusDong @azeonmarket @jun0tpyrc

The snapshot download has completed. It looks like the problem is solved. Thanks.

@0x00101010
Copy link
Contributor

Closing this now as this should've been fixed by various reports

@jotto
Copy link

jotto commented Dec 4, 2024

The download is indeed working now (thank you), but it seems the snapshots (at least for Reth archive), are ~2.5 weeks behind, and syncing is slow enough that it may not catch up to head.

@0x00101010
Copy link
Contributor

0x00101010 commented Dec 4, 2024

The download is indeed working now (thank you), but it seems the snapshots (at least for Reth archive), are ~2.5 weeks behind, and syncing is slow enough that it may not catch up to head.

@jotto it seems like our latest reth snapshot is just two days old:

curl https://mainnet-reth-archive-snapshots.base.org/latest
base-mainnet-reth-1733199514.tar.zst => 2 days ago

@jotto
Copy link

jotto commented Dec 4, 2024

The timestamps on the URLs look 1-2 days old, but when you download, untar, and start Reth from the snapshot, it's somewhere around ~22,222,400 (latest block is 23,275,735).

I haven't tried yesterday's snapshot 1733199514 (Tuesday, December 3, 2024 4:18:34 AM)

but have tried the 2 previous days:

  • 1733113266 (Monday, December 2, 2024 4:21:06 AM)
  • 1733026714 (Sunday, December 1, 2024 4:18:34 AM)

are you able to check if the reth node producing these snapshots is synced to head?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants
@jotto @0x00101010 @bab3nk0v @liusDong @jun0tpyrc @usoftvn @azeonmarket and others