Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Berlu on May 16, 2012, 07:43:08 PM



Title: bitcoind --connect=192.168.0.4 not working
Post by: Berlu on May 16, 2012, 07:43:08 PM
Hello everyone!

I installed the satoshi client on a second local computer. Since I don't want to download the entire blockchain again, I tried to connect to my old computer with "bitcoind --connect=192.168.0.4"

Unfortunately the client doesn't open a connection to my other pc.
Since "telnet 192.168.0.4 8333" is working, I don't think that I have any connectivity problems. If I start the client without the connect option, the client works as designed (of course without an actual block chain).
Does anyone know what could cause my problem?

OS: Linux 3.0, Ubuntu 12.04
client version: 0.6.2-oneiric0

TIA


Title: Re: bitcoind --connect=192.168.0.4 not working
Post by: DeathAndTaxes on May 16, 2012, 07:48:29 PM
Not sure what your problem is but you can simply copy the blockchain file from one computer to another (the files are in the bitcoin datadir).  Much faster than downloading it one block at a time.


Title: Re: bitcoind --connect=192.168.0.4 not working
Post by: Berlu on May 16, 2012, 07:57:05 PM
I tried to copy blk* but the client on the new machine wasn't able to open the files.

error message:

Code:
Loading block index...


EXCEPTION: 11DbException
Db::open: Das Argument ist ungültig
bitcoin in Runaway exception

EnvShutdown exception: DbEnv::close: Das Argument ist ungültig (22)

("Das Argument ist ungültig" = "the argument is invalid")

Since the client on the old machine is working proper, the blockchain files shouldn't be corrupt.


Title: Re: bitcoind --connect=192.168.0.4 not working
Post by: DeathAndTaxes on May 16, 2012, 08:04:44 PM
Make sure you stop bitcoind on the old machine before making a copy.  Also I am not sure if it matters but I copy everything (except the wallet.dat).


Title: Re: bitcoind --connect=192.168.0.4 not working
Post by: Berlu on May 16, 2012, 08:26:44 PM
Ok, I copied the entire folder and it worked. Thanks!