Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 22 crashes #561

Open
49handyman opened this issue Nov 27, 2022 · 33 comments
Open

Ubuntu 22 crashes #561

49handyman opened this issue Nov 27, 2022 · 33 comments

Comments

@49handyman
Copy link

49handyman commented Nov 27, 2022

This issue tracker is only for technical issues related to komodod

General Komodo questions and/or support requests and are best directed to Discord

Describe the issue

Please provide a general summary of the issue you're experiencing

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. yes on reboot and restart
  2. crashes after Ubuntu 22 upgrade
  3. komodod[4090]: segfault at 18 ip 000055d76b92bd53 sp 00007ffffea7aa70 error 4 in komodod[55d76b8e2000+c68000]
  4. multiple servers
  5. cleaning and rebuilding now after upgrade to see if new compiler & libararies fix problem
  6. first clean and make rusults: failed
sudo make install
[sudo] password for doug:
Making install in src
make[1]: Entering directory '/home/doug/github/komodo/src'
make[2]: Entering directory '/home/doug/github/komodo/src'
  CXXLD    komodod
/usr/bin/ld: /home/doug/github/komodo/depends/x86_64-unknown-linux-gnu/lib/libgmp.a(dive_1.o): warning: relocation against `__gmp_binvert_limb_table' in read-only section `.text'
/usr/bin/ld: /home/doug/github/komodo/depends/x86_64-unknown-linux-gnu/share/../lib/libdb_cxx-6.2.a(os_yield.o): in function `__os_yield':
os_yield.c:(.text+0xce): undefined reference to `pthread_yield'
/usr/bin/ld: /home/doug/github/komodo/depends/x86_64-unknown-linux-gnu/lib/libevent.a(evutil_rand.o): in function `arc4_stir':
evutil_rand.c:(.text+0x250): undefined reference to `sysctl'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:2469: komodod] Error 1
make[2]: Leaving directory '/home/doug/github/komodo/src'
make[1]: *** [Makefile:5698: install-recursive] Error 1
make[1]: Leaving directory '/home/doug/github/komodo/src'
make: *** [Makefile:659: install-recursive] Error 1

  1. rebuilding from fresh clone repository.

Actual behaviour + errors

Tell us what happens instead including any noticable error output (any messages displayed on-screen when e.g. a crash occurred)

komodod[4090]: segfault at 18 ip 000055d76b92bd53 sp 00007ffffea7aa70 error 4 in komodod[55d76b8e2000+c68000]

The version of Komodo you were using:

latest master & dev

Machine specs:

  • OS Ubuntu 22.04.1 LTS

  • CPU: Architecture: x86_64
    CPU op-mode(s): 32-bit, 64-bit
    Address sizes: 36 bits physical, 48 bits virtual
    Byte Order: Little Endian
    CPU(s): 4
    On-line CPU(s) list: 0-3
    Vendor ID: GenuineIntel
    Model name: Intel(R) Core(TM) i5-3470T CPU @ 2.90GHz
    CPU family: 6
    Model: 58
    Thread(s) per core: 2
    Core(s) per socket: 2
    Socket(s): 1
    Stepping: 9
    CPU max MHz: 3600.0000

  • RAM: 16G

  • Disk size: 1TB

  • Disk Type (HD/SDD): SDD

  • Linux kernel version (uname -a):

  • Linux 138-backup-2 5.15.0-53-generic update master #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  • Compiler version (gcc -version):

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.3.0-1ubuntu122.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-xKiWfi/gcc-11-11.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-xKiWfi/gcc-11-11.3.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.3.0 (Ubuntu 11.3.0-1ubuntu1
22.04)

Any extra information that might be useful in the debugging process.

This includes the relevant contents of ~/.komodo/debug.log. You can paste raw text, attach the file directly in the issue or link to the
2022-11-26 23:59:40 Zcash version v0.7.2-beta1-d456be35a-dirty (2022-06-13 22:13:47 +0200)
2022-11-26 23:59:40 Using /16 prefix for IP bucketing
2022-11-26 23:59:40 Using the 'standard' SHA256 implementation
2022-11-26 23:59:40

2022-11-26 23:59:40 Komodo version v0.7.2-beta1-d456be35a-dirty (2022-06-13 22:13:47 +0200)
2022-11-26 23:59:40 Using OpenSSL version OpenSSL 1.1.1k 25 Mar 2021
2022-11-26 23:59:40 Using BerkeleyDB version Berkeley DB 6.2.23: (March 28, 2016)

@49handyman
Copy link
Author

after new pull and totally clean compile and install it FAILED again.

× pirated.service - Pirate daemon
     Loaded: loaded (/etc/systemd/system/pirated.service; enabled; vendor preset: enabled)
     Active: failed (Result: core-dump) since Sat 2022-11-26 19:17:23 CST; 6s ago
    Process: 187476 ExecStart=/usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -deamon -datadir=/home/doug/.pirate -con>
   Main PID: 187476 (code=dumped, signal=SEGV)
        CPU: 4min 1.449s

Nov 26 19:14:43 138-backup-2 komodod[187476]: PIRATE transition at 152795 (152794, 1544831831) -> (152795, 1544832974)
Nov 26 19:14:43 138-backup-2 komodod[187476]: SET SAPLING ACTIVATION height.152855
Nov 26 19:14:43 138-backup-2 komodod[187476]: PIRATE sapling activation at 152855
Nov 26 19:14:43 138-backup-2 komodod[187476]: finished loading blocks PIRATE
Nov 26 19:14:43 138-backup-2 komodod[187476]: processing /home/doug/.pirate/komodostate 18653KB, validated.-1
Nov 26 19:14:45 138-backup-2 komodod[187476]: inds.0x5640a77664e0 validate /home/doug/.pirate/komodostate.ind fsize.15435320 datalen.19101208 n.3858830 lastfpos.0
Nov 26 19:14:45 138-backup-2 komodod[187476]: took 2 seconds to process /home/doug/.pirate/komodostate 18653KB
Nov 26 19:17:23 138-backup-2 systemd[1]: pirated.service: Main process exited, code=dumped, status=11/SEGV
Nov 26 19:17:23 138-backup-2 systemd[1]: pirated.service: Failed with result 'core-dump'.
Nov 26 19:17:23 138-backup-2 systemd[1]: pirated.service: Consumed 4min 1.449s CPU time.
lines 1-17/17 (END)

@49handyman
Copy link
Author

doug@138-backup-2:~/github/komodo2-master/src$ ./komodo-test
[==========] Running 79 tests from 12 test cases.
[----------] Global test environment set-up.
[----------] 6 tests from CCTest
[ RUN      ] CCTest.testIsPayToCryptoCondition
[       OK ] CCTest.testIsPayToCryptoCondition (0 ms)
[ RUN      ] CCTest.testMayAcceptCryptoCondition
[       OK ] CCTest.testMayAcceptCryptoCondition (8 ms)
[ RUN      ] CCTest.testVerifyCryptoCondition
 cc_verify error C
[       OK ] CCTest.testVerifyCryptoCondition (2 ms)
[ RUN      ] CCTest.testVerifyEvalCondition
 cc_verify error C
[       OK ] CCTest.testVerifyEvalCondition (0 ms)
[ RUN      ] CCTest.testCryptoConditionsDisabled
[       OK ] CCTest.testCryptoConditionsDisabled (1 ms)
[ RUN      ] CCTest.testLargeCondition
[       OK ] CCTest.testLargeCondition (6 ms)
[----------] 6 tests from CCTest (17 ms total)

[----------] 7 tests from TestCoinImport
fAddressIndex.0/0 fSpentIndex.0/0
height.0 slowflag.1 possible.1 cmp.0
[ RUN      ] TestCoinImport.testNoVouts
CC Eval EVAL_IMPORTCOIN Invalid: too-few-vouts spending tx d27c89a41f3e4bf308ef83168a6fc75253065c2fb57a9ba755a3067654b874c3
TestRunCCEval: invalid-coin-import
[       OK ] TestCoinImport.testNoVouts (1 ms)
[ RUN      ] TestCoinImport.testInvalidParams
CC Eval EVAL_IMPORTCOIN Invalid: invalid-params spending tx f28fe3d252c7c1d3320d2f258a1aae52dbe20b80c9247ceda5d5ec30df7521be
TestRunCCEval: invalid-coin-import
[       OK ] TestCoinImport.testInvalidParams (0 ms)
[ RUN      ] TestCoinImport.testNonCanonical
CC Eval EVAL_IMPORTCOIN Invalid: non-canonical spending tx 327435bf1684db29c0bf924554da6803bc80f8aba41b6a38728d1ec3dbb5188e
TestRunCCEval: invalid-coin-import
[       OK ] TestCoinImport.testNonCanonical (0 ms)
[ RUN      ] TestCoinImport.testInvalidBurnOutputs
CC Eval EVAL_IMPORTCOIN Invalid: invalid-burn-tx spending tx d21633ba23f70118185227be58a63527675641ad37967e2aa461559f577aec43
TestRunCCEval: invalid-coin-import
[       OK ] TestCoinImport.testInvalidBurnOutputs (0 ms)
[ RUN      ] TestCoinImport.testInvalidBurnParams
CC Eval EVAL_IMPORTCOIN Invalid: invalid-burn-tx spending tx c3e765324de33599f02d1d89b7f41b6bc7665b9921faa6823ca96dccc88d1652
TestRunCCEval: invalid-coin-import
[       OK ] TestCoinImport.testInvalidBurnParams (0 ms)
[ RUN      ] TestCoinImport.testInvalidBurnAmount
CC Eval EVAL_IMPORTCOIN Invalid: invalid-burn-amount spending tx 7ebb0d362597eab8b53c82dcd6c93761aa61a0fcf7f27ba1c3a046039ce1f497
TestRunCCEval: invalid-coin-import
[       OK ] TestCoinImport.testInvalidBurnAmount (0 ms)
[ RUN      ] TestCoinImport.testGetCoinImportValue
[       OK ] TestCoinImport.testGetCoinImportValue (0 ms)
[----------] 7 tests from TestCoinImport (1 ms total)

[----------] 19 tests from TestBet
[ RUN      ] TestBet.testMakeSessionTx
[       OK ] TestBet.testMakeSessionTx (0 ms)
[ RUN      ] TestBet.testMakeDisputeCond
[       OK ] TestBet.testMakeDisputeCond (0 ms)
[ RUN      ] TestBet.testSignDisputeCond
[       OK ] TestBet.testSignDisputeCond (0 ms)
[ RUN      ] TestBet.testDispute
CC Eval EVAL_TOKENS Invalid: wrong-payout spending tx 08c90d591214dcf1a25e0afac0f321259c4ef78f0c579425dead5f996a5a176e
[       OK ] TestBet.testDispute (2 ms)
[ RUN      ] TestBet.testDisputeInvalidOutput
CC Eval EVAL_TOKENS Invalid: invalid-payout-hash spending tx 08c90d591214dcf1a25e0afac0f321259c4ef78f0c579425dead5f996a5a176e
CC Eval EVAL_TOKENS Invalid: no-vouts spending tx 08c90d591214dcf1a25e0afac0f321259c4ef78f0c579425dead5f996a5a176e
[       OK ] TestBet.testDisputeInvalidOutput (1 ms)
[ RUN      ] TestBet.testDisputeEarly
CC Eval EVAL_TOKENS Invalid: dispute-too-soon spending tx 08c90d591214dcf1a25e0afac0f321259c4ef78f0c579425dead5f996a5a176e
[       OK ] TestBet.testDisputeEarly (1 ms)
[ RUN      ] TestBet.testDisputeInvalidParams
CC Eval EVAL_TOKENS Invalid: malformed-params spending tx 08c90d591214dcf1a25e0afac0f321259c4ef78f0c579425dead5f996a5a176e
CC Eval EVAL_TOKENS Invalid: malformed-params spending tx 08c90d591214dcf1a25e0afac0f321259c4ef78f0c579425dead5f996a5a176e
[       OK ] TestBet.testDisputeInvalidParams (2 ms)
[ RUN      ] TestBet.testDisputeInvalidEvidence
CC Eval EVAL_TOKENS Invalid: no-evidence spending tx 08c90d591214dcf1a25e0afac0f321259c4ef78f0c579425dead5f996a5a176e
[       OK ] TestBet.testDisputeInvalidEvidence (1 ms)
[ RUN      ] TestBet.testMakeStakeTx
[       OK ] TestBet.testMakeStakeTx (1 ms)
[ RUN      ] TestBet.testMakePayoutCond
[       OK ] TestBet.testMakePayoutCond (0 ms)
[ RUN      ] TestBet.testSignPayout
[       OK ] TestBet.testSignPayout (1 ms)
[ RUN      ] TestBet.testAgreePayout
CC Eval EVAL_IMPORTPAYOUT Invalid: no-vouts spending tx 0000000000000000000000000000000000000000000000000000000000000000
CC Eval EVAL_IMPORTPAYOUT Invalid: no-vouts spending tx 0000000000000000000000000000000000000000000000000000000000000000
[       OK ] TestBet.testAgreePayout (3 ms)
[ RUN      ] TestBet.testImportPayout
[       OK ] TestBet.testImportPayout (1 ms)
[ RUN      ] TestBet.testImportPayoutFewVouts
CC Eval EVAL_IMPORTPAYOUT Invalid: no-vouts spending tx 0000000000000000000000000000000000000000000000000000000000000000
[       OK ] TestBet.testImportPayoutFewVouts (1 ms)
[ RUN      ] TestBet.testImportPayoutInvalidPayload
CC Eval EVAL_IMPORTPAYOUT Invalid: invalid-payload spending tx 0000000000000000000000000000000000000000000000000000000000000000
[       OK ] TestBet.testImportPayoutInvalidPayload (1 ms)
[ RUN      ] TestBet.testImportPayoutWrongPayouts
CC Eval EVAL_IMPORTPAYOUT Invalid: wrong-payouts spending tx 0000000000000000000000000000000000000000000000000000000000000000
[       OK ] TestBet.testImportPayoutWrongPayouts (1 ms)
[ RUN      ] TestBet.testImportPayoutMangleSessionId
CC Eval EVAL_IMPORTPAYOUT Invalid: malformed-params spending tx 0000000000000000000000000000000000000000000000000000000000000000
CC Eval EVAL_IMPORTPAYOUT Invalid: wrong-session spending tx 0000000000000000000000000000000000000000000000000000000000000000
[       OK ] TestBet.testImportPayoutMangleSessionId (2 ms)
[ RUN      ] TestBet.testImportPayoutInvalidNotarisationHash
CC Eval EVAL_IMPORTPAYOUT Invalid: coudnt-load-mom spending tx 0000000000000000000000000000000000000000000000000000000000000000
[       OK ] TestBet.testImportPayoutInvalidNotarisationHash (1 ms)
[ RUN      ] TestBet.testImportPayoutMomFail
CC Eval EVAL_IMPORTPAYOUT Invalid: mom-check-fail spending tx 0000000000000000000000000000000000000000000000000000000000000000
[       OK ] TestBet.testImportPayoutMomFail (1 ms)
[----------] 19 tests from TestBet (20 ms total)

[----------] 5 tests from TestEvalNotarisation
[ RUN      ] TestEvalNotarisation.testInvalidNotarisationBadOpReturn
[       OK ] TestEvalNotarisation.testInvalidNotarisationBadOpReturn (0 ms)
[ RUN      ] TestEvalNotarisation.testInvalidNotarisationTxNotEnoughSigs
[       OK ] TestEvalNotarisation.testInvalidNotarisationTxNotEnoughSigs (0 ms)
[ RUN      ] TestEvalNotarisation.testInvalidNotarisationTxDoesntExist
[       OK ] TestEvalNotarisation.testInvalidNotarisationTxDoesntExist (1 ms)
[ RUN      ] TestEvalNotarisation.testInvalidNotarisationDupeNotary
[       OK ] TestEvalNotarisation.testInvalidNotarisationDupeNotary (0 ms)
[ RUN      ] TestEvalNotarisation.testInvalidNotarisationInputNotCheckSig
[       OK ] TestEvalNotarisation.testInvalidNotarisationInputNotCheckSig (0 ms)
[----------] 5 tests from TestEvalNotarisation (1 ms total)

[----------] 9 tests from TestParseNotarisation
[ RUN      ] TestParseNotarisation.test_ee2fa
[       OK ] TestParseNotarisation.test_ee2fa (0 ms)
[ RUN      ] TestParseNotarisation.test__
[       OK ] TestParseNotarisation.test__ (0 ms)
[ RUN      ] TestParseNotarisation.test__a
[       OK ] TestParseNotarisation.test__a (0 ms)
[ RUN      ] TestParseNotarisation.test__b
[       OK ] TestParseNotarisation.test__b (0 ms)
[ RUN      ] TestParseNotarisation.test_notarized_update
komodo_notarized_update REJECT notarized_height 10 > 9 nHeight
[       OK ] TestParseNotarisation.test_notarized_update (0 ms)
[ RUN      ] TestParseNotarisation.test_npptr
komodo_notarized_update REJECT notarized_height 10 > 9 nHeight
[       OK ] TestParseNotarisation.test_npptr (0 ms)
[ RUN      ] TestParseNotarisation.test_prevMoMheight
[       OK ] TestParseNotarisation.test_prevMoMheight (0 ms)
[ RUN      ] TestParseNotarisation.test_notarizeddata
[       OK ] TestParseNotarisation.test_notarizeddata (0 ms)
[ RUN      ] TestParseNotarisation.OldVsNew
[       OK ] TestParseNotarisation.OldVsNew (2051 ms)
[----------] 9 tests from TestParseNotarisation (2051 ms total)

[----------] 3 tests from TestBufferedFile
[ RUN      ] TestBufferedFile.streams_buffered_file
[       OK ] TestBufferedFile.streams_buffered_file (2 ms)
[ RUN      ] TestBufferedFile.streams_buffered_file_rand
[       OK ] TestBufferedFile.streams_buffered_file_rand (85 ms)
[ RUN      ] TestBufferedFile.komodo_block_load
[       OK ] TestBufferedFile.komodo_block_load (2 ms)
[----------] 3 tests from TestBufferedFile (89 ms total)

[----------] 2 tests from TestSHA256Crypto
[ RUN      ] TestSHA256Crypto.compression
             Using "standard" SHA256 implementation ...
[       OK ] TestSHA256Crypto.compression (5 ms)
[ RUN      ] TestSHA256Crypto.sha256_testvectors
[       OK ] TestSHA256Crypto.sha256_testvectors (293 ms)
[----------] 2 tests from TestSHA256Crypto (298 ms total)

[----------] 7 tests from TestScriptStandartTests
[ RUN      ] TestScriptStandartTests.script_standard_Solver_success
[       OK ] TestScriptStandartTests.script_standard_Solver_success (0 ms)
[ RUN      ] TestScriptStandartTests.script_standard_Solver_failure
[       OK ] TestScriptStandartTests.script_standard_Solver_failure (0 ms)
[ RUN      ] TestScriptStandartTests.script_standard_ExtractDestination
[       OK ] TestScriptStandartTests.script_standard_ExtractDestination (1 ms)
[ RUN      ] TestScriptStandartTests.script_standard_ExtractDestinations
[       OK ] TestScriptStandartTests.script_standard_ExtractDestinations (0 ms)
[ RUN      ] TestScriptStandartTests.script_standard_GetScriptFor_
[       OK ] TestScriptStandartTests.script_standard_GetScriptFor_ (0 ms)
[ RUN      ] TestScriptStandartTests.script_standard_IsMine
[       OK ] TestScriptStandartTests.script_standard_IsMine (0 ms)
[ RUN      ] TestScriptStandartTests.script_standard_Malpill
[       OK ] TestScriptStandartTests.script_standard_Malpill (1 ms)
[----------] 7 tests from TestScriptStandartTests (2 ms total)

[----------] 16 tests from TestAddrmanTests
[ RUN      ] TestAddrmanTests.display_constants
[          ] ADDRMAN_NEW_BUCKET_COUNT = 1024
[          ] ADDRMAN_TRIED_BUCKET_COUNT = 256
[          ] ADDRMAN_BUCKET_SIZE = 64
[       OK ] TestAddrmanTests.display_constants (0 ms)
[ RUN      ] TestAddrmanTests.addrman_simple
[       OK ] TestAddrmanTests.addrman_simple (0 ms)
[ RUN      ] TestAddrmanTests.addrman_ports
[       OK ] TestAddrmanTests.addrman_ports (1 ms)
[ RUN      ] TestAddrmanTests.addrman_select
[       OK ] TestAddrmanTests.addrman_select (8 ms)
[ RUN      ] TestAddrmanTests.addrman_new_collisions
[       OK ] TestAddrmanTests.addrman_new_collisions (1 ms)
[ RUN      ] TestAddrmanTests.addrman_tried_collisions
[       OK ] TestAddrmanTests.addrman_tried_collisions (121 ms)
[ RUN      ] TestAddrmanTests.addrman_find
[       OK ] TestAddrmanTests.addrman_find (0 ms)
[ RUN      ] TestAddrmanTests.addrman_create
[       OK ] TestAddrmanTests.addrman_create (0 ms)
[ RUN      ] TestAddrmanTests.addrman_delete
[       OK ] TestAddrmanTests.addrman_delete (1 ms)
[ RUN      ] TestAddrmanTests.addrman_getaddr
[       OK ] TestAddrmanTests.addrman_getaddr (392 ms)
[ RUN      ] TestAddrmanTests.caddrinfo_get_tried_bucket_legacy
[       OK ] TestAddrmanTests.caddrinfo_get_tried_bucket_legacy (2 ms)
[ RUN      ] TestAddrmanTests.caddrinfo_get_new_bucket_legacy
[       OK ] TestAddrmanTests.caddrinfo_get_new_bucket_legacy (8 ms)
[ RUN      ] TestAddrmanTests.caddrinfo_get_tried_bucket
[       OK ] TestAddrmanTests.caddrinfo_get_tried_bucket (4 ms)
[ RUN      ] TestAddrmanTests.caddrinfo_get_new_bucket
[       OK ] TestAddrmanTests.caddrinfo_get_new_bucket (16 ms)
[ RUN      ] TestAddrmanTests.addrman_serialization
[       OK ] TestAddrmanTests.addrman_serialization (1 ms)
[ RUN      ] TestAddrmanTests.netbase_getgroup
[          ] failed to resolve: 257.0.0.1
[       OK ] TestAddrmanTests.netbase_getgroup (94 ms)
[----------] 16 tests from TestAddrmanTests (649 ms total)

[----------] 2 tests from TestEvents
[ RUN      ] TestEvents.komodo_faststateinit_test
processing 69e2-c8c7-449b-58dc/kstate.tmp 0KB, validated.-1
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/kstate.tmp.ind fsize.8 datalen.72 n.2 lastfpos.0
69e2-c8c7-449b-58dc/kstate.tmp.ind validated fpos.72
took 0 seconds to process 69e2-c8c7-449b-58dc/kstate.tmp 0KB
processing 69e2-c8c7-449b-58dc/notarized.tmp 0KB, validated.-1
komodo_notarized_update REJECT notarized_height 2 > 1 nHeight
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/notarized.tmp.ind fsize.8 datalen.73 n.2 lastfpos.0
69e2-c8c7-449b-58dc/notarized.tmp.ind validated fpos.73
took 0 seconds to process 69e2-c8c7-449b-58dc/notarized.tmp 0KB
processing 69e2-c8c7-449b-58dc/notarized.tmp 0KB, validated.-1
komodo_notarized_update REJECT notarized_height 3 > 1 nHeight
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/notarized.tmp.ind fsize.8 datalen.109 n.2 lastfpos.0
69e2-c8c7-449b-58dc/notarized.tmp.ind validated fpos.109
took 0 seconds to process 69e2-c8c7-449b-58dc/notarized.tmp 0KB
processing 69e2-c8c7-449b-58dc/type_u.tmp 0KB, validated.-1
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/type_u.tmp.ind fsize.8 datalen.47 n.2 lastfpos.0
69e2-c8c7-449b-58dc/type_u.tmp.ind validated fpos.47
took 0 seconds to process 69e2-c8c7-449b-58dc/type_u.tmp 0KB
processing 69e2-c8c7-449b-58dc/kmdtype.tmp 0KB, validated.-1
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/kmdtype.tmp.ind fsize.8 datalen.9 n.2 lastfpos.0
69e2-c8c7-449b-58dc/kmdtype.tmp.ind validated fpos.9
took 0 seconds to process 69e2-c8c7-449b-58dc/kmdtype.tmp 0KB
processing 69e2-c8c7-449b-58dc/kmdtypet.tmp 0KB, validated.-1
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/kmdtypet.tmp.ind fsize.8 datalen.13 n.2 lastfpos.0
69e2-c8c7-449b-58dc/kmdtypet.tmp.ind validated fpos.13
took 0 seconds to process 69e2-c8c7-449b-58dc/kmdtypet.tmp 0KB
processing 69e2-c8c7-449b-58dc/kmdtypet.tmp 0KB, validated.-1
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/kmdtypet.tmp.ind fsize.8 datalen.50 n.2 lastfpos.0
69e2-c8c7-449b-58dc/kmdtypet.tmp.ind validated fpos.50
took 0 seconds to process 69e2-c8c7-449b-58dc/kmdtypet.tmp 0KB
processing 69e2-c8c7-449b-58dc/kmdtypet.tmp 0KB, validated.-1
inds.0x5589070a4170 validate 69e2-c8c7-449b-58dc/kmdtypet.tmp.ind fsize.8 datalen.146 n.2 lastfpos.0
69e2-c8c7-449b-58dc/kmdtypet.tmp.ind validated fpos.146
took 0 seconds to process 69e2-c8c7-449b-58dc/kmdtypet.tmp 0KB
processing 69e2-c8c7-449b-58dc/kmdtypeb.tmp 0KB, validated.-1
inds.0x5589070a2960 validate 69e2-c8c7-449b-58dc/kmdtypeb.tmp.ind fsize.8 datalen.5 n.2 lastfpos.0
69e2-c8c7-449b-58dc/kmdtypeb.tmp.ind validated fpos.5
took 0 seconds to process 69e2-c8c7-449b-58dc/kmdtypeb.tmp 0KB
processing 69e2-c8c7-449b-58dc/combined_state.tmp 0KB, validated.-1
komodo_notarized_update REJECT notarized_height 2 > 1 nHeight
komodo_notarized_update REJECT notarized_height 3 > 1 nHeight
inds.0x558906ed8870 validate 69e2-c8c7-449b-58dc/combined_state.tmp.ind fsize.36 datalen.519 n.9 lastfpos.0
69e2-c8c7-449b-58dc/combined_state.tmp.ind validated fpos.519
took 0 seconds to process 69e2-c8c7-449b-58dc/combined_state.tmp 0KB
[       OK ] TestEvents.komodo_faststateinit_test (10 ms)
[ RUN      ] TestEvents.komodo_faststateinit_test_kmd
processing 04fd-a664-2471-1964/kstate.tmp 0KB, validated.-1
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/kstate.tmp.ind fsize.8 datalen.72 n.2 lastfpos.0
04fd-a664-2471-1964/kstate.tmp.ind validated fpos.72
took 0 seconds to process 04fd-a664-2471-1964/kstate.tmp 0KB
processing 04fd-a664-2471-1964/notarized.tmp 0KB, validated.-1
komodo_notarized_update REJECT notarized_height 2 > 1 nHeight
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/notarized.tmp.ind fsize.8 datalen.73 n.2 lastfpos.0
04fd-a664-2471-1964/notarized.tmp.ind validated fpos.73
took 0 seconds to process 04fd-a664-2471-1964/notarized.tmp 0KB
processing 04fd-a664-2471-1964/notarized.tmp 0KB, validated.-1
komodo_notarized_update REJECT notarized_height 3 > 1 nHeight
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/notarized.tmp.ind fsize.8 datalen.109 n.2 lastfpos.0
04fd-a664-2471-1964/notarized.tmp.ind validated fpos.109
took 0 seconds to process 04fd-a664-2471-1964/notarized.tmp 0KB
processing 04fd-a664-2471-1964/type_u.tmp 0KB, validated.-1
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/type_u.tmp.ind fsize.8 datalen.47 n.2 lastfpos.0
04fd-a664-2471-1964/type_u.tmp.ind validated fpos.47
took 0 seconds to process 04fd-a664-2471-1964/type_u.tmp 0KB
processing 04fd-a664-2471-1964/kmdtype.tmp 0KB, validated.-1
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/kmdtype.tmp.ind fsize.8 datalen.9 n.2 lastfpos.0
04fd-a664-2471-1964/kmdtype.tmp.ind validated fpos.9
took 0 seconds to process 04fd-a664-2471-1964/kmdtype.tmp 0KB
processing 04fd-a664-2471-1964/kmdtypet.tmp 0KB, validated.-1
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/kmdtypet.tmp.ind fsize.8 datalen.13 n.2 lastfpos.0
04fd-a664-2471-1964/kmdtypet.tmp.ind validated fpos.13
took 0 seconds to process 04fd-a664-2471-1964/kmdtypet.tmp 0KB
processing 04fd-a664-2471-1964/kmdtypet.tmp 0KB, validated.-1
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/kmdtypet.tmp.ind fsize.8 datalen.50 n.2 lastfpos.0
04fd-a664-2471-1964/kmdtypet.tmp.ind validated fpos.50
took 0 seconds to process 04fd-a664-2471-1964/kmdtypet.tmp 0KB
processing 04fd-a664-2471-1964/kmdtypet.tmp 0KB, validated.-1
inds.0x5589070a42e0 validate 04fd-a664-2471-1964/kmdtypet.tmp.ind fsize.8 datalen.146 n.2 lastfpos.0
04fd-a664-2471-1964/kmdtypet.tmp.ind validated fpos.146
took 0 seconds to process 04fd-a664-2471-1964/kmdtypet.tmp 0KB
processing 04fd-a664-2471-1964/kmdtypeb.tmp 0KB, validated.-1
inds.0x55890708ae00 validate 04fd-a664-2471-1964/kmdtypeb.tmp.ind fsize.8 datalen.5 n.2 lastfpos.0
04fd-a664-2471-1964/kmdtypeb.tmp.ind validated fpos.5
took 0 seconds to process 04fd-a664-2471-1964/kmdtypeb.tmp 0KB
processing 04fd-a664-2471-1964/combined_state.tmp 0KB, validated.-1
komodo_notarized_update REJECT notarized_height 2 > 1 nHeight
komodo_notarized_update REJECT notarized_height 3 > 1 nHeight
inds.0x558906ed8870 validate 04fd-a664-2471-1964/combined_state.tmp.ind fsize.36 datalen.519 n.9 lastfpos.0
04fd-a664-2471-1964/combined_state.tmp.ind validated fpos.519
took 0 seconds to process 04fd-a664-2471-1964/combined_state.tmp 0KB
[       OK ] TestEvents.komodo_faststateinit_test_kmd (1 ms)
[----------] 2 tests from TestEvents (11 ms total)

[----------] 1 test from TestHex
[ RUN      ] TestHex.decodehex
[       OK ] TestHex.decodehex (0 ms)
[----------] 1 test from TestHex (0 ms total)

[----------] 2 tests from TestHarakaRemoval
[ RUN      ] TestHarakaRemoval.test_block_ser
test-komodo/test_haraka_removal.cpp:60: Failure
      Expected: HexStr(ss)
      Which is: "89af1b00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2"
To be equal to: stream_genesis_block_diskindex_hex
      Which is: "89af1a00000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a000000000000000000000000000000000000000000000000000000000000000029ab5f490f0f0f200b00000000000000000000000000000000000000000000000000000000000000fd4005000d5ba7cda5d473947263bf194285317179d2b0d307119c2e7cc4bd8ac456f0774bd52b0cd9249be9d40718b6397a4c7bbd8f2b3272fed2823cd2af4bd1632200ba4bf796727d6347b225f670f292343274cc35099466f5fb5f0cd1c105121b28213d15db2ed7bdba490b4cedc69742a57b7c25af24485e523aadbb77a0144fc76f79ef73bd8530d42b9f3b9bed1c135ad1fe152923fafe98f95f76f1615e64c4abb1137f4c31b218ba2782bc15534788dda2cc08a0ee2987c8b27ff41bd4e31cd5fb5643dfe862c9a02ca9f90c8c51a6671d681d04ad47e4b53b1518d4befafefe8cadfb912f3d03051b1efbf1dfe37b56e93a741d8dfd80d576ca250bee55fab1311fc7b3255977558cdda6f7d6f875306e43a14413facdaed2f46093e0ef1e8f8a963e1632dcbeebd8e49fd16b57d49b08f9762de89157c65233f60c8e38a1f503a48c555f8ec45dedecd574a37601323c27be597b956343107f8bd80f3a925afaf30811df83c402116bb9c1e5231c70fff899a7c82f73c902ba54da53cc459b7bf1113db65cc8f6914d3618560ea69abd13658fa7b6af92d374d6eca9529f8bd565166e4fcbf2a8dfb3c9b69539d4d2ee2e9321b85b331925df195915f2757637c2805e1d4131e1ad9ef9bc1bb1c732d8dba4738716d351ab30c996c8657bab39567ee3b29c6d054b711495c0d52e1cd5d8e55b4f0f0325b97369280755b46a02afd54be4ddd9f77c22272b8bbb17ff5118fedbae2564524e797bd28b5f74f7079d532ccc059807989f94d267f47e724b3f1ecfe00ec9e6541c961080d8891251b84b4480bc292f6a180bea089fef5bbda56e1e41390d7c0e85ba0ef530f7177413481a226465a36ef6afe1e2bca69d2078712b3912bba1a99b1fbff0d355d6ffe726d2bb6fbc103c4ac5756e5bee6e47e17424ebcbf1b63d8cb90ce2e40198b4f4198689daea254307e52a25562f4c1455340f0ffeb10f9d8e914775e37d0edca019fb1b9c6ef81255ed86bc51c5391e0591480f66e2d88c5f4fd7277697968656a9b113ab97f874fdd5f2465e5559533e01ba13ef4a8f7a21d02c30c8ded68e8c54603ab9c8084ef6d9eb4e92c75b078539e2ae786ebab6dab73a09e0aa9ac575bcefb29e930ae656e58bcb513f7e3c17e079dce4f05b5dbc18c2a872b22509740ebe6a3903e00ad1abc55076441862643f93606e3dc35e8d9f2caef3ee6be14d513b2e062b21d0061de3bd56881713a1a5c17f5ace05e1ec09da53f99442df175a49bd154aa96e4949decd52fed79ccf7ccbce32941419c314e374e4a396ac553e17b5340336a1a25c22f9e42a243ba5404450b650acfc826a6e432971ace776e15719515e1634ceb9a4a35061b668c74998d3dfb5827f6238ec015377e6f9c94f38108768cf6e5c8b132e0303fb5a200368f845ad9d46343035a6ff94031df8d8309415bb3f6cd5ede9c135fdabcc030599858d803c0f85be7661c88984d88faa3d26fb0e9aac0056a53f1b5d0baed713c853c4a2726869a0a124a8a5bbc0fc0ef80c8ae4cb53636aa02503b86a1eb9836fcc259823e2692d921d88e1ffc1e6cb2bde43939ceb3f32a611686f539f8f7c9f0bf00381f743607d40960f06d347d1cd8ac8a51969c25e37150efdf7aa4c2037a2fd0516fb444525ab157a0ed0a7412b2fa69b217fe397263153782c0f64351fbdf2678fa0dc8569912dcd8e3ccad38f34f23bbbce14c6a26ac24911b308b82c7e43062d180baeac4ba7153858365c72c63dcf5f6a5b08070b730adb017aeae925b7d0439979e2679f45ed2f25a7edcfd2fb77a8794630285ccb0a071f5cce410b46dbf9750b0354aae8b65574501cc69efb5b6a43444074fee116641bb29da56c2b4a7f456991fc92b2"
[  FAILED  ] TestHarakaRemoval.test_block_ser (2 ms)
[ RUN      ] TestHarakaRemoval.test_block_prg
[       OK ] TestHarakaRemoval.test_block_prg (0 ms)
[----------] 2 tests from TestHarakaRemoval (2 ms total)

[----------] Global test environment tear-down
[==========] 79 tests from 12 test cases ran. (3167 ms total)
[  PASSED  ] 78 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestHarakaRemoval.test_block_ser

 1 FAILED TEST
  YOU HAVE 8 DISABLED TESTS

@49handyman
Copy link
Author

running as root same thing.

[  FAILED  ] TestHarakaRemoval.test_block_ser (0 ms)
[ RUN      ] TestHarakaRemoval.test_block_prg
[       OK ] TestHarakaRemoval.test_block_prg (0 ms)
[----------] 2 tests from TestHarakaRemoval (0 ms total)

[----------] Global test environment tear-down
[==========] 79 tests from 12 test cases ran. (3121 ms total)
[  PASSED  ] 78 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] TestHarakaRemoval.test_block_ser


@49handyman
Copy link
Author

 ./komodod -ac_name=TEST -ac_supply=100000000 -testnet
ASSETCHAINS_SUPPLY 100000000
MAX_MONEY 10000006320417438 100000063.20417438
Created (/home/doug/.komodo/TEST/TEST.conf)
chainparams_commandline called
>>>>>>>>>> TEST: p2p.12183 rpc.12184 magic.ee32f43e 3996316734 100000000 coins
call komodo_args.(./komodod) NOTARY_PUBKEY.()
initialized TEST at 1669512476
nMaxConnections 384
finished loading blocks TEST
fAddressIndex.0/0 fSpentIndex.0/0
komodod: main.cpp:2684: void InvalidChainFound(CBlockIndex*): Assertion `tip' failed.
Aborted (core dumped)

@DeckerSU
Copy link

-testnet

It's expected. There is no testnet yet implemented in Komodo. Instead of trying of launch with -testnet you can try to launch various assetchains, like:

./komodod -ac_name=TEST -ac_supply=100000000
./komodod -ac_name=TEST1 -ac_supply=100000000
./komodod -ac_name=TEST2 -ac_supply=100000000
...

Etc. Each of these chains will be your personal testnet.

@DeckerSU
Copy link

About build error:

/usr/bin/ld: /home/doug/github/komodo/depends/x86_64-unknown-linux-gnu/lib/libgmp.a(dive_1.o): warning: relocation against `__gmp_binvert_limb_table' in read-only section `.text'
/usr/bin/ld: /home/doug/github/komodo/depends/x86_64-unknown-linux-gnu/share/../lib/libdb_cxx-6.2.a(os_yield.o): in function `__os_yield':
os_yield.c:(.text+0xce): undefined reference to `pthread_yield'

Can't reproduce on fresh installed Ubuntu 22.04.1 LTS / 5.15.0-53-generic / gcc/g++ 11.3.0. Could you provide us more details?

About crash error after launch (how you get it launched if you had build error?), try the following:

  1. Remove komodostate and komodostate.ind files from the datadir of your PIRATE chain and then try to launch daemon again.
  2. If it will not help, clean datadir, i.e. remove everything except wallet.dat and PIRATE.conf and resync, or download bootstrap from https://eu.bootstrap.dexstats.info/PIRATE-bootstrap.tar.gz .

@dimxy
Copy link
Collaborator

dimxy commented Nov 27, 2022

Regarding the crash of the pirate.service it looks like a core file was generated during the crash.

  1. could please post the exact start command for komodod?
  2. could you also start the corefile analysing with gdb and snd us some info from it? The cmd for this:
    gdb --core=<corefile> ~/komodo/src/komodod
    When gdb is started okay and no warnings like warning: exec file is newer than core file please print backtrace info for us with bt command.
    (if help needed please DM me on discord)

@49handyman
Copy link
Author

Regarding the crash of the pirate.service it looks like a core file was generated during the crash.

  1. could please post the exact start command for komodod?
  2. could you also start the corefile analysing with gdb and snd us some info from it? The cmd for this:
    gdb --core=<corefile> ~/komodo/src/komodod
    When gdb is started okay and no warnings like warning: exec file is newer than core file please print backtrace info for us with bt command.
    (if help needed please DM me on discord)

Where do the core files end up when launching from systemd?

I've looked everywhere and cant seem to find it. I think it was a corrupt komodostate or komodostate.ind.

it happened again after reboot this morning. it was running fine for last 6 days through reboots. I've deleted above files and it seems to be running syncing something.

@49handyman
Copy link
Author

looks like komostate files were the problem

failed startup with core dump

     Loaded: loaded (/etc/systemd/system/pirated.service; enabled; vendor preset: enabled)
     Active: failed (Result: core-dump) since Sun 2022-12-04 09:50:21 CST; 8min ago
    Process: 46375 ExecStart=/usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -deamon -datadir=/home/doug/.pirate>
   Main PID: 46375 (code=dumped, signal=SEGV)
        CPU: 5min 736ms

Dec 04 09:47:27 crypto-3 komodod[46375]: PIRATE transition at 152795 (152794, 1544831831) -> (152795, 1544832974)
Dec 04 09:47:27 crypto-3 komodod[46375]: SET SAPLING ACTIVATION height.152855
Dec 04 09:47:27 crypto-3 komodod[46375]: PIRATE sapling activation at 152855
Dec 04 09:47:27 crypto-3 komodod[46375]: finished loading blocks PIRATE
Dec 04 09:47:27 crypto-3 komodod[46375]: processing /home/doug/.pirate/komodostate 338KB, validated.-1
Dec 04 09:47:27 crypto-3 komodod[46375]: inds.0x56552c6e3cd0 validate /home/doug/.pirate/komodostate.ind fsize.279776 datalen.346220 n.69944 lastfpos.0
Dec 04 09:47:27 crypto-3 komodod[46375]: took 0 seconds to process /home/doug/.pirate/komodostate 338KB

good restart, cant find any reference to komodostate.ind. Is that created on shutdown. I use komodo-cli stop in my service file. Anything I should confirm in the file that could casue the corruption.

