smartcontracts / simple-optimism-node

The easiest way to run an Optimism node
MIT License
324 stars 112 forks source link

Bedrock snapshot no longer exists #124

Closed adrianchiforwm closed 7 months ago

adrianchiforwm commented 7 months ago

Hi, we're trying to spin up a new OP node and we're getting the following error in the bedrock init container:

...
Bedrock node needs to be initialized...
Initializing via download...
Fetching download link...
Downloading bedrock.tar...

02/13 16:12:20 [NOTICE] Downloading 1 item(s)

02/13 16:12:20 [ERROR] CUID#7 - Download aborted. URI=https://r2-snapshots.fastnode.io/op/op-10-02-2024-full.tar.lz4.tar.lz4
Exception: [AbstractCommand.cc:351] errorCode=3 URI=https://r2-snapshots.fastnode.io/op/op-10-02-2024-full.tar.lz4.tar.lz4
  -> [HttpSkipResponseCommand.cc:218] errorCode=3 Resource not found

02/13 16:12:20 [NOTICE] Download GID#edfb68535c617e6b not complete: //downloads/bedrock.tar.lz4

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
edfb68|ERR |       0B/s|//downloads/bedrock.tar.lz4

Status Legend:
(ERR):error occurred.
adrianchiforwm commented 7 months ago

Actually it does exist, the filename upstream is just malformed (it shouldn't have an extension): https://r2-snapshots.fastnode.io/op/latest-mainnet

https://github.com/smartcontracts/simple-optimism-node/blob/main/scripts/init-bedrock.sh#L27

BEDROCK_TAR_DOWNLOAD="https://r2-snapshots.fastnode.io/op/$(curl -s https://r2-snapshots.fastnode.io/op/latest-mainnet).tar.lz4"

Gets a double extension

https://r2-snapshots.fastnode.io/op/op-10-02-2024-full.tar.lz4.tar.lz4
Chomtana commented 7 months ago

I think fastnode has changed the format. You can remove extra .tar.lz4 as a hotfix for now. Will look into this tomorrow.

Chomtana commented 7 months ago

Should be fixed in recent merge