Started to sync a fresh node, I have started and stopped it a few times during initial sync with: sudo service bitcoind stop
Using default .service file supplied by contrib/init
Start bitcoind: sudo service bitcoind start Fails and loops at: Using obfuscation key
Running from: bitcoind: bitcoind: chain.cpp:102: const CBlockIndex* CBlockIndex::GetAncestor(int) const: Assertion `pindexWalk->pprev’ failed.
Starting node to sync
Loops without continuing.
Happens every time.
Git: 2018-11-17T21:55:04Z Bitcoin Core version v0.17.99.0-35739976c (release build)
Ubuntu 19.10
4.19.1-041901-generic #201811041431 SMP Sun Nov 4 14:33:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
1TB spinning disk.
I don’t think Bitcoin likes being shut down while syncing through systemd?
bitcoin.conf:
0txindex=1
1server=1
2onion=127.0.0.1:9050
3externalip=$ADDRESS.onion
4discover=1
5minrelaytxfee=0
6datadir=/mnt/data/.n0de/bitcoin
debug.log
02018-11-17T21:55:04Z Bitcoin Core version v0.17.99.0-35739976c (release build)
12018-11-17T21:55:04Z InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
22018-11-17T21:55:04Z Assuming ancestors of block 0000000000000000002e63058c023a9a1de233554f28c7b21380b6c9003f36a8 have valid signatures.
32018-11-17T21:55:04Z Setting nMinimumChainWork=0000000000000000000000000000000000000000028822fef1c230963535a90d
42018-11-17T21:55:04Z Using the 'sse4(1way),sse41(4way),avx2(8way)' SHA256 implementation
52018-11-17T21:55:04Z Using RdRand as an additional entropy source
62018-11-17T21:55:04Z Default data directory /home/duck/.bitcoin
72018-11-17T21:55:04Z Using data directory /home/duck/.bitcoin
82018-11-17T21:55:04Z Config file: /home/duck/.bitcoin/bitcoin.conf (not found, skipping)
92018-11-17T21:55:04Z Using at most 125 automatic connections (1024 file descriptors available)
102018-11-17T21:55:04Z Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
112018-11-17T21:55:04Z Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
122018-11-17T21:55:04Z Using 8 threads for script verification
132018-11-17T21:55:04Z scheduler thread start
142018-11-17T21:55:04Z HTTP: creating work queue of depth 16
152018-11-17T21:55:04Z No rpcpassword set - using random cookie authentication.
162018-11-17T21:55:04Z Generated RPC authentication cookie /home/duck/.bitcoin/.cookie
172018-11-17T21:55:04Z HTTP: starting 4 worker threads
182018-11-17T21:55:04Z Using wallet directory /home/duck/.bitcoin
192018-11-17T21:55:04Z init message: Verifying wallet(s)...
202018-11-17T21:55:04Z Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
212018-11-17T21:55:04Z Using wallet wallet.dat
222018-11-17T21:55:04Z BerkeleyEnvironment::Open: LogDir=/home/duck/.bitcoin/database ErrorFile=/home/duck/.bitcoin/db.log
232018-11-17T21:55:04Z Cache configuration:
242018-11-17T21:55:04Z * Using 2.0MiB for block index database
252018-11-17T21:55:04Z * Using 8.0MiB for chain state database
262018-11-17T21:55:04Z * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
272018-11-17T21:55:04Z init message: Loading block index...
282018-11-17T21:55:04Z Opening LevelDB in /home/duck/.bitcoin/blocks/index
292018-11-17T21:55:04Z Opened LevelDB successfully
302018-11-17T21:55:04Z Using obfuscation key for /home/duck/.bitcoin/blocks/index: 0000000000000000
Shows up after debug.log output when running from bitcoind command from cli: bitcoind: chain.cpp:102: const CBlockIndex* CBlockIndex::GetAncestor(int) const: Assertion `pindexWalk->pprev’ failed. Aborted (core dumped)