[ethereum/go-ethereum] “–bootnodes” option doesn’t work (private network) (#2708)

Same issue here, –bootnodes not work, but adding the node with admin.addPeer(enodeurl) working, with the excat same enode url infos.

the command line:
geth –identity “MyTestNodePc2” –nodiscover –bootnodes “enode://8966b7a85496bd37e61fceb49ca03c1527291d0c21dbf9a3ab68226174704e6c2a18929e748cd802f80bb0a67136950dc1fdc89c2825b4c6e7dcc35c36c51826@[::]:30303” –datadir e:/geth/node_data_testnet2 –port 30304 –rpc –rpcport 8102 –ipcdisable -verbosity 6 –mine –minerthreads 1 console

ouput in verbose 6

E:Geth>geth –identity “MyTestNodePc2” –nodiscover –bootnodes “enode://8966b7a85496bd37e61fceb49ca03c1527291d0c21dbf9a3ab68226174704e6c2a18929e748cd802f80bb0a67136950dc1fdc89c2825b4c6e7dcc35c36c51826@[::]:30303” –datadir e:/geth/node_data_testnet2 –port 30304 –rpc –rpcport 8102 –ipcdisable -verbosity 6 –mine –minerthreads 1 console
INFO [06-13|23:24:21] Maximum peer count ETH=25 LES=0 total=25
DEBUG[06-13|23:24:21] FS scan times list=0s set=0s diff=0s
TRACE[06-13|23:24:21] Handled keystore changes time=0s
INFO [06-13|23:24:21] Starting peer-to-peer node instance=Geth/MyTestNodePc2/v1.8.8-stable-2688dab4/windows-amd64/go1.10.1
INFO [06-13|23:24:21] Allocated cache and file handles database=e:\geth\node_data_testnet2\geth\chaindata cache=768 handles=1024
INFO [06-13|23:24:21] Initialised chain configuration config=”{ChainID: 6699 Homestead: 0 DAO: DAOSupport: false EIP150: EIP155: 0 EIP158: 0 Byzantium: Constantinople: Engine: unknown}”
INFO [06-13|23:24:21] Disk storage enabled for ethash caches dir=e:\geth\node_data_testnet2\geth\ethash count=3
INFO [06-13|23:24:21] Disk storage enabled for ethash DAGs dir=C:\Users\asaff\AppData\Ethash count=2
INFO [06-13|23:24:21] Initialising Ethereum protocol versions=”[63 62]” network=1
WARN [06-13|23:24:21] Head state missing, repairing chain number=3011 hash=ca6c2a…4c0122
INFO [06-13|23:24:21] Rewound blockchain to past state number=3006 hash=08670f…8a3cfa
INFO [06-13|23:24:21] Loaded most recent local header number=3011 hash=ca6c2a…4c0122 td=805392110
INFO [06-13|23:24:21] Loaded most recent local full block number=3006 hash=08670f…8a3cfa td=803243630
INFO [06-13|23:24:21] Loaded most recent local fast block number=3011 hash=ca6c2a…4c0122 td=805392110
DEBUG[06-13|23:24:21] Reinjecting stale transactions count=0
INFO [06-13|23:24:21] Loaded local transaction journal transactions=0 dropped=0
INFO [06-13|23:24:21] Regenerated local transaction journal transactions=0 accounts=0
WARN [06-13|23:24:21] Blockchain not empty, fast sync disabled
DEBUG[06-13|23:24:21] Recalculated downloader QoS values rtt=20s confidence=1.000 ttl=1m0s
INFO [06-13|23:24:21] Starting P2P networking
INFO [06-13|23:24:21] RLPx listener up self=”enode://bd6b14fd30b6c74c594365886fbbec9548efbfc6f16b2d6c45256316b93bb94dba4fd55103789eff896aeb61694f0935b0314ac97c9d85bec3929c215685a77f@[::]:30304?discport=0″
DEBUG[06-13|23:24:21] InProc registered service=&{node:0xc042317400} namespace=admin
DEBUG[06-13|23:24:21] InProc registered service=&{node:0xc042317400} namespace=admin
DEBUG[06-13|23:24:21] InProc registered service=”&{mu:{state:0 sema:0} cpuW: cpuFile: traceW: traceFile:}” namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{node:0xc042317400} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{stack:0xc042317400} namespace=web3
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=”&{b:0xc042179c00 nonceLock:0xc042078b20}” namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=txpool
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{b:0xc042179c00} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=&{am:0xc042089ee0} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=”&{am:0xc042089ee0 nonceLock:0xc042078b20 b:0xc042179c00}” namespace=personal
DEBUG[06-13|23:24:21] InProc registered service=&{e:0xc0422ca460} namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=”&{e:0xc0422ca460 agent:0xc0421ca000}” namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=”&{d:0xc0420cc820 mux:0xc0421766c0 installSyncSubscription:0xc04218e420 uninstallSyncSubscription:0xc04218e480}” namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{e:0xc0422ca460} namespace=miner
DEBUG[06-13|23:24:21] InProc registered service=”&{backend:0xc042179c00 mux:0xc0421766c0 quit: chainDb:0xc0420e11e0 events:0xc04228a280 filtersMu:{state:0 sema:0} filters:map[]}” namespace=eth
DEBUG[06-13|23:24:21] InProc registered service=&{eth:0xc0422ca460} namespace=admin
DEBUG[06-13|23:24:21] InProc registered service=&{eth:0xc0422ca460} namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=”&{config:0xc0421e0100 eth:0xc0422ca460}” namespace=debug
DEBUG[06-13|23:24:21] InProc registered service=”&{net:0xc042317900 networkVersion:1}” namespace=net
DEBUG[06-13|23:24:21] HTTP registered namespace=web3
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=eth
DEBUG[06-13|23:24:21] HTTP registered namespace=net
INFO [06-13|23:24:21] HTTP endpoint opened url=http://127.0.0.1:8102 cors= vhosts=localhost
INFO [06-13|23:24:21] Transaction pool price threshold updated price=18000000000
INFO [06-13|23:24:21] Etherbase automatically configured address=0x3e747d49be38CC69573a6aEd7631430547b1BDDA
INFO [06-13|23:24:21] Starting mining operation
INFO [06-13|23:24:21] Commit new mining work number=3007 txs=0 uncles=0 elapsed=1.000ms
TRACE[06-13|23:24:21] Requiring new ethash dataset epoch=0
TRACE[06-13|23:24:21] Requiring new future ethash dataset epoch=1
DEBUG[06-13|23:24:21] Loaded old ethash dataset from disk epoch=0
TRACE[06-13|23:24:21] Started ethash search for new nonces miner=0 seed=7038418853576829939
DEBUG[06-13|23:24:21] Loaded old ethash dataset from disk epoch=1
TRACE[06-13|23:24:21] msg=”sending {“jsonrpc”:”2.0″,”id”:1,”method”:”rpc_modules”,”params”:null}”
TRACE[06-13|23:24:21] msg=” DEBUG[06-13|23:24:23] Couldn’t add port mapping proto=tcp extport=30304 intport=30304 interface=”UPnP or NAT-PMP” err=”no UPnP or NAT-PMP router discovered”
TRACE[06-13|23:24:23] Ethash nonce found and reported miner=0 attempts=134258 nonce=7038418853576964197
INFO [06-13|23:24:23] Successfully sealed new block number=3007 hash=a29fc2…ca07da
DEBUG[06-13|23:24:23] Trie cache stats after commit misses=0 unloads=0
INFO [06-13|23:24:23] 🔨 mined potential block number=3007 hash=a29fc2…ca07da
TRACE[06-13|23:24:23] Propagated block hash=a29fc2…ca07da recipients=0 duration=2562047h47m16.854s
DEBUG[06-13|23:24:23] Reinjecting stale transactions count=0
TRACE[06-13|23:24:23] Announced block hash=a29fc2…ca07da recipients=0 duration=2562047h47m16.854s
INFO [06-13|23:24:23] Commit new mining work number=3008 txs=0 uncles=0 elapsed=15.001ms
TRACE[06-13|23:24:23] Started ethash search for new nonces miner=0 seed=766848748592413182
DEBUG[06-13|23:24:24] FS scan times list=0s set=0s diff=0s

no node added.

after adding node manulay by command:

admin.addPeer(“enode://8966b7a85496bd37e61fceb49ca03c1527291d0c21dbf9a3ab68226174704e6c2a18929e748cd802f80bb0a67136950dc1fdc89c2825b4c6e7dcc35c36c51826@[::]:30303”)

it’s working, so it’s not an port or other things issue, –bootnodes not work !

This post was last modified on June 14, 2018, 5:31 am