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

Error: Genesis is not needed (either Postgres DB or tree's Rocks DB is not empty) #1241

Open
devudilip opened this issue Feb 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@devudilip
Copy link

Facing the error Error: Genesis is not needed while running the below command.

zk stack demo

Below is the stack trace

Runningtarget/release/zksync_server --genesis`
2024-02-23T20:25:11.554778Z INFO zksync_server: No sentry URL was provided
2024-02-23T20:25:11.591532Z INFO zksync_dal::connection: Created DB pool with parameters ConnectionPoolBuilder { max_size: 1, acquire_timeout: 30s, statement_timeout: None }
Error: genesis_init

Caused by:
0: Call to contract failed: Api error: code 429
1: Api error: code 429
2: code 429

Stack backtrace:
0: std::backtrace_rs::backtrace::libunwind::trace
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1: std::backtrace_rs::backtrace::trace_unsynchronized
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: std::backtrace::Backtrace::create
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/backtrace.rs:331:13
3: std::backtrace::Backtrace::capture
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/backtrace.rs:297:9
4: anyhow::error::<impl core::convert::From for anyhow::Error>::from
5: zksync_core::genesis_init::{{closure}}
6: zksync_server::main::{{closure}}
7: tokio::runtime::park::CachedParkThread::block_on
8: tokio::runtime::context::runtime::enter_runtime
9: tokio::runtime::runtime::Runtime::block_on
10: zksync_server::main
11: std::sys_common::backtrace::__rust_begin_short_backtrace
12: std::rt::lang_start::{{closure}}
13: core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/core/src/ops/function.rs:284:13
14: std::panicking::try::do_call
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:524:40
15: std::panicking::try
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:488:19
16: std::panic::catch_unwind
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panic.rs:142:14
17: std::rt::lang_start_internal::{{closure}}
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/rt.rs:148:48
18: std::panicking::try::do_call
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:524:40
19: std::panicking::try
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:488:19
20: std::panic::catch_unwind
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panic.rs:142:14
21: std::rt::lang_start_internal
at /rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/rt.rs:148:20
22: _main
23:
Error: Genesis is not needed (either Postgres DB or tree's Rocks DB is not empty)`

@devudilip devudilip added the bug Something isn't working label Feb 23, 2024
@EmilLuta
Copy link
Contributor

cc: @Deniallugo

@Deniallugo
Copy link
Contributor

You are either limited by your web3 provider or by our main node.

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

3 participants