monacoinproject/monacoin

Assertion failed! file: wallet/crypter.cpp, line 198 ?

c4kbeast opened this issue · 18 comments

How to fix?
even typing the right password, either to change the password or send monacoin. The message appears.

And I already resented the monacoin core and I used 2 different backups. And nothing worked.

file: wallet/crypter.cpp, line 198

lae commented

line 198: https://github.com/monacoinproject/monacoin/blob/master-0.14/src/wallet/crypter.cpp#L198

Error seems to be associated with the log message The wallet is probably corrupted: Some keys decrypt but not all.

Are you trying to use an older wallet with the current monacoin client (0.14.2)? I'd probably suggest trying to use a version of the client you used previously and dump the private key then reimport it with the new client (of course, after backing up first)

Also, can you post your debug.log?

Yes, the version is v0.14.2.0. and the backups were done with this same version v0.14.2.0

lae commented

And your debug.log?

Sorry, but I'm new to this crypto-coin business.

How do I get debug.log?

lae commented

The debug.log will be a text file in your Monacoin data directory. Please see here for more information regarding your particular operating system: https://en.bitcoin.it/wiki/Data_directory

Replace "Bitcoin" with "Monacoin" and you should be able to find your log file. If it's really long, paste it somewhere like https://0paste.com/ and link to it here.

I'll try, but I saw a debug.txt file

2017-11-30 04:11:30 Monacoin version v0.14.2.0-6d65019
2017-11-30 04:11:30 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2017-11-30 04:11:30 GUI: libpng warning: iCCP: known incorrect sRGB profile
2017-11-30 04:11:30 GUI: libpng warning: iCCP: known incorrect sRGB profile
2017-11-30 04:11:30 Assuming ancestors of block dfe283f8cd1560ae7ac69d37a7443138dc4d31748800d81bb0369fabbe4df4aa have valid signatures.
2017-11-30 04:11:30 GUI: "registerShutdownBlockReason: Successfully registered: Monacoin Core ainda não terminou com segurança..."
2017-11-30 04:11:31 Default data directory C:\Users\ckawata\AppData\Roaming\Monacoin
2017-11-30 04:11:32 Using data directory F:\Monacoin
2017-11-30 04:11:32 Using config file F:\Monacoin\monacoin.conf
2017-11-30 04:11:32 Using at most 125 automatic connections (2048 file descriptors available)
2017-11-30 04:11:32 Using 32 MiB out of 32 requested for signature cache, able to store 1048576 elements
2017-11-30 04:11:32 Using 2 threads for script verification
2017-11-30 04:11:32 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)
2017-11-30 04:11:32 scheduler thread start
2017-11-30 04:11:32 Using wallet wallet.dat
2017-11-30 04:11:32 init message: Verificando carteira...
2017-11-30 04:11:32 CDBEnv::Open: LogDir=F:\Monacoin\database ErrorFile=F:\Monacoin\db.log
2017-11-30 04:11:32 Bound to [::]:9401
2017-11-30 04:11:32 Bound to 0.0.0.0:9401
2017-11-30 04:11:32 Cache configuration:
2017-11-30 04:11:32 * Using 2.0MiB for block index database
2017-11-30 04:11:32 * Using 8.0MiB for chain state database
2017-11-30 04:11:32 * Using 440.0MiB for in-memory UTXO set (plus up to 4.8MiB of unused mempool space)
2017-11-30 04:11:32 init message: Carregando índice de blocos...
2017-11-30 04:11:32 Opening LevelDB in F:\Monacoin\blocks\index
2017-11-30 04:11:32 Opened LevelDB successfully
2017-11-30 04:11:32 Using obfuscation key for F:\Monacoin\blocks\index: 0000000000000000
2017-11-30 04:11:32 Opening LevelDB in F:\Monacoin\chainstate
2017-11-30 04:11:32 Opened LevelDB successfully
2017-11-30 04:11:32 Using obfuscation key for F:\Monacoin\chainstate: fbdbe36c3979424e
2017-11-30 04:11:52 LoadBlockIndexDB: last block file = 10
2017-11-30 04:11:52 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=37063, size=56735413, heights=0...1175868, time=2013-12-31...2017-11-30)
2017-11-30 04:11:52 Checking all blk files are present...
2017-11-30 04:11:52 LoadBlockIndexDB: transaction index disabled
2017-11-30 04:11:52 LoadBlockIndexDB: hashBestChain=f9f97c2bea8be1f4ad7ca77ae8b0112584cf37dc4a86558745031e316e80482a height=1175868 date=2017-11-30 04:03:29 progress=0.999995
2017-11-30 04:11:52 init message: Reanalizando blocos...
2017-11-30 04:11:59 init message: Verificando blocos...
2017-11-30 04:11:59 Verifying last 24 blocks at level 3
2017-11-30 04:11:59 [0%]...[12%]...[20%]...[33%]...[41%]...[50%]...[62%]...[70%]...[83%]...[91%]...[DONE].
2017-11-30 04:11:59 No coin database inconsistencies in last 25 blocks (70 transactions)
2017-11-30 04:11:59 block index 27678ms
2017-11-30 04:11:59 init message: Carregando carteira...
2017-11-30 04:11:59 nFileVersion = 140200
2017-11-30 04:11:59 Keys: 0 plaintext, 0 encrypted, 0 w/ metadata, 0 total
2017-11-30 04:11:59 Performing wallet upgrade to 60000
2017-11-30 04:11:59 keypool added key 1, size=1
2017-11-30 04:11:59 keypool added key 2, size=2
2017-11-30 04:11:59 keypool added key 3, size=3
2017-11-30 04:11:59 keypool added key 4, size=4
2017-11-30 04:11:59 keypool added key 5, size=5
2017-11-30 04:11:59 keypool added key 6, size=6
2017-11-30 04:11:59 keypool added key 7, size=7
2017-11-30 04:11:59 keypool added key 8, size=8
2017-11-30 04:11:59 keypool added key 9, size=9
2017-11-30 04:11:59 keypool added key 10, size=10
2017-11-30 04:11:59 keypool added key 11, size=11
2017-11-30 04:11:59 keypool added key 12, size=12
2017-11-30 04:11:59 keypool added key 13, size=13
2017-11-30 04:11:59 keypool added key 14, size=14
2017-11-30 04:11:59 keypool added key 15, size=15
2017-11-30 04:11:59 keypool added key 16, size=16
2017-11-30 04:11:59 keypool added key 17, size=17
2017-11-30 04:11:59 keypool added key 18, size=18
2017-11-30 04:11:59 keypool added key 19, size=19
2017-11-30 04:11:59 keypool added key 20, size=20
2017-11-30 04:11:59 keypool added key 21, size=21
2017-11-30 04:11:59 keypool added key 22, size=22
2017-11-30 04:12:00 keypool added key 23, size=23
2017-11-30 04:12:00 keypool added key 24, size=24
2017-11-30 04:12:00 keypool added key 25, size=25
2017-11-30 04:12:00 keypool added key 26, size=26
2017-11-30 04:12:00 keypool added key 27, size=27
2017-11-30 04:12:00 keypool added key 28, size=28
2017-11-30 04:12:00 keypool added key 29, size=29
2017-11-30 04:12:00 keypool added key 30, size=30
2017-11-30 04:12:00 keypool added key 31, size=31
2017-11-30 04:12:00 keypool added key 32, size=32
2017-11-30 04:12:00 keypool added key 33, size=33
2017-11-30 04:12:00 keypool added key 34, size=34
2017-11-30 04:12:00 keypool added key 35, size=35
2017-11-30 04:12:00 keypool added key 36, size=36
2017-11-30 04:12:00 keypool added key 37, size=37
2017-11-30 04:12:00 keypool added key 38, size=38
2017-11-30 04:12:00 keypool added key 39, size=39
2017-11-30 04:12:00 keypool added key 40, size=40
2017-11-30 04:12:00 keypool added key 41, size=41
2017-11-30 04:12:00 keypool added key 42, size=42
2017-11-30 04:12:00 keypool added key 43, size=43
2017-11-30 04:12:00 keypool added key 44, size=44
2017-11-30 04:12:00 keypool added key 45, size=45
2017-11-30 04:12:00 keypool added key 46, size=46
2017-11-30 04:12:00 keypool added key 47, size=47
2017-11-30 04:12:00 keypool added key 48, size=48
2017-11-30 04:12:00 keypool added key 49, size=49
2017-11-30 04:12:00 keypool added key 50, size=50
2017-11-30 04:12:00 keypool added key 51, size=51
2017-11-30 04:12:00 keypool added key 52, size=52
2017-11-30 04:12:00 keypool added key 53, size=53
2017-11-30 04:12:00 keypool added key 54, size=54
2017-11-30 04:12:00 keypool added key 55, size=55
2017-11-30 04:12:00 keypool added key 56, size=56
2017-11-30 04:12:00 keypool added key 57, size=57
2017-11-30 04:12:00 keypool added key 58, size=58
2017-11-30 04:12:00 keypool added key 59, size=59
2017-11-30 04:12:00 keypool added key 60, size=60
2017-11-30 04:12:00 keypool added key 61, size=61
2017-11-30 04:12:00 keypool added key 62, size=62
2017-11-30 04:12:00 keypool added key 63, size=63
2017-11-30 04:12:00 keypool added key 64, size=64
2017-11-30 04:12:00 keypool added key 65, size=65
2017-11-30 04:12:00 keypool added key 66, size=66
2017-11-30 04:12:00 keypool added key 67, size=67
2017-11-30 04:12:00 keypool added key 68, size=68
2017-11-30 04:12:00 keypool added key 69, size=69
2017-11-30 04:12:00 keypool added key 70, size=70
2017-11-30 04:12:00 keypool added key 71, size=71
2017-11-30 04:12:00 keypool added key 72, size=72
2017-11-30 04:12:00 keypool added key 73, size=73
2017-11-30 04:12:00 keypool added key 74, size=74
2017-11-30 04:12:00 keypool added key 75, size=75
2017-11-30 04:12:00 keypool added key 76, size=76
2017-11-30 04:12:00 keypool added key 77, size=77
2017-11-30 04:12:00 keypool added key 78, size=78
2017-11-30 04:12:00 keypool added key 79, size=79
2017-11-30 04:12:00 keypool added key 80, size=80
2017-11-30 04:12:00 keypool added key 81, size=81
2017-11-30 04:12:00 keypool added key 82, size=82
2017-11-30 04:12:00 keypool added key 83, size=83
2017-11-30 04:12:00 keypool added key 84, size=84
2017-11-30 04:12:00 keypool added key 85, size=85
2017-11-30 04:12:00 keypool added key 86, size=86
2017-11-30 04:12:00 keypool added key 87, size=87
2017-11-30 04:12:00 keypool added key 88, size=88
2017-11-30 04:12:00 keypool added key 89, size=89
2017-11-30 04:12:00 keypool added key 90, size=90
2017-11-30 04:12:00 keypool added key 91, size=91
2017-11-30 04:12:00 keypool added key 92, size=92
2017-11-30 04:12:00 keypool added key 93, size=93
2017-11-30 04:12:00 keypool added key 94, size=94
2017-11-30 04:12:00 keypool added key 95, size=95
2017-11-30 04:12:00 keypool added key 96, size=96
2017-11-30 04:12:00 keypool added key 97, size=97
2017-11-30 04:12:00 keypool added key 98, size=98
2017-11-30 04:12:00 keypool added key 99, size=99
2017-11-30 04:12:00 keypool added key 100, size=100
2017-11-30 04:12:00 keypool added key 101, size=101
2017-11-30 04:12:00 keypool reserve 1
2017-11-30 04:12:00 keypool keep 1
2017-11-30 04:12:00 wallet 859ms
2017-11-30 04:12:00 setKeyPool.size() = 100
2017-11-30 04:12:00 mapWallet.size() = 0
2017-11-30 04:12:00 mapAddressBook.size() = 1
2017-11-30 04:12:00 mapBlockIndex.size() = 1175870
2017-11-30 04:12:00 nBestHeight = 1175868
2017-11-30 04:12:00 Failed to open mempool file from disk. Continuing anyway.
2017-11-30 04:12:00 torcontrol thread start
2017-11-30 04:12:00 init message: Carregando endereços...
2017-11-30 04:12:00 ERROR: Read: Failed to open file F:\Monacoin\peers.dat
2017-11-30 04:12:00 Invalid or missing peers.dat; recreating
2017-11-30 04:12:00 init message: Carregando lista de banidos...
2017-11-30 04:12:00 init message: Iniciando análise da rede...
2017-11-30 04:12:00 net thread start
2017-11-30 04:12:00 dnsseed thread start
2017-11-30 04:12:00 addcon thread start
2017-11-30 04:12:00 Loading addresses from DNS seeds (could take a while)
2017-11-30 04:12:00 opencon thread start
2017-11-30 04:12:00 msghand thread start
2017-11-30 04:12:00 init message: Carregamento terminado!
2017-11-30 04:12:00 GUI: Platform customization: "windows"
2017-11-30 04:12:00 12 addresses found from DNS seeds
2017-11-30 04:12:00 dnsseed thread exit
2017-11-30 04:12:00 GUI: PaymentServer::LoadRootCAs: Loaded 47 root certificates
2017-11-30 04:12:01 receive version message: /MonacoinCore:0.14.2/: version 70015, blocks=1175869, us=114.144.233.140:54193, peer=0
2017-11-30 04:12:05 UpdateTip: new best=7d8030adcc675f36cf8e7290702f9a35a18add585534589a523d452a31a53738 height=1175869 version=0x20000000 log2_work=63.339256 tx=2939180 date='2017-11-30 04:08:51' progress=0.999998 cache=0.0MiB(15tx)
2017-11-30 04:12:08 tor: Thread interrupt
2017-11-30 04:12:08 opencon thread exit
2017-11-30 04:12:08 addcon thread exit
2017-11-30 04:12:08 torcontrol thread exit
2017-11-30 04:12:08 scheduler thread interrupt
2017-11-30 04:12:08 Shutdown: In progress...
2017-11-30 04:12:08 net thread exit
2017-11-30 04:12:08 msghand thread exit
2017-11-30 04:12:08 Dumped mempool: 0s to copy, 0s to dump
2017-11-30 04:12:08 Shutdown: done
2017-11-30 04:13:28

lae commented

Is this debug.txt file after you tried to unlock your wallet?

lae commented

Okay looks like you edited it with a different debug.txt file - however the output was cut off because it was too long. Can you paste it to a paste service like the one I linked and post it?

this debug.log file do I need some program to generate or open?

lae commented

No, your debug.txt has the log contents that would go in debug.log so it's the correct file (just a different extension).

The log doesn't really help I guess. Can you describe the steps, one by one, you need to take to reproduce this issue with a new wallet? (Quit your Monacoin client, rename your copy of the Monacoin directory to something else, and then start the Monacoin client (it'll create a new Monacoin directory and new wallet) and then try to reproduce the issue.)

do you know how to enter command line to use -salvagewallet?

lae commented

@c4kbeast try following the instructions here, but for monacoin-qt https://bitcointalk.org/index.php?topic=2156546.msg%msg_id%
(sorry for late reply, was busy all day)

Hi, no worry. i'm busy too.

I deleted everything I had from the program and mocacoin block.

And I installed monacoin core and did donwload again. I put the bakcup and continue with the error.

Last thing I did was -salvagewallet, but the same problem remains.

What can I do?

Is it possible to have private key with Pib? with password and wallet address?

@monacoinproject #monacoinproject It was me who opened the topic on bitcointalk

Is it possible for some developer to help me?