Bitcoin Forum
May 04, 2024, 03:15:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Test network support broken?  (Read 1598 times)
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
1714835757
Hero Member
*
Offline Offline

Posts: 1714835757

View Profile Personal Message (Offline)

Ignore
1714835757
Reply with quote  #2

1714835757
Report to moderator
1714835757
Hero Member
*
Offline Offline

Posts: 1714835757

View Profile Personal Message (Offline)

Ignore
1714835757
Reply with quote  #2

1714835757
Report to moderator
1714835757
Hero Member
*
Offline Offline

Posts: 1714835757

View Profile Personal Message (Offline)

Ignore
1714835757
Reply with quote  #2

1714835757
Report to moderator
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714835757
Hero Member
*
Offline Offline

Posts: 1714835757

View Profile Personal Message (Offline)

Ignore
1714835757
Reply with quote  #2

1714835757
Report to moderator
1714835757
Hero Member
*
Offline Offline

Posts: 1714835757

View Profile Personal Message (Offline)

Ignore
1714835757
Reply with quote  #2

1714835757
Report to moderator
1714835757
Hero Member
*
Offline Offline

Posts: 1714835757

View Profile Personal Message (Offline)

Ignore
1714835757
Reply with quote  #2

1714835757
Report to moderator
jgarzik (OP)
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12972


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

Try it with an explicit -conf=file switch.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!