Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: chinook on May 05, 2015, 01:35:11 PM



Title: TECH HELP - trying to build wallet on ubuntu
Post by: chinook on May 05, 2015, 01:35:11 PM
experienced in coins, but getting this one damn error.

Code:
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?


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: chrisvl on May 05, 2015, 01:45:03 PM
check this https://bitcointalk.org/index.php?topic=391983.msg11257411#msg11257411


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: chrisvl on May 05, 2015, 01:46:33 PM
im attempting to build a litecoin based wallet on ubuntu

and getting this error

Code:
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
 


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: chrisvl on 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 ?


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: chrisvl on May 05, 2015, 03:55:19 PM
Give the debug.log results how you compile it using some guide ?


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on May 05, 2015, 04:31:52 PM

Code:
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.


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on 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-


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on May 05, 2015, 05:07:35 PM

Well then, what happens if you remove
everything from /home/crypto/.flkcoin/ ?


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on 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?




Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on 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..

Code:
sudo apt-get remove libdb5.1-dev libdb5.1++-dev
followed by

Code:
sudo update
sudo apt-get install libdb5.1-dev libdb5.1++-dev

then go to your coin src directory and

Code:
make -f makefile.unix clean

and rebuild

Code:
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.


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on May 06, 2015, 02:37:30 PM

I forgot to put "apt-get" before "update"

Code:
sudo apt-get update 
apt-get upgrade -y
apt-get dist-upgrade

then try again

Code:
sudo apt-get install libdb5.1-dev libdb5.1++-dev


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: chinook on May 06, 2015, 03:13:40 PM
now getting


Code:
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


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on 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.


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: chrisvl on May 06, 2015, 05:52:25 PM
now getting


Code:
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


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: chinook on May 06, 2015, 06:17:57 PM
ok all done!


im trying ./flkcoind -testnet and getting

Code:
crypto@crypto-Veriton-3900Pro:~/flkcoin/src$ ./flkcoind -testnet
Error: Error initializing wallet database environment /home/crypto/.flkcoin/testnet3!



and in debug.log
Code:
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,


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: dreamwatcher on 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.


Title: Re: TECH HELP - trying to build wallet on ubuntu
Post by: YarkoL on 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  :P