2022-12-04 17:29:59 Komodo version v0.7.2-beta1-c31919d11-dirty (2022-08-04 12:15:26 +0200)
2022-12-04 17:29:59 Using OpenSSL version OpenSSL 1.1.1k  25 Mar 2021
2022-12-04 17:29:59 Using BerkeleyDB version Berkeley DB 6.2.23: (March 28, 2016)
2022-12-04 17:29:59 Default data directory /home/doug/.komodo/PIRATE
2022-12-04 17:29:59 Using data directory /home/doug/.pirate
2022-12-04 17:29:59 Using config file /home/doug/.pirate/PIRATE.conf
2022-12-04 17:29:59 Using at most 384 connections (1024 file descriptors available)
2022-12-04 17:29:59 Using 2 threads for script verification
2022-12-04 17:29:59 Loading verifying key from /home/doug/.zcash-params/sprout-verifying.key
2022-12-04 17:29:59 scheduler thread start
2022-12-04 17:29:59 Loaded verifying key in 0.003364s seconds.
2022-12-04 17:29:59 Loading Sapling (Spend) parameters from /home/doug/.zcash-params/sapling-spend.params
2022-12-04 17:29:59 Loading Sapling (Output) parameters from /home/doug/.zcash-params/sapling-output.params
2022-12-04 17:29:59 Loading Sapling (Sprout Groth16) parameters from /home/doug/.zcash-params/sprout-groth16.params
2022-12-04 17:30:01 Loaded Sapling parameters in 2.214015s seconds.
2022-12-04 17:30:01 Binding RPC on address 0.0.0.0 port 7778 failed.
2022-12-04 17:30:01 HTTP: creating work queue of depth 16
2022-12-04 17:30:01 HTTP: starting 4 worker threads
2022-12-04 17:30:01 Using wallet wallet.dat
2022-12-04 17:30:01 init message: Verifying wallet...
2022-12-04 17:30:01 CDBEnv::Open: LogDir=/home/doug/.pirate/database ErrorFile=/home/doug/.pirate/db.log pathIn.(/home/doug/.pirate)
2022-12-04 17:30:48 Bound to [::]:45452
2022-12-04 17:30:48 Bound to 0.0.0.0:45452
2022-12-04 17:30:48 Block index database configuration:
2022-12-04 17:30:48 * Using 1000 max open files
2022-12-04 17:30:48 * Compression is enabled
2022-12-04 17:30:48 Cache configuration:
2022-12-04 17:30:48 * Max cache setting possible 16384MiB
2022-12-04 17:30:48 * Using 56.2MiB for block index database
2022-12-04 17:30:48 * Using 106.4MiB for chain state database
2022-12-04 17:30:48 * Using 287.3MiB for in-memory UTXO set
2022-12-04 17:30:48 Opening LevelDB in /home/doug/.pirate/blocks/index
2022-12-04 17:30:48 Opened LevelDB successfully
2022-12-04 17:30:48 init message: Loading block index...
2022-12-04 17:30:48 Opening LevelDB in /home/doug/.pirate/blocks/index
2022-12-04 17:30:48 Opened LevelDB successfully
2022-12-04 17:30:48 Opening LevelDB in /home/doug/.pirate/chainstate
2022-12-04 17:30:48 Opened LevelDB successfully
2022-12-04 17:30:48 Opening LevelDB in /home/doug/.pirate/notarisations
2022-12-04 17:30:48 Opened LevelDB successfully
2022-12-04 17:30:48 LoadBlockIndexDB: start loading guts
2022-12-04 17:33:12 LoadBlockIndexDB: loaded guts
2022-12-04 17:33:21 LoadBlockIndexDB: last block file = 83
2022-12-04 17:33:21 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=16325, size=103464648, heights=2166708...2182898, time=2022-11-22...2022-12-04)
2022-12-04 17:33:21 Checking all blk files are present...
2022-12-04 17:34:06 LoadBlockIndexDB: transaction index enabled
2022-12-04 17:34:06 LoadBlockIndexDB: address index disabled
2022-12-04 17:34:06 LoadBlockIndexDB: timestamp index disabled
2022-12-04 17:34:06 LoadBlockIndexDB: spent index disabled
2022-12-04 17:34:07 LoadBlockIndexDB: hashBestChain=000000001714e3d0a52ebc233e228a495f5050711e28b4fcc79127f9ad447089 height=2182898 date=2022-12-04 13:44:15 progress=0.500000
2022-12-04 17:34:08 init message: Rewinding blocks if needed...
2022-12-04 17:34:17 init message: Verifying blocks...
2022-12-04 17:34:17 Verifying last 288 blocks at level 3
2022-12-04 17:34:17 No coin database inconsistencies in last 289 blocks (830 transactions)
2022-12-04 17:34:17  block index          209091ms
2022-12-04 17:34:17 ERROR: CTxMemPool::ReadFeeEstimates(): up-version (109900) fee estimate file
2022-12-04 17:34:17 init message: Loading wallet...
2022-12-04 17:35:27 nFileVersion = 70200
2022-12-04 17:35:27 Keys: 110 plaintext, 0 encrypted, 110 w/ metadata, 110 total
2022-12-04 17:35:27 ZKeys: 3 plaintext, 0 encrypted, 3 w/metadata, 3 total
2022-12-04 17:35:27  wallet                70617ms
2022-12-04 17:35:27 init message: Rescanning...
2022-12-04 17:35:27 Rescanning last 86 blocks (from block 2182812)...
2022-12-04 17:36:27 Still rescanning. At block 2182830. Progress=0.999880
2022-12-04 17:36:35 AddToWallet b7b6a4c04588d637e2c60bd9b7a6d50f72e904780a1d2add85eb38424e5c04c4  update
2022-12-04 17:37:32 Still rescanning. At block 2182860. Progress=0.999888
2022-12-04 17:38:32 Still rescanning. At block 2182890. Progress=0.999896
2022-12-04 17:39:18  rescan               230754ms
2022-12-04 17:43:10 init message: Activating best chain...
2022-12-04 17:43:10 mapBlockIndex.size() = 2197445
2022-12-04 17:43:10 nBestHeight = 2182898
2022-12-04 17:43:10 setKeyPool.size() = 105
2022-12-04 17:43:10 mapWallet.size() = 16776
2022-12-04 17:43:10 mapAddressBook.size() = 5
2022-12-04 17:43:10 txnotify thread start
2022-12-04 17:43:10 init message: Loading addresses...
2022-12-04 17:43:10 torcontrol thread start
2022-12-04 17:43:10 Loaded 8071 addresses from peers.dat  69ms
2022-12-04 17:43:10 AddLocal([2605:a601:afac:3100::1c4]:45452,1)
2022-12-04 17:43:10 Discover: IPv6 eno1: 2605:a601:afac:3100::1c4
2022-12-04 17:43:10 AddLocal([2605:a601:afac:3100:4479:8fe9:9347:854b]:45452,1)
2022-12-04 17:43:10 Discover: IPv6 eno1: 2605:a601:afac:3100:4479:8fe9:9347:854b
2022-12-04 17:43:10 AddLocal([2605:a601:afac:3100:bde9:601e:d8f8:9939]:45452,1)
2022-12-04 17:43:10 Discover: IPv6 eno1: 2605:a601:afac:3100:bde9:601e:d8f8:9939
2022-12-04 17:43:10 dnsseed thread start
2022-12-04 17:43:10 net thread start
2022-12-04 17:43:10 addcon thread start
2022-12-04 17:43:10 msghand thread start
2022-12-04 17:43:10 opencon thread start
2022-12-04 17:43:11 init message: Done loading
2022-12-04 17:43:11 Leaving InitialBlockDownload (latching to false)

@49handyman
Copy link
Author

/home/doug/github/komodo/depends/x86_64-unknown-linux-gnu/lib/libgmp.a

I think i accidently ran make install in source dir. its doesn't seem to do it if i use build.sh, so my fault, i probably.

the problems however start about 1 month ago when i did a few minor upgrades to ubuntu 18 lts, then got severely worse when i upgraded first machine to Ubuntu 22 latest.

@dimxy
Copy link
Collaborator

dimxy commented Dec 4, 2022

Where do the core files end up when launching from systemd?

