Closed shermand100 closed 4 years ago
Please run with gdb, ie:
gdb ./monerod run --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18083 --rpc-restricted-bind-port=18089 --confirm-external-bind --rpc-payment-allow-free-loopback --rpc-ssl disabled --rpc-payment-address=43HoAhqx9q3MR1crAjpQtYVhvzQhZgqPwSWVQMmPvYmr18qVUEjCHcsEasuCxS486rWSSg1gbGqanet67NWRsh1bQL9KkB9 --rpc-payment-credits=5 --rpc-payment-difficulty=100 --log-level=3
Then after it does: bt full
And post the (probably multi page) output here.
Also, what's the time on your machine running monerod, and the one running the wallet ?
Please run with gdb, ie:
gdb ./monerod run --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18083 --rpc-restricted-bind-port=18089 --confirm-external-bind --rpc-payment-allow-free-loopback --rpc-ssl disabled --rpc-payment-address=43HoAhqx9q3MR1crAjpQtYVhvzQhZgqPwSWVQMmPvYmr18qVUEjCHcsEasuCxS486rWSSg1gbGqanet67NWRsh1bQL9KkB9 --rpc-payment-credits=5 --rpc-payment-difficulty=100 --log-level=3
Then after it does: bt full
And post the (probably multi page) output here.
I got 2005 lines in my Putty window before the error with gdb ./monerod... Below is the last, what seems like relevant bit. Here is a paste bin of the full 2005 lines for neatness of this post, but I can dig out the entire log file if needed.
Thread 6 "monerod" received signal SIGABRT, Aborted. [Switching to Thread 0x5a6feff0 (LWP 32072)] __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
Then bt full produces
(gdb) bt full
0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
set = {__val = {0, 0, 0, 33, 1517277968, 0, 33, 13677564, 1517278072, 1517277720, 1517277832, 3435973837, 13677760, 2147516424, 2147483648, 13677760, 13677472, 1517277864, 1517277872, 13677376, 1996482920, 1515191037, 941428179, 2192556127, 2433853511, 2046094773, 2154391251, 3911720874, 312995008, 4171879919, 187071671, 1517277800}} pid = <optimized out> tid = <optimized out> ret = <optimized out>
1 0x76380230 in __GI_abort () at abort.c:79
save_stage = 1 act = {__sigaction_handler = {sa_handler = 0x329c783a, sa_sigaction = 0x329c783a}, sa_mask = {__val = {2638505732, 3022368618, 4288634165, 2977451000, 344, 0 <repeats 23 times>, 1056552792, 2147483648, 1986876312, 0}}, sa_flags = 1190078464, sa_restorer = 0x5a6fd334} sigs = {__val = {32, 0 <repeats 31 times>}}
2 0x007f2038 in std::vector<boost::variant<cryptonote::txin_gen, cryptonote::txin_to_script, cryptonote::txin_to_scripthash, cryptonote::txin_to_key>, std::allocator<boost::variant<cryptonote::txin_gen, cryptonote::txin_to_script, cryptonote::txin_to_scripthash, cryptonote::txin_to_key> > >::operator=(std::vector<boost::variant<cryptonote::txin_gen, cryptonote::txin_to_script, cryptonote::txin_t--Type
for more, q to quit, c to continue without paging--
Also, what's the time on your machine running monerod, and the one running the wallet ?
Because I only have wallet-cli v0.16 on the same device as the node, this was produced locally. GMT so 1 hour ahead of what the Monerod quotes in it's logs.
I can do this (connect) from a different device (windows) but it would be with wallet-cli (v0.15.0.5)
You're missing the interesting part from gdb, it's not here nor in the paste. Note the message telling you to type for more, it's a multi page output.
You're missing the interesting part from gdb, it's not here nor in the paste. Note the message telling you to type for more, it's a multi page output.
My bad, a habbit of using ctrl+c to copy, so ending it.
This time:
3 outputs for you:
Because of the bt full "Backtrace stopped: previous frame identical to this frame (corrupt stack?)" when trying to view next page I repeated this to try and get a better output. This error was produced both times.
Big headers for easier scrolling...
2020-05-19 17:43:36.877 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.877 T Blockchain::get_difficulty_for_next_block
2020-05-19 17:43:36.877 T Blockchain::get_tail_id
2020-05-19 17:43:36.877 T mdb_txn_safe: destructor
2020-05-19 17:43:36.878 T BlockchainLMDB::top_block_hash
2020-05-19 17:43:36.878 T BlockchainLMDB::height
2020-05-19 17:43:36.878 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.878 T mdb_txn_safe: destructor
2020-05-19 17:43:36.878 T BlockchainLMDB::get_block_hash_from_height
2020-05-19 17:43:36.878 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.878 T BlockchainLMDB::get_txpool_tx_blob
2020-05-19 17:43:36.879 T Blockchain::get_transactions
2020-05-19 17:43:36.879 T mdb_txn_safe: destructor
2020-05-19 17:43:36.879 T Blockchain::get_tail_id
2020-05-19 17:43:36.879 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.879 T mdb_txn_safe: destructor
2020-05-19 17:43:36.880 T Blockchain::get_transactions
2020-05-19 17:43:36.880 T BlockchainLMDB::get_tx_blob
2020-05-19 17:43:36.880 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.881 T mdb_txn_safe: destructor
2020-05-19 17:43:36.884 T BlockchainLMDB::top_block_hash
2020-05-19 17:43:36.884 T BlockchainLMDB::height
2020-05-19 17:43:36.884 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.884 T mdb_txn_safe: destructor
2020-05-19 17:43:36.884 T BlockchainLMDB::get_block_hash_from_height
2020-05-19 17:43:36.884 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.884 T mdb_txn_safe: destructor
2020-05-19 17:43:36.885 T BlockchainLMDB::get_tx_blob
2020-05-19 17:43:36.885 D /json_rpc[rpc_access_submit_nonce] processed with 0/2749/0ms
2020-05-19 17:43:36.885 T HTTP_RESPONSE_HEAD: <<
2020-05-19 17:43:36.885 T HTTP/1.1 200 Ok
2020-05-19 17:43:36.885 T Server: Epee-based
2020-05-19 17:43:36.885 T Content-Length: 208
2020-05-19 17:43:36.885 T Content-Type: application/json
2020-05-19 17:43:36.885 T Last-Modified: Tue, 19 May 2020 17:43:36 GMT
2020-05-19 17:43:36.886 T Accept-Ranges: bytes
2020-05-19 17:43:36.886 T
2020-05-19 17:43:36.886 T Moving counter buffer by 1 second 23541 < 23544 (last time 23541.8)
2020-05-19 17:43:36.886 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.886 T Moving counter buffer by 1 second 23542 < 23544 (last time 23542.8)
2020-05-19 17:43:36.886 T Moving counter buffer by 1 second 23543 < 23544 (last time 23543.8)
2020-05-19 17:43:36.886 T Throttle throttle_speed_out: packet of ~368b (from 368 b) Speed AVG= 0[w=9.94099] 0[w=9.94099] / Limit=16 KiB/sec [368 0 0 781 270 0 0 0 0 0 ]
2020-05-19 17:43:36.887 T mdb_txn_safe: destructor
2020-05-19 17:43:36.887 D do_send_chunk() NOW SENSD: packet=368 B
2020-05-19 17:43:36.887 T Setting 00:30:00 expiry
2020-05-19 17:43:36.887 T Setting 00:30:00 expiry
2020-05-19 17:43:36.888 T [192.168.1.131:54281 INC] [sock 39] Async send calledback 368
2020-05-19 17:43:36.890 T BlockchainLMDB::get_txpool_tx_blob
2020-05-19 17:43:36.890 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.890 T mdb_txn_safe: destructor
2020-05-19 17:43:36.891 T Blockchain::get_transactions
2020-05-19 17:43:36.891 T BlockchainLMDB::get_txpool_tx_blob
2020-05-19 17:43:36.891 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.892 T mdb_txn_safe: destructor
2020-05-19 17:43:36.892 T BlockchainLMDB::get_tx_blob
2020-05-19 17:43:36.892 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.893 T Blockchain::get_transactions
2020-05-19 17:43:36.893 T mdb_txn_safe: destructor
2020-05-19 17:43:36.895 T Moving counter buffer by 1 second 23542 < 23544 (last time 23542.2)
2020-05-19 17:43:36.895 T Moving counter buffer by 1 second 23543 < 23544 (last time 23543.2)
2020-05-19 17:43:36.896 T Throttle throttle_speed_in: packet of ~115b (from 115 b) Speed AVG= 0[w=9.951] 0[w=9.951] / Limit=16 KiB/sec [115 0 476 432 425 0 0 0 0 0 ]
2020-05-19 17:43:36.896 T Throttle <<< global-IN: packet of ~115b (from 115 b) Speed AVG= 1[w=9.952] 1[w=9.952] / Limit=8192 KiB/sec [8052 0 476 8624 425 0 0 0 0 0 ]
2020-05-19 17:43:36.897 T HTTP HEAD:
2020-05-19 17:43:36.897 T Host: 192.168.1.116
2020-05-19 17:43:36.897 T Content-Length: 317
2020-05-19 17:43:36.897 T Content-Type: application/json; charset=utf-8
2020-05-19 17:43:36.898 T
2020-05-19 17:43:36.898 T Setting 00:30:00 expiry
2020-05-19 17:43:36.899 T Throttle throttle_speed_in: packet of ~317b (from 317 b) Speed AVG= 0[w=9.954] 0[w=9.954] / Limit=16 KiB/sec [432 0 476 432 425 0 0 0 0 0 ]
2020-05-19 17:43:36.899 T Throttle <<< global-IN: packet of ~317b (from 317 b) Speed AVG= 1[w=9.954] 1[w=9.954] / Limit=8192 KiB/sec [8369 0 476 8624 425 0 0 0 0 0 ]
2020-05-19 17:43:36.899 I HTTP [192.168.1.131] GET /json_rpc
2020-05-19 17:43:36.900 I [192.168.1.131:54281 INC] Calling RPC method rpc_access_info
2020-05-19 17:43:36.900 T BlockchainLMDB::get_tx_blob
2020-05-19 17:43:36.900 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.901 T mdb_txn_safe: destructor
2020-05-19 17:43:36.902 T Blockchain::get_tail_id
2020-05-19 17:43:36.904 T BlockchainLMDB::txpool_has_tx
2020-05-19 17:43:36.904 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.904 T mdb_txn_safe: destructor
2020-05-19 17:43:36.904 T Blockchain::have_tx
2020-05-19 17:43:36.905 T BlockchainLMDB::top_block_hash
2020-05-19 17:43:36.905 T BlockchainLMDB::height
2020-05-19 17:43:36.905 T BlockchainLMDB::tx_exists
2020-05-19 17:43:36.905 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.905 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.906 I transaction with hash eb4c2cf3ead5e04393453e02f7840b8e49f58661de4c0be3ca55607a9df79e19 not found in db
2020-05-19 17:43:36.906 T mdb_txn_safe: destructor
2020-05-19 17:43:36.906 T mdb_txn_safe: destructor
2020-05-19 17:43:36.906 T BlockchainLMDB::get_block_hash_from_height
2020-05-19 17:43:36.906 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.907 T mdb_txn_safe: destructor
2020-05-19 17:43:36.907 T BlockchainLMDB::get_txpool_tx_blob
2020-05-19 17:43:36.907 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.907 T mdb_txn_safe: destructor
2020-05-19 17:43:36.907 T Blockchain::get_transactions
2020-05-19 17:43:36.908 D /json_rpc[rpc_access_info] processed with 0/8/0ms
2020-05-19 17:43:36.908 T BlockchainLMDB::get_tx_blob
2020-05-19 17:43:36.908 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.908 T HTTP_RESPONSE_HEAD: <<
2020-05-19 17:43:36.908 T HTTP/1.1 200 Ok
2020-05-19 17:43:36.908 T Server: Epee-based
2020-05-19 17:43:36.909 T Content-Length: 685
2020-05-19 17:43:36.909 T Content-Type: application/json
2020-05-19 17:43:36.909 T Last-Modified: Tue, 19 May 2020 17:43:36 GMT
2020-05-19 17:43:36.910 T Accept-Ranges: bytes
2020-05-19 17:43:36.910 T
2020-05-19 17:43:36.910 T mdb_txn_safe: destructor
2020-05-19 17:43:36.910 T Throttle throttle_speed_out: packet of ~845b (from 845 b) Speed AVG= 0[w=9.966] 0[w=9.966] / Limit=16 KiB/sec [1213 0 0 781 270 0 0 0 0 0 ]
2020-05-19 17:43:36.911 D do_send_chunk() NOW SENSD: packet=845 B
2020-05-19 17:43:36.911 T Setting 00:30:00 expiry
2020-05-19 17:43:36.911 T Setting 00:30:00 expiry
2020-05-19 17:43:36.912 T [192.168.1.131:54281 INC] [sock 39] Async send calledback 845
2020-05-19 17:43:36.913 T BlockchainLMDB::get_txpool_tx_blob
2020-05-19 17:43:36.913 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.913 T mdb_txn_safe: destructor
2020-05-19 17:43:36.914 T Blockchain::get_transactions
2020-05-19 17:43:36.914 T BlockchainLMDB::get_tx_blob
2020-05-19 17:43:36.915 T BlockchainLMDB::height
2020-05-19 17:43:36.915 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.915 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.915 T mdb_txn_safe: destructor
2020-05-19 17:43:36.916 T BlockchainLMDB::get_block_already_generated_coins
2020-05-19 17:43:36.916 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.916 T mdb_txn_safe: destructor
2020-05-19 17:43:36.916 D Using 0.000000011197/byte fee
2020-05-19 17:43:36.916 T mdb_txn_safe: destructor
2020-05-19 17:43:36.919 T Blockchain::check_tx_outputs
2020-05-19 17:43:36.919 T Blockchain::check_tx_inputs
2020-05-19 17:43:36.919 T BlockchainLMDB::height
2020-05-19 17:43:36.919 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.919 T mdb_txn_safe: destructor
2020-05-19 17:43:36.920 T Blockchain::check_tx_inputs
2020-05-19 17:43:36.920 D Mixin: 10-10
2020-05-19 17:43:36.920 T Blockchain::have_tx_keyimg_as_spent
2020-05-19 17:43:36.920 T BlockchainLMDB::has_key_image
2020-05-19 17:43:36.920 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:36.965 T mdb_txn_safe: destructor
2020-05-19 17:43:36.965 T Blockchain::check_tx_input
2020-05-19 17:43:36.965 T Blockchain::scan_outputkeys_for_indexes
2020-05-19 17:43:36.965 T BlockchainLMDB::get_output_key
2020-05-19 17:43:36.966 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.129 T db3: 163
2020-05-19 17:43:37.129 T mdb_txn_safe: destructor
2020-05-19 17:43:37.129 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.129 T BlockchainLMDB::height
2020-05-19 17:43:37.129 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.130 T mdb_txn_safe: destructor
2020-05-19 17:43:37.130 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.130 T BlockchainLMDB::height
2020-05-19 17:43:37.130 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.130 T mdb_txn_safe: destructor
2020-05-19 17:43:37.130 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.130 T BlockchainLMDB::height
2020-05-19 17:43:37.130 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.130 T mdb_txn_safe: destructor
2020-05-19 17:43:37.130 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.130 T BlockchainLMDB::height
2020-05-19 17:43:37.131 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.131 T mdb_txn_safe: destructor
2020-05-19 17:43:37.131 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.131 T BlockchainLMDB::height
2020-05-19 17:43:37.131 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.131 T mdb_txn_safe: destructor
2020-05-19 17:43:37.131 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.131 T BlockchainLMDB::height
2020-05-19 17:43:37.131 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.131 T mdb_txn_safe: destructor
2020-05-19 17:43:37.132 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.132 T BlockchainLMDB::height
2020-05-19 17:43:37.132 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.132 T mdb_txn_safe: destructor
2020-05-19 17:43:37.132 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.132 T BlockchainLMDB::height
2020-05-19 17:43:37.132 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.132 T mdb_txn_safe: destructor
2020-05-19 17:43:37.132 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.132 T BlockchainLMDB::height
2020-05-19 17:43:37.132 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.132 T mdb_txn_safe: destructor
2020-05-19 17:43:37.133 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.133 T BlockchainLMDB::height
2020-05-19 17:43:37.133 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.133 T mdb_txn_safe: destructor
2020-05-19 17:43:37.133 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.133 T BlockchainLMDB::height
2020-05-19 17:43:37.133 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.133 T mdb_txn_safe: destructor
2020-05-19 17:43:37.133 T Blockchain::have_tx_keyimg_as_spent
2020-05-19 17:43:37.133 T BlockchainLMDB::has_key_image
2020-05-19 17:43:37.134 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.184 T Moving counter buffer by 1 second 23544 < 23545 (last time 23544.9)
2020-05-19 17:43:37.185 T Throttle throttle_speed_in: packet of ~115b (from 115 b) Speed AVG= 0[w=9.23999] 0[w=9.23999] / Limit=16 KiB/sec [115 432 0 476 432 425 0 0 0 0 ]
2020-05-19 17:43:37.185 T Moving counter buffer by 1 second 23544 < 23545 (last time 23544.9)
2020-05-19 17:43:37.185 T Throttle <<< global-IN: packet of ~115b (from 115 b) Speed AVG= 1[w=9.23999] 1[w=9.23999] / Limit=8192 KiB/sec [115 8369 0 476 8624 425 0 0 0 0 ]
2020-05-19 17:43:37.185 T HTTP HEAD:
2020-05-19 17:43:37.185 T Host: 192.168.1.116
2020-05-19 17:43:37.185 T Content-Length: 362
2020-05-19 17:43:37.185 T Content-Type: application/json; charset=utf-8
2020-05-19 17:43:37.185 T
2020-05-19 17:43:37.186 T Setting 00:29:59.748000 expiry
2020-05-19 17:43:37.187 T mdb_txn_safe: destructor
2020-05-19 17:43:37.188 T Blockchain::check_tx_input
2020-05-19 17:43:37.188 T Blockchain::scan_outputkeys_for_indexes
2020-05-19 17:43:37.188 T BlockchainLMDB::get_output_key
2020-05-19 17:43:37.189 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.235 T Throttle throttle_speed_in: packet of ~362b (from 362 b) Speed AVG= 0[w=9.29] 0[w=9.29] / Limit=16 KiB/sec [477 432 0 476 432 425 0 0 0 0 ]
2020-05-19 17:43:37.235 T Throttle <<< global-IN: packet of ~362b (from 362 b) Speed AVG= 1[w=9.291] 1[w=9.291] / Limit=8192 KiB/sec [477 8369 0 476 8624 425 0 0 0 0 ]
2020-05-19 17:43:37.235 I HTTP [192.168.1.131] GET /json_rpc
2020-05-19 17:43:37.236 I [192.168.1.131:54281 INC] Calling RPC method rpc_access_submit_nonce
2020-05-19 17:43:37.238 T Blockchain::get_tail_id
2020-05-19 17:43:37.382 I [202.142.33.132:18080 OUT] 9621 bytes sent for category command-2970651251 initiated by us
2020-05-19 17:43:37.383 T [202.142.33.132:18080 OUT] [levin_protocol] -->> start_outer_call
2020-05-19 17:43:37.383 T Moving counter buffer by 1 second 23505 < 23545 (last time 23505.2)
2020-05-19 17:43:37.383 T Moving counter buffer by 1 second 23506 < 23545 (last time 23506.2)
2020-05-19 17:43:37.383 T Moving counter buffer by 1 second 23507 < 23545 (last time 23507.2)
2020-05-19 17:43:37.383 T Moving counter buffer by 1 second 23508 < 23545 (last time 23508.2)
2020-05-19 17:43:37.383 T Moving counter buffer by 1 second 23509 < 23545 (last time 23509.2)
2020-05-19 17:43:37.383 T Moving counter buffer by 1 second 23510 < 23545 (last time 23510.2)
2020-05-19 17:43:37.384 T Moving counter buffer by 1 second 23511 < 23545 (last time 23511.2)
2020-05-19 17:43:37.384 T Moving counter buffer by 1 second 23512 < 23545 (last time 23512.2)
2020-05-19 17:43:37.384 T Moving counter buffer by 1 second 23513 < 23545 (last time 23513.2)
2020-05-19 17:43:37.384 T Moving counter buffer by 1 second 23514 < 23545 (last time 23514.2)
2020-05-19 17:43:37.384 T Moving counter buffer by 1 second 23515 < 23545 (last time 23515.2)
2020-05-19 17:43:37.384 T Moving counter buffer by 1 second 23516 < 23545 (last time 23516.2)
2020-05-19 17:43:37.384 T Moving counter buffer by 1 second 23517 < 23545 (last time 23517.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23518 < 23545 (last time 23518.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23519 < 23545 (last time 23519.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23520 < 23545 (last time 23520.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23521 < 23545 (last time 23521.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23522 < 23545 (last time 23522.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23523 < 23545 (last time 23523.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23524 < 23545 (last time 23524.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23525 < 23545 (last time 23525.2)
2020-05-19 17:43:37.385 T Moving counter buffer by 1 second 23526 < 23545 (last time 23526.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23527 < 23545 (last time 23527.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23528 < 23545 (last time 23528.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23529 < 23545 (last time 23529.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23530 < 23545 (last time 23530.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23531 < 23545 (last time 23531.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23532 < 23545 (last time 23532.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23533 < 23545 (last time 23533.2)
2020-05-19 17:43:37.386 T Moving counter buffer by 1 second 23534 < 23545 (last time 23534.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23535 < 23545 (last time 23535.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23536 < 23545 (last time 23536.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23537 < 23545 (last time 23537.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23538 < 23545 (last time 23538.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23539 < 23545 (last time 23539.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23540 < 23545 (last time 23540.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23541 < 23545 (last time 23541.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23542 < 23545 (last time 23542.2)
2020-05-19 17:43:37.387 T Moving counter buffer by 1 second 23543 < 23545 (last time 23543.2)
2020-05-19 17:43:37.388 T Moving counter buffer by 1 second 23544 < 23545 (last time 23544.2)
2020-05-19 17:43:37.388 T Throttle throttle_speed_out: packet of ~9654b (from 9654 b) Speed AVG= 0[w=9.438] 0[w=9.438] / Limit=16 KiB/sec [9654 0 0 0 0 0 0 0 0 0 ]
2020-05-19 17:43:37.388 D do_send_chunk() NOW SENSD: packet=9654 B
2020-05-19 17:43:37.388 T handler_write (direct) - before ASIO write, for packet=9654 B (after sleep)
2020-05-19 17:43:37.388 T Setting 00:05:00 expiry
2020-05-19 17:43:37.388 D [202.142.33.132:18080 OUT] LEVIN_PACKET_SENT. [len=9621, flags1, r?=0, cmd = 2002, ver=1
2020-05-19 17:43:37.389 T [202.142.33.132:18080 OUT] [levin_protocol] <<-- finish_outer_call
2020-05-19 17:43:37.389 T [202.142.33.132:18080 OUT] [sock 33] release
2020-05-19 17:43:37.389 T [202.142.33.132:18080 OUT] [sock 33] Async send calledback 9654
2020-05-19 17:43:37.389 T Moving counter buffer by 1 second 23543 < 23545 (last time 23543.5)
2020-05-19 17:43:37.390 T Moving counter buffer by 1 second 23544 < 23545 (last time 23544.5)
2020-05-19 17:43:37.390 T dbg >>> global-OUT: speed is A= 281.842 vs Max=2.09715e+06 so sleep: D=-9.44281 sec E= 2662 (Enow= 12316) M=2.09715e+06 W= 9.445 R=1.98049e+07 Wgood 11 History: [0 0 2662 0 0 0 0 0 0 0 ] m_last_sample_time= 23545.4
2020-05-19 17:43:37.390 T Throttle >>> global-OUT: packet of ~9654b (from 9654 b) Speed AVG= 0[w=9.446] 0[w=9.446] / Limit=2048 KiB/sec [9654 0 2662 0 0 0 0 0 0 0 ]
2020-05-19 17:43:37.403 T db3: 214
2020-05-19 17:43:37.403 T mdb_txn_safe: destructor
2020-05-19 17:43:37.403 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.404 T BlockchainLMDB::height
2020-05-19 17:43:37.404 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.405 T mdb_txn_safe: destructor
2020-05-19 17:43:37.405 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.405 T BlockchainLMDB::height
2020-05-19 17:43:37.405 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.406 T mdb_txn_safe: destructor
2020-05-19 17:43:37.406 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.406 T BlockchainLMDB::height
2020-05-19 17:43:37.407 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.407 T mdb_txn_safe: destructor
2020-05-19 17:43:37.407 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.407 T BlockchainLMDB::height
2020-05-19 17:43:37.408 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.409 T mdb_txn_safe: destructor
2020-05-19 17:43:37.409 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.410 T BlockchainLMDB::height
2020-05-19 17:43:37.410 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.411 T mdb_txn_safe: destructor
2020-05-19 17:43:37.412 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.412 T BlockchainLMDB::height
2020-05-19 17:43:37.413 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.413 T mdb_txn_safe: destructor
2020-05-19 17:43:37.414 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.415 T BlockchainLMDB::height
2020-05-19 17:43:37.415 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.416 T mdb_txn_safe: destructor
2020-05-19 17:43:37.416 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.417 T BlockchainLMDB::height
2020-05-19 17:43:37.418 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.418 T mdb_txn_safe: destructor
2020-05-19 17:43:37.419 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.419 T BlockchainLMDB::height
2020-05-19 17:43:37.420 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.420 T mdb_txn_safe: destructor
2020-05-19 17:43:37.421 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.421 T BlockchainLMDB::height
2020-05-19 17:43:37.421 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.422 T mdb_txn_safe: destructor
2020-05-19 17:43:37.422 T Blockchain::is_tx_spendtime_unlocked
2020-05-19 17:43:37.422 T BlockchainLMDB::height
2020-05-19 17:43:37.423 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.423 T mdb_txn_safe: destructor
2020-05-19 17:43:37.423 T BlockchainLMDB::height
2020-05-19 17:43:37.424 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.424 T mdb_txn_safe: destructor
2020-05-19 17:43:37.500 T BlockchainLMDB::height
2020-05-19 17:43:37.500 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.501 T mdb_txn_safe: destructor
2020-05-19 17:43:37.501 T BlockchainLMDB::get_block_hash_from_height
2020-05-19 17:43:37.501 T BlockchainLMDB::block_rtxn_start
2020-05-19 17:43:37.502 T mdb_txn_safe: destructor
2020-05-19 17:43:37.502 T BlockchainLMDB::batch_start
2020-05-19 17:43:37.502 T BlockchainLMDB::check_and_resize_for_batch
2020-05-19 17:43:37.503 T [check_and_resize_for_batch] checking DB size
2020-05-19 17:43:37.504 T BlockchainLMDB::need_resize
2020-05-19 17:43:37.504 D DB map size: 98557263872
2020-05-19 17:43:37.504 D Space used: 88234479616
2020-05-19 17:43:37.505 D Space remaining: 10322784256
2020-05-19 17:43:37.505 D Size threshold: 0
2020-05-19 17:43:37.505 D Percent used: 89.5261 Percent threshold: 89.9999
2020-05-19 17:43:37.506 T batch transaction: begin
2020-05-19 17:43:37.506 T BlockchainLMDB::get_txpool_tx_meta
2020-05-19 17:43:37.506 T BlockchainLMDB::remove_txpool_tx
2020-05-19 17:43:37.507 T BlockchainLMDB::add_txpool_tx
2020-05-19 17:43:37.507 T BlockchainLMDB::batch_stop
2020-05-19 17:43:37.508 T batch transaction: committing...
2020-05-19 17:43:37.518 T mdb_txn_safe: destructor
2020-05-19 17:43:37.518 T batch transaction: end
2020-05-19 17:43:37.519 I Transaction added to pool: txid
Thread 6 "monerod" received signal SIGABRT, Aborted. [Switching to Thread 0x5a7feff0 (LWP 23755)] __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50 50 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb)
(gdb) bt full
set = {__val = {0, 0, 2096218807, 189497231, 1518326228, 1978252153, 999730225, 4196136017, 1497398264, 96, 96, 1090699150, 3471035746,
3192895496, 3605679987, 2606098142, 1868450146, 76974984, 0, 2015174133, 1518326276, 0, 0, 1518326312, 1986402492, 1, 1518326300, 0,
0, 76974984, 0, 0}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x514feac0, sa_sigaction = 0x514feac0}, sa_mask = {__val = {46, 46, 4294967295, 0, 0,
1363954433, 1518326648, 2, 12707800, 1518326960, 15320684, 1518326656, 0, 1364025600, 46, 46, 1518326784, 1431655765, 1081464149,
258, 1363954224, 196, 196, 16968952, 0, 1518326936, 1986592768, 16968880, 1518327768, 96, 96, 1986876418}}, sa_flags = 4098,
sa_restorer = 0x1}
sigs = {__val = {32, 0 <repeats 31 times>}}
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
()
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
ret = <optimized out>
start = <optimized out>
pd = 0x5a7feff0
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {1009024672, 269501184, 1996482920, 1518333936, 1948230864, 338, 2130699986, 1518333936, 0,
1518332716, 0 <repeats 54 times>}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0,
--Type
canceltype = 0}}}
not_first_call = <optimized out>
No locals. Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb)
Helpful, thanks. I think I know what the problem is, I'll make a patch.
Helpful, thanks. I think I know what the problem is, I'll make a patch.
TBH I'm kinda thankful it's actually a real error. After I submitted it I had the gut feeling this was going to be another lesson in why not to mess around with single board computers. Haha
Please try the last patch in https://github.com/moneromooo-monero/bitmonero/tree/rpl
Sure, and just to clarify how I'm doing it:
I've removed my old Monero files
Downloaded v0.16 again with git clone --recursive -b release-v0.16 https://github.com/monero-project/monero.git
Replaced the files src/rpc/rpc_payment.cpp
and src/rpc/rpc_payment.h
with the changes you've made linked above.
I build with
USE_SINGLE_BUILDDIR=1 make
And will repeat my testing to see what the new outcome is. It will compile overnight on an Odroid XU4 this time so it's got a bit more power.
Edit: 20/05 pm The very old drive I use for testing and tinkering became unfixably read only and needed re-formatting. I've copied the blockchain back on from elsewhere but is 2000 blocks behind and will complete sync at some point whilst I'm sleeping. I hope to get some testing done in the morning before work (early am GMT 21/05)
Please try the last patch in https://github.com/moneromooo-monero/bitmonero/tree/rpl
The latest patch built without error, sync was fine and continued to be stable for many hours.
Problems occurred again when connecting the wallet-cli (same start commands as above with local ip now changed ending 127):
came home from work to find the monerod terminal screen filling with:
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
I used ctrl+c to stop the node then:
Thread 1 "monerod" received signal SIGINT, Interrupt. 0xb66b0524 in __libc_do_syscall () from /lib/arm-linux-gnueabihf/libpthread.so.0 (gdb) bt full
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. (gdb)
Monero 'Carbon Chamaeleon' (v0.16.0.0-4987161fa) Logging to /home/pinodexmr/monero/build/release/bin/monero-wallet-cli.log [New Thread 0xb4042ff0 (LWP 7460)] Specify wallet file name (e.g., MyWallet). If the wallet doesn't exist, it will be created. Wallet file name (or Ctrl-C to quit): TestWallet Wallet and key files found, loading... Wallet password: Opened wallet: 42FUdmpe5sFEGKjGSmiWWVAXeNEX2N1Vai88kLytws3P93kdraPbhYCZ416NJHLkFrVYLMTL3F98SG3spFSZbB2ERnrtkF8
Use the "help" command to see a simplified list of available commands. Use the "help_advanced" command to see an advanced list of available commands. Use "help_advanced
" to see a command's documentation.
Starting refresh... [New Thread 0xb352fff0 (LWP 7564)] [New Thread 0xb302eff0 (LWP 7565)] [New Thread 0xb2b2dff0 (LWP 7566)] [New Thread 0xb262cff0 (LWP 7567)] [New Thread 0xb212bff0 (LWP 7568)] [New Thread 0xb1c2aff0 (LWP 7569)] [New Thread 0xb1729ff0 (LWP 7570)] Error: refresh failed: payment required.. Blocks received: 0 [New Thread 0xb1228ff0 (LWP 7571)] Background refresh thread started
wallet 42FUdm (out of sync): [Thread 0xb1729ff0 (LWP 7570) exited] [Thread 0xb1c2aff0 (LWP 7569) exited] [Thread 0xb212bff0 (LWP 7568) exited] [Thread 0xb262cff0 (LWP 7567) exited] [Thread 0xb2b2dff0 (LWP 7566) exited] [Thread 0xb302eff0 (LWP 7565) exited] [Thread 0xb352fff0 (LWP 7564) exited] [Thread 0xb4042ff0 (LWP 7460) exited] [Thread 0xb44c1010 (LWP 7457) exited]
Program terminated with signal SIGKILL, Killed. The program no longer exists.
(gdb) bt full No stack. (gdb)
The wallet-cli was taking a very long time to start RPC Mining so I left it whilst at work.
I will repeat this again to see if this a repeatable fault, or was just unlucky this first time.
Looks like some weird other problem got to you first. Doesn't seem related.
Yeah I wasn't around to see it fail so I'm going to see if it repeats
@moneromooo-monero Whatever has been changed seems to prevent any commands being passed from the wallet to to daemon. So I can open the wallet file, enter the password, it connects to the daemon and realises it needs the RPC_payment.
At the wallet command line neither rpc_payment_info
or start_mining_for_rpc
work as expected.
Both commands process for approx 20mins before stating "Killed"
Monero 'Carbon Chamaeleon' (v0.16.0.0-4987161fa) Logging to ./monero-wallet-cli.log Specify wallet file name (e.g., MyWallet). If the wallet doesn't exist, it will be created. Wallet file name (or Ctrl-C to quit): TestWallet Wallet and key files found, loading... Wallet password: Opened wallet: 44S1EpwmRmVAKyRjyXiTTNNj8s6WJav1XFxSTQad1fRfRA7fVEkwTM689hAZMgKYoiGoCNCvipU2cHm1LGLEP7cv8JgdWuz
Use the "help" command to see a simplified list of available commands. Use the "help_advanced" command to see an advanced list of available commands. Use "help_advanced
" to see a command's documentation.
Background mining not enabled. Run "set setup-background-mining 1" to change. Starting refresh... Error: refresh failed: payment required.. Blocks received: 0 Background refresh thread started
Works for me. "Killed" is the OOM killer. Looks likely that your wallet is trying to use more RAM that the system is able to give it. Try again, run start_mining_for_rpc, wait a minute, then run: gdb monero-wallet-cli `pidof monero-wallet-cli` (use the path to the binary if it's not in . for the first argument) thread apply all bt
@moneromooo-monero Ok, apologies for that last distraction then. That was a system resource issue.
Unfortunately I'm then back to a variation of the original problem.
Running your modified Monero v.16 node on an Odroid XU4 Armbian. Node runs happily.
Wallet-cli v0.15.0.5 Windows PC plenty of resources, no RAM issue, can send commands and receive cli feedback fine.
The variation on the original issue is that despite checking and double checking internet time settings and zones on the node and wallet, both are sync'd with internet time, the payment of mining credits is sporadic due to the node falsely marking the connected wallet as inactive for a now positive number of days. This seems to cause the node to delete the wallets held credits.
Monero 'Carbon Chamaeleon' (v0.15.0.5-release) Logging to E:\Cryptocurrencies\Monero\Monero GUI Wallet\monero-wallet-cli.log Wallet password: Opened wallet: 4BAbwt75aiV46ntopaip71jMffp6mDR1q8PbvZz4WwPNWmM84yq8AEXNxhk5Bah8wHAAbdpUywUNTNgKc8ruDXBVBGLwZX8
Use the "help" command to see the list of available commands.
Use "help
Starting refresh... Error: refresh failed: payment required.. Blocks received: 0 Background refresh thread started wallet 4BAbwt (out of sync): Daemon requests payment at diff 1000, with 0.050000 credits/hash. Run start_mining_for_rpc to start mining to pay for RPC access, or use another daemon
Starting mining for RPC access: diff 1000, 0.050000 credits/hash Run stop_mining_for_rpc to stop
RPC client ID: <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> RPC client secret key: <557b91cebdaadc98aaf59670037bfa8b0b31cc-removed> Using daemon: 192.168.1.127:18089 Payments required for node use, current credits: 0 Credits target: 50000 Credits spent this session: 0 Difficulty: 1000, 50 credits per hash found, 0.05 credits/hash Not mining wallet 4BAbwt (out of sync): Error: Error mining to daemon: Found nonce, but daemon errored out with error -18: Stale payment, continuing wallet 4BAbwt (out of sync): Error: Error mining to daemon: Found nonce, but daemon errored out with error -18: Stale payment, continuing wallet 4BAbwt (out of sync): Error: Error mining to daemon: Found nonce, but daemon did not credit us with the expected amount wallet 4BAbwt (out of sync): Error: Failed to start mining for RPC payment wallet 4BAbwt (out of sync): Error: Error mining to daemon: Found nonce, but daemon did not credit us with the expected amount wallet 4BAbwt (out of sync): Error: Failed to start mining for RPC payment
2020-05-22 16:33:21.611 I Erasing <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> with 190 credits, inactive for 9429 days ... 2020-05-22 16:33:43.925 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> sends nonce: 8476, current ... 2020-05-22 16:33:57.756 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> sends nonce: 10410, current ... 2020-05-22 16:33:59.348 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> credited for 50, now 200 ...
2020-05-22 16:37:21.614 I Erasing <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> with 439 credits, inactive for 6478 days ... 2020-05-22 16:38:13.967 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> sends nonce: 22023, current ... 2020-05-22 16:40:37.776 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> credited for 50, now 99 ... 2020-05-22 16:41:21.617 I Erasing <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> with 399 credits, inactive for 4062 days ... 2020-05-22 16:41:37.080 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> credited for 50, now 50
RPC client ID: <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> RPC client secret key: <557b91cebdaadc98aaf59670-removed> Using daemon: 192.168.1.127:18089 Payments required for node use, current credits: 39 Credits target: 50000 Credits spent this session: 242 Credit discrepancy this session: 1278 (528.099%) Difficulty: 1000, 50 credits per hash found, 0.05 credits/hash Mining for payment at 191.2 H/s Estimated time till 50000 credits target mined: 1 hours wallet 4BAbwt (out of sync):
2020-05-22 16:44:21.618 I Erasing <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> with 80 credits, inactive for 1764 days ... 2020-05-22 16:44:25.064 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> sends nonce: 40472, current ... 2020-05-22 16:44:26.656 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> credited for 50, now 50 ... 2020-05-22 16:44:27.359 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> sends nonce: 40591, current 2020-05-22 16:44:28.826 I client <5fd351948851957b719888c347108a4d12cbad117915354d5e786764bd59c232> credited for 50, now 99
Edited for some embarrassingly bad spelling
But it doesn't crash anymore, right ? :)
Please paste the output of this command on the machines running both daemon and wallet: date +%s
No more crashes. All good on that front.
Monerod on Armbian
pinodexmr@PiNodeXMR:~$ date +%s 1590168263
Windows Wallet-cli C:\Users\danie>time /t 18:24 C:\Users\danie>date /t 22/05/2020
Edit: added date command for windows to avoid major discrepancy
Edit2: + Human readable
pinodexmr@PiNodeXMR:~$ date +%c Fri 22 May 2020 06:30:42 PM BST
Edit3: I put the windows wallet-cli v0.15.0.5 and wallet file+keys on a USB drive and ran the same from my laptop. The same inactive for an irrational number of days with erase issue exists.
Occasional
2020-05-22 18:09:28.430 W Very stale nonce
from monerod
Edit4: Using edits so I don't span you with notifications I hope.
I've seen on monerod several negative values for "inactive" for days scroll past, so I think the original issue still exists
Is it relevant that it is erasing at 1 minute intervals? Does that give a clue?
2020-05-22 18:12:26.941 I Erasing
2020-05-22 18:13:26.943 I Erasing
2020-05-22 18:14:26.944 I Erasing
2020-05-22 18:15:26.945 I Erasing
2020-05-22 18:16:27.318 I Erasing
I think I found what's going on, please try this patch: https://paste.debian.net/1148331/
Apply by saving the patch in a file (ie, FILENAME) and:
patch -p1 < FILENAME
Apologies again I need a little more clarification on how to apply this patch.
I've created the file. Called it FILENAME (because it's as good as any) with:
nano FILENAME
Pasted in the contents of the file from the link and saved it.
Changed permission of /home/pinodexmr/FILENAME to 777 to prevent issues.
Then I'm not applying it right, trying to use:
./monerod patch -pl < /home/pinodexmr/FILENAME
unrecognised option '-pl'
So I'm not understanding correctly, I've tried some variations (thats a -p(one) I'm just copy/pasting from your comment.
Instead of
./monerod patch -pl < /home/pinodexmr/FILENAME
do
patch -p1 < /home/pinodexmr/FILENAME
Edit: oops see mooos comment
p1, not pl. Like one.
Thanks for that. I'm learning all sorts today.
It asked a few questions but I think I've answered them as intended:
pinodexmr@PiNodeXMR:~/monero/build/release/bin$ patch -p1 < /home/pinodexmr/FILENAME can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
|diff --git a/src/rpc/rpc_payment.cpp b/src/rpc/rpc_payment.cpp |index 6cd52523f..e9f184030 100644 |--- a/src/rpc/rpc_payment.cpp |+++ b/src/rpc/rpc_payment.cpp
File to patch: /home/pinodexmr/monero/src/rpc/rpc_payment.cpp patching file /home/pinodexmr/monero/src/rpc/rpc_payment.cpp can't find file to patch at input line 44 Perhaps you used the wrong -p or --strip option? The text leading up to this was:
|diff --git a/src/rpc/rpc_payment_signature.cpp b/src/rpc/rpc_payment_signature.cpp |index 559f3a1e9..b2ec27817 100644 |--- a/src/rpc/rpc_payment_signature.cpp |+++ b/src/rpc/rpc_payment_signature.cpp
File to patch: /home/pinodexmr/monero/src/rpc/rpc_payment_signature.cpp patching file /home/pinodexmr/monero/src/rpc/rpc_payment_signature.cpp pinodexmr@PiNodeXMR:~/monero/build/release/bin$
2020-05-22 19:27:44.227 I Erasing <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> with 0 credits, inactive for -12041 days
2020-05-22 19:28:44.228 I Erasing <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> with 0 credits, inactive for -12774 days
2020-05-22 19:28:57.720 I client <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> sends nonce: 594, current
2020-05-22 19:28:59.336 I client <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> credited for 50, now 50
2020-05-22 19:30:44.229 I Erasing <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> with 0 credits, inactive for -13830 days
2020-05-22 19:31:09.974 I client <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> credited for 50, now 50
2020-05-22 19:31:25.290 I client <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> sends nonce: 4574, current
2020-05-22 19:31:26.804 I client <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> credited for 50, now 149
2020-05-22 19:31:43.023 I client <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> credited for 50, now 199
2020-05-22 19:31:44.230 I Erasing <8b14107818971ee6bc275572d2deb7b33266073f54a49388178b8d93abeac4c5> with 199 credits, inactive for -14966 days
Because I have lots of monero related commands in crontabs for getting statistics I have removed all of those to (as of about an hour ago before you made that patch). That should remove more external variables my end.
However did I apply the patch correctly?
Editing to try to remove awful formatting
Sorry, I forgot to say: please run with --log-level 0,daemon.rpc.payment:DEBUG Most of the interesting logs for this bug aren't on by default.
So below is a short log of that debug command. It's raw/un-edited but I'd say uneventful.
One Error at timestamp 21:04:25.756 of:
E [192.168.1.108:51203 INC] Failed to on_get_blocks()
And two:
W Very stale nonce
I do notice though that for the short time my wallet-cli ID does own some credits, it doesn't seem to be spending them to sync the wallet. Should it be spending them more proactively?
pinodexmr@PiNodeXMR:~/monero/build/release/bin$ ./monerod --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18083 --rpc-restricted-bind-port=18089 --confirm-external-bind --rpc-payment-allow-free-loopback --rpc-ssl disabled --rpc-payment-address=43HoAhqx9q3MR1crAjpQtYVhvzQhZgqPwSWVQMmPvYmr18qVUEjCHcsEasuCxS486rWSSg1gbGqanet67NWRsh1bQL9KkB9 --rpc-payment-credits=50 --rpc-payment-difficulty=1000 --log-level 0,daemon.rpc.payment:DEBUG
2020-05-22 20:53:35.232 I Monero 'Carbon Chamaeleon' (v0.16.0.0-4987161fa)
2020-05-22 20:53:35.232 I Initializing cryptonote protocol...
2020-05-22 20:53:35.232 I Cryptonote protocol initialized OK
2020-05-22 20:53:35.240 I Initializing core...
2020-05-22 20:53:35.240 I Loading blockchain from folder /home/pinodexmr/.bitmonero/lmdb ...
2020-05-22 20:53:35.247 W The blockchain is on a rotating drive: this will be very slow, use an SSD if possible
2020-05-22 20:54:45.410 I Loading checkpoints
2020-05-22 20:54:45.420 I Core initialized OK
2020-05-22 20:54:45.420 I Initializing p2p server...
2020-05-22 20:54:45.476 I p2p server initialized OK
2020-05-22 20:54:45.477 I Initializing core RPC server...
2020-05-22 20:54:45.484 W The RPC server is accessible from the outside, but no RPC payment was setup. RPC access will be free for all.
2020-05-22 20:54:45.484 I Binding on 0.0.0.0 (IPv4):18083
2020-05-22 20:54:45.486 I core RPC server initialized OK on port: 18083
2020-05-22 20:54:45.486 I Initializing restricted RPC server...
2020-05-22 20:54:45.488 I loading rpc payments data from /rpcpayments.bin
2020-05-22 20:54:45.488 I Binding on 0.0.0.0 (IPv4):18089
2020-05-22 20:54:45.489 I restricted RPC server initialized OK on port: 18089
2020-05-22 20:54:45.489 I Starting core RPC server...
2020-05-22 20:54:45.490 I core RPC server started ok
2020-05-22 20:54:45.491 I Starting restricted RPC server...
2020-05-22 20:54:45.492 I restricted RPC server started ok
2020-05-22 20:54:45.517 I Starting p2p net loop...
2020-05-22 20:54:46.520 I
2020-05-22 20:54:46.520 I **
2020-05-22 20:54:46.521 I The daemon will start synchronizing with the network. This may take a long time to complete.
2020-05-22 20:54:46.521 I
2020-05-22 20:54:46.522 I You can set the level of process detailization through "set_log <level|categories>" command,
2020-05-22 20:54:46.523 I where
The patch does not seem to have been applied.
That's inconvenient as I copy/pasted the output and once I resolved the file paths it seemed happy.
I'm happy to re-install your version of monero again with the two edited .cpp files? It will take about 4 hours to compile if I do that.
Or I can try and re-apply the same patch again?
Edit: Re-reading that this morning sounded as if my tone was off. What I mean is that it's inconvenient when these things don't perform as expected, but I'm happy to keep pursuing/testing solutions when required. I hope it's not too complicated a fix.
Can the edit from the patch be added manually?
I pushed the patch to the https://github.com/moneromooo-monero/bitmonero/commits/rpl branch now. You can copy src/rpc/rpc_payment.* from that branch.
This seems to have solved it. Thank you.
Sorry for the delay. Until I checked today I wasn't aware of your last message for some reason.
So I compiled Monero again with your patch to the two files this morning and it has been successfully running for several hours without issue this afternoon.
I can see the fix performing the update_time function each minute.
2020-05-31 18:24:21.380 I now 1590949461, t 1590949423, last_request_timestamp 1590949423583180, update_time 1590949421, erase 0, bounds -2147483648 2147483647
I will leave it running to reach it's mining/credit target, and for a few days after but all seems good.
Thanks again.
Thanks for the logs. So the reason is your time_t is signed 32 bits. This is a bit unexpected and you're gonna have some surprises in 2038 if you're still running that by then.
Right, that makes sense for the wild difference in time before this fix.
My last question regarding this before I think this can be closed would be about the application of this fix. Are the two files you made changes to likely to get worked into the master Monero release? Or are the files 32bit exclusive and so their inclusion would break Monero builds on 64bit systems?
If they are 32bit exclusive then for context you may recognise my username from the PiNodeXMR project and I'm asking this because I have quite a few users looking forward to running their nodes on single board computers (SBC) with the RPC_pay flag. The project as of recently allows builds on any Armbian supported SBCs (not just Raspberry Pis) however an official Armbian 64bit OS isn't always available even though the board has 64bit architecture (in the case of some Odroids), so they may take a couple of years to catch up.
As a work around now there is this fix I could tweak my install scripts to detect a 32bit OS and so pull in your files before building Monero? If this can't be worked into the master Monero release?
The patch will be merged to master. In the meantime, you can certainly apply this patch to anything that might need it.
Will do, and thanks again for the fix.
A bit of a lengthy title I know put I think it's still to the point.
I've been trying this out with regards to the rpc payment features. and the --rpc-payment-allow-free-loopback which was added to solve issue #3038
I'm having some stability issues I can't work out. I start the node with:
./monerod --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18083 --rpc-restricted-bind-port=18089 --confirm-external-bind --rpc-payment-allow-free-loopback --rpc-ssl disabled --rpc-payment-address=43HoAhqx9q3MR1crAjpQtYVhvzQhZgqPwSWVQMmPvYmr18qVUEjCHcsEasuCxS486rWSSg1gbGqanet67NWRsh1bQL9KkB9 --rpc-payment-credits=5 --rpc-payment-difficulty=100 --log-level=3
Where the un-restricted port 18083 is kept behind my firewall and used by other scripts to produce stats for a user interface (print_pl, status, version, etc,)
Port 18089 restricted and port forwarded through router for external wallet access requiring payment.
The
--rpc-payment-allow-free-loopback
flag is great in that it now permits the node to start with both an unrestricted and restricted port. So it solved that initial issue.The stability issue I have is that when a wallet-cli client submits hashes, I get what appear to be "timing" issues. Sometimes monerod will run for 5 minutes, sometimes up to 45mins before this happens. I've increased the log-level to try and get a better idea of whats causing it but I'm out of my depth, only the last couple of lines seem relevant.
Monerod (Monero 'Carbon Chamaeleon' (v0.16.0.0-4987161fa)):
It's weird my currently connected wallet-cli client (in this case id <99...) is reported as not being seen for 56.5 years? Doesn't erase it's credits, adds another 5 credits to it's balance, then terminates the node with single "Aborted" phrase.
On another occasion (so different client ID <a8a...):
Wallet (CLI) (Monero 'Carbon Chamaeleon' (v0.16.0.0-4987161fa)) started with:
./monero-wallet-cli --daemon-address=192.168.1.116:18089 --trusted-daemon start_mining_for_rpc
Errors with:Other Notes:
Using
rpc_payment_info
in the wallet cli I see my client ID, and it matched the inactive one from the daemon log each time. I've seen the above crash repeated about 6 times, each requires a manual restart of both daemon and wallet.The daemon is 100% sync'd
I compiled Monero 0.16 from source, this is running on a Raspberry Pi, the build produced no errors. The logs above are from the wallet cli 0.16 also.
This was initially noticed when connecting to the Raspberry Pi node (v0.16) from my Windows wallet-cli (v0.15.0.5) over LAN and then also an external connection. To remove the possible version conflict I then produced the above logs/test running the node and wallet on the same device (v0.16) to mitigate the different clocks on different devices.
I've included my start commands in this because I never rule out user error?