conflux-rust icon indicating copy to clipboard operation
conflux-rust copied to clipboard

panicked at 'always set in DownloadingChunks'

Open lilslim opened this issue 2 years ago • 2 comments

this is the first time I've tried running a conflux node. it seems I'm having an issue with an SQL database. I've tried basic troubleshooting but to no avail.

NODE

cfx_storage: - Failed to create sqlite db for ./blockchain_data\storage_db\snapshot\sqlite_full_sync_temp_cbfa414749218235ddab01640633a0fb1c0de8666e27b1c1ef66fcaa9fa610bce2d4579d6e69d86002fc3fded892650f244c3d4f66e015eab907a880df149318\shard_00, remove all temporary files ["./blockchain_data\storage_db\snapshot\sqlite_full_sync_temp_cbfa414749218235ddab01640633a0fb1c0de8666e27b1c1ef66fcaa9fa610bce2d4579d6e69d86002fc3fded892650f244c3d4f66e015eab907a880df149318\shard_00-wal", "./blockchain_data\storage_db\snapshot\sqlite_full_sync_temp_cbfa414749218235ddab01640633a0fb1c0de8666e27b1c1ef66fcaa9fa610bce2d4579d6e69d86002fc3fded892650f244c3d4f66e015eab907a880df149318\shard_00-shm"]

STDERR

details = '''panicked at 'always set in DownloadingChunks', core\src\sync\state\snapshot_chunk_sync.rs:410:26''' backtrace = ''' 0: 0x7ff672123105 - backtrace::backtrace::trace::h2e000f7fd2d813f0 1: 0x7ff672121f19 - backtrace::capture::Backtrace::new::h13f59ae35e9cd23e 2: 0x7ff671982dcc - crash_handler::setup_panic_handler::h62bc131a271d8856 3: 0x7ff6722532ba - std::panicking::rust_panic_with_hook at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\std\src\panicking.rs:702 4: 0x7ff67225300d - std::panicking::begin_panic_handler::closure$0 at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\std\src\panicking.rs:588 5: 0x7ff672250ae7 - std::sys_common::backtrace::__rust_end_short_backtracestd::panicking::begin_panic_handler::closure_env$0,never$ at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\std\src\sys_common\backtrace.rs:138 6: 0x7ff672252ce9 - std::panicking::begin_panic_handler at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\std\src\panicking.rs:584 7: 0x7ff67264c655 - core::panicking::panic_fmt at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\core\src\panicking.rs:142 8: 0x7ff67226b310 - core::panicking::panic_display at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\core\src\panicking.rs:72 9: 0x7ff67226b2bb - core::panicking::panic_str at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\core\src\panicking.rs:56 10: 0x7ff67264c4a9 - core::option::expect_failed at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\core\src\option.rs:1854 11: 0x7ff67160fdb4 - cfxcore::sync::state::snapshot_chunk_sync::SnapshotChunkSync::update_status::h59684900aa1d5a88 12: 0x7ff6717cd61d - <cfxcore::sync::synchronization_phases::CatchUpCheckpointPhase as cfxcore::sync::synchronization_phases::SynchronizationPhaseTrait>::next::h318ddee193712d71 13: 0x7ff6714b4f8e - cfxcore::sync::synchronization_protocol_handler::SynchronizationProtocolHandler::update_sync_phase::hb8b6f856927a6c95 14: 0x7ff6714ba6c2 - <cfxcore::sync::synchronization_protocol_handler::SynchronizationProtocolHandler as network::NetworkProtocolHandler>::on_timeout::h3e521e4cc01fe194 15: 0x7ff671cfc751 - <network::service::NetworkServiceInner as io::IoHandlernetwork::NetworkIoMessage>::timeout::hce66195a0fcd6b9a 16: 0x7ff671ce2b23 - io::worker::Worker::work_loop::h3004da15ce80df71 17: 0x7ff671d350e5 - std::sys_common::backtrace::__rust_begin_short_backtrace::h99508d1d9b346c9f 18: 0x7ff671d2e77e - std::thread::Builder::spawn::heddf3d911896cf93 19: 0x7ff672259b6c - alloc::boxed::impl$44::call_once at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc\library\alloc\src\boxed.rs:1872 20: 0x7ff672259b6c - alloc::boxed::impl$44::call_once at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc\library\alloc\src\boxed.rs:1872 21: 0x7ff672259b6c - std::sys::windows::thread::impl$0::new::thread_start at /rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library\std\src\sys\windows\thread.rs:56 22: 0x7ff849957034 - BaseThreadInitThunk 23: 0x7ff84a9226a1 - RtlUserThreadStart '''

lilslim avatar Sep 17 '22 02:09 lilslim

I realized I didn't have SQLite installed on my windows machine. installed it and still the same error

lilslim avatar Sep 17 '22 07:09 lilslim

Could you please check the node log file to see if there is another line like Failed to create snapshot for epoch_id XXX with error XXX?

This error should contain detailed information about why the sqlite db cannot be created. It's usually caused by a permission issue or a full disk.

peilun-conflux avatar Sep 19 '22 07:09 peilun-conflux