core file may be not be created if your OS env disables it (by default)
if the crash is repeatable you can temporarily enable cores for a terminal session (for ubuntu it is 'ulimit -c unlimited' and start komodod from this session. The core file should be created in the same directory where komodod resides

@dimxy
Copy link
Collaborator

dimxy commented Dec 4, 2022

good restart, cant find any reference to komodostate.ind. Is that created on shutdown.

komodostate.ind should be created on startup if it did not exist. Could it be a file/dir access rights?
note that messages regarding komodostate (.ind) are currently printed on console, not in debug.log

@49handyman
Copy link
Author

Regarding the crash of the pirate.service it looks like a core file was generated during the crash.

  1. could please post the exact start command for komodod?
  2. could you also start the corefile analysing with gdb and snd us some info from it? The cmd for this:
    gdb --core=<corefile> ~/komodo/src/komodod
    When gdb is started okay and no warnings like warning: exec file is newer than core file please print backtrace info for us with bt command.
    (if help needed please DM me on discord)

ubuntu 22 seems to do different coredumps, see if this helps and i'll check how to do old stype for gdb. gdb doesnt recongize this type.

doug@138-backup-2:~/.pirate$ sudo coredumpctl list
TIME                          PID  UID  GID SIG     COREFILE EXE                     SIZE
Mon 2022-12-05 12:17:42 CST 25179 1000 1000 SIGABRT present  /usr/local/bin/komodod 62.2M
doug@138-backup-2:~/.pirate$ sudo coredumpctl info
           PID: 25179 (PIRATE-shutoff)
           UID: 1000 (doug)
           GID: 1000 (doug)
        Signal: 6 (ABRT)
     Timestamp: Mon 2022-12-05 12:17:40 CST (9min ago)
  Command Line: /usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -deamon -datadir=/home/doug/.pirate -conf=/home/d>
    Executable: /usr/local/bin/komodod
 Control Group: /system.slice/pirated1.service
          Unit: pirated1.service
         Slice: system.slice
       Boot ID: 31e6674c24244f39819d1403db88bd8b
    Machine ID: 63dafc03fbd841689be39892780f2cb5
      Hostname: 138-backup-2
       Storage: /var/lib/systemd/coredump/core.PIRATE-shutoff.1000.31e6674c24244f39819d1403db88bd8b.25179.1670264260000000.zst (present)
     Disk Size: 62.2M
       Message: Process 25179 (PIRATE-shutoff) of user 1000 dumped core.

                Found module linux-vdso.so.1 with build-id: 21a2739157f98ff49d8920f47723a6a3ddb1f4d1
                Found module ld-linux-x86-64.so.2 with build-id: 61ef896a699bb1c2e4e231642b2e1688b2f1a61e
                Found module libc.so.6 with build-id: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d
                Found module libgcc_s.so.1 with build-id: 09c4935b79388431a1248f6a98e00d7dc81b8513
                Found module libgomp.so.1 with build-id: f365cc44774a8bfdb39c4a6e131d685fbe521866
                Found module libm.so.6 with build-id: 27e82301dba6c3f644404d504e1bb1c97894b433
                Found module libz.so.1 with build-id: 30840b79ac329ecbf1dec0bb60180eed256d319f
                Found module libstdc++.so.6 with build-id: f57e02bfadacc0c923c82457d5e18e1830b5faea
                Found module komodod with build-id: 7fc392f4256343e517da1f5b1e524f659c255ced
                Stack trace of thread 25179:
                #0  0x00007fc9faa0da7c pthread_kill (libc.so.6 + 0x96a7c)
                #1  0x00007fc9fa9b9476 raise (libc.so.6 + 0x42476)
                #2  0x00007fc9fa99f7f3 abort (libc.so.6 + 0x287f3)
                #3  0x00007fc9fa99f71b n/a (libc.so.6 + 0x2871b)
                #4  0x00007fc9fa9b0e96 __assert_fail (libc.so.6 + 0x39e96)
                #5  0x000055fd4713718e _ZN10CSchedulerD2Ev (komodod + 0x50f18e)
                #6  0x000055fd46cc18a6 _Z7AppInitiPPc (komodod + 0x998a6)
                #7  0x000055fd46cc2768 main (komodod + 0x9a768)
                #8  0x00007fc9fa9a0d90 n/a (libc.so.6 + 0x29d90)
                #9  0x00007fc9fa9a0e40 __libc_start_main (libc.so.6 + 0x29e40)
                #10 0x000055fd46cbff85 _start (komodod + 0x97f85)

                Stack trace of thread 25180:
                #0  0x00007fc9fabb8411 _Unwind_Find_FDE (libgcc_s.so.1 + 0x19411)
                #1  0x00007fc9fabb4833 n/a (libgcc_s.so.1 + 0x15833)
                #2  0x00007fc9fabb61e4 _Unwind_RaiseException (libgcc_s.so.1 + 0x171e4)
                #3  0x00007fc9fadba50b __cxa_throw (libstdc++.so.6 + 0xae50b)
                #4  0x000055fd46cbea15 _ZN5boost11this_thread18interruption_pointEv.cold (komodod + 0x96a15)
                #5  0x000055fd46ccb2ad _ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE (komodod + 0xa32ad)
                #6  0x000055fd46ddc538 _ZN11CCheckQueueI12CScriptCheckE4LoopEb (komodod + 0x1b4538)
                #7  0x000055fd46d7c10c _ZN11CCheckQueueI12CScriptCheckE6ThreadEv (komodod + 0x15410c)
                #8  0x000055fd46d361f0 _ZN5boost6detail11thread_dataIPFvvEE3runEv (komodod + 0x10e1f0)
                #9  0x000055fd473eedfb thread_proxy (komodod + 0x7c6dfb)
                #10 0x00007fc9faa0bb43 n/a (libc.so.6 + 0x94b43)
                #11 0x00007fc9faa9da00 n/a (libc.so.6 + 0x126a00)

                Stack trace of thread 25181:
                #0  0x00007fc9fabb8411 _Unwind_Find_FDE (libgcc_s.so.1 + 0x19411)
                #1  0x00007fc9fabb4833 n/a (libgcc_s.so.1 + 0x15833)
                #2  0x00007fc9fabb61e4 _Unwind_RaiseException (libgcc_s.so.1 + 0x171e4)
                #3  0x00007fc9fadba50b __cxa_throw (libstdc++.so.6 + 0xae50b)
                #4  0x000055fd46cbea15 _ZN5boost11this_thread18interruption_pointEv.cold (komodod + 0x96a15)
                #5  0x000055fd4713825e _ZN5boost18condition_variable4waitERNS_11unique_lockINS_5mutexEEE (komodod + 0x51025e)
                #6  0x000055fd46d332bb _ZNK5boost4_mfi3mf0Iv10CSchedulerEclEPS2_ (komodod + 0x10b2bb)
                #7  0x000055fd46d4482d _ZNK5boost9function0IvEclEv (komodod + 0x11c82d)
                #8  0x000055fd46d3f743 _ZN5boost3_bi5list2INS0_5valueIPKcEENS2_INS_8functionIFvvEEEEEEclIPFvS4_S8_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i (komodod + 0x117743)
                #9  0x000055fd473eedfb thread_proxy (komodod + 0x7c6dfb)
                #10 0x00007fc9faa0bb43 n/a (libc.so.6 + 0x94b43)
                #11 0x00007fc9faa9da00 n/a (libc.so.6 + 0x126a00)

@DeckerSU
Copy link

DeckerSU commented Dec 5, 2022

ubuntu 22 seems to do different coredumps, see if this helps and i'll check how to do old stype for gdb. gdb doesnt recongize this type.

You could run coredumpctl gdb to invoke gdb on the last core dump.

p.s. As I didn't see your debug.log and on-screen (stdout + stderr) output related to this coredump, will "try to guess": could you plz do chmod -R 777 /home/doug/.pirate and restart the daemon. Will you see same crash or it will start normally?

@dimxy
Copy link
Collaborator

dimxy commented Dec 5, 2022

here is a hint:
from the backtrace above I could guess the crash may have happened in CScheduler::~CScheduler() (_ZN10CSchedulerD2Ev is the mangled name for it)
where there is assert(nThreadsServicingQueue == 0);
So maybe komodod just could not initialise properly but crashed on shutdown due to unfortunate deinit?

@DeckerSU
Copy link

DeckerSU commented Dec 5, 2022

CScheduler::~CScheduler() (_ZN10CSchedulerD2Ev is the mangled name for it)

That's why I asked about set 777 permissions on the data folder, bcz it's very similar to this - zcash#5062 .

@49handyman
Copy link
Author

good restart, cant find any reference to komodostate.ind. Is that created on shutdown.

komodostate.ind should be created on startup if it did not exist. Could it be a file/dir access rights? note that messages regarding komodostate (.ind) are currently printed on console, not in debug.log

ok good to know.
here is the start up error from systemd when it crash today. what does "validated.-1" indicate?

differences i see yesterday these params were bigger than today after fixing.

yesterday
size.279776 datalen.346220 n.69944 lastfpos.0

today after deleting and good restart.
fsize.266888 datalen.330274 n.66722 lastfpos.0

Dec 04 09:47:27 crypto-3 komodod[46375]: PIRATE transition at 152795 (152794, 1544831831) -> (152795, 1544832974)
Dec 04 09:47:27 crypto-3 komodod[46375]: SET SAPLING ACTIVATION height.152855
Dec 04 09:47:27 crypto-3 komodod[46375]: PIRATE sapling activation at 152855
Dec 04 09:47:27 crypto-3 komodod[46375]: finished loading blocks PIRATE
--->Dec 04 09:47:27 crypto-3 komodod[46375]: processing /home/doug/.pirate/komodostate 338KB, validated.-1
--->Dec 04 09:47:27 crypto-3 komodod[46375]: inds.0x56552c6e3cd0 validate /home/doug/.pirate/komodostate.ind **fsize.279776 datalen.346220 n.69944 lastfpos.0**
Dec 04 09:47:27 crypto-3 komodod[46375]: took 0 seconds to process /home/doug/.pirate/komodostate 338KB
Dec 04 09:50:21 crypto-3 systemd[1]: pirated.service: Main process exited, code=dumped, status=11/SEGV
Dec 04 09:50:21 crypto-3 systemd[1]: pirated.service: Failed with result 'core-dump'.
Dec 04 09:50:21 crypto-3 systemd[1]: pirated.service: Consumed 5min 736ms CPU time.

Good startup yesterday:

syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: perc 0.0000% ac_pub=[000000...] acsize.0
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: extralen.73 before disable bits
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: MAX_MONEY 3982187503731922 39821875.03731922
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000e1f505000000d12f01000000000000000000000000004000000000000000 extralen.73 crc0.a7561c48
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: PIRATE halving changed to 388885 270.1 days ASSETCHAINS_LASTERA.0
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: chainparams_commandline called
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: >>>>>>>>>> PIRATE: p2p.45452 rpc.45453 magic.17b6e058 397860952 0 coins
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: call komodo_args.(/usr/local/bin/komodod) NOTARY_PUBKEY.()
syslog.1:Dec  3 12:45:14 crypto-3 komodod[170573]: nMaxConnections 384
syslog.1:Dec  3 12:47:41 crypto-3 komodod[170573]: ...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................set sapling height, if possible from ht.2181814 1670093047
syslog.1:Dec  3 12:47:42 crypto-3 komodod[170573]: PIRATE transition at 152795 (152794, 1544831831) -> (152795, 1544832974)
syslog.1:Dec  3 12:47:42 crypto-3 komodod[170573]: SET SAPLING ACTIVATION height.152855
syslog.1:Dec  3 12:47:42 crypto-3 komodod[170573]: PIRATE sapling activation at 152855
syslog.1:Dec  3 12:47:42 crypto-3 komodod[170573]: finished loading blocks PIRATE
--->syslog.1:Dec  3 12:47:42 crypto-3 komodod[170573]: processing /home/doug/.pirate/komodostate 322KB, validated.-1
--->syslog.1:Dec  3 12:47:42 crypto-3 komodod[170573]: inds.0x55e1a37e57e0 validate /home/doug/.pirate/komodostate.ind **fsize.266888 datalen.330274 n.66722 lastfpos.0**
syslog.1:Dec  3 12:47:42 crypto-3 komodod[170573]: took 0 seconds to process /home/doug/.pirate/komodostate 322KB
syslog.1:Dec  3 12:52:38 crypto-3 komodod[170573]: nLocalServices 5 0, 0
syslog.1:Dec  3 13:03:25 crypto-3 komodod[170573]: found taddr in private chain: z_z.0 z_t.0 t_z.0 vinsize.7
syslog.1:Dec  3 13:22:05 crypto-3 komodod[170573]: found taddr in private chain: z_z.0 z_t.0 t_z.0 vinsize.7
syslog.1:Dec  3 13:32:21 crypto-3 komodod[170573]: tx hash a973e40b69b9f13c424ceb347a96c9ab288bb4bf85c174ca19b3efaaa8b90c13 does not exist!

I need to learn this if you can point me to the source code to review id appreciate it.

I'm review this now #548

this has been an ongoing problem for awhile. So, it must be a shutdown problem somehow or possibly an upgraded lib used to compile. Machines are rebooted once per day. I run 5 pool servers, all with local (127.0.0.1) node wallets, some with multiple PIRATE daemons for backups. most times it'll be just 1 Pirate daemon with the problem. I would run dual daemons on all machines but its a pig at startup. is the current "contrib/komodod.service" file good to use exactly as is? except for Pirate

This machine should be factory fresh settings from Ubuntu 22 lts

P.S. i am running ZFS on this one. default install now i think, but previous was 18 lts, then 20 lts, with the problem for sure started on 20 lts... that was reason for upgrade to 22 lts.

PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian

Any tweaks to komodod server startup variables that will help speed things up?
any system "sysctl" tcp tweaks that really should be modified. I still loose p2p peers and reconnect alot and same with Antminers with node stratum. Seem to help each time i reboot.

Too TCP connections, etc? cache sizes? sysctl parameters best suited for node daemons and stratum servers?

Any suggestions? 1 dedicated machine for node wallets? or 2 machines dedicated? How do the big pools do it?

I'm also having a pretty long delay on local machines 127.0.0.1:7778(my rpc port) when testing komodo-cli getinfo. I'm woried that the node-stratum is seeing same things. Sometimes response is instant and others (often) 5-12 seconds. which is way too long, few times it never responded after few minutes i killed the process.

higher delay

time komodo-cli -rpcport=7778 getinfo
real    0m4.721s
user    0m0.000s
sys     0m0.004s

here is minor delay:

time komodo-cli -rpcport=7778 getinfo
real    0m2.694s
user    0m0.004s
sys     0m0.000s

fast response:

time komodo-cli -rpcport=7778 getinfo
real    0m0.016s
user    0m0.003s
sys     0m0.000s

All machines are at lease 4 threads 3.6Ghz, some 8 threads 3.9Ghz, 16gb ram,all SSD drives, 1gb ethernet on single cisco 3750 & MikroTik 10gb switches, some servers on 10gb fiber (not that should make any difference on simple http requests to daemon. Main internet is Google 2.5GB connection. All in All it should be a good setup but maybe high on rejected/orphaned blocks

Blocks Paid 11-04-22 To 12-04-22,  --->local-3 stats reset to 0

Building-3 	398   <---- main pool server renamed local-3
Home-231 	129
local-3 	35             <---- main pool server as in building-3 renamed local-3
local-138	49

Duplicate Blocks
Build		3       <---- main pool server renamed local-3
Home		1
local-138	1
local-3		1      <---- main pool server as in building-3 renamed local-3

Rejected blocks
Building	        2      <---- main pool server renamed local-3
Home		2
local-138	        4
local-3		1       <---- main pool server as in building-3 renamed local-3

Orphaned Blocks
Building	        5       <---- main pool server  renamed local-3
Home		4
local-138	        4
local-3		3       <---- main pool server as in building-3 renamed local-3

39 rejected blocks total

successful restart after deleting both komodostate file.

no komodostate.ind file yet after 1 hour and synced
komodostate has this:

/.pirate$ cat komodostate
0x55ae7db233d00x55ae7d89d1300x55ae7d805e700x7f51b80215600x7f511c2208c00x55af10963e400x55ae7d8a7a200x7f511c1e4b800x55af0300d6b00x55af10b3d9c00x7f512000d7500x7f511c213da00x7f511c004d600x7f51b800edf00x55af11cb58900x7f5124055e600x7f511c3e63f00x7f511c25d0200x7f511c3e57000x55ae7d881c800x7f511c1ba4500x7f511c1ba8900x7f511c1938900x7f511c4234500x7f511c1956e00x7f511c44fc100x55ae7d89f1100x7f511c0260300x7f511c359ac00x7f511c14fc600x7f511c1940100x7f511c0126c00x7f511c0d2c100x7f511c0d18000x7f511c0124a00x7f511c4224800x7f511c0036a00x7f511c217a800x7f511c0d2ca00x7f511c4f82400x7f511c1f86800x55af88cf87300x7f511c193aa00x7f511c1170900x7f511c5e3b000x7f511c1939000x7f511c4594100x7f511c117a300x7f511c1169900x7f511c14e9800x7f511c59b0c00x7f511c1075800x7f511c1075500x7f511c379d600x7f511c379d900x7f51b800cb900x7f511c4234f00x7f511c1e4b300x7f511c422f800x7f511c5975b00x7f511c2209100x7f511c116da00x7f511c192aa00x55ae81b8f5900x7f511c6570f00x7f511c0370600x7f511c82b8c00x55af051353100x7f511c91f0a00x7f511c91ec000x7f511c0299900x55ae804520500x55ae7d6c6bc00x55ae7d8050a00x7f511ca319e00x7f511c422c600x7f511c3e4cb00x7f511c4234800x7f511c91d9000x7f511c00dd700x7f511c82b8900x7f511c0d51b00x7f511c95b8e00x7f511c91f0700x7f511c0d19b00x7f511c91e8300x7f511c0d47300x7f511c6548200x7f511c4227000x7f511c0d17d00x7f511c82c4200x7f511c5623800x7f511c028d200x7f511ca320c00x7f511c0271300x7f511c91f5100x7f511c7b4b600x55ae7d870fb00x7f511cb5e0d00x7f511c44c5500x7f511c91e9b00x7f511c208d400x55ae88ec34400x7f511cb55d400x7f511c0d46700x7f511cc5eef00x55ae8b4666a00x7f511c0085800x7f511c3e53e00x7f511c82c5200x55ae855eaf500x7f511cc723800x7f511c7b4a500x7f511cc678f00x7f511c4502900x7f511c82bf300x55ae9b96cb700x55ae7efbc2000x7f511c91c5000x7f511c8bd0d00x7f511cc5c5200x7f511cabcaf00x7f511cb572b00x7f511c91c6400x7f511c91c6700x7f511c192e000x7f511c44edd00x7f511c1b24a00x7f511cc68fa00x7f511c6544100x7f511ccdc5300x7f511c0065300x7f511ccd9c900x7f511c33a4000x7f511cc68fd00x7f511c1075200x7f511c91c8200x7f511c91c9100x7f511c91c9400x7f511c1fd9800x7f511c198ef00x7f511c91c9a00x7f511c50d7000x7f511c1168500x7f511c3487a00x7f511c4017000x7f511ccdbb500x7f511c009a200x7f511c1a93f00x7f511c38dc600x7f511c91c7f00x7f511cbdcc600x7f511c35b1c00x7f51b800a1e00x7f511c5975100x7f511c33f8c00x7f511ca15fd00x7f511cb5e1300x7f511c6cc0a00x7f511c6cb9400x7f511cc566100x7f511c7b49f00x7f511c379d300x7f511c33e0800x7f511c64b9d00x7f511c413ca00x7f511c4532300x7f511c1a9bd00x7f511c6cb6200x7f511cabc9900x7f511c33f8f00x7f511c3404900x7f511c4224500x7f511c653dc00x7f511c493e800x7f511c44fe000x7f511cb62de00x7f511c8ed4c00x7f511c8c57e00x7f511c4228800x7f511c44c1a00x7f511c12f3c00x7f511c91d0300x7f511c44d1900x7f511c43e1400x7f511c91d0c00x7f511c436a000x7f511c0bb3b00x7f511c91d1500x7f511c19cf400x7f511c31b7000x7f511c4462f00x7f511c6e38d00x7f511c838c300x7f511c0d4a500x7f51240049700x7f511c4e0e900x7f511c39a0000x7f511c71f2300x7f51b8021eb00x7f511c4fab700x7f511c5015700x7f511c35a8100x7f511ce983000x7f511cc562800x7f511c1934100x7f511c52df500x7f511cc723500x7f511ccdae500x7f511cc54ce00x7f511c193ca00x7f511c299ee00x7f511c309e200x7f511c0d45b00x7f511ca6c2800x7f511c9d43800x7f511c4373300x7f511cc622c00x7f511c3289e00x7f511c0031500x7f511cc61ee00x7f511c2781d00x7f511ca457000x7f511c96d4a00x7f511ceffca00x7f511caac4f00x7f511c4524400x7f511c2941b00x7f511c3922f00x7f511cf177700x7f511cf273d00x7f511c4222800x7f511cfb8e500x7f511cc9fdc00x7f511cc700f00x7f511c9236f00x7f511ce9b4400x7f511c359e500x7f511ce0b6600x7f511c91d8a00x7f511c39b7200x7f511cf261800x7f511cf260600x7f511ce0ddc00x7f511c1a89400x7f511c91f2600x7f511cb589500x7f511c4b34600x7f511c9b04200x7f511c68b5f00x7f511c68fc200x7f511c68fcc00x7f511c1957800x7f511ce1a4b00x7f511ce1d7c00x7f51200254f00x7f51245587c00x7f51200247c00x7f511c9399600x7f511c5015100x7f512402dbb00x7f51240556900x7f51240229b00x7f511cf81c100x7f511ce006a00x7f511cde09900x7f511c7a1d700x7f511cb2df500x7f511c510fa00x7f511c61f8100x7f511c82c0a00x7f511c71a4b00x7f511c4234200x7f511cde72e00x7f511cec8ae00x7f511c8ef9900x7f51240baa200x7f511c0b48300x7f511c0ab4b00x7f511c0b39700x7f511c09ab300x7f511cde0b600x7f511c08a1b00x7f511c08c6900x7f511c0892f00x7f511c07f0b00x7f511c04cd600x7f511c0450000x7f511c0474e00x7f511c0439e00x7f511c023f300x7f511c013d100x7f511c0161f00x7f511d1517500x7f511c03cbc00x7f511ce056c00x7f511cfc49c00x7f511c0b0d300x7f511c0a3eb00x7f511c08eb700x7f5124000dc00x7f511cf1b0e00x7f511c0815900x7f511c042b200x7f511c04afe00x7f511c020b900x7f511d1446d00x7f511d0dcdf00x7f511cfc35700x7f511c021a500x7f511c0884300x7f511c0986500x7f51240bb3200x7f511c5070f00x7f511c01d0900x7f511c0aa5f00x7f511c0841d00x7f511c0917b00x7f511d1a5d100x7f51240b67000x7f512455c9d00x7f512403b2100x7f512403b1e00x7f511c347ed00x7f51c8009c200x7f51c802b1400x7f512455cf600x7f51c8000be00x7f511c092dd00x7f511cba3db00x7f511d136c300x7f51cc0011200x7f511c04e7a00x7f511c0849300x7f511c6232100x7f511cf0b9300x7f511d0da4a00x7f511c9d2ed00x7f511c018e300x7f511d26f2700x7f511c5357c00x7f511c041c600x7f511c14fac00x7f511c14f0000x7f511c5ad1900x7f511c3711c00x7f511ce3db300x7f51c8007ee00x55af843a18300x7f511cde0a600x7f511d1f93000x7f511ceaad500x7f511c0a8fd00x7f511c086e100x7f511c082bb00x7f511c048b000x7f511c5a4ec00x7f511c04e3800x7f511d05f0b00x7f511c7920900x7f511c09c8b00x7f511c0282b00x7f511d0294e00x7f511ce9f3400x7f511d1f7b000x7f511c2983500x7f511cd171600x7f511cbdc8b00x7f511cb2bc500x7f511d14dc600x7f511c014bd00x7f511c01a4500x7f511d2ce6a00x7f511c0284100x7f511c09e6300x7f511c9345d00x7f511c0857f00x7f511c094b500x7f511c04b7400x7f511c82b6e00x7f511cf7c4200x7f511d0134f00x7f511c221f200x7f51c8047bf00x7f511c93b0300x7f511c01c9300x7f511c8b74f00x7f511d0671e00x7f511c0204300x7f511c8e55500x7f511d2e90100x7f511c5a2f200x7f511d2cdef00x7f511d14d6100x7f511c1137a00x7f511d022b000x7f51245578800x7f511d46c8a00x7f511c446fb00x7f511c0169500x7f511c099c700x7f511d3958a00x7f511d236c200x7f511cecd0b00x7f511c2d23000x7f51240ba1800x7f51d0003a600x7f512454a5500x7f51c8004e600x7f512401fed00x7f511c0d4b200x7f512455cc400x7f511d2dab400x7f511d6436900x7f511d6035e00x7f511d0f52400x7f511cd47a000x7f51b001ccb00x7f511c5c2b900x7f511cb2f9100x7f511d273c500x7f511c9383300x7f511c8c7c200x7f511c5cd6700x7f511c9d2f000x7f511c4efbc00x7f511c080e300x7f511d49a1400x7f511c6282500x7f511d60a2800x7f511d0912300x7f511cecc9400x7f511c3e7d000x7f51b804c8500x7f511cf16ce00x7f511c0d51800x7f511c7b4a200x7f511c3c56700x7f511d51c7800x7f511c9262400x7f511c583d500x7f511cf5fd200x7f511d0656400x7f511d632ed00x7f511d133af00x7f511c0144700x7f511c0057100x7f512402dd300x7f511c45e6400x7f511d2d0ab00x7f511cd186700x7f511d412cf00x7f511d3bcb800x7f511c0824500x7f511c6cc1700x7f511d0e44d00x7f511c0178100x7f511c620b600x7f511d221f700x7f511d33eb400x7f512401aac00x7f511c68d6700x7f511ce79d100x7f511d41d0c00x7f51b8037ae00x7f511ce493400x7f51244279700x7f511ce524100x7f511c08dcb00x7f51200639300x7f511d302af0doug@crypto-3:~/.pirate$

I think this is what you were asking for with "bt"

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/komodod...
BFD: warning: /var/tmp/coredump-4SJVYF has a segment extending past end of file
[New LWP 873]
[New LWP 934]
[New LWP 936]
[New LWP 1422]
[New LWP 1258]
[New LWP 1424]
[New LWP 1423]
[New LWP 1260]
[New LWP 1262]
[New LWP 1269]
[New LWP 1267]
[New LWP 1265]

warning: Error reading shared library list entry at 0x29ba00746473
Failed to read a valid object file image from memory.
Core was generated by `/usr/local/bin/komodod -maxconnections=120 -ac_name=PIRATE -ac_supply=0 -ac_rew'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000055bb81890c54 in CBlockTreeDB::LoadBlockIndexGuts (this=<optimized out>) at txdb.cpp:703
703     txdb.cpp: No such file or directory.
[Current thread is 1 (LWP 873)]
(gdb) bt
#0  0x000055bb81890c54 in CBlockTreeDB::LoadBlockIndexGuts (this=<optimized out>) at txdb.cpp:703
Backtrace stopped: Cannot access memory at address 0x7ffc61f8c228

@49handyman
Copy link
Author

i also did the chmod. ill be rebooting after while and let you know.

let me know if this points to specific problem like shutdown. Ill have to do something to ensure all komodod daemons are shutting down clean in the service script.

@dimxy
Copy link
Collaborator

dimxy commented Dec 6, 2022

  1. The crash in LoadBlockIndexGuts for me shows that something is wrong with the file system (insufficient access rights or db corruption). Did you try to run komodo NOT as a service? Please also check access rights for the data dir and files in it.
  2. did you check debug.log? It may have records for the reason why it went to shutdown
  3. "validated.-1" does not mean anything bad, it is printed always before the file processing starts (like the position already processed). komodostate.ind is created immediately on startup
  4. long getinfo means probably your wallet is full of spent transactions (use getwalletinfo to check this). You may use cleanwallettransactions to remove oldest spent transactions and compact the wallet. You may also consider first sending all the wallet amount to some your address (to make most of the wallet transactions spent) and run cleanwallettransactions after that (please be aware you understand what you are doing as this will change your utxo structure)

@dimxy
Copy link
Collaborator

dimxy commented Dec 6, 2022

please also consider another rpc instead of getinfo (not using the wallet), f.e. getblockchaininfo (not sure what data you would like to obtain though)

@DeckerSU
Copy link

DeckerSU commented Dec 6, 2022

let me know if this points to specific problem like shutdown. Ill have to do something to ensure all komodod daemons are shutting down clean in the service script.

If you periodically shutdown / reboot the machines, you'll definitely need to add check if daemon stopped, before shutdown / reboot, to avoid blockchain corruption. If you have crash on LoadBlockIndexGuts after machine restart - most likely you have corrupted blockchain in the data folder. You can download bootstrap from https://eu.bootstrap.dexstats.info/PIRATE-bootstrap.tar.gz , clean data folder, except your .conf and wallet.dat, unpack it, and I guess everything will start smoothly.

@49handyman
Copy link
Author

49handyman commented Dec 14, 2022

let me know if this points to specific problem like shutdown. Ill have to do something to ensure all komodod daemons are shutting down clean in the service script.

If you periodically shutdown / reboot the machines, you'll definitely need to add check if daemon stopped, before shutdown / reboot, to avoid blockchain corruption. If you have crash on LoadBlockIndexGuts after machine restart - most likely you have corrupted blockchain in the data folder. You can download bootstrap from https://eu.bootstrap.dexstats.info/PIRATE-bootstrap.tar.gz , clean data folder, except your .conf and wallet.dat, unpack it, and I guess everything will start smoothly.

I think that has been happening. I use ExecStop=/usr/local/bin/komodo-cli -conf=/home/doug/.pirate/PIRATE.conf stop
It seems to work on 3 other machines fine.. this machine is now Ubuntu 22.04 and having problems compiling with that PIE error, which i looked up and found its trying to access a shared library problem.

Is there a full compile log somewhere that would help understand the error. I cant seem to connect to the P2P no matter what i do. disabled firewall - didn't help, i can connect to other machines on local network that are setup for remote RPC with this machine and NOMP pool server. I've been building and running these for Pirate Chain for 2 -3 years now, so I'm not a total noob.

problem is the PIC & PIE compiling at very end. It creates a semi working Komodod that seems to run ok. today after shutting it down manually and waiting for full shutdown, I ran it on console foreground and I'm now getting a another error I've never seen:

Console output:

doug@138-backup-2:~/github/komodo$ /usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 \
-deamon -datadir=/home/doug/.pirate -conf=/home/doug/.pirate/PIRATE.conf -pid=/home/doug/.pirate/pirate.pid

ASSETCHAINS_SUPPLY 0
perc 0.0000% ac_pub=[000000...] acsize.0
ERA0: end.0 reward.25600000000 halving.77777 decay.0 notarypay.0
extralen.73 before disable bits
MAX_MONEY 3982187503731922 39821875.03731922
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000e1f505000000d12f01000000000000000000000000004000000000000000 extralen.73 crc0.a7561c48
PIRATE halving changed to 388885 270.1 days ASSETCHAINS_LASTERA.0
chainparams_commandline called
>>>>>>>>>> PIRATE: p2p.45452 rpc.45453 magic.17b6e058 397860952 0 coins
call komodo_args.(/usr/local/bin/komodod) NOTARY_PUBKEY.()
initialized PIRATE at 1671031695
nMaxConnections 400
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................set sapling height, if possible from ht.2187464 1670450018
PIRATE transition at 152795 (152794, 1544831831) -> (152795, 1544832974)
SET SAPLING ACTIVATION height.152855
PIRATE sapling activation at 152855
finished loading blocks PIRATE
DEBUG - komodo_utils:1363: custom datadir
processing /home/doug/.pirate/komodostate 45KB, validated.-1
inds.0x55d0875c5e90 validate /home/doug/.pirate/komodostate.ind fsize.37524 datalen.46438 n.9381 lastfpos.0
/home/doug/.pirate/komodostate.ind validated fpos.46435
took 0 seconds to process /home/doug/.pirate/komodostate 45KB
Warning: Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.

can komodod be compiled with "-no-pie" if so what would command line be to build. I've tried about 5 different ways and it wouldn't start compiling. Makefile looks like it should take compiler commands at end of the build.sh command line.

Any help would be nice. I'll keep working on this till i get it fixed. on Ubuntu 22 both machines seem have more problems than ever rebooting with the same exact setup I've always used. and it very random problems or full crashes. Ill get you the core debug as soon as i t happens again. OS cleared all the old ones out..
Logs i can find.

 find . -iname \*.log
./config.log
./depends/x86_64-unknown-linux-gnu/native/lib/rustlib/install.log
./src/cryptoconditions/config.log
./src/cryptoconditions/src/include/secp256k1/config.log
./src/univalue/config.log
./src/secp256k1/config.log
doug@138-backup-2:~/github/komodo$

Here is the config file for PIRATE.conf:

cat PIRATE.conf
server=1
whitelist=127.0.0.1
txindex=1
rpcallowip=127.0.0.1
rpcallowip=192.168.2.0/255.255.255.0
rpcallowip=192.168.2.134
rpcallowip=192.168.2.103
rpcallowip=192.168.2.231
rpcallowip=192.168.2.226
rpcallowip=192.168.2.138
rpcallowip=76.92.241.125
rpcport=7771
port=45452
rpcuser=*****
rpcpassword=****
#rpcworkqueue=1024
#rpcservertimeout=2600
#zmqpubrawtx=tcp://127.0.0.1:8368
#zmqpubhashblock=tcp://127.0.0.1:8368

and why wont komodod report the proper PORTS at startup?

chainparams_commandline called
>>>>>>>>>> PIRATE: p2p.45452 rpc.45453 magic.17b6e058 397860952 0 coins
call komodo_args.(/usr/local/bin/komodod) NOTARY_PUBKEY.()

that is not PIRATE peermagic either

{
    "name": "pirate-chain",
    "comment_name": "use coingecko id for name to get live stats and avoid errors",
    "symbol": "arrr",
    "network": "mainnet",
    "blockReward": 8,
    "algorithm": "equihash",
    "txfee": 0.0001,
    "getMarketStats": true,
    "peerMagic": "58e0b617",
    "disablecb": false,
    "requireShielding": true,
    "privateChain": true,
    "sapling": true,

lol--- just saw it peermagic is hex reversed. -- so forget that problem, ports should be read from config file right?

total of 4-5 servers run exactly the same config files. if I run two daemons I use rpcport=7778, and for P2P - port=45453.

What about the bind variable would that help with poolservers not connecting to P2P port

if you leave ports out of config komodod assigns RPC: 7771 and P2P: 45452....

sorry for the long post but I was trying to cover a few of your guys questions to get up to date on the status of this.

Looks like this time it rescanning the whole blockchain again, from the wallet startup error above. -- soo slow. Ill just clear it out and use a backup wallet.dat and bootstrap.

@49handyman
Copy link
Author

CScheduler::~CScheduler() (_ZN10CSchedulerD2Ev is the mangled name for it)

That's why I asked about set 777 permissions on the data folder, bcz it's very similar to this - zcash#5062 .

Directroy perms...

~/pirate-test$ ll
total 1.4G
-rwxrwxr-x  1 doug doug 158M Dec  7 14:31 ,*
drwxrwxrwx  5 doug doug 4.0K Dec 14 09:11 ./
drwxr-xr-x 34 doug doug 4.0K Dec 14 09:38 ../
-rwxrwxr-x  1 doug doug  13K Dec  7 14:31 address.json*
drwxrwxr-x  3 doug doug 4.0K Dec  7 21:13 blocks/
drwxrwxr-x  2 doug doug  12K Dec 13 23:19 chainstate/
-rwxrwxr-x  1 doug doug    0 Dec  7 14:38 db.log*
-rw-------  1 doug doug 8.0M Dec 14 09:11 debug.log
-rwxrwxr-x  1 doug doug  34K Dec 14 09:11 fee_estimates.dat*
-rwxrwxr-x  1 doug doug  223 Dec  7 14:38 getbootstraps.sh*
-rw-------  1 doug doug 151K Dec 14 09:11 komodostate
-rw-------  1 doug doug 112K Dec 13 14:50 komodostate.ind
-rwxrwxrwx  1 doug doug    0 Dec  5 09:15 .lock*
drwxrwxr-x  2 doug doug 4.0K Dec 13 14:48 notarisations/
-rw-------  1 doug doug 600K Dec 14 09:11 peers.dat
-rwxrwxr-x  1 doug doug  422 Dec 13 14:48 PIRATE.conf*
-rwxrwxr-x  1 doug doug 199K Dec 14 09:04 signedmasks*
-rwxrwxr-x  1 doug doug 1.3G Dec 14 08:48 wallet.dat*

Proper shutdown as it should be on 1 of two daemons on this machine.

2022-12-14 15:11:08 ERROR: AcceptToMemoryPool: joinsplit requirements not met
2022-12-14 15:11:09 ERROR: AcceptToMemoryPool: joinsplit requirements not met
2022-12-14 15:11:13 tor: Thread interrupt
2022-12-14 15:11:13 torcontrol thread exit
2022-12-14 15:11:13 net thread interrupt
2022-12-14 15:11:13 msghand thread interrupt
2022-12-14 15:11:13 scheduler thread interrupt
2022-12-14 15:11:13 addcon thread interrupt
2022-12-14 15:11:14 txnotify thread interrupt
2022-12-14 15:11:14 opencon thread interrupt
2022-12-14 15:11:22 Shutdown: In progress...
2022-12-14 15:11:22 StopRPC: waiting for async rpc workers to stop
2022-12-14 15:11:22 StopNode()
2022-12-14 15:11:22 Shutdown: done

@49handyman
Copy link
Author

getblockchaininfo

Wow, you're right. I use getinfo to get block info and if synced for the pool server, ill look at changing some of the commands if possible.

Does getblockchaininfo respond before it synced so i can monitor reboot right now I hold pm2 off until I get a synced: true from getinfo.

pm2.service line:
ExecStartPre=sh -c 'while ! komodo-cli -conf=/home/doug/pirate-test/PIRATE.conf getinfo | jq -r '.synced' | grep -q true; do sleep 45; done'

i have problems with pool server starting up before it synced. sometimes it come right up other times it just stuck in a weird loop and doesn't recognize blockchain is now synced. the above doesn't start pool server until its synced and comes right up every time.

this is pool server and pirate has been synced for about 3 minutes and it stuck. I restart the server and boom everthing is good.

12/14/2022, 10:39:23 AM] [info] [pirate-chain] [Pool [:1]] : Could not start pool, error with init RPC validateaddress - {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:39:24 AM] [info] [pirate-chain] [Pool [:2]] : Could not start pool, error with init RPC validateaddress - {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:39:24 AM] [info] [pirate-chain] [Pool [:3]] : Could not start pool, error with init RPC validateaddress - {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:39:24 AM] [info] [pirate-chain] [Pool [:4]] : Could not start pool, error with init RPC validateaddress - {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:39:24 AM] [info] [system] [init.js] : PaymentProcess
[12/14/2022, 10:39:24 AM] [warn] [system] [init.js] : Pool Server Starting...
[12/14/2022, 10:39:24 AM] [info] [system] [CLI] : CLI listening on 127.0.0.1:17123
[12/14/2022, 10:39:25 AM] [warn] [System] [PaymentProcess] : coin: pirate-chain
[12/14/2022, 10:39:25 AM] [info] [system] [Website] : Starting Website module
[12/14/2022, 10:39:25 AM] [info] [system] [Stats] : Starting Stats Module...
[12/14/2022, 10:39:25 AM] [info] [system] [Website] : WEBSITE> Attempting to start Website on 0.0.0.0:8087
[12/14/2022, 10:39:25 AM] [info] [system] [Website] : WEBSITE> Website started on 0.0.0.0:8087
[12/14/2022, 10:39:25 AM] [error] [System] [PaymentProcess] : pirate-chainpayment processing daemon RF1ZgZEhEzHiPkYsQV5mhswY78Dvba84JP json: {"code":-28,"message":"Loading wallet..
[12/14/2022, 10:39:25 AM] [info] [System] [PaymentProcess] : Payment  processing enabled pools in the config error: null results :
[12/14/2022, 10:39:25 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain payment processing daemon {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:39:25 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain payment processing daemon {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:40:22 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call z_getoperationstatus {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:40:23 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call getmininginfo {"code":-28,"message":"Loading wallet..."}
[12/14/2022, 10:41:19 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call z_getoperationstatus {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:41:21 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call getmininginfo {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:42:16 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call z_getoperationstatus {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:42:19 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call getmininginfo {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:43:13 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call z_getoperationstatus {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:43:17 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call getmininginfo {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:44:10 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call z_getoperationstatus {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:44:15 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call getmininginfo {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:45:07 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call z_getoperationstatus {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:45:13 AM] [error] [System] [PaymentProcess] : Error with  pirate-chain RPC call getmininginfo {"code":-28,"message":"Rescanning..."}
[12/14/2022, 10:49:25 AM] [error] [System] [PaymentProcess] : Error trying to shield  pirate-chain balance NaN {"code":-3,"message":"Amount is not a number or string"}
^C

if you have ideas i'd like to hear anything.

getblockchaininfo seems have most of what need .

@49handyman
Copy link
Author

49handyman commented Dec 18, 2022

it looks like most of my problems are from improper shut down.

Its possible the compiling error is contributing to the problems but I haven't looked at that part of the source code. I'll look it over and see if it is any part of the Ubuntu 22 problems.

I have recompiled(for no reason) reinstalled, wiped pirate date directories, and copied a known good copy of the blockchain. Both daemons are synced and running fine for now.

After a few reboots i'll know for sure.

To hopefully make sure the komodod daemon is fully shutdown i added a ExecPost in the systemd service file for both daemons... also added it to my other machines just to confirm it works. Maybe it will help others.

[Service]
User=doug
Group=doug
Type=simple
RemainAfterExit=true
PIDFile=/home/doug/.pirate/pirated.pid
ExecStart=/usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 \
-deamon -datadir=/home/doug/.pirate -conf=/home/doug/.pirate/PIRATE.conf -pid=/home/doug/.pirate/pirate.pid

ExecStop=/usr/local/bin/komodo-cli -conf=/home/doug/.pirate/PIRATE.conf stop

ExecStartPost=-usr-bin-timeout\x20600s\x20-usr-bin-tail\x20\x2df\x20-home-doug-pirate\x2dtest-debug.log\x20\x7c\x20-usr-bin-grep\x20\x2dm\x201\x20Shutdown: done



I've also included latest dump before i wiped everything.

 coredumpctl debug
           PID: 22018 (komodod)
           UID: 1000 (doug)
           GID: 1000 (doug)
        Signal: 11 (SEGV)
     Timestamp: Sat 2022-12-17 02:02:26 CST (1 day 2h ago)
  Command Line: /usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -datadir=/home/doug/.pirate -conf=/home/doug/.pirate/PIRATE.conf -pid=/home/doug/.pirate/pirate.pid
    Executable: /usr/local/bin/komodod
 Control Group: /user.slice/user-1000.slice/session-41.scope
          Unit: session-41.scope
         Slice: user-1000.slice
       Session: 41
     Owner UID: 1000 (doug)
       Boot ID: b2e1974218ec48d3a07c6fdadbd6f023
    Machine ID: 63dafc03fbd841689be39892780f2cb5
      Hostname: 138-backup-2
       Storage: /var/lib/systemd/coredump/core.komodod.1000.b2e1974218ec48d3a07c6fdadbd6f023.22018.1671264146000000.zst (truncated)
     Disk Size: 1.5G
       Message: Process 22018 (komodod) of user 1000 dumped core.

                Found module /usr/local/bin/komodod with build-id: f436bea73b1fb53a90158eb6e5e1ef4727c8a4c1
                Stack trace of thread 22018:
                #0  0x000055f300dee961 _ZN10tinyformat11formatValueIiEEvRSoPKcS3_iRKT_ (/usr/local/bin/komodod + 0xd6961)

                Stack trace of thread 22020:
                #0  0x00007f7b3faae197 n/a (n/a + 0x0)

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/komodod...
BFD: warning: /var/tmp/coredump-VZoH3p has a segment extending past end of file

warning: Can't open file /home/doug/.pirate/chainstate/122616.ldb during file-backed mapping note processing

warning: Can't open file /home/doug/.pirate/chainstate/122617.ldb during file-backed mapping note processing

warning: Can't open file /home/doug/.pirate/chainstate/122607.ldb during file-backed mapping note processing

warning: Can't open file /home/doug/.pirate/chainstate/122605.ldb during file-backed mapping note processing

warning: Can't open file /home/doug/.pirate/chainstate/122609.ldb during file-backed mapping note processing

warning: Can't open file /home/doug/.pirate/chainstate/122611.ldb during file-backed mapping note processing

warning: Can't open file /home/doug/.pirate/chainstate/122606.ldb during file-backed mapping note processing

warning: Can't open file /home/doug/.pirate/blocks/index/436089.ldb during file-backed mapping note processing
[New LWP 22018]
[New LWP 22020]
[New LWP 22022]
[New LWP 22021]
[New LWP 22019]
[New LWP 22024]
[New LWP 22078]
[New LWP 22026]
[New LWP 22025]
[New LWP 22023]

warning: Error reading shared library list entry at 0x29ba00746473
Failed to read a valid object file image from memory.
Core was generated by `/usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000055f300dee961 in tinyformat::formatValue<int> (value=<error reading variable: Cannot access memory at address 0x18>, ntrunc=-1, fmtEnd=0x55f301a7b375 ". Progress=%f\n", out=...) at ./tinyformat.h:338
338             out << value;
[Current thread is 1 (LWP 22018)]
(gdb)

@TheComputerGenie
Copy link

TheComputerGenie commented Dec 18, 2022

Maybe a silly question, but have you tried just running the daemon as a daemon (not as a service) without a custom data dir and without manually bootstrapping or manually customizing the conf file or preexisting wallet.dat?

@49handyman
Copy link
Author

Maybe a silly question, but have you tried just running the daemon as a daemon (not as a service) without a custom data dir and without manually bootstrapping or manually customizing the conf file or preexisting wallet.dat?

I havent, but will try that now.

I just shut down one deamon and made sure debug file showed complete proper shutdown. and i get a coredump upon restarting. And even more bazzar sometime if i try to restart again it starts up fine and continues to run.

here is the coredump from a perfect shutdown, then restart on command line with debug=0 to see what happens.

 coredumpctl debug
           PID: 38423 (komodod)
           UID: 1000 (doug)
           GID: 1000 (doug)
        Signal: 6 (ABRT)
     Timestamp: Fri 2022-12-23 21:34:52 CST (7min ago)
  Command Line: /usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -datadir=/home/doug/.pirate -conf=/home/doug/.pirate/PIRATE.conf -pid=/home/doug/.pirate/pirate.pid -debug=0
    Executable: /usr/local/bin/komodod
 Control Group: /user.slice/user-1000.slice/session-262.scope
          Unit: session-262.scope
         Slice: user-1000.slice
       Session: 262
     Owner UID: 1000 (doug)
       Boot ID: 1e03160989e849e586e69c1e2123ce9d
    Machine ID: 63dafc03fbd841689be39892780f2cb5
      Hostname: 138-backup-2
       Storage: /var/lib/systemd/coredump/core.komodod.1000.1e03160989e849e586e69c1e2123ce9d.38423.1671852892000000.zst (truncated)
     Disk Size: 1.5G
       Message: Process 38423 (komodod) of user 1000 dumped core.

                Found module /usr/local/bin/komodod with build-id: f436bea73b1fb53a90158eb6e5e1ef4727c8a4c1
                Stack trace of thread 38429:
                #0  0x00007f65636c9a7c n/a (n/a + 0x0)

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/komodod...
BFD: warning: /var/tmp/coredump-N3zanC has a segment extending past end of file
[New LWP 38429]
[New LWP 38425]
[New LWP 38424]
[New LWP 38432]
[New LWP 38430]
[New LWP 38434]
[New LWP 38426]
[New LWP 38433]
[New LWP 38427]
[New LWP 38474]
[New LWP 38475]
[New LWP 38481]
[New LWP 38423]
[New LWP 38479]
[New LWP 38482]
[New LWP 38480]
[New LWP 38476]
[New LWP 38428]
[New LWP 38431]
[New LWP 38478]

warning: Error reading shared library list entry at 0x29ba00746473
Failed to read a valid object file image from memory.
Core was generated by `/usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f65636c9a7c in ?? ()
[Current thread is 1 (LWP 38429)]
(gdb)

@49handyman
Copy link
Author

49handyman commented Dec 24, 2022

everytime it references a shared library and that was one problem compiling on Ubuntu 22. after the last up it compiled ok with no errors. I'll confirm if i installed that version. it had to do with referencing a fPIC in shared library that couldn't be found..

This is just what I've posted here. I think its basically same error everytime.

This is only app that i have problems with that accesses disk and memory a lot.
reverse order of a few crashes.

Debug log:

[PIRATE] ht.2207482 txi.2 signedmask.20c408110108864 numvins.13 numvouts.2 <<<<<<<<<<<  notarized
[PIRATE] matched.1 VALID (PIRATE) MoM.b819e44137b9ff73ba41d6558599421a65442e7599f1a16330ad1f61556a3ad6 [2] CCid.0
[PIRATE] ht.2207482 NOTARIZED.2207474 PIRATE.000000000cdb9f3fc0f55c075099e710e4b2f7bf3def34d715b4e183db6ad6fc KMDTXID.6a5f5e7afd35f38cfccf63daa2e3149337e4089b5ca507b84b536763d9ccb4a0 lens.(111 114) MoM.b819e44137b9ff73ba41d6558599421a65442e7599f1a16330ad1f61556a3ad6 2
[PIRATE] ht.2207535 txi.4 signedmask.20000821029900f numvins.13 numvouts.2 <<<<<<<<<<<  notarized
[PIRATE] matched.1 VALID (PIRATE) MoM.0b4cf59784d0453805c572fe10fbbde12a8a234a7139ec23ba7e604980c0b79c [54] CCid.0
[PIRATE] ht.2207535 NOTARIZED.2207528 PIRATE.000000001e02fe016ef235623349b344780a87af90685f004fb8d45d80136ecd KMDTXID.908af268859cb87865c22c316b73b5e44a026a62a9980c6cb4503d30d7d34ab5 lens.(111 114) MoM.0b4cf59784d0453805c572fe10fbbde12a8a234a7139ec23ba7e604980c0b79c 54
[PIRATE] ht.2207537 txi.4 signedmask.12400280031c1048 numvins.13 numvouts.2 <<<<<<<<<<<  notarized
[PIRATE] matched.1 VALID (PIRATE) MoM.e6f5cf162a39e2a4632bb6644cda156df347de41c38f48d71c2edf51efd034ab [2] CCid.0
[PIRATE] ht.2207537 NOTARIZED.2207530 PIRATE.0000000016416a71b0afc53ebb7a26cf89387d4257532a1030d38adc9a648790 KMDTXID.721b8c0d9599a7a237c9d0d90455f5c33fc3ceb4ef5e06f8fc76e16ba7a2e213 lens.(111 114) MoM.e6f5cf162a39e2a4632bb6644cda156df347de41c38f48d71c2edf51efd034ab 2
tx hash a973e40b69b9f13c424ceb347a96c9ab288bb4bf85c174ca19b3efaaa8b90c13 does not exist!
tx hash cedd74adf157b6b26d88ce499bfcc21f2b5f258fe86dbf67b67180e4b13d5918 does not exist!
tx hash 50d52028c170c68ed20a717b994a664d260868927da3a65e6fc57c16e8e4151e does not exist!
tx hash 808a4f4f500941d802cb6e7a66bb238397332bdcb2eecf6f5727d3a9bbbbbb2c does not exist!
tx hash d473b764e2fa60d3343cbdff66929d6c5a730475a3003dbf407dc0a6107a4b2d does not exist!
tx hash 33c6c6577d1d9898eb492446d5e665f7de253b46fb88b9d7017009d0f9f75930 does not exist!
tx hash 5cfa5bf94d39a3d6d9457041f42c8f5ce5f4fe75136202d5e04664db64175638 does not exist!
tx hash 4a7e26c2fa565d769b820e1345e01380d01207200a8cb01248534b70f4f9b238 does not exist!
tx hash ded6bc48652ec7a9ffc377e3830105f31d0f63fba11f20d84b5afeb1d0faaa59 does not exist!
tx hash 62ca70267ca7fc00fee3680bdd6e09feb5f969cc675ecb7f4ad0543cba245263 does not exist!
tx hash 1b57b7a6aa4a98c807d84d4970586e5736d86429019258ec1d8a8dffc2d7bf63 does not exist!
tx hash c03361c9283f648e98a836ebfe9e44bd8babf594bb5f610c18e8ad03444a598b does not exist!
tx hash ea3d3897366f6d336087e86f890e119578694c1656c0694099bf030d97a8bb97 does not exist!
tx hash a6a5b241ce27b7f5edee1f49550a730d80ebb7cba0b1a7e6128e112337faddd3 does not exist!
tx hash b75d841cda803a5b7eba5dc95df28072111a0cda5f3bf6aed8d1ddca904a49f1 does not exist!
komodod: wallet/wallet.cpp:5020: void CWallet::GetFilteredNotes(std::vector<CSproutNotePlaintextEntry>&, std::vector<SaplingNoteEntry>&, std::set<boost::variant<libzcash::InvalidEncoding, libzcash::SproutPaymentAddress, libzcash::SaplingPaymentAddress> >&, int, int, bool, bool, bool): Assertion `static_cast<bool>(maybe_pt)' failed.
Aborted (core dumped)

Coredump debug files:

warning: Error reading shared library list entry at 0x29ba00746473
Failed to read a valid object file image from memory.
warning: Error reading shared library list entry at 0x29ba00746473
Failed to read a valid object file image from memory.
warning: Error reading shared library list entry at 0x29ba00746473
Failed to read a valid object file image from memory.

@49handyman
Copy link
Author

49handyman commented Dec 24, 2022

Maybe a silly question, but have you tried just running the daemon as a daemon (not as a service) without a custom data dir and without manually bootstrapping or manually customizing the conf file or preexisting wallet.dat?

Ok first i wanted to restart with same command line as before. I synced in about 45-60 seconds and now is up and running fine. f... ME.

and it is the updated daemon from dec 14 compiling. I checked the sha1. in about 10 minutes ill start it up like you asked.

{
  "name": "PIRATE",
  "synced": true,
  "version": 70200,
  "notarized": 2207532,
  "blocks": 2207585,
  "longestchain": 2207585,
  "connections": 8,
  "difficulty": 1268895812.983799,
  "verificationprogress": null
}

@49handyman
Copy link
Author

while testing all type of things i get a error on bad zcash-params.

how is that even possible. does it read and write to the directory?

someone give me some pointers on how to debug this with gdb or what i should do? my only option left is to wipe the hard drive and reinstall everything. I'd like to learn how to debug it tho. Any pointers, software, or processes i should try?

debug log

 /usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -datadir=/home/doug/.pirate -conf=/home/doug/.pirate/PIRATE.conf -pid=/home/doug/.pirate/pirate.pid -debug=0
ASSETCHAINS_SUPPLY 0
perc 0.0000% ac_pub=[000000...] acsize.0
ERA0: end.0 reward.25600000000 halving.77777 decay.0 notarypay.0
extralen.73 before disable bits
MAX_MONEY 3982187503731922 39821875.03731922
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000e1f505000000d12f01000000000000000000000000004000000000000000 extralen.73 crc0.a7561c48
PIRATE halving changed to 388885 270.1 days ASSETCHAINS_LASTERA.0
chainparams_commandline called
>>>>>>>>>> PIRATE: p2p.45452 rpc.45453 magic.17b6e058 397860952 0 coins
call komodo_args.(/usr/local/bin/komodod) NOTARY_PUBKEY.()
initialized PIRATE at 1671864125
nMaxConnections 384
thread '<unnamed>' panicked at 'Sprout groth16 parameter file is not correct, please clean your `~/.zcash-params/` and re-run `fetch-params`.', librustzcash/src/rustzcash.rs:261:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Aborted (core dumped)

coredump debug

 coredumpctl debug 41501
           PID: 41501 (komodod)
           UID: 1000 (doug)
           GID: 1000 (doug)
        Signal: 6 (ABRT)
     Timestamp: Sat 2022-12-24 00:33:38 CST (3min 43s ago)
  Command Line: /usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_halving=77777 -ac_private=1 -datadir=/home/doug/.pirate -conf=/home/doug/.pirate/PIRATE.conf -pid=/home/doug/.pirate/pirate.pid -debug=0
    Executable: /usr/local/bin/komodod
 Control Group: /user.slice/user-1000.slice/session-262.scope
          Unit: session-262.scope
         Slice: user-1000.slice
       Session: 262
     Owner UID: 1000 (doug)
       Boot ID: 1e03160989e849e586e69c1e2123ce9d
    Machine ID: 63dafc03fbd841689be39892780f2cb5
      Hostname: 138-backup-2
       Storage: /var/lib/systemd/coredump/core.komodod.1000.1e03160989e849e586e69c1e2123ce9d.41501.1671863618000000.zst (present)
     Disk Size: 63.2M
       Message: Process 41501 (komodod) of user 1000 dumped core.

                Found module linux-vdso.so.1 with build-id: 21a2739157f98ff49d8920f47723a6a3ddb1f4d1
                Found module ld-linux-x86-64.so.2 with build-id: 61ef896a699bb1c2e4e231642b2e1688b2f1a61e
                Found module libc.so.6 with build-id: 69389d485a9793dbe873f0ea2c93e02efaa9aa3d
                Found module libgcc_s.so.1 with build-id: 09c4935b79388431a1248f6a98e00d7dc81b8513
                Found module libgomp.so.1 with build-id: f365cc44774a8bfdb39c4a6e131d685fbe521866
                Found module libm.so.6 with build-id: 27e82301dba6c3f644404d504e1bb1c97894b433
                Found module libz.so.1 with build-id: 30840b79ac329ecbf1dec0bb60180eed256d319f
                Found module libstdc++.so.6 with build-id: f57e02bfadacc0c923c82457d5e18e1830b5faea
                Found module komodod with build-id: f436bea73b1fb53a90158eb6e5e1ef4727c8a4c1
                Stack trace of thread 41501:
                #0  0x00007f7e85e03a7c __pthread_kill_implementation (libc.so.6 + 0x96a7c)
                #1  0x00007f7e85daf476 __GI_raise (libc.so.6 + 0x42476)
                #2  0x00007f7e85d957f3 __GI_abort (libc.so.6 + 0x287f3)
                #3  0x000055be596e7b87 _ZN11panic_abort18__rust_start_panic5abort17h79f75bf89c599121E (komodod + 0xb0fb87)
                #4  0x000055be596e7b76 __rust_start_panic (komodod + 0xb0fb76)
                #5  0x000055be596dd796 rust_panic (komodod + 0xb05796)
                #6  0x000055be596dd5dc _ZN3std9panicking20rust_panic_with_hook17h8cbdfe43764887beE (komodod + 0xb055dc)
                #7  0x000055be595f3aa4 _ZN3std9panicking11begin_panic17hfa731e74fa088fe1E (komodod + 0xa1baa4)
                #8  0x000055be5963fd88 librustzcash_init_zksnark_params (komodod + 0xa67d88)
                #9  0x000055be58cdabcc ZC_LoadParams (komodod + 0x102bcc)
                #10 0x000055be58c71df4 _Z7AppInitiPPc (komodod + 0x99df4)
                #11 0x000055be58c72768 main (komodod + 0x9a768)
                #12 0x00007f7e85d96d90 __libc_start_call_main (libc.so.6 + 0x29d90)
                #13 0x00007f7e85d96e40 __libc_start_main_impl (libc.so.6 + 0x29e40)
                #14 0x000055be58c6ff85 _start (komodod + 0x97f85)

                Stack trace of thread 41502:
                #0  0x00007f7e85dfe197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                #1  0x00007f7e85e00ac1 __pthread_cond_wait_common (libc.so.6 + 0x93ac1)
                #2  0x000055be58c7b17f _ZN5boost5posix17pthread_cond_waitEP14pthread_cond_tP15pthread_mutex_t (komodod + 0xa317f)
                #3  0x000055be58d8c56e _ZN11CCheckQueueI12CScriptCheckE4LoopEb (komodod + 0x1b456e)
                #4  0x000055be58d2c142 _ZN11CCheckQueueI12CScriptCheckE6ThreadEv (komodod + 0x154142)
                #5  0x000055be58ce6224 _ZN5boost6detail11thread_dataIPFvvEE3runEv (komodod + 0x10e224)
                #6  0x000055be5939ee3b thread_proxy (komodod + 0x7c6e3b)
                #7  0x00007f7e85e01b43 start_thread (libc.so.6 + 0x94b43)
                #8  0x00007f7e85e93a00 __clone3 (libc.so.6 + 0x126a00)

                Stack trace of thread 41503:
                #0  0x00007f7e85dfe197 __futex_abstimed_wait_common64 (libc.so.6 + 0x91197)
                #1  0x00007f7e85e00ac1 __pthread_cond_wait_common (libc.so.6 + 0x93ac1)
                #2  0x000055be590e7e8c _ZN5boost5posix17pthread_cond_waitEP14pthread_cond_tP15pthread_mutex_t (komodod + 0x50fe8c)
                #3  0x000055be58ce32ef _ZNK5boost4_mfi3mf0Iv10CSchedulerEclEPS2_ (komodod + 0x10b2ef)
                #4  0x000055be58cf4863 _ZNK5boost9function0IvEclEv (komodod + 0x11c863)
                #5  0x000055be58cef779 _ZN5boost3_bi5list2INS0_5valueIPKcEENS2_INS_8functionIFvvEEEEEEclIPFvS4_S8_ENS0_5list0EEEvNS0_4typeIvEERT_RT0_i (komodod + 0x117779)
                #6  0x000055be5939ee3b thread_proxy (komodod + 0x7c6e3b)
                #7  0x00007f7e85e01b43 start_thread (libc.so.6 + 0x94b43)
                #8  0x00007f7e85e93a00 __clone3 (libc.so.6 + 0x126a00)

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/komodod...
[New LWP 41501]
[New LWP 41502]
[New LWP 41503]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/bin/komodod -ac_name=PIRATE -ac_supply=0 -ac_reward=25600000000 -ac_'.
Program terminated with signal SIGABRT, Aborted.
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140181388036288) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: No such file or directory.
[Current thread is 1 (Thread 0x7f7e85d688c0 (LWP 41501))]
(gdb) run
Starting program: /usr/local/bin/komodod
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
chainparams_commandline called
call komodo_args.(/usr/local/bin/komodod) NOTARY_PUBKEY.()
initialized  at 1671864084
nMaxConnections 384
[New Thread 0x7ffff75fa640 (LWP 41600)]
[New Thread 0x7ffff6df9640 (LWP 41601)]
thread '<unnamed>' panicked at 'Sprout groth16 parameter file is not correct, please clean your `~/.zcash-params/` and re-run `fetch-params`.', librustzcash/src/rustzcash.rs:261:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Thread 1 "komodod" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737347745984) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: No such file or directory.
(gdb) q
A debugging session is active.

        Inferior 1 [process 41597] will be killed.

Quit anyway? (y or n) y

@49handyman
Copy link
Author

it truly trashed the .zcash_param files. i tried a restart 4 times failed every time. it also took 2 tries downloading a good copy, which is strange too. after good download it started backup fine.

@49handyman
Copy link
Author

49handyman commented Dec 24, 2022

here is a new clue. after running about 2-3 hours it tried to flush cache and crashed. 138gb free diskspace no errors.

2022-12-24 16:41:29 *** System error while flushing: CDB: Error -30972, can't open database
2022-12-24 16:41:29 Error: Error: A fatal internal error occurred, see debug.log for details
2022-12-24 16:41:29 ERROR: ProcessNewBlock: ActivateBestChain failed
2022-12-24 16:41:29 tor: Thread interrupt
2022-12-24 16:41:29 torcontrol thread exit
2022-12-24 16:41:29 msghand thread interrupt
2022-12-24 16:41:29 net thread interrupt
2022-12-24 16:41:29 scheduler thread interrupt
2022-12-24 16:41:29 addcon thread interrupt
2022-12-24 16:41:30 txnotify thread interrupt
2022-12-24 16:41:31 opencon thread interrupt
2022-12-24 16:41:35 Shutdown: In progress...
2022-12-24 16:41:35 StopRPC: waiting for async rpc workers to stop
2022-12-24 16:41:35 StopNode()
2022-12-24 16:41:35 *** System error while flushing: CDB: Error -30972, can't open database
2022-12-24 16:41:35 Error: Error: A fatal internal error occurred, see debug.log for details
2022-12-24 16:41:35 CDBEnv::EnvShutdown: Error -30972 shutting down database environment: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery

First time i've ever seen anything in db.log

 cat db.log
BDB2578 DB_LOGC->get: log record LSN 18439/553838: checksum mismatch
BDB2579 DB_LOGC->get: catastrophic recovery may be required
BDB4537 DB_TXN->abort: log undo failed for LSN: 18439 553838: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB0060 PANIC: fatal region error detected; run recovery
BDB1581 File handles still open at environment close
BDB1582 Open file handle: /home/doug/.pirate/wallet.dat
BDB1582 Open file handle: /home/doug/.pirate/database/log.0000019852
BDB1582 Open file handle: /home/doug/.pirate/database/log.0000018439
BDB0060 PANIC: fatal region error detected; run recovery

@TheComputerGenie
Copy link

TheComputerGenie commented Dec 24, 2022

I'm not sure if anyone's ever going to be able to help given your reluctance to just run it as default so that there can be a determination as to where the issue lies. Debugging happens best when it's a step-by-step process and generally works best when started with a baseline of "does x work ever?"
It can't open your custom location, there's no way for anyone else to determine if any of the reasons for that (permissions? corruption [either disk or db itself]? is the code for reading non-default wrong? et. al?) are causal without knowing if the thing will run as designed without manual interference.

who-biz pushed a commit to who-biz/komodo that referenced this issue Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants