Closed walkjivefly closed 4 years ago
This is as it appears in the PIVX codebase; i'm unable to replicate the issue as well..
Pfft, typical. Weirdness follows me around. Maybe you can repro with my .alqocrypto datadir? If not I guess it's something local to my machine which hopefully won't persist once I'm running the official release 6.x linux64 build.
Hm actually, did you run the very first 6.0 release binary for linux before this? Try remove ./config/alqocrypto if it exists in your home directory and try again..
Yes, I think I did. Removing the .config/ALQOCRYPTO/ALQO-Qt.conf
allowed the QT wallet to start. Shutdown and restarted again OK. Shutdown again and started daemon OK.
Not sure why, since
mark@x230:~/.config/ALQOCRYPTO$ diff ALQO-Qt.conf~ ALQO-Qt.conf
19c19
< lightTheme=false
---
> lightTheme=true
27c27
< nWindowPos=@Point(98 33)
---
> nWindowPos=@Point(95 36)
but I'm not complaining ;-) Closed, thanks for the help.
I have the same issue. After running the wallet first time, everything is fine. I can also shut it down and restart it. But as soon as i encrypt the wallet, i cant start it anymore and always get the above Error: Unable to generate initial key Wallet shuts down after the error message. Windows QT-Wallet If i delete the wallet.dat and let the wallet generate a new one after that, everything is fine again, so it seems to me that it has something to do with the encryption.
Ah, good point, @MiCoSa79. I forgot I had encrypted the wallet the first time (just did it automatically and didn't think to mention it). And yes, once the wallet is encrypted it won't restart. Re-opening the issue.
Also, worth mentioning, when the wallet encryption completes and the wallet shuts down it says pivx server stopping
mark@x230:~/src/ALQO/src$ ./alqo-cli encryptwallet "one two three"
wallet encrypted; pivx server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup.
mark@x230:~/src/ALQO/src$ ./alqod
ALQO server starting
mark@x230:~/src/ALQO/src$ Error: Unable to generate initial key
mark@x230:~/src/ALQO/src$
Able to reproduce the error.. investigating..
Resolved by https://github.com/ALQO-Universe/ALQO/pull/14
Describe the issue
Testing the fix for issue #7, started the new code and it complained about being unable to generate initial key (new chain was previously synced and wallet shutdown normally). Debug.log says
Can you reliably reproduce the issue?
If so, please list the steps to reproduce below:
Expected behavior
Second and subsequent runs should not fail to start
Actual behavior
daemon fails with "Error: Unable to generate initial key" QT fails with "thread safe box: Unable to generate initial key" and both shutdown
Screenshots.
If the issue is related to the GUI, screenshots can be added to this issue via drag & drop.
What version of PIVX Core are you using?
ALQO version v6.1.0.0-35ba7f1d1 self-compiled
Machine specs:
Any extra information that might be useful in the debugging process.
fFirstRun probably shouldn't be set unconditionally true in init.cpp