Open wangzhen1204 opened 7 years ago
前面所有步骤执行成功 到这步都是成功的 [root@localhost docker]# ./scripts/start_bcos_docker.sh $PWD/node-1 configPath: /home/wz/Downloads/bcos-master/docker/node-1 rpcport: 35501 p2pport: 53301 dockerImage: bcosorg/bcos:latest containerName: bcos-node-1 2631685358b508522f6ca7d5a318a242cd39a8c51f4f6f7f12eef8a8d0b8fa50 [root@localhost docker]# 但 [root@localhost systemcontractv2]# babel-node monitor.js RPC=http://127.0.0.1:35500 Ouputpath=./output/ 已连接节点数:0 admin_peers 返回解析失败![object Object] 已连接节点数:0 admin_peers 返回解析失败![object Object]
一查看,还是失败的。和我应用配置BCOS使用说明书1.0,配置单机多节点的情况一样,难道是我的操作系统,或者bcos安装的有问题?不过应用一键安装BCOS,那个sample倒是可以运行的。
ps:我用这个命令查看也正常 [root@localhost systemcontractv2]# babel-node tool.js NodeAction all RPC=http://127.0.0.1:35500 Ouputpath=./output/ { HttpProvider: 'http://127.0.0.1:35500', Ouputpath: './output/', privKey: '7d373eb4872368bb51d7ac083ac4752bca9ecb70066df43457500528faeea8f3', account: '0xec23de21751378995fe87691f1c2e6c895cfa07b' } Soc File :NodeAction Func :all 系统合约地址0xff27dc5cc5144c626b9fdc26b2f292d9df062470 NodeAction合约地址0x86a4d8242572733311fcb929bfab2ad941725c3b NodeIdsLength= 2 ----------node 0--------- id=4ecfff32417de3709b8cc2482388a07f195b9a747b4577753a1f8e56b114b5ee5e3672aca6af8d8ef67c503875941fd261e4773fa85fa67b2f833ce0db74f0ed ip=172.17.0.1 port=53300 category=1 desc=node0 CAhash= agencyinfo=node0 blocknumber=1111 Idx=0 ----------node 1--------- id=76a60ab9e374dd756ebaae8d5100dc9ed6de82dc4d20895d075414ac07e5448553620c52ce65e629cdb97be6a7f921b8510dce08ab3dfffb0e2d0c7a4de06857 ip=172.17.0.1 port=53301 category=1 desc=node1 CAhash= agencyinfo=node1 blocknumber=1203 Idx=1 [root@localhost systemcontractv2]#
问题解决了吗?是否有更多的信息可以提供出来?
操作系统换成ubuntu的,就没啥问题了。。。
ip问题
前面所有步骤执行成功 到这步都是成功的 [root@localhost docker]# ./scripts/start_bcos_docker.sh $PWD/node-1 configPath: /home/wz/Downloads/bcos-master/docker/node-1 rpcport: 35501 p2pport: 53301 dockerImage: bcosorg/bcos:latest containerName: bcos-node-1 2631685358b508522f6ca7d5a318a242cd39a8c51f4f6f7f12eef8a8d0b8fa50 [root@localhost docker]# 但 [root@localhost systemcontractv2]# babel-node monitor.js RPC=http://127.0.0.1:35500 Ouputpath=./output/ 已连接节点数:0 admin_peers 返回解析失败![object Object] 已连接节点数:0 admin_peers 返回解析失败![object Object]
一查看,还是失败的。和我应用配置BCOS使用说明书1.0,配置单机多节点的情况一样,难道是我的操作系统,或者bcos安装的有问题?不过应用一键安装BCOS,那个sample倒是可以运行的。
ps:我用这个命令查看也正常 [root@localhost systemcontractv2]# babel-node tool.js NodeAction all RPC=http://127.0.0.1:35500 Ouputpath=./output/ { HttpProvider: 'http://127.0.0.1:35500', Ouputpath: './output/', privKey: '7d373eb4872368bb51d7ac083ac4752bca9ecb70066df43457500528faeea8f3', account: '0xec23de21751378995fe87691f1c2e6c895cfa07b' } Soc File :NodeAction Func :all 系统合约地址0xff27dc5cc5144c626b9fdc26b2f292d9df062470 NodeAction合约地址0x86a4d8242572733311fcb929bfab2ad941725c3b NodeIdsLength= 2 ----------node 0--------- id=4ecfff32417de3709b8cc2482388a07f195b9a747b4577753a1f8e56b114b5ee5e3672aca6af8d8ef67c503875941fd261e4773fa85fa67b2f833ce0db74f0ed ip=172.17.0.1 port=53300 category=1 desc=node0 CAhash= agencyinfo=node0 blocknumber=1111 Idx=0 ----------node 1--------- id=76a60ab9e374dd756ebaae8d5100dc9ed6de82dc4d20895d075414ac07e5448553620c52ce65e629cdb97be6a7f921b8510dce08ab3dfffb0e2d0c7a4de06857 ip=172.17.0.1 port=53301 category=1 desc=node1 CAhash= agencyinfo=node1 blocknumber=1203 Idx=1 [root@localhost systemcontractv2]#