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

"unable to perform genesis on the database" #3304

Open
S1nus opened this issue Nov 18, 2024 · 0 comments
Open

"unable to perform genesis on the database" #3304

S1nus opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@S1nus
Copy link

S1nus commented Nov 18, 2024

🐛 Bug Report

📝 Description

After running zkstack chain init, to initialize a chain on an init'd ecosystem on Sepolia testnet, we get this error

🔄 Reproduction Steps

After running zkstack ecosystem init, it failed to initialize my chain because I accidentally removed the wallets.yaml file in my chains/chain_name/configs/ folder. I attempted to recover by going into the chain's directory and running zkstack chain init, which led to this error.

🤔 Expected Behavior

We expect it to initialize the chain

😯 Current Behavior

Doesn't initialize, seems unable to genesis the database

🖥️ Environment

Ubuntu on x86_64

📎 Log Output

2024-11-18T23:01:13.890009Z ERROR zksync_node_framework::service: Task oneshot_runner
│      failed: Oneshot task node_storage_initializer failed
│      
│      Caused by:
│      0: Failed to save SetChainId upgrade transaction
│      1: JSON-RPC request get_logs(filter=Filter { from_block: Some(Number(7055260)), to_block: Some(Latest), block_hash:
│      None, address: Some(ValueOrArray([0x6bbfbb73b27a1bf0d2141377859b99c5d984b37b])), topics:
│      Some([Some(ValueOrArray([0x6cddf65a8ecde9818f721d40492026200e10a08f5057291c5cc77eb7d020d617])),
│      Some(ValueOrArray([0x000000000000000000000000b12f71233b12ab8bb91957a85bd884a003e08291]))]), limit: None }) failed:
│      Request rejected `413`
│      2: Request rejected `413`
│      3: Request rejected `413`
│      2024-11-18T23:01:13.890036Z  INFO zksync_node_framework::service: One of the task has
│      exited, shutting down the node
│      2024-11-18T23:01:13.890080Z  INFO zksync_node_framework::service: Exiting the service
│      
│  
│    Stderr:
│      Finished `release` profile [optimized] target(s) in 0.63s
│      Running `target/release/zksync_server --genesis-path /root/finisher/chains/finisher/configs/genesis.yaml --wallets-path
│      /root/finisher/chains/finisher/configs/wallets.yaml --config-path /root/finisher/chains/finisher/configs/general.yaml
│      --secrets-path /root/finisher/chains/finisher/configs/secrets.yaml --contracts-config-path
│      /root/finisher/chains/finisher/configs/contracts.yaml --genesis`
│      Error: One or more tasks failed: ["Task oneshot_runner failed: Oneshot task node_storage_initializer failed: Failed to
│      save SetChainId upgrade transaction: JSON-RPC request get_logs(filter=Filter { from_block: Some(Number(7055260)),
│      to_block: Some(Latest), block_hash: None, address: Some(ValueOrArray([0x6bbfbb73b27a1bf0d2141377859b99c5d984b37b])),
│      topics: Some([Some(ValueOrArray([0x6cddf65a8ecde9818f721d40492026200e10a08f5057291c5cc77eb7d020d617])),
│      Some(ValueOrArray([0x000000000000000000000000b12f71233b12ab8bb91957a85bd884a003e08291]))]), limit: None }) failed:
│      Request rejected `413`: Request rejected `413`: Request rejected `413`"]
│      
│  
■  Unable to perform genesis on the database
│  
▲    0: Failed to start server
│    1: Command failed to run: cargo run --release --bin zksync_server -- --genesis-path /root/finisher/chains/finisher/configs/genesis.yaml --wallets-path /root/finisher/chains/finisher/configs/wallets.yaml --config-path /root/finisher/chains/finisher/configs/general.yaml --secrets-path /root/finisher/chains/finisher/configs/secrets.yaml --contracts-config-path /root/finisher/chains/finisher/configs/contracts.yaml --genesis
│      Finished `release` profile [optimized] target(s) in 0.63s
│       Running `target/release/zksync_server --genesis-path /root/finisher/chains/finisher/configs/genesis.yaml --wallets-path /root/finisher/chains/finisher/configs/wallets.yaml --config-path /root/finisher/chains/finisher/configs/general.yaml --secrets-path /root/finisher/chains/finisher/configs/secrets.yaml --contracts-config-path /root/finisher/chains/finisher/configs/contracts.yaml --genesis`
│  Error: One or more tasks failed: ["Task oneshot_runner failed: Oneshot task node_storage_initializer failed: Failed to save SetChainId upgrade transaction: JSON-RPC request get_logs(filter=Filter { from_block: Some(Number(7055260)), to_block: Some(Latest), block_hash: None, address: Some(ValueOrArray([REDACTED_ADDRESS])), topics: Some([Some(ValueOrArray([REDACTED_ADDRESS])), Some(ValueOrArray([0x000000000000000000000000b12f71233b12ab8bb91957a85bd884a003e08291]))]), limit: None }) failed: Request rejected `413`: Request rejected `413`: Request rejected `413`"]
│  
│    2: Command failed to run: cargo run --release --bin zksync_server -- --genesis-path /root/finisher/chains/finisher/configs/genesis.yaml --wallets-path /root/finisher/chains/finisher/configs/wallets.yaml --config-path /root/finisher/chains/finisher/configs/general.yaml --secrets-path /root/finisher/chains/finisher/configs/secrets.yaml --contracts-config-path /root/finisher/chains/finisher/configs/contracts.yaml --genesis
│  
└  Failed to run command
@S1nus S1nus added the bug Something isn't working label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant