Bitcoin Forum
May 21, 2024, 06:05:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: TECH HELP - trying to build wallet on ubuntu  (Read 1715 times)
chinook (OP)
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
May 05, 2015, 01:35:11 PM
Last edit: September 28, 2015, 12:48:53 PM by chinook
 #1

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?
chrisvl
Legendary
*
Offline Offline

Activity: 1274
Merit: 1006

Trainman


View Profile WWW
May 05, 2015, 01:45:03 PM
 #2

check this https://bitcointalk.org/index.php?topic=391983.msg11257411#msg11257411

chrisvl
Legendary
*
Offline Offline

Activity: 1274
Merit: 1006

Trainman


View Profile WWW
May 05, 2015, 01:46:33 PM
 #3

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
 

chrisvl
Legendary
*
Offline Offline

Activity: 1274
Merit: 1006

Trainman


View Profile WWW
May 05, 2015, 03:43:53 PM
 #4

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 Offline

Activity: 1274
Merit: 1006

Trainman


View Profile WWW
May 05, 2015, 03:55:19 PM
 #5

Give the debug.log results how you compile it using some guide ?

YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
May 05, 2015, 04:31:52 PM
 #6


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.

“God does not play dice"
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
May 05, 2015, 04:58:44 PM
 #7


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 Offline

Activity: 996
Merit: 1013


View Profile
May 05, 2015, 05:07:35 PM
 #8


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

“God does not play dice"
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
May 05, 2015, 05:17:34 PM
 #9

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 Offline

Activity: 996
Merit: 1013


View Profile
May 05, 2015, 07:22:08 PM
 #10


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.

“God does not play dice"
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
May 06, 2015, 02:37:30 PM
 #11


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

“God does not play dice"
chinook (OP)
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
May 06, 2015, 03:13:40 PM
 #12

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
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
May 06, 2015, 03:29:31 PM
 #13


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 Offline

Activity: 1274
Merit: 1006

Trainman


View Profile WWW
May 06, 2015, 05:52:25 PM
 #14

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

chinook (OP)
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
May 06, 2015, 06:17:57 PM
 #15

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,
dreamwatcher
Legendary
*
Offline Offline

Activity: 1064
Merit: 1000


View Profile WWW
May 06, 2015, 06:57:59 PM
 #16

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 Offline

Activity: 996
Merit: 1013


View Profile
May 06, 2015, 07:03:15 PM
 #17

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  Tongue

“God does not play dice"
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!