chinook (OP)
Member
Offline
Activity: 92
Merit: 10
|
|
May 05, 2015, 01:35:11 PM Last edit: September 28, 2015, 12:48:53 PM by chinook |
|
experienced in coins, but getting this one damn error. crypto@crypto-Veriton-3900Pro:~/flkcoin/src$ ./flkcoind -testnet flkcoind: main.cpp:2809: bool InitBlockIndex(): Assertion `block.hashMerkleRoot == uint256("0x0")' failed. Aborted (core dumped) anyone have any ideas?
|
|
|
|
chrisvl
Legendary
Offline
Activity: 1274
Merit: 1006
Trainman
|
|
May 05, 2015, 01:45:03 PM |
|
|
|
|
|
chrisvl
Legendary
Offline
Activity: 1274
Merit: 1006
Trainman
|
|
May 05, 2015, 01:46:33 PM |
|
im attempting to build a litecoin based wallet on ubuntu and getting this error crypto@crypto-Veriton-3900Pro:~/flkcoin/src$ ./flkcoind -testnet flkcoind: main.cpp:2809: bool InitBlockIndex(): Assertion `block.hashMerkleRoot == uint256("0x0")' failed. Aborted (core dumped) anyone have any ideas? at first i thought it was normal to get this error, to genereate a merkle hash, but it has not generated any debug.log file anywhere, new to linux, am i blind or is it hidden? open the terminal type cd /home/yourname/.flkcoin then type ls -l to see if debug.log exist sudo nano debug.log
|
|
|
|
chrisvl
Legendary
Offline
Activity: 1274
Merit: 1006
Trainman
|
|
May 05, 2015, 03:43:53 PM |
|
openthe ternimal and type cd /home/crypto/.flkcoin then ls -l and tell me what folders are exist here
Are you build new coin or wallet from existing coin ?
|
|
|
|
chrisvl
Legendary
Offline
Activity: 1274
Merit: 1006
Trainman
|
|
May 05, 2015, 03:55:19 PM |
|
Give the debug.log results how you compile it using some guide ?
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 05, 2015, 04:31:52 PM |
|
crypto@crypto-Veriton-3900Pro:~/flkcoin/src$ ./flkcoind -testnet Error: Error initializing wallet database environment /home/crypto/.flkcoin/testnet3!
Try deleting everything in the testnet3 folder and run again.
|
“God does not play dice"
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 05, 2015, 04:58:44 PM |
|
how do i access that folder via GUI, i can see it via command, but id like a visual rep. new to linux sorry.
if you're on ubuntu or debian, ctrl-h will show the hidden folders in the gui view-
|
“God does not play dice"
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 05, 2015, 05:07:35 PM |
|
Well then, what happens if you remove everything from /home/crypto/.flkcoin/ ?
|
“God does not play dice"
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 05, 2015, 05:17:34 PM |
|
Hm. That error message says simply that it can't open the database. But if there is no database, then you shouldn't be getting that.
Maybe debug.log has some new info?
And I take it you have generated a new genesis block succesfully by replacing the values from the debug.log?
|
“God does not play dice"
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 05, 2015, 07:22:08 PM |
|
I think there might be something funny with the database installation.. Searching this forum for your error "error Invalid argument (22)" brings up few results but no conclusive fix. For now, maybe you could try removing the db and reinstalling.. sudo apt-get remove libdb5.1-dev libdb5.1++-dev
followed by sudo update sudo apt-get install libdb5.1-dev libdb5.1++-dev then go to your coin src directory and make -f makefile.unix clean and rebuild make -f makefile.unix USE_UPNP=- I have no idea if that would work. If not, I guess re-installing ubuntu might do the trick.
|
“God does not play dice"
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 06, 2015, 02:37:30 PM |
|
I forgot to put "apt-get" before "update" sudo apt-get update apt-get upgrade -y apt-get dist-upgrade then try again sudo apt-get install libdb5.1-dev libdb5.1++-dev
|
“God does not play dice"
|
|
|
chinook (OP)
Member
Offline
Activity: 92
Merit: 10
|
|
May 06, 2015, 03:13:40 PM |
|
now getting crypto@crypto-Veriton-3900Pro:~$ apt-get upgrade -y E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? crypto@crypto-Veriton-3900Pro:~$ apt-get upgrade E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? crypto@crypto-Veriton-3900Pro:~$ apt-get dist-upgrade E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? crypto@crypto-Veriton-3900Pro:~$ sudo apt-get install libdb5.1-dev libdb5.1++-dev Reading package lists... Done Building dependency tree Reading state information... Done Package libdb5.1++-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
Package libdb5.1-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libdb5.1-dev' has no installation candidate E: Package 'libdb5.1++-dev' has no installation candidate
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 06, 2015, 03:29:31 PM |
|
yeh, but sudo before update and upgrade commands.
You need to acquaint yourself with linux a little bit before taking on this kind of project.
|
“God does not play dice"
|
|
|
chrisvl
Legendary
Offline
Activity: 1274
Merit: 1006
Trainman
|
|
May 06, 2015, 05:52:25 PM |
|
now getting crypto@crypto-Veriton-3900Pro:~$ apt-get upgrade -y E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? crypto@crypto-Veriton-3900Pro:~$ apt-get upgrade E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? crypto@crypto-Veriton-3900Pro:~$ apt-get dist-upgrade E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? crypto@crypto-Veriton-3900Pro:~$ sudo apt-get install libdb5.1-dev libdb5.1++-dev Reading package lists... Done Building dependency tree Reading state information... Done Package libdb5.1++-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
Package libdb5.1-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'libdb5.1-dev' has no installation candidate E: Package 'libdb5.1++-dev' has no installation candidate
try sudo apt-get install libdb++-dev
|
|
|
|
chinook (OP)
Member
Offline
Activity: 92
Merit: 10
|
|
May 06, 2015, 06:17:57 PM |
|
ok all done! im trying ./flkcoind -testnet and getting crypto@crypto-Veriton-3900Pro:~/flkcoin/src$ ./flkcoind -testnet Error: Error initializing wallet database environment /home/crypto/.flkcoin/testnet3!
and in debug.log 2015-05-05 17:01:16 flkcoin version v0.8.7.5-unk-beta (2015-05-05 01:41:38 +0800) 2015-05-05 17:01:16 Using OpenSSL version OpenSSL 1.0.1f 6 Jan 2014 2015-05-05 17:01:16 Default data directory /home/crypto/.flkcoin 2015-05-05 17:01:16 Using data directory /home/crypto/.flkcoin/testnet3 2015-05-05 17:01:16 Using at most 125 connections (1024 file descriptors available) 2015-05-05 17:01:16 Using 4 threads for script verification 2015-05-05 17:01:16 init message: Verifying wallet... 2015-05-05 17:01:16 dbenv.open LogDir=/home/crypto/.flkcoin/testnet3/database ErrorFile=/home/crypto/.flkcoin/testnet3/db.log 2015-05-05 17:01:16 ERROR: CDB() : error Invalid argument (22) opening database environment 2015-05-05 17:01:16 Moved old /home/crypto/.flkcoin/testnet3/database to /home/crypto/.flkcoin/testnet3/database.1430845276.bak. Retrying. 2015-05-05 17:01:16 dbenv.open LogDir=/home/crypto/.flkcoin/testnet3/database ErrorFile=/home/crypto/.flkcoin/testnet3/db.log 2015-05-05 17:01:16 ERROR: CDB() : error Invalid argument (22) opening database environment 2015-05-05 17:01:16 Error: Error initializing wallet database environment /home/crypto/.flkcoin/testnet3! 2015-05-05 17:01:16 Shutdown : In progress... 2015-05-05 17:01:16 StopNode() 2015-05-05 17:01:16 Flushed 0 addresses to peers.dat 40ms 2015-05-05 17:01:16 Shutdown : done 2015-05-06 18:14:24
ahhhh driving me crazy, it was a fresh install of ubuntu last week too,
|
|
|
|
dreamwatcher
Legendary
Offline
Activity: 1064
Merit: 1000
|
|
May 06, 2015, 06:57:59 PM |
|
Just off the top of my head:
Is it possible this coin daemon is incompatible with a later version of Berkeley database?
Perhaps, one needs to go in the opposite direction and install version 4.8?
Most coins, unless they are cloned off a very old code base, will at least give the option to use level db exclusively instead of Berkeley database.
|
|
|
|
YarkoL
Legendary
Offline
Activity: 996
Merit: 1013
|
|
May 06, 2015, 07:03:15 PM |
|
I thought of downgrading too, but he said he was following Shakezula's old tutorial, and libdb 5.1 is used there. chinook, do you have the source for your coin on github? Though github seems to be down atm
|
“God does not play dice"
|
|
|
|