Post
Topic
Board Development & Technical Discussion
Re: Debian 7 + bitcoind from source + libdb5.1 = nope
by
w00dy
on 01/12/2013, 07:42:05 UTC
You cannot switch BDB versions on a wallet that wasn't cleanly shut down on the prior version, I'd guess thats whats happening here.

As I understood it is a brand new instalation where the wallet.dat isn't even present yet and had to be created.

Adriano is right here.

running bitcoind_broken or non-stripped bitcoind executable as root OR user bitcoin (su - bitcoin -> ./bitcoind) make no difference.

Edit:
.bitcoin is NOT created if i run as root
.bitcoin IS created if i run as "bitcoin"

.bitcoin is probably being created on /root/.bitcoin when you run it as root (unless you define datadir on the command line)
yeah, you are right here again. missed that one.


.bitcoin is found in /root but it's contens look exactly like the "bitcoin" user dir.
Code:
drwxr-xr-x  9 root root 4096 Nov 30 22:46 .
drwx------ 10 root root 4096 Dez  1 08:05 ..
drwx------  2 root root 4096 Nov 30 22:46 database
drwx------  2 root root 4096 Nov 30 20:02 database.1385838167.bak
drwx------  2 root root 4096 Nov 30 20:02 database.1385841392.bak
drwx------  2 root root 4096 Nov 30 20:56 database.1385841553.bak
drwx------  2 root root 4096 Nov 30 20:59 database.1385842412.bak
drwx------  2 root root 4096 Nov 30 21:13 database.1385847977.bak
drwx------  2 root root 4096 Nov 30 22:46 database.1385847996.bak
-rw-------  1 root root  612 Nov 30 22:46 db.log
-rw-------  1 root root 7152 Nov 30 22:46 debug.log
-rw-------  1 root root    0 Nov 30 20:02 .lock
-rw-------  1 root root 1106 Nov 30 22:46 peers.dat

ALL the database directorys are empty.


Quote
If you remove the /home/bitcoind/.bitcoin/ and start bitcoind again, does it create again the same files as stated above?
Adriano

Code:
su - bitcoin
rm -r .bitcoin
./bitcoind

you get this:
Code:
drwxr-xr-x 4 bitcoin bitcoin 4096 Dez  1 08:35 .
drwxr-xr-x 3 bitcoin bitcoin 4096 Dez  1 08:35 ..
drwx------ 2 bitcoin bitcoin 4096 Dez  1 08:35 database
drwx------ 2 bitcoin bitcoin 4096 Dez  1 08:35 database.1385883348.bak
-rw------- 1 bitcoin bitcoin  102 Dez  1 08:35 db.log
-rw------- 1 bitcoin bitcoin 1264 Dez  1 08:35 debug.log
-rw------- 1 bitcoin bitcoin    0 Dez  1 08:35 .lock
-rw------- 1 bitcoin bitcoin 1106 Dez  1 08:35 peers.dat

Quote
I have just tried with https://github.com/bitcoin/bitcoin/archive/0.8.6.zip on my system and it worked ok on debian 7.2 with libdb5.1

Can you try downloading it directly instead of cloning and see if there is any differences ?

will do soon.

Thx for your help!