Skip to content

Failed atomic write of CWalletTx is stopping it from storing the last block scanned #3495

@vijayb

Description

@vijayb

2018-08-29 03:11:07 SetBestChain(): Failed to write CWalletTx, aborting atomic write

when we restarted with the new version

2018-08-28 23:45:02 Rescanning last 43728 blocks (from block 340372)...

2018-08-28 21:45:30 No coin database inconsistencies in last 289 blocks (2284 transactions)
2018-08-28 21:45:30  block index           16798ms
2018-08-28 21:45:30 init message: Loading wallet...
2018-08-28 23:45:02 nFileVersion = 1010150
2018-08-28 23:45:02 Keys: 146155 plaintext, 0 encrypted, 146155 w/ metadata, 146155 total
2018-08-28 23:45:02 ZKeys: 2 plaintext, 0 encrypted, 2 w/metadata, 2 total
2018-08-28 23:45:02  wallet              7171409ms```

it took almost 2 hours to load the wallet

```2018-08-29 03:02:35  rescan             11852755ms
2018-08-29 03:11:07 SetBestChain(): Failed to write CWalletTx, aborting atomic write```

3 hours to rescan the entire thing
and i'm almost positive that the failed write to cwallettx is stopping it from storing the last block scanned so in restart, we will suffer the 3 hour rescan again.

 ```aborting debug.log
2018-08-28 05:37:34 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 06:38:19 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 07:42:16 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 08:44:18 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 09:47:20 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 10:49:52 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 11:52:08 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 12:54:25 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 13:55:35 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 14:58:56 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 16:00:08 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 17:00:07 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 18:01:38 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 19:06:48 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-28 20:14:58 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 03:11:07 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 03:20:25 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 04:20:48 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 05:21:16 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 06:23:49 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 07:23:53 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 08:26:12 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 09:35:21 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 10:35:49 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 11:36:46 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 12:42:10 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 13:50:57 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 14:52:12 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 15:55:54 SetBestChain(): Failed to write CWalletTx, aborting atomic write
2018-08-29 16:56:11 SetBestChain(): Failed to write CWalletTx, aborting atomic write```


this basically happens ever hour

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions