aeternal icon indicating copy to clipboard operation
aeternal copied to clipboard

Error loading blocks missing field `hash`

Open dincho opened this issue 4 years ago • 2 comments

Note: for support questions, please use the forum. This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...

    • [x] bug report
    • [ ] feature request
    • [ ] support request => Please do not submit support request here, see note at the top of this template.
  • Do you want to request a feature or report a bug?

  • What is the current behavior?

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  • What is the expected behavior?

No crashes

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment:

    • Node Version: v5.0.1
    • Protocol Version: 4
    • Sophia Compiler version: v4.0.0
    • Rust version: rustc 1.41.0-nightly (e87a205c2 2019-11-27)
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. forum, telegram, etc)

2020-03-12T19:34:19.640954008+01:00 ERROR aeternal::loader - Error loading blocks missing field `hash`
stack backtrace:
   0: aeternal::middleware_result::MiddlewareError::new
             at src/middleware_result.rs:14
   1: <aeternal::middleware_result::MiddlewareError as core::convert::From<serde_json::error::Error>>::from
             at src/middleware_result.rs:55
   2: aeternal::loader::BlockLoader::internal_load_block
             at src/loader.rs:417
   3: aeternal::loader::BlockLoader::load_blocks::{{closure}}
             at src/loader.rs:379
      diesel::connection::Connection::transaction
             at /home/newby/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.3/src/connection/mod.rs:98
   4: aeternal::loader::BlockLoader::load_blocks
             at src/loader.rs:377
   5: aeternal::loader::BlockLoader::start
             at src/loader.rs:638
   6: aeternal::main::{{closure}}
             at src/main.rs:312
   7: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/sys_common/backtrace.rs:136
   8: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/thread/mod.rs:469
      <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panic.rs:316
      std::panicking::try::do_call
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panicking.rs:289
   9: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:81
  10: std::panicking::try
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panicking.rs:267
      std::panic::catch_unwind
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panic.rs:395
      std::thread::Builder::spawn_unchecked::{{closure}}
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/thread/mod.rs:468
      core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libcore/ops/function.rs:232
  11: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/liballoc/boxed.rs:969
  12: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/liballoc/boxed.rs:969
      std::sys_common::thread::start_thread
             at src/libstd/sys_common/thread.rs:13
      std::sys::unix::thread::Thread::new::thread_start
             at src/libstd/sys/unix/thread.rs:79
  13: start_thread
  14: __clone

dincho avatar Mar 13 '20 09:03 dincho

One more, different field, probably related/same:

2020-03-12T19:37:21.898022983+01:00 ERROR aeternal::loader - Error loading blocks missing field `transactions`
stack backtrace:
   0: aeternal::middleware_result::MiddlewareError::new
             at src/middleware_result.rs:14
   1: <aeternal::middleware_result::MiddlewareError as core::convert::From<serde_json::error::Error>>::from
             at src/middleware_result.rs:55
   2: aeternal::loader::BlockLoader::internal_load_block
             at src/loader.rs:429
   3: aeternal::loader::BlockLoader::load_blocks::{{closure}}
             at src/loader.rs:379
      diesel::connection::Connection::transaction
             at /home/newby/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel-1.4.3/src/connection/mod.rs:98
   4: aeternal::loader::BlockLoader::load_blocks
             at src/loader.rs:377
   5: aeternal::loader::BlockLoader::start
             at src/loader.rs:638
   6: aeternal::main::{{closure}}
             at src/main.rs:312
   7: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/sys_common/backtrace.rs:136
   8: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/thread/mod.rs:469
      <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panic.rs:316
      std::panicking::try::do_call
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panicking.rs:289
   9: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:81
  10: std::panicking::try
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panicking.rs:267
      std::panic::catch_unwind
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/panic.rs:395
      std::thread::Builder::spawn_unchecked::{{closure}}
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libstd/thread/mod.rs:468
      core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/libcore/ops/function.rs:232
  11: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/liballoc/boxed.rs:969
  12: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/e87a205c2e117d9fb57f6cdeac0a7f6e95c88316/src/liballoc/boxed.rs:969
      std::sys_common::thread::start_thread
             at src/libstd/sys_common/thread.rs:13
      std::sys::unix::thread::Thread::new::thread_start
             at src/libstd/sys/unix/thread.rs:79
  13: start_thread
  14: __clone

dincho avatar Mar 13 '20 09:03 dincho

This one renders the middleware unresponsive

dincho avatar Mar 13 '20 09:03 dincho