Bitcoin Forum
September 26, 2016, 03:36:42 PM *
News: Due to DDoS attacks, there may be periodic downtime.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Test network support broken?  (Read 1314 times)
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
November 22, 2010, 06:01:00 AM
 #1


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

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
1474904202
Hero Member
*
Offline Offline

Posts: 1474904202

View Profile Personal Message (Offline)

Ignore
1474904202
Reply with quote  #2

1474904202
Report to moderator
1474904202
Hero Member
*
Offline Offline

Posts: 1474904202

View Profile Personal Message (Offline)

Ignore
1474904202
Reply with quote  #2

1474904202
Report to moderator
1474904202
Hero Member
*
Offline Offline

Posts: 1474904202

View Profile Personal Message (Offline)

Ignore
1474904202
Reply with quote  #2

1474904202
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
November 22, 2010, 06:07:28 AM
 #2

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.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2422


View Profile
November 22, 2010, 06:15:08 AM
 #3

Try it with an explicit -conf=file switch.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!