I am new to grin.Today i learn to create a new grin node.I compile grin from source code following this doc https://github.com/mimblewimble/grin/blob/master/doc/build.md,on ubuntu 18.04
,but failed to start up a grin node when i execute grin.This is the error log in the ~/.grin/main/grin-server.log
20210215 23:16:13.782 INFO grin_util::logger - log4rs is initialized, file level: Info, stdout level: Warn, min. level: Info
20210215 23:16:13.782 INFO grin - Using configuration file at /home/cephd/.grin/main/grin-server.toml
20210215 23:16:13.782 INFO grin - This is Grin version 5.1.0-alpha.1 (git v5.0.0-beta.2-8-ga3aed4a), built for x86_64-unknown-linux-gnu by rustc 1.50.0 (cb75ad5db 2021-02-10).
20210215 23:16:13.782 INFO grin - Chain: Mainnet
20210215 23:16:13.782 INFO grin - Accept Fee Base: 500000
20210215 23:16:13.782 INFO grin - Future Time Limit: 300
20210215 23:16:13.782 INFO grin - Feature: NRD kernel enabled: false
20210215 23:16:13.782 WARN grin::cmd::server - Starting GRIN in UI mode…
20210215 23:16:13.782 INFO grin_servers::server - Starting server, genesis block: 40adad0aec27
20210215 23:16:13.797 INFO grin_store::lmdb - Resized database from 1048576 to 134217728
20210215 23:16:13.937 INFO grin_chain::chain - init: saved genesis: 40adad0aec27
20210215 23:16:13.962 INFO grin_servers::server - Starting rest apis at: 127.0.0.1:3413
20210215 23:16:13.962 WARN grin_api::handlers - Starting HTTP Node APIs server at 127.0.0.1:3413.
20210215 23:16:13.962 WARN grin_api::handlers - HTTP Node listener started.
20210215 23:16:13.962 INFO grin_servers::server - Starting dandelion monitor: 127.0.0.1:3413
20210215 23:16:13.962 WARN grin_servers::server - Grin server started.
20210215 23:16:13.962 INFO grin_servers::common::types - DandelionEpoch: next_epoch: is_stem: true (90%), relay: None
20210215 23:16:14.910 ERROR grin_util::logger -
thread ‘main’ panicked at ‘attempt to calculate the remainder with a divisor of zero’: /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive-0.15.0/src/backends/curses/mod.rs:93 0: grin_util::logger::send_panic_to_log::{{closure}}
at util/src/logger.rs:317
1: std::panicking::rust_panic_with_hook
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:595
2: std::panicking::begin_panic_handler::{{closure}}
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:495
3: std::sys_common::backtrace::__rust_end_short_backtrace
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/sys_common/backtrace.rs:141
4: rust_begin_unwind
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/std/src/panicking.rs:493
5: core::panicking::panic_fmt
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:92
6: core::panicking::panic
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/panicking.rs:50
7: cursive::backends::curses::find_closest
8: cursive::backends::curses::find_closest_pair
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive-0.15.0/src/backends/curses/mod.rs:70
cursive::backends::curses::pan::find_closest_pair
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive-0.15.0/src/backends/curses/pan.rs:33
cursive::backends::curses::pan::Backend::get_or_create
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive-0.15.0/src/backends/curses/pan.rs:117
9: cursive::backends::curses::pan::Backend::set_colors
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive-0.15.0/src/backends/curses/pan.rs:129
<cursive::backends::curses::pan::Backend as cursive_core::backend::Backend>::set_color
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive-0.15.0/src/backends/curses/pan.rs:381
10: cursive_core::with_color
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/printer.rs:307
11: <grin::tui::logs::LogBufferView as cursive_core::view::view_trait::View>::draw
at src/bin/tui/logs.rs:91
12: cursive_core::view::view_wrapper::ViewWrapper::wrap_draw::{{closure}}
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/view/view_wrapper.rs:51
<cursive_core::views::named_view::NamedView as cursive_core::view::view_wrapper::ViewWrapper>::with_view::{{closure}}
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/views/named_view.rs:55
core::option::Option::map
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/option.rs:453
<cursive_core::views::named_view::NamedView as cursive_core::view::view_wrapper::ViewWrapper>::with_view
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/views/named_view.rs:55
cursive_core::view::view_wrapper::ViewWrapper::wrap_draw
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/view/view_wrapper.rs:51
cursive_core::view::view_wrapper::::draw
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/view/view_wrapper.rs:107
<cursive_core::views::resized_view::ResizedView as cursive_core::view::view_wrapper::ViewWrapper>::wrap_draw
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/views/resized_view.rs:201
cursive_core::view::view_wrapper::::draw
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/view/view_wrapper.rs:107
13: cursive_core::view::view_wrapper::ViewWrapper::wrap_draw::{{closure}}
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/view/view_wrapper.rs:51
<cursive_core::views::named_view::NamedView as cursive_core::view::view_wrapper::ViewWrapper>::with_view::{{closure}}
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/views/named_view.rs:55
core::option::Option::map
at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b/library/core/src/option.rs:453
<cursive_core::views::named_view::NamedView as cursive_core::view::view_wrapper::ViewWrapper>::with_view
at /home/cephd/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/cursive_core-0.1.0/src/views/named_view.rs:55
2 Likes
Hi @jerrify ! The immediate problem looks to be a bug related to terminal color detection. Your report is great and gives enough information to fix it, which I’ll get started on.
Until then, you could try running with a different terminal emulation that supports colors. If you’re still running into difficulty, what is the output of echo $TERM;tput colors
?
xref: Panic in `cursive` dependency · Issue #3595 · mimblewimble/grin · GitHub