bcosorg / bcos

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

bcos,生成NodeId的问题 #97

Open yeziyjy opened 6 years ago

yeziyjy commented 6 years ago

环境Ubuntu 16.04 LTS

  1. 跟进操作步骤, 执行一键安装脚本build.sh,执行成功后结果为:bcoseth build succ! path: /usr/local/bin/bcoseth
  2. 执行生成节点身份NodeId的操作, 执行命令:bcoseth --gennetworkrlp /mydata/nodedata-1/data/network.rlp 执行失败,返回如下信息: ubuntu@ubuntu:/mydata/nodedata-1/data$ bcoseth --gennetworkrlp /mydata/nodedata-1/data/network.rlp 2018-02-05 13:41:42,156 TRACE [default] [dev::eth::ChainParams dev::eth::ChainParams::loadConfig(const string&, const h256&) const] [/home/ubuntu/bcos /libethereum/ChainParams.cpp:124] genesisStateStr = {"0000000000000000000000000000000000000001":{"precompiled":{"linear":{"base":3000,"word":0},"name" :"ecrecover"}},"0000000000000000000000000000000000000002":{"precompiled":{"linear":{"base":60,"word":12},"name":"sha256"}},"00000000000000000000000000 00000000000003":{"precompiled":{"linear":{"base":600,"word":120},"name":"ripemd160"}},"0000000000000000000000000000000000000004":{"precompiled":{"line ar":{"base":15,"word":3},"name":"identity"}},"004f9d39c8424e7f86004622cef21a0bbe140bfa":{"balance":"999999999999000000000000000000"},"00dcf3367eab3b34 d6a598f453d1aee9146b50f3":{"balance":"999999999999000000000000000000"}} 2018-02-05 13:41:42,156 INFO [default] cp.dataDir=/mydata/nodedata-1/,cp.wallet=/mydata/nodedata-1//keys.info,cp.keystoreDir=/mydata/nodedata-1//keyst ore/,cp.logFileConf=/mydata/nodedata-1//log.conf,cp.storagePath=/mydata/nodedata-1// 2018-02-05 13:41:42,156 TRACE [default] [int main(int, char**)] [/home/ubuntu/bcos/eth/main.cpp:468] Main:: author: 000000000000000000000000000000000 0000000 terminate called after throwing an instance of 'boost::exception_detail::clone_impl' what(): FileError Aborted (core dumped)
toxotguo commented 6 years ago

@yeziyjy 请检查目录/mydata/nodedata-1/data/是否存在,并且具有写权限