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

sui-indexer is bug #21037

Open
MaGua-Bishop opened this issue Jan 31, 2025 · 6 comments
Open

sui-indexer is bug #21037

MaGua-Bishop opened this issue Jan 31, 2025 · 6 comments
Assignees

Comments

@MaGua-Bishop
Copy link

When I was running sui-indexer to synchronize with pgdb, I found the following related errors

Argument `gc_checkpoint_files`'s selected action SetTrue contradicts `takes_value`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

my command is:

cargo run --bin sui-indexer -- --config-path config.yaml

full error log is :

root@dal0187:/sui/code/sui/crates/sui-indexer# RUST_BACKTRACE=1 ./start.sh
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.97s
     Running `/sui/code/sui/target/debug/sui-indexer --config-path config.yaml`
thread 'main' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/debug_asserts.rs:708:9:
Argument `gc_checkpoint_files`'s selected action SetTrue contradicts `takes_value`
stack backtrace:
   0: rust_begin_unwind
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_fmt
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/panicking.rs:74:14
   2: clap_builder::builder::debug_asserts::assert_arg
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/debug_asserts.rs:708:9
   3: clap_builder::builder::debug_asserts::assert_app
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/debug_asserts.rs:58:9
   4: clap_builder::builder::command::Command::_build_self
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/command.rs:4123:13
   5: clap_builder::parser::features::suggestions::did_you_mean_flag::{{closure}}
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/parser/features/suggestions.rs:56:17
   6: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/ops/function.rs:294:13
   7: <core::slice::iter::IterMut<T> as core::iter::traits::iterator::Iterator>::find_map
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/slice/iter/macros.rs:319:38
   8: <core::iter::adapters::filter_map::FilterMap<I,F> as core::iter::traits::iterator::Iterator>::next
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/iter/adapters/filter_map.rs:64:9
   9: <core::iter::adapters::map::Map<I,F> as core::iter::traits::iterator::Iterator>::next
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/iter/adapters/map.rs:108:9
  10: core::iter::traits::iterator::Iterator::reduce
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/iter/traits/iterator.rs:2624:21
  11: core::iter::traits::iterator::Iterator::min_by
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/iter/traits/iterator.rs:3324:9
  12: core::iter::traits::iterator::Iterator::min_by_key
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/iter/traits/iterator.rs:3295:39
  13: clap_builder::parser::features::suggestions::did_you_mean_flag
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/parser/features/suggestions.rs:53:17
  14: clap_builder::parser::parser::Parser::did_you_mean_error
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/parser/parser.rs:1547:28
  15: clap_builder::parser::parser::Parser::get_matches_with
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/parser/parser.rs:156:40
  16: clap_builder::builder::command::Command::_do_parse
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/command.rs:4000:29
  17: clap_builder::builder::command::Command::try_get_matches_from_mut
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/command.rs:830:9
  18: clap_builder::builder::command::Command::get_matches_from
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/command.rs:701:9
  19: clap_builder::builder::command::Command::get_matches
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/builder/command.rs:610:9
  20: clap_builder::derive::Parser::parse
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.2/src/derive.rs:27:27
  21: sui_indexer::main::{{closure}}
             at ./src/main.rs:23:16
  22: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/future/future.rs:123:9
  23: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/park.rs:284:63
  24: tokio::runtime::coop::with_budget
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/coop.rs:107:5
  25: tokio::runtime::coop::budget
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/coop.rs:73:5
  26: tokio::runtime::park::CachedParkThread::block_on
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/park.rs:284:31
  27: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/context/blocking.rs:66:9
  28: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/scheduler/multi_thread/mod.rs:87:13
  29: tokio::runtime::context::runtime::enter_runtime
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/context/runtime.rs:65:16
  30: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/scheduler/multi_thread/mod.rs:86:9
  31: tokio::runtime::runtime::Runtime::block_on_inner
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/runtime.rs:370:45
  32: tokio::runtime::runtime::Runtime::block_on
             at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.43.0/src/runtime/runtime.rs:340:13
  33: sui_indexer::main
             at ./src/main.rs:42:5
  34: core::ops::function::FnOnce::call_once
             at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Copy link
Contributor

Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!

@gegaowp
Copy link
Contributor

gegaowp commented Jan 31, 2025

can you share the cargo.yaml file (after removing / replacing sensitive data for sure)

@MaGua-Bishop
Copy link
Author

sure

[package]
name = "sui-indexer"
version.workspace = true
authors = ["Mysten Labs <[email protected]>"]
license = "Apache-2.0"
publish = false
edition = "2021"

[dependencies]
anyhow.workspace = true
rand = "0.8.5"
async-trait.workspace = true
axum.workspace = true
backoff.workspace = true
bb8 = "0.8.5"
bcs.workspace = true
bytes.workspace = true
chrono.workspace = true
clap = { workspace = true, features = ["env"] }
csv.workspace = true
diesel = { workspace = true, features = ["chrono", "serde_json"] }
diesel-async = { workspace = true, features = ["bb8", "postgres", "async-connection-wrapper"] }
futures.workspace = true
hex.workspace = true
indicatif.workspace = true
itertools.workspace = true
jsonrpsee.workspace = true
object_store.workspace = true
prometheus.workspace = true
rayon.workspace = true
regex.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_with.workspace = true
strum.workspace = true
strum_macros.workspace = true
tap.workspace = true
tempfile.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full"] }
tokio-util = { workspace = true, features = ["rt"] }
toml.workspace = true
tracing.workspace = true
url.workspace = true

fastcrypto = { workspace = true, features = ["copy_key"] }
mysten-metrics.workspace = true
simulacrum.workspace = true
sui-config.workspace = true
sui-archival.workspace = true
sui-core.workspace = true
sui-data-ingestion-core.workspace = true
sui-json.workspace = true
sui-json-rpc.workspace = true
sui-json-rpc-api.workspace = true
sui-json-rpc-types.workspace = true
sui-open-rpc.workspace = true
sui-pg-db.workspace = true
sui-sdk.workspace = true
sui-snapshot.workspace = true
sui-storage.workspace = true
sui-types.workspace = true
sui-package-resolver.workspace = true
sui-protocol-config.workspace = true
telemetry-subscribers.workspace = true
sui-rpc-api.workspace = true
sui-transaction-builder.workspace = true
sui-synthetic-ingestion.workspace = true

move-core-types.workspace = true
move-bytecode-utils.workspace = true
move-binary-format.workspace = true

diesel_migrations.workspace = true
cached.workspace = true
tokio-stream.workspace = true
dashmap.workspace = true

[dev-dependencies]
sui-keys.workspace = true
sui-move-build.workspace = true
sui-swarm-config.workspace = true
sui-test-transaction-builder.workspace = true
test-cluster.workspace = true
ntest.workspace = true
criterion.workspace = true

[[bin]]
name = "sui-indexer"
path = "src/main.rs"

@gegaowp
Copy link
Contributor

gegaowp commented Feb 6, 2025

I meant your config.yaml as this looks like a mis-config thing, sry for the confusion

@MaGua-Bishop
Copy link
Author

sure config.yaml:

db_url: "postgres://xxxxxxx:pddddddddddp@localhost:5430/sui_data"
rpc_client_url: "http://localhost:9000"

@MaGua-Bishop
Copy link
Author

Hello, can you help me

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

No branches or pull requests

4 participants