bcosorg / bcos

BCOS平台(Be Credible, Open & Secure)
GNU General Public License v3.0
873 stars 286 forks source link

同一主机,非创节点入网问题。 #39

Open wangzhen1204 opened 7 years ago

wangzhen1204 commented 7 years ago

同一主机,非创节点正常入网,但非创节点启动后有错误。错误如下,请高手解答。 [root@localhost nodedata-2]# bcoseth --genesis ./genesis.json --config ./config.json [1] 4560 [root@localhost nodedata-2]# 2017-09-06 07:56:52,456 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = {"0000000000000000000000000000000000000001":{"precompiled":{"linear":{"base":3000,"word":0},"name":"ecrecover"}},"0000000000000000000000000000000000000002":{"precompiled":{"linear":{"base":60,"word":12},"name":"sha256"}},"0000000000000000000000000000000000000003":{"precompiled":{"linear":{"base":600,"word":120},"name":"ripemd160"}},"0000000000000000000000000000000000000004":{"precompiled":{"linear":{"base":15,"word":3},"name":"identity"}},"004f9d39c8424e7f86004622cef21a0bbe140bfa":{"balance":"999999999999000000000000000000"},"00dcf3367eab3b34d6a598f453d1aee9146b50f3":{"balance":"999999999999000000000000000000"}} 2017-09-06 07:56:52,457 INFO [default] cp.dataDir=/mydata/nodedata-1/,cp.wallet=/mydata/nodedata-1//keys.info,cp.keystoreDir=/mydata/nodedata-1//keystore/,cp.logFileConf=/mydata/nodedata-1//log.conf,cp.storagePath=/mydata/nodedata-1// 2017-09-06 07:56:52,457 TRACE [default] [int main(int, char**)] [/opt/bcos/eth/main.cpp:468] Main:: author: 0000000000000000000000000000000000000000 2017-09-06 07:56:52,457 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = null 2017-09-06 07:56:52,457 INFO [default] cp.dataDir=/mydata/nodedata-2/data/,cp.wallet=/mydata/nodedata-2/keys.info,cp.keystoreDir=/mydata/nodedata-2/keystore/,cp.logFileConf=/mydata/nodedata-1/log.conf,cp.storagePath=/mydata/nodedata-2/data//filestorage initNodes size : 1| node :8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 loadGenesis: stateRoot=56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421---------------cpp-ethereum, a C++ Ethereum client-------------- RPCPORT:8546 LISTENIP:127.0.0.1 P2PPORT:30304 WALLET:/mydata/nodedata-2/keys.info KEYSTOREDIR:/mydata/nodedata-2/keystore/ DATADIR:/mydata/nodedata-2/data/ VM:interpreter SEALENGINE:PBFT NETWORKID:12345 SYSTEMPROXYADDRESS:2879325c7c22d6ea2f7be6836419a2e866913baa GOD:57543bd974dcdc52eda16080784b7b0121a3aae0 LOGVERBOSITY:4 EVENTLOG:ON COVERLOG:OFF

&m_net=0x7ffc4623e0d0,My enode:enode://ba6190ee32d87fc77f106612ffaa7cc68dc854a295e25d3afa4b51fb65c7ceb487b51321a8b1b909eecf6b5760a3a2a08c51e3d49eae1af8048b0dab36d6960b@0.0.0.0:0NodeID=ba6190ee32d87fc77f106612ffaa7cc68dc854a295e25d3afa4b51fb65c7ceb487b51321a8b1b909eecf6b5760a3a2a08c51e3d49eae1af8048b0dab36d6960b cpp-ethereum 1.3.0 By BCOS (c) 2017. See the README for contributors and credits. NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@127.0.0.1:30303 addConnParamsToNodeTable id: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@127.0.0.1:30303 NodeConnParams toEnodeInfo is: enode://9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a@127.0.0.1:30304 addConnParamsToNodeTable id: enode://9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a@127.0.0.1:30304 reconnect node :8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972. myself is ba6190ee32d87fc77f106612ffaa7cc68dc854a295e25d3afa4b51fb65c7ceb487b51321a8b1b909eecf6b5760a3a2a08c51e3d49eae1af8048b0dab36d6960b NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@127.0.0.1:30303 NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@127.0.0.1:30303 NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@127.0.0.1:30303 reconnect node :9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a. myself is ba6190ee32d87fc77f106612ffaa7cc68dc854a295e25d3afa4b51fb65c7ceb487b51321a8b1b909eecf6b5760a3a2a08c51e3d49eae1af8048b0dab36d6960b NodeConnParams toEnodeInfo is: enode://9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a@127.0.0.1:30304 NodeConnParams toEnodeInfo is: enode://9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a@127.0.0.1:30304 NodeConnParams toEnodeInfo is: enode://9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a@127.0.0.1:30304 Node ID: enode://ba6190ee32d87fc77f106612ffaa7cc68dc854a295e25d3afa4b51fb65c7ceb487b51321a8b1b909eecf6b5760a3a2a08c51e3d49eae1af8048b0dab36d6960b@127.0.0.1:30304 getAccountType error...... getNodeNum node_num is 2 Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Connected to 0 peers startSealing .....

toxotguo commented 7 years ago

@wangzhen1204 此部分日志显示节点已经正常启动了。但是由于配置中的log.conf配置项没有配置对,所以信息直接在终端上输出出来了。 请检查config.json中log.conf的配置路径,建议将其配置成绝对路径。

wangzhen1204 commented 7 years ago

node2的日志路径是没改,我改了,重启了电脑,依次启动node1和node2,但错误和之前一样… 用monitor.js查看,提示,返回解析失败,已连接节点数:0

我注意到启动node2时,有一条错误是 getAccoutType error....不知道有关系没

wangzhen1204 commented 7 years ago

我查看的节点入网情况: [root@localhost systemcontractv2]# babel-node tool.js NodeAction all RPC=http://127.0.0.1:8545 Ouputpath=./output/ { HttpProvider: 'http://127.0.0.1:8545', Ouputpath: './output/', privKey: '7532145925e2b53e61f2b9e78388cf66acfafe90c3956764f2e8974dcf49e737', account: '0x57543bd974dcdc52eda16080784b7b0121a3aae0' } Soc File :NodeAction Func :all 系统合约地址0x2879325c7c22d6ea2f7be6836419a2e866913baa NodeAction合约地址0xbbdf22db7a960ceaa58a6a3aa3069e24191ac5d4 NodeIdsLength= 2 ----------node 0--------- id=8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 ip=192.168.254.146 port=30303 category=1 desc=node1 CAhash= agencyinfo=node1 blocknumber=463 Idx=0 ----------node 1--------- id=9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a ip=127.0.0.1 port=30304 category=1 desc=node2 CAhash= agencyinfo=node2 blocknumber=738 Idx=1

toxotguo commented 7 years ago

@wangzhen1204 从日志初步判断是,两个节点没有互联。 请检查第二个节点node1的config.json中所配置的datadir路径下的network.rlp.pub 是否是你上面贴出来的9cc83151559bc4a3631085881b21d5b875a77c5f228692d2f99414b421a9a99d0c3d8543e603a7add73de200777664c67f5f29288103565de6a71369d1cb847a 请注意从babel-node tool.js NodeAction all 中读取到的信息必须和节点配置config.json中的保持一致。

wangzhen1204 commented 7 years ago

@toxotguo a按照你说的,我能改的都改了。 仍然有问题。希望再帮我看看问题出在哪里。 如下: [root@localhost systemcontractv2]# babel-node tool.js NodeAction all RPC=http://127.0.0.1:8545 Ouputpath=./output/ { HttpProvider: 'http://127.0.0.1:8545', Ouputpath: './output/', privKey: '7532145925e2b53e61f2b9e78388cf66acfafe90c3956764f2e8974dcf49e737', account: '0x57543bd974dcdc52eda16080784b7b0121a3aae0' } Soc File :NodeAction Func :all 系统合约地址0x2879325c7c22d6ea2f7be6836419a2e866913baa NodeAction合约地址0xbbdf22db7a960ceaa58a6a3aa3069e24191ac5d4 NodeIdsLength= 2 ----------node 0--------- id=8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 ip=192.168.254.146 port=30303 category=1 desc=node1 CAhash= agencyinfo=node1 blocknumber=463 Idx=0 ----------node 1--------- id=646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc ip=192.168.254.146 port=30304 category=1 desc=node2 CAhash= agencyinfo=node2 blocknumber=2643 Idx=1 [root@localhost systemcontractv2]# babel-node monitor.js RPC=http://127.0.0.1:8545 Ouputpath=./output/ 已连接节点数:0 admin_peers 返回解析失败![object Object] 已连接节点数:0 admin_peers 返回解析失败![object Object] 已连接节点数:0 admin_peers 返回解析失败![object Object] 已连接节点数:0 admin_peers 返回解析失败![object Object] 已连接节点数:0 admin_peers 返回解析失败![object Object] [root@localhost nodedata-2]# bcoseth --genesis ./genesis.json --config ./config.json & [1] 4539 [root@localhost nodedata-2]# 2017-09-07 04:59:12,112 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = {"0000000000000000000000000000000000000001":{"precompiled":{"linear":{"base":3000,"word":0},"name":"ecrecover"}},"0000000000000000000000000000000000000002":{"precompiled":{"linear":{"base":60,"word":12},"name":"sha256"}},"0000000000000000000000000000000000000003":{"precompiled":{"linear":{"base":600,"word":120},"name":"ripemd160"}},"0000000000000000000000000000000000000004":{"precompiled":{"linear":{"base":15,"word":3},"name":"identity"}},"004f9d39c8424e7f86004622cef21a0bbe140bfa":{"balance":"999999999999000000000000000000"},"00dcf3367eab3b34d6a598f453d1aee9146b50f3":{"balance":"999999999999000000000000000000"}} 2017-09-07 04:59:12,116 INFO [default] cp.dataDir=/mydata/nodedata-1/,cp.wallet=/mydata/nodedata-1//keys.info,cp.keystoreDir=/mydata/nodedata-1//keystore/,cp.logFileConf=/mydata/nodedata-1//log.conf,cp.storagePath=/mydata/nodedata-1// 2017-09-07 04:59:12,116 TRACE [default] [int main(int, char**)] [/opt/bcos/eth/main.cpp:468] Main:: author: 0000000000000000000000000000000000000000 2017-09-07 04:59:12,116 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = null 2017-09-07 04:59:12,117 INFO [default] cp.dataDir=/mydata/nodedata-2/data/,cp.wallet=/mydata/nodedata-2/keys.info,cp.keystoreDir=/mydata/nodedata-2/keystore/,cp.logFileConf=/mydata/nodedata-2/log.conf,cp.storagePath=/mydata/nodedata-2/data//filestorage initNodes size : 1| node :8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 loadGenesis: stateRoot=56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421---------------cpp-ethereum, a C++ Ethereum client-------------- RPCPORT:8546 LISTENIP:127.0.0.1 P2PPORT:30304 WALLET:/mydata/nodedata-2/keys.info KEYSTOREDIR:/mydata/nodedata-2/keystore/ DATADIR:/mydata/nodedata-2/data/ VM:interpreter SEALENGINE:PBFT NETWORKID:12345 SYSTEMPROXYADDRESS:2879325c7c22d6ea2f7be6836419a2e866913baa GOD:57543bd974dcdc52eda16080784b7b0121a3aae0 LOGVERBOSITY:4 EVENTLOG:ON COVERLOG:OFF

&m_net=0x7ffe7ed3cce0,My enode:enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@0.0.0.0:0NodeID=646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc cpp-ethereum 1.3.0 By BCOS (c) 2017. See the README for contributors and credits. NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@192.168.254.146:30303 addConnParamsToNodeTable id: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@192.168.254.146:30303 reconnect node :8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972. myself is 646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@192.168.254.146:30303 NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@192.168.254.146:30303 NodeConnParams toEnodeInfo is: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@192.168.254.146:30303 Node ID: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@127.0.0.1:30304 getNodeNum node_num is 2 Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Connected to 0 peers startSealing .....

[root@localhost nodedata-1]# bcoseth --genesis ./genesis.json --config ./config.json & [1] 4432 [root@localhost nodedata-1]# 2017-09-07 04:58:37,735 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = {"0000000000000000000000000000000000000001":{"precompiled":{"linear":{"base":3000,"word":0},"name":"ecrecover"}},"0000000000000000000000000000000000000002":{"precompiled":{"linear":{"base":60,"word":12},"name":"sha256"}},"0000000000000000000000000000000000000003":{"precompiled":{"linear":{"base":600,"word":120},"name":"ripemd160"}},"0000000000000000000000000000000000000004":{"precompiled":{"linear":{"base":15,"word":3},"name":"identity"}},"004f9d39c8424e7f86004622cef21a0bbe140bfa":{"balance":"999999999999000000000000000000"},"00dcf3367eab3b34d6a598f453d1aee9146b50f3":{"balance":"999999999999000000000000000000"}} 2017-09-07 04:58:37,745 INFO [default] cp.dataDir=/mydata/nodedata-1/,cp.wallet=/mydata/nodedata-1//keys.info,cp.keystoreDir=/mydata/nodedata-1//keystore/,cp.logFileConf=/mydata/nodedata-1//log.conf,cp.storagePath=/mydata/nodedata-1// 2017-09-07 04:58:37,746 TRACE [default] [int main(int, char**)] [/opt/bcos/eth/main.cpp:468] Main:: author: 0000000000000000000000000000000000000000 2017-09-07 04:58:37,748 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/opt/bcos/libethereum/ChainParams.cpp:124] genesisStateStr = null 2017-09-07 04:58:37,748 INFO [default] cp.dataDir=/mydata/nodedata-1/data/,cp.wallet=/mydata/nodedata-1/keys.info,cp.keystoreDir=/mydata/nodedata-1/keystore/,cp.logFileConf=/mydata/nodedata-1/log.conf,cp.storagePath=/mydata/nodedata-1/data//filestorage initNodes size : 1| node :8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 loadGenesis: stateRoot=56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421---------------cpp-ethereum, a C++ Ethereum client-------------- RPCPORT:8545 LISTENIP:127.0.0.1 P2PPORT:30303 WALLET:/mydata/nodedata-1/keys.info KEYSTOREDIR:/mydata/nodedata-1/keystore/ DATADIR:/mydata/nodedata-1/data/ VM:interpreter SEALENGINE:PBFT NETWORKID:12345 SYSTEMPROXYADDRESS:2879325c7c22d6ea2f7be6836419a2e866913baa GOD:57543bd974dcdc52eda16080784b7b0121a3aae0 LOGVERBOSITY:4 EVENTLOG:ON COVERLOG:OFF

&m_net=0x7ffdad036f80,My enode:enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@0.0.0.0:0NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 NodeID=8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 cpp-ethereum 1.3.0 By BCOS (c) 2017. See the README for contributors and credits. NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 addConnParamsToNodeTable id: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 reconnect node :646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc. myself is 8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 Node ID: enode://8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972@127.0.0.1:30303 getNodeNum node_num is 2 Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Wait for connecting to peers........ Connected to 0 peers startSealing .....

[root@localhost nodedata-1]# reconnect node :646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc. myself is 8fc3a20efb7e2ce56cbf65af200ef65c99d59c16c20b2da5227871a473bb4d4961d2ae9c73a8bea5bc45d5ab327ba09192cf1952ef10f174ad989ba08360f972 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304 NodeConnParams toEnodeInfo is: enode://646c96d2ab3089bd9884400f3259448c11c530c38c031b95c6af0c2ccef8f5c55cdce824ca182b1924f211b21c3950f022b00a0ee57e86a7ef817a92cdae65fc@192.168.254.146:30304

liuzuolong commented 7 years ago

和你出现了相同的问题,我是在一台机器的情况下,直接创建两个节点,出现的错误和你的一致

wheatli commented 7 years ago

从日志看是两个节点无法连接上导致的问题 请确定config.json配置和bable-node tool.js NodeAction all看到的是对的,然后再确认两个节点所开的端口是可以互联的(用telnet看一下是否能互联成功),netstat看一下监听列表和连接列表。

csrcbYsc commented 6 years ago

@wangzhen1204 后来你有解决这个问题么 我和你遇到的问题一样

zhige2003 commented 6 years ago

@wangzhen1204 我也是有同样的问题,在同一台主机上启动两个节点,您的问题是否解决?