Open COLUD4 opened 1 week ago
Hey @COLUD4, thanks for bringing it up! I’m looking into a possible fix.
Hey @COLUD4, thanks for bringing it up! I’m looking into a possible fix.
version:0.28.2-2.3.0-rc.4 I also got an error using this version
srpc2-refiner | starting refiner: [/usr/local/bin/aurora-refiner -c /config/refiner.json run --height 131480846]
srpc2-refiner | 2024-10-30T02:25:41.118937Z INFO indexer: Load config from /near...
srpc2-refiner | 2024-10-30T02:25:41.119196Z WARN neard: /near/config.json: encountered unrecognised fields: network.external_address, network.reconnect_delay, consensus.reduce_wait_for_missing_block, consensus.state_fetch_horizon
srpc2-refiner | 2024-10-30T02:25:41.119208Z INFO config: Validating Config, extracted from config.json...
srpc2-refiner | 2024-10-30T02:25:41.121769Z WARN genesis: Skipped genesis validation
srpc2-refiner | 2024-10-30T02:25:41.121837Z INFO config: Validating Genesis config and records. This could take a few minutes...
srpc2-refiner | 2024-10-30T02:25:41.122082Z INFO config: All validations have passed!
srpc2-refiner | 2024-10-30T02:25:41.122391Z INFO db_opener: Opening NodeStorage path="/near/data" cold_path="none"
srpc2-refiner | 2024-10-30T02:25:41.122424Z INFO db: Opened a new RocksDB instance. num_instances=1
srpc2-refiner | 2024-10-30T02:25:41.163030Z INFO db: Closed a RocksDB instance. num_instances=0
srpc2-refiner | 2024-10-30T02:25:41.163040Z INFO db_opener: The database exists. path=/near/data
srpc2-refiner | 2024-10-30T02:25:41.163049Z INFO db: Opened a new RocksDB instance. num_instances=1
srpc2-refiner | 2024-10-30T02:25:41.514928Z INFO db: Closed a RocksDB instance. num_instances=0
srpc2-refiner | 2024-10-30T02:25:41.514954Z INFO db: Opened a new RocksDB instance. num_instances=1
srpc2-refiner | 2024-10-30T02:25:41.540580Z INFO db: Closed a RocksDB instance. num_instances=0
srpc2-refiner | 2024-10-30T02:25:41.540593Z INFO db: Opened a new RocksDB instance. num_instances=1
srpc2-refiner | 2024-10-30T02:25:41.828969Z INFO memtrie: Loading tries to memory for shards []...
srpc2-refiner | 2024-10-30T02:25:41.832258Z INFO memtrie: Memtries loading complete for shards []
srpc2-refiner | 2024-10-30T02:25:41.832265Z INFO chain: Init: header head @ #131501015 4NH17kobYiY6Whd7uPMCrMTMMTEPpVcmbTxThm8bCmJE; block head @ #131480965 4WTaUH47DiwLG4oUXgbDaxqhMvTnYYS3aX6aYUUFEK6C
srpc2-refiner | 2024-10-30T02:25:41.835610Z INFO client: Starting validator node: node0fa16dd8b3426c06.near
srpc2-refiner | 2024-10-30T02:25:41.835643Z WARN client: The account 'node0fa16dd8b3426c06.near' is not a current validator, this node won't be validating in the current epoch
srpc2-refiner | 2024-10-30T02:25:41.850759Z INFO network: Starting http server at 0.0.0.0:3030
srpc2-refiner | 2024-10-30T02:25:41.850853Z INFO actix_server::builder: starting 4 workers
srpc2-refiner | 2024-10-30T02:25:41.850864Z INFO bandwidth: Bandwidth stats total_bandwidth_used_by_all_peers=0 total_msg_received_count=0
srpc2-refiner | 2024-10-30T02:25:41.876469Z INFO stats: #131480965 Waiting for peers 0 peers ⬇ 0 B/s ⬆ 0 B/s NaN bps 0 gas/s CPU: 0%, Mem: 167 MB
srpc2-refiner | 2024-10-30T02:25:41.970687Z INFO network: Closing connection to Some(ed25519:5pRiNCHbXFALoVqHJtqvUdJadT85r6L3GVSnyUeS3GJX@165.154.65.209:24567) err=Recv(IO(Kind(UnexpectedEof)))
srpc2-refiner | 2024-10-30T02:25:42.817440Z INFO indexer: Starting Streamer...
srpc2-refiner | 2024-10-30T02:25:42.817440Z INFO indexer: Starting Streamer...
srpc2-refiner | 2024-10-30T02:25:42.824400Z INFO actix_server::server: Actix runtime found; starting in Actix runtime
srpc2-refiner | 2024-10-30T02:25:42.824412Z INFO actix_server::server: starting service: "actix-web-service-0.0.0.0:3030", workers: 4, listening on: 0.0.0.0:3030
srpc2-refiner | 2024-10-30T02:25:42.851503Z INFO network: tier2 failed to connect to ed25519:CDQFcD9bHUWdc31rDfRi4ZrJczxg8derCzybcac142tK@35.196.209.192:24567 err="tcp::Stream::connect(): deadline has elapsed"
srpc2-refiner | 2024-10-30T02:25:42.853444Z INFO network: Failed to connect to ed25519:DUTxtvRwfBxs648W6TQjXH9dH6FhhvB9aVa8sLFyz1qX@34.90.162.215:24567 err="tcp::Stream::connect(): deadline has elapsed"
srpc2-refiner | 2024-10-30T02:25:42.971576Z INFO network: tier2 failed to connect to ed25519:86EtEy7epneKyrcJwSWP7zsisTkfDRH5CFVszt4qiQYw@35.195.32.249:24567 err="tcp::Stream::connect(): deadline has elapsed"
srpc2-refiner | 2024-10-30T02:25:42.977517Z INFO network: tier2 failed to connect to ed25519:BFB78VTDBBfCY4jCP99zWxhXUcFAZqR22oSx2KEr8UM1@35.229.222.235:24567 err="tcp::Stream::connect(): deadline has elapsed"
srpc2-refiner | 2024-10-30T02:25:42.985454Z INFO network: tier2 failed to connect to ed25519:Cw1YyiX9cybvz3yZcbYdG7oDV6D7Eihdfc8eM1e1KKoh@35.195.27.104:24567 err="tcp::Stream::connect(): deadline has elapsed"
srpc2-refiner | 2024-10-30T02:25:43.000377Z INFO network: tier2 failed to connect to ed25519:Cw1YyiX9cybvz3yZcbYdG7oDV6D7Eihdfc8eM1e1KKoh@35.195.27.104:24567 err="tcp::Stream::connect(): deadline has elapsed"
srpc2-refiner | 2024-10-30T02:25:43.015848Z INFO network: tier2 failed to connect to ed25519:Cw1YyiX9cybvz3yZcbYdG7oDV6D7Eihdfc8eM1e1KKoh@35.195.27.104:24567 err="tcp::Stream::connect(): deadline has elapsed"
srpc2-refiner | 2024-10-30T02:25:43.364907Z WARN telemetry: Failed to send telemetry data err=Connect(Io(Custom { kind: Other, error: "unexpected EOF" })) endpoint="https://explorer.mainnet.near.org/api/nodes"
srpc2-refiner | 2024-10-30T02:25:44.197480Z WARN aurora_standalone_engine::sync: Incorrect result in processing receipt_id=0x8d73fbce7b59ff28eba99d185f49c018fb87be7a341d3f435693b4cadcb38c49 computed differed from expected
srpc2-refiner | 2024-10-30T02:25:44.197497Z WARN aurora_standalone_engine::sync: Receipt 0x8d73fbce7b59ff28eba99d185f49c018fb87be7a341d3f435693b4cadcb38c49 diff mismatch with computed diff
srpc2-refiner | 2024-10-30T02:25:44.198914Z WARN aurora_refiner_lib::refiner_inner: Mismatch between Near and Engine outputs. The internal Engine instance may not have the correct state.
srpc2-refiner | thread 'main' panicked at /usr/local/cargo/git/checkouts/aurora-engine-7e378a275ccc464a/338dd61/engine-precompiles/src/xcc.rs:262:16:
srpc2-refiner | ERR_MISSING_WNEAR_ADDRESS
srpc2-refiner | stack backtrace:
srpc2-refiner | 0: rust_begin_unwind
srpc2-refiner | 1: core::panicking::panic_fmt
srpc2-refiner | 2: aurora_engine_precompiles::xcc::state::get_wnear_address
srpc2-refiner | 3: aurora_engine::hashchain::with_logs_hashchain
srpc2-refiner | 4: engine_standalone_storage::sync::execute_transaction
srpc2-refiner | 5: engine_standalone_storage::Storage::with_engine_access
srpc2-refiner | 6: engine_standalone_storage::sync::consume_message
srpc2-refiner | 7: aurora_standalone_engine::sync::consume_near_block
srpc2-refiner | 8: aurora_refiner::main::{{closure}}::{{closure}}
srpc2-refiner | 9: <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll
srpc2-refiner | 10: tokio::runtime::scheduler::current_thread::Context::enter
srpc2-refiner | 11: tokio::runtime::context::scoped::Scoped<T>::set
srpc2-refiner | 12: aurora_refiner::main
srpc2-refiner | note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
srpc2-refiner | 2024-10-30T02:25:45.036032Z INFO chain: Sync block headers num_headers=512 first_hash=3ommaz2TgHHY5VMPASvK6XdmsJuWmCXc13n6HqnNwr7Z first_height=131501016 last_hash=CqajosocWheAJtZDcSdjwZ3AzHSnYiEoSpoYkyAwLkD1 last_height=131501527
srpc2-refiner | thread 'actix-rt|system:0|arbiter:0' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/time/entry.rs:568:9:
srpc2-refiner | A Tokio 1.x context was found, but it is being shutdown.
srpc2-refiner | stack backtrace:
srpc2-refiner | 0: rust_begin_unwind
srpc2-refiner | 1: core::panicking::panic_fmt
srpc2-refiner | 2: tokio::runtime::time::entry::TimerEntry::poll_elapsed::panic_cold_display
srpc2-refiner | 3: tokio::runtime::time::entry::TimerEntry::poll_elapsed
srpc2-refiner | 4: <tokio::time::sleep::Sleep as core::future::future::Future>::poll
srpc2-refiner | 5: tokio::time::interval::Interval::poll_tick
srpc2-refiner | 6: near_store::metrics::spawn_db_metrics_loop::{{closure}}
srpc2-refiner | 7: tokio::runtime::task::core::Core<T,S>::poll
srpc2-refiner | 8: tokio::runtime::task::harness::Harness<T,S>::poll
srpc2-refiner | 9: tokio::task::local::LocalSet::tick
srpc2-refiner | 10: <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll
srpc2-refiner | 11: tokio::task::local::LocalSet::run_until::{{closure}}
srpc2-refiner | 12: tokio::runtime::scheduler::current_thread::Context::enter
srpc2-refiner | 13: tokio::runtime::context::scoped::Scoped<T>::set
srpc2-refiner | 14: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
srpc2-refiner | 15: tokio::runtime::context::runtime::enter_runtime
srpc2-refiner | 16: tokio::runtime::runtime::Runtime::block_on
srpc2-refiner | note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
srpc2-refiner | thread 'actix-rt|system:0|arbiter:1' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.40.0/src/runtime/time/entry.rs:568:9:
@COLUD4, have you tried to invoke XCC calls? (EVM -> NEAR) ? If so, read here how to setup a contract for that. Brifly, you should have ERC-20 contract deployed via deploy_erc20_token
transaction which corresponds wrap.near
. After that, you need to deploy XCC factory via upgrade_factory
transaction and set wNEAR ERC-20 address via factory_set_wnear_address
.
Hey @COLUD4, thanks for bringing it up! I’m looking into a possible fix.
Hello, is there a good solution yet?
Hey @COLUD4, thanks for bringing it up! I’m looking into a possible fix.
@alexander-borodulya Hello, is there a good solution yet?
@COLUD4 @YuXiaoCoder I apologize for the delay in reply
The error message ERR_MISSING_WNEAR_ADDRESS
indicates that the refiner instance lacks certain state information that is necessary to process a transaction.
More specifically, the error appeared because the refiner replays transactions locally and requires a complete history to function correctly.
A possible solution could be to run a refiner to process all historical blocks from where the Aurora Engine was first deployed. This complete processing will make the refiner build the required state and prevent such errors.
Unfortunately, a similar issue appeared some time ago, here are more details explained in this thread.
We started getting the error below on all of our refiner instances at the same time followed by a bunch of ERROR We're running the refiner v0.28.2-2.2.1
RUST_BACKTRACE=1
environment variable to display a backtrace thread 'thread 'actix-rtA Tokio 1.x context was found, but it is being shutdown.A Tokio 1.x context was found, but it is being shutdown.