Is there an existing issue for this?
- I have searched the existing issues
While there isn't an existing issue, there is a closed PR referencing the same problem: #36821
Current behaviour
When trying to migrate a legacy wallet, bitcoin-core hits an assertion fault:
bitcoin-qt: ./wallet/wallet.cpp:3929: bool wallet::CWallet::MigrateToSQLite(bilingual_str&): Assertion `new_db' failed.
fish: Job 1, 'bin/bitcoin-qt' terminated by signal SIGABRT (Abort)
Expected behaviour
It shouldn't hit an assertion fault.
Steps to reproduce
- Open bitcoin-qt.
- Select the relevant wallet to migrate in the menu.
- Press ok on the question regarding opening the wallet after migration.
- bitcoin-qt aborts.
Relevant log output
2026-11-22T23:15:31Z Bitcoin Core version v32.1.0 (release build)
2026-11-22T23:15:31Z Qt 6.8.4 (static), plugin=xcb
2026-11-22T23:15:31Z Static plugins:
2026-11-22T23:15:31Z QMinimalIntegrationPlugin, version 395264
2026-11-22T23:15:31Z QXcbIntegrationPlugin, version 395264
2026-11-22T23:15:31Z Style: fusion / QFusionStyle
2026-11-22T23:15:31Z System: Debian GNU/Linux forky/sid, x86_64-little_endian-lp64
2026-11-22T23:15:31Z Screen: DP-2 2560x1440, pixel ratio=1.0
2026-11-22T23:15:31Z Screen: DP-4 1440x2560, pixel ratio=1.0
2026-11-22T23:15:31Z Log output may contain privacy-sensitive information. Be cautious when sharing logs.
2026-11-22T23:15:31Z Using the 'sse4(1way);sse41(4way);avx2(8way)' SHA256 implementation
2026-11-22T23:15:31Z Using RdSeed as an additional entropy source
2026-11-22T23:15:31Z Using RdRand as an additional entropy source
2026-11-22T23:15:31Z Default data directory /home/juliangro/.bitcoin
2026-11-22T23:15:31Z Using data directory /…
2026-11-22T23:15:31Z Config file: /…/bitcoin.conf
2026-11-22T23:15:31Z Setting file arg: natpmp = false
2026-11-22T23:15:31Z Setting file arg: prune = "1907"
2026-11-22T23:15:31Z Using at most 200 automatic connections (1024 file descriptors available)
2026-11-22T23:15:31Z scheduler thread start
2026-11-22T23:15:31Z Using wallet directory /…
2026-11-22T23:15:31Z Using SQLite Version 3.50.4
2026-11-22T23:15:31Z init message: Überprüfe Wallet(s)...
2026-11-22T23:15:31Z Using /16 prefix for IP bucketing
2026-11-22T23:15:31Z init message: Lade P2P-Adressen...
2026-11-22T23:15:32Z Loaded 62846 addresses from peers.dat 678ms
2026-11-22T23:15:32Z init message: Lade Bannliste…
2026-11-22T23:15:32Z [warning] banlist.dat ignored because it can only be read by Bitcoin Core version 22.x. Remove "/…/banlist.dat" to silence this warning.
2026-11-22T23:15:32Z SetNetworkActive: true
2026-11-22T23:15:32Z Cache configuration:
2026-11-22T23:15:32Z * Using 2.0 MiB for block index database
2026-11-22T23:15:32Z * Using 8.0 MiB for chain state database
2026-11-22T23:15:32Z * Using 1014.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2026-11-22T23:15:32Z Script verification uses 15 additional threads
2026-11-22T23:15:32Z Using obfuscation key for blocksdir *.dat files (…/blocks): '0000000000000000'
2026-11-22T23:15:32Z Opening LevelDB in /…/blocks/index
2026-11-22T23:15:33Z Opened LevelDB successfully
2026-11-22T23:15:33Z Using obfuscation key for /…/blocks/index: 0000000000000000
2026-11-22T23:15:33Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
2026-11-22T23:15:33Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
2026-11-22T23:15:33Z init message: Lade Block-Index...
2026-11-22T23:15:33Z Assuming ancestors of block 00000000000000000000748969ec33043c0e52a763c6dd5193861f559f2c72e3 have valid signatures.
2026-11-22T23:15:33Z Setting nMinimumChainWork=000000000000000000000000000000000000000145ec036acc5ba740052af1a0
2026-11-22T23:15:33Z Prune configured to target 1907 MiB on disk for block and undo files.
2026-11-22T23:15:36Z Loading block index db: last block file = 3925
2026-11-22T23:15:36Z Loading block index db: last block file info: CBlockFileInfo(blocks=72, size=117470606, heights=815729...815843, time=2023-11-07...2023-11-08)
2026-11-22T23:15:36Z Checking all blk files are present...
2026-11-22T23:15:36Z Loading block index db: Block files have previously been pruned
2026-11-22T23:15:57Z Initializing chainstate Chainstate [ibd] @ height -1 (null)
2026-11-22T23:15:57Z Opening LevelDB in /…/chainstate
2026-11-22T23:16:01Z Opened LevelDB successfully
2026-11-22T23:16:01Z Using obfuscation key for /…/chainstate: 255045a2aa2c047b
2026-11-22T23:16:01Z prevout.00 thread start
2026-11-22T23:16:01Z prevout.01 thread start
2026-11-22T23:16:01Z prevout.02 thread start
2026-11-22T23:16:01Z prevout.03 thread start
2026-11-22T23:16:01Z prevout.04 thread start
2026-11-22T23:16:01Z prevout.05 thread start
2026-11-22T23:16:01Z prevout.06 thread start
2026-11-22T23:16:01Z Block input prevout fetching uses 8 additional threads
2026-11-22T23:16:01Z prevout.07 thread start
2026-11-22T23:16:01Z Loaded best chain: hashBestChain=000000000000000000045240a048a263b1f2efa5db38924da9b379d4befe279f height=815799 date=2023-11-08T04:00:02Z progress=0.616283
2026-11-22T23:16:02Z init message: Überprüfe Blöcke...
2026-11-22T23:16:02Z Verifying last 6 blocks at level 3
2026-11-22T23:16:02Z Verification progress: 0%
2026-11-22T23:16:16Z Verification progress: 16%
2026-11-22T23:16:17Z Verification progress: 33%
2026-11-22T23:16:18Z Verification progress: 50%
2026-11-22T23:16:20Z Verification progress: 66%
2026-11-22T23:16:22Z Verification progress: 83%
2026-11-22T23:16:24Z Verification progress: 99%
2026-11-22T23:16:24Z Verification: checked last 6 blocks at level 3
2026-11-22T23:16:24Z Verification: no coin database inconsistencies (23513 transactions)
2026-11-22T23:16:24Z Block index and chainstate loaded
2026-11-22T23:16:24Z init message: Kürze den Blockspeicher…
2026-11-22T23:16:24Z block tree size = 940036
2026-11-22T23:16:24Z nBestHeight = 815799
2026-11-22T23:16:24Z initload thread start
2026-11-22T23:16:24Z torcontrol thread start
2026-11-22T23:16:24Z Bound to 127.0.0.1:8334
2026-11-22T23:16:24Z Bound to [::]:8333
2026-11-22T23:16:24Z Bound to 0.0.0.0:8333
2026-11-22T23:16:24Z connect() to 127.0.0.1:9051 failed after wait: Verbindungsaufbau abgelehnt (111)
2026-11-22T23:16:24Z [warning] tor: Error connecting to address 127.0.0.1:9051
2026-11-22T23:16:24Z [warning] tor: Initiating connection to Tor control port 127.0.0.1:9051 failed
2026-11-22T23:16:24Z Loading 0 mempool transactions from file...
2026-11-22T23:16:24Z Imported mempool transactions from file: 0 succeeded, 0 failed, 0 expired, 0 already there, 0 waiting for initial broadcast
2026-11-22T23:16:24Z initload thread exit
2026-11-22T23:16:24Z Loaded 0 addresses from "anchors.dat"
2026-11-22T23:16:24Z 0 block-relay-only anchors will be tried for connections.
2026-11-22T23:16:24Z init message: Starte Netzwerk-Threads...
2026-11-22T23:16:24Z net thread start
2026-11-22T23:16:24Z dnsseed thread start
2026-11-22T23:16:24Z Waiting 300 seconds before querying DNS seeds.
2026-11-22T23:16:24Z addcon thread start
2026-11-22T23:16:24Z opencon thread start
2026-11-22T23:16:24Z init message: Done loading
2026-11-22T23:16:24Z msghand thread start
2026-11-22T23:16:24Z GUI: Platform customization: "other"
2026-11-22T23:16:25Z connect() to 127.0.0.1:9051 failed after wait: Verbindungsaufbau abgelehnt (111)
2026-11-22T23:16:25Z [warning] tor: Error connecting to address 127.0.0.1:9051
2026-11-22T23:16:25Z [warning] tor: Initiating connection to Tor control port 127.0.0.1:9051 failed
2026-11-22T23:16:27Z connect() to 127.0.0.1:9051 failed after wait: Verbindungsaufbau abgelehnt (111)
2026-11-22T23:16:27Z [warning] tor: Error connecting to address 127.0.0.1:9051
2026-11-22T23:16:27Z [warning] tor: Initiating connection to Tor control port 127.0.0.1:9051 failed
2026-11-22T23:16:29Z connect() to 127.0.0.1:9051 failed after wait: Verbindungsaufbau abgelehnt (111)
2026-11-22T23:16:29Z [warning] tor: Error connecting to address 127.0.0.1:9051
2026-11-22T23:16:29Z [warning] tor: Initiating connection to Tor control port 127.0.0.1:9051 failed
2026-11-22T23:16:32Z connect() to 127.0.0.1:9051 failed after wait: Verbindungsaufbau abgelehnt (111)
2026-11-22T23:16:32Z [warning] tor: Error connecting to address 127.0.0.1:9051
2026-11-22T23:16:32Z [warning] tor: Initiating connection to Tor control port 127.0.0.1:9051 failed
2026-11-22T23:16:35Z [wallet.dat] Last client version = 170100
2026-11-22T23:16:35Z [wallet.dat] Legacy Wallet Keys: 2004 plaintext, 0 encrypted, 2004 w/ metadata, 2004 total.
2026-11-22T23:16:35Z [wallet.dat] Descriptors: 0, Descriptor Keys: 0 plaintext, 0 encrypted, 0 total.
2026-11-22T23:16:35Z [wallet.dat] Wallet completed loading in 8ms
2026-11-22T23:16:35Z [wallet.dat] setKeyPool.size() = 0
2026-11-22T23:16:35Z [wallet.dat] mapWallet.size() = 2
2026-11-22T23:16:35Z [wallet.dat] m_address_book.size() = 3
2026-11-22T23:16:35Z copied /…/wallet.dat to /…/wallet.dat_1795389395.legacy.bak
2026-11-22T23:16:35Z [wallet.dat] Migrating wallet storage database from BerkeleyDB to SQLite.
How did you obtain Bitcoin Core
Pre-built binaries
What version of Bitcoin Core are you using?
v32.1.0 (v30.2 and v23.0 suffer from the same issue)
Operating system and version
Debian Forky
Machine specifications
No response