Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: jgarzik on November 22, 2010, 06:01:00 AM



Title: Test network support broken?
Post by: jgarzik on November 22, 2010, 06:01:00 AM

In current, vanilla upstream (SVN r187, no third party patches), the test network does not appear to work.

I execute
Code:
nice -n19 /spare/repo/bitcoin.hacks/bitcoind -testnet -gen -datadir=/garz/bitcoin/test/data -server
and bitcoin immediately exits.  debug log shows the following:

Code:
Bitcoin version 0.3.15.5 beta
Default data directory /g/g/.bitcoin
Bound to port 18333
Loading addresses...
dbenv.open strLogDir=/garz/bitcoin/test/data/testnet/database strErrorFile=/garz/bitcoin/test/data/testnet/db.log
Loaded 0 addresses
 addresses                19ms
Loading block index...
LoadBlockIndex(): hashBestChain=0000000224b1593e3ff1  height=0
 block index             377ms
Loading wallet...
nFileVersion = 31504
fGenerateBitcoins = 0
nTransactionFee = 0
addrIncoming = 255.255.255.255:8333
fMinimizeToTray = 0
fMinimizeOnClose = 0
fUseProxy = 0
addrProxy = 127.0.0.1:9050
 wallet                    2ms
Done loading
mapBlockIndex.size() = 1
nBestHeight = 0
mapKeys.size() = 1
mapPubKeys.size() = 1
mapWallet.size() = 0
mapAddressBook.size() = 1
sending: version (85 bytes)
ThreadRPCServer started
ipv4 eth0: 10.10.20.30
addrLocalHost = 10.10.20.30:18333
ThreadRPCServer exiting
DBFlush(false)
addr.dat refcount=0
addr.dat flush
blkindex.dat refcount=0
blkindex.dat flush
wallet.dat refcount=0
wallet.dat flush
StopNode()
DBFlush(true)
Bitcoin exiting


Title: Re: Test network support broken?
Post by: jgarzik on November 22, 2010, 06:07:28 AM
Update:  it's complaining about bitcoin.conf not existing... yet it does exist:

Code:
[jgarzik@bd bitcoin.hacks]$ nice -n19 /spare/repo/bitcoin.hacks/bitcoind -testnet -gen -datadir=/garz/bitcoin/test/data -server
bitcoin server starting
Warning: To use the "-server" option, you must set rpcpassword=<password>
in the configuration file: /garz/bitcoin/test/data/testnet/bitcoin.conf
If the file does not exist, create it with owner-readable-only file permissions.
and yet...
Code:
[jgarzik@bd bitcoin.hacks]$ ls -l /garz/bitcoin/test/data/testnet/bitcoin.conf
-rw------- 1 jgarzik jgarzik 35 Nov 22 01:04 /garz/bitcoin/test/data/testnet/bitcoin.conf

Update2: Using the command line -rpcuser and -rpcpassword works around this bug, and starts the test network successfully.


Title: Re: Test network support broken?
Post by: theymos on November 22, 2010, 06:15:08 AM
Try it with an explicit -conf=file switch.