Author

Topic: TECH HELP - trying to build wallet on ubuntu (Read 1730 times)

legendary
Activity: 996
Merit: 1013
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
legendary
Activity: 1064
Merit: 1000
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.
member
Activity: 92
Merit: 10
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,
legendary
Activity: 1274
Merit: 1006
Trainman
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
legendary
Activity: 996
Merit: 1013

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.
member
Activity: 92
Merit: 10
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
legendary
Activity: 996
Merit: 1013

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
legendary
Activity: 996
Merit: 1013

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.
legendary
Activity: 996
Merit: 1013
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?


legendary
Activity: 996
Merit: 1013

Well then, what happens if you remove
everything from /home/crypto/.flkcoin/ ?
legendary
Activity: 996
Merit: 1013

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-
legendary
Activity: 996
Merit: 1013

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.
legendary
Activity: 1274
Merit: 1006
Trainman
Give the debug.log results how you compile it using some guide ?
legendary
Activity: 1274
Merit: 1006
Trainman
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 ?
legendary
Activity: 1274
Merit: 1006
Trainman
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
 
legendary
Activity: 1274
Merit: 1006
Trainman
member
Activity: 92
Merit: 10
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?
Jump to: