X-CASH-official / xcash-core

📦 First Cryptonote coin with public & private transactions, custom DPOS consensus
https://xcash.foundation
Other
66 stars 20 forks source link

Exception when running xcashd in service #15

Closed jelgersma closed 3 years ago

jelgersma commented 4 years ago

🐛 BUG REPORT

Expected Behavior Start Daemon with exceptions. At first it runs fine as soon as it starts the P2P service it gives these exceptions

Current Behavior

2020-05-23 17:12:25.270 [P2P8] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1266 [x:18280 OUT] Synced 60647/600431 (10% 539784 blocks remaining) 2020-05-23 17:12:26.807 [P2P8] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1266 [x:18280 OUT] Synced 60746/600431 (10% 539685 blocks remaining) 2020-05-23 17:12:35.627 [P2P8] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1266 [x:18280 OUT] Synced 60845/600431 (10% 539586 blocks remaining) 2020-05-23 17:12:44.695 [P2P8] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1266 [x:18280 OUT] Synced 60944/600431 (10% 539487 blocks remaining) 2020-05-23 17:12:44.697 [RPC0] INFO stacktrace src/common/stack_trace.cpp:133 Exception: std::__ios_failure 2020-05-23 17:12:44.697 [RPC0] INFO stacktrace src/common/stack_trace.cpp:134 Unwound call stack: 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [1] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:__cxa_throw+0x10a [0x55d7144f8f2a] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [2] /usr/lib/x86_64-linux-gnu/libstdc++.so.6:std::__throw_ios_failure(char const*)+0x88 [0x7f09dd419fe8] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [3] /usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xf877a [0x7f09dd44e77a] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [4] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::file_io_utils::get_file_size(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long&)+0x22b [0x55d71442cd5b] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [5] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:cryptonote::BlockchainLMDB::get_database_size() const+0x62 [0x55d7143fa4e2] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [6] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:cryptonote::core_rpc_server::on_get_info_json(cryptonote::COMMAND_RPC_GET_INFO::request const&, cryptonote::COMMAND_RPC_GET_INFO::response&, epee::json_rpc::error&)+0x472 [0x55d7143114d2] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [7] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:bool cryptonote::core_rpc_server::handle_http_request_map<epee::net_utils::connection_context_base>(epee::net_utils::http::http_request_info const&, epee::net_utils::http::http_response_info&, epee::net_utils::connection_context_base&)+0x1863a [0x55d71426b6ba] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [8] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:cryptonote::core_rpc_server::handle_http_request(epee::net_utils::http::http_request_info const&, epee::net_utils::http::http_response_info&, epee::net_utils::connection_context_base&)+0x18e [0x55d7142714ce] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [9] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base>::handle_request(epee::net_utils::http::http_request_info const&, epee::net_utils::http::http_response_info&)+0xad [0x55d71423f62d] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [10] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::net_utils::http::simple_http_connection_handler<epee::net_utils::connection_context_base>::handle_request_and_send_response(epee::net_utils::http::http_request_info const&)+0x13e [0x55d7141fd4ae] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [11] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::net_utils::http::simple_http_connection_handler<epee::net_utils::connection_context_base>::handle_retriving_query_body()+0x1b7 [0x55d7141fd907] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [12] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::net_utils::http::simple_http_connection_handler<epee::net_utils::connection_context_base>::handle_buff_in(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)+0x198 [0x55d714274c88] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [13] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::net_utils::http::simple_http_connection_handler<epee::net_utils::connection_context_base>::handle_recv(void const*, unsigned long)+0x3d [0x55d71427536d] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [14] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >::handle_read(boost::system::error_code const&, unsigned long)+0x22a [0x55d71427560a] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [15] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long> >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::binder2<boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::system::error_code, unsigned long>&)+0x77 [0x55d714234ad7] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [16] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:boost::asio::detail::completion_handler<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x160 [0x55d714234e10] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [17] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:void boost::asio::detail::strand_service::dispatch<boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > > >(boost::asio::detail::strand_service::strand_impl*&, boost::asio::detail::rewrapped_handler<boost::asio::detail::binder2<boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running>, boost::system::error_code, unsigned long>, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> > >&)+0x26f [0x55d71423519f] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [18] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::wrapped_handler<boost::asio::io_service::strand, boost::_bi::bind_t<void, boost::_mfi::mf2<void, epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >, boost::system::error_code const&, unsigned long>, boost::_bi::list3<boost::_bi::value<boost::shared_ptr<epee::net_utils::connection<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> > > >, boost::arg<1> (*)(), boost::arg<2> (*)()> >, boost::asio::detail::is_continuation_if_running> >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+0x1e9 [0x55d714235489] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [19] /home/ubuntu/x-network/xcash-core/build/release/bin/xcashd:epee::net_utils::boosted_tcp_server<epee::net_utils::http::http_custom_handler<epee::net_utils::connection_context_base> >::worker_thread()+0x8dc [0x55d7141ddf9c] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [20] /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.65.1+0x11bcd [0x7f09dd6f0bcd] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [21] /lib/x86_64-linux-gnu/libpthread.so.0+0x76db [0x7f09dcf266db] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172 [22] /lib/x86_64-linux-gnu/libc.so.6:clone+0x3f [0x7f09dcc4f88f] 2020-05-23 17:12:44.699 [RPC0] INFO stacktrace src/common/stack_trace.cpp:172

Steps to Reproduce (for bugs)

  1. Blank Ubuntu 18.04 server, up-to-date
  2. Download autoinstaller.sh
  3. Run autoinstaller.sh and use all default values
  4. When everything is up and running check the logs. It will fetch blocks and throw this error during that process.

Your Environment

jelgersma commented 4 years ago

Okay so Im running it as a solo delegate. The block fetching is done, but the exception keeps being thrown. It also seems that due to this exception my Daemon isn't coming online.

zachhildreth commented 4 years ago

Hi @jelgersma We have seen this during the alpha testing.

From what I can tell it seems to be a reporting bug with systemd and xcash-core, and does not affect in any way the xcashd or XCASH_DPOPS.

I still need to look into more to be 100% sure but that is were we are at now, as the daemon is never crashing yet it is reporting it is.

I will leave the issue open though until we find the for sure reason, but ignore the xcashd logs, and just focus on the XCASH_DPOPS logs when maintaining your DPOPS delegates, as that is where the real XCASH_DPOPS program is running, and xcashd is just for the blockchain data.

Julien59247787 commented 4 years ago

Hi, same kind of pb and follow the info in your reply but can you confirm that --log-file is support in the xcash-dpops binarie like xcash-daemon and xcash-wallet ?

thank you

zachhildreth commented 4 years ago

Hi @Julien59247787 yes it has --log-file and --log-file-color for using tail with color output

Julien59247787 commented 4 years ago

Hi Zach and ty for your confirmation ... For my part, this does not create any log file when I use --log-file or --log-file-color at the end of the command line copy from xcash_dpops systemdfile for example. Is there a special place to put it in the command line?

plbgnt commented 4 years ago

@Julien59247787 --log-file parameter takes a txt file as input, so you need to specify as : --log-file /x-network/logs/xcash-daemon-log.txt

Julien59247787 commented 4 years ago

Hi and the command line used (same as xcash_dpops systemd file but with --log-file parameter addon)

/home/xxxxxx/x-network/xcash-dpops/build/XCASH_DPOPS --block_verifiers_secret_key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --shared_delegates_website --fee xxxxxxx --minimum_amount xxxxxx --log-file /home/xxxxxxx/x-network/logs/XCASH_DPOPS_log.txt

I will test with different parameter order to see if it change something

Thank for help

plbgnt commented 4 years ago

Can you try --log_file instead of --log-file ? The newest version with only '-' hypens hasn't been pushed yet

Julien59247787 commented 4 years ago

perfect !

It work with "_" instead of "-" !

Thank you :)

(Ready for the beta :) )

zachhildreth commented 3 years ago

closing this, as these are just fake errors