smartcontracts / simple-optimism-node

The easiest way to run an Optimism node
MIT License
318 stars 106 forks source link

Bedrock node init issue #76

Closed dandavid3000 closed 6 months ago

dandavid3000 commented 1 year ago

Hi ! I pulled the latest version on github and executed it. Legacy data was synced from L2 The configuration:

BEDROCK_SOURCE=migration

It seems that the docker doesn't have the container. The issue is as below:

docker compose up
[+] Running 10/10
 ⠿ Container simple-optimism-node-op-geth-1                 Recreated                                                                                                                                         0.1s
 ⠿ Container simple-optimism-node-fault-detector-bedrock-1  Recreated                                                                                                                                         0.2s
 ⠿ Container simple-optimism-node-healthcheck-bedrock-1     Recreated                                                                                                                                         0.1s
 ⠿ Container simple-optimism-node-fault-detector-1          Recreated                                                                                                                                         0.3s
 ⠿ Container simple-optimism-node-healthcheck-1             Recreated                                                                                                                                         0.3s
 ⠿ Container simple-optimism-node-op-node-1                 Recreated                                                                                                                                         0.3s
 ⠿ Container simple-optimism-node-l2geth-1                  Recreated                                                                                                                                         0.1s
 ⠿ Container simple-optimism-node-prometheus-1              Recreated                                                                                                                                         0.3s
 ⠿ Container simple-optimism-node-bedrock-init-1            Recreated                                                                                                                                         0.3s
 ⠿ Container simple-optimism-node-dtl-1                     Recreated                                                                                                                                         0.3s
Error response from daemon: No such container: a0bc9da5c44302817d5c968e682624a64ec2b3b72c495affb535f07141df37d8

Expected the node to use legacy data and migrate it and then run bedrock smoothly.

Chomtana commented 8 months ago

I'm not pretty sure this script can migrate from pre-bedrock but I recommend you and anybody who read this to resync from scratch. If you have an issue with bedrock snapshot download, my fork has fixed this issue and uses an official snapshot.

Check out https://github.com/Chomtana/simple-optimism-node/tree/main/scripts

Pull request https://github.com/smartcontracts/simple-optimism-node/pull/97

smartcontracts commented 8 months ago

Going to temporarily disable migration because it's too unstable at the moment, will add it back in once I figure out how to get the upstream repo to give better support for it

Chomtana commented 6 months ago

Don't think migration is needed anymore as it's half a year from bedrock merge