新手问答 我在搭建一个测试网络, 创始节点启动好了, 然后, 启动第二个节点后无法同步区块.

Akagi201 · 2018年04月26日 · 最后由 Akagi201 回复于 2018年04月26日 · 1198 次阅读

下面这个错误, 是什么问题, 有人知道吗?

3203706ms thread-0 net_plugin.cpp:1456 recv_block ] second attempt to retrive block 1 failed
3203706ms thread-0 net_plugin.cpp:1268 request_next_chunk ] Unable to continue syncing at this time
3203706ms thread-0 net_plugin.cpp:1986 operator() ] Error reading message from xx.xx.xx.xx:9876: Bad file descriptor
3233503ms thread-0 net_plugin.cpp:1854 connect ] host: xx.xx.xx.xx port: 9876
3233657ms thread-0 chain_controller.cpp:1540 validate_block_heade ] head_block_time 2018-04-24T12:00:00.000, next_block 2018-04-26T07:13:52.000, block_interval 500
3233657ms thread-0 chain_controller.cpp:1542 validate_block_heade ] Did not produce block within block_interval 500ms, took 155632000ms)
3233658ms thread-0 chain_controller.cpp:260 _push_block ] Failed to push new block:
10 assert_exception: Assert Exception
false: implicit transaction not found {"status":"executed","kcpu_usage":2,"net_usage_words":38,"id":"66771c0c541e81ff223ec37d2d21545b58090b1f9af350a3f3cea590555fca8a"}
{"trx":{"status":"executed","kcpu_usage":2,"net_usage_words":38,"id":"66771c0c541e81ff223ec37d2d21545b58090b1f9af350a3f3cea590555fca8a"}}
thread-0 chain_controller.cpp:907 operator()

{"next_block.block_num()":1}
thread-0 chain_controller.cpp:970 __apply_block
3233659ms thread-0 net_plugin.cpp:2480 handle_message ] unable to accept block on assert exception Assert Exception (10)
false: implicit transaction not found {"status":"executed","kcpu_usage":2,"net_usage_words":38,"id":"66771c0c541e81ff223ec37d2d21545b58090b1f9af350a3f3cea590555fca8a"}

from xx.xx.xx.xx:9876 - 3a318db
3233659ms thread-0 net_plugin.cpp:1456 recv_block ] second attempt to retrive block 1 failed
3233659ms thread-0 net_plugin.cpp:1268 request_next_chunk ] Unable to continue syncing at this time
3233660ms thread-0 net_plugin.cpp:1986 operator() ] Error reading message from xx.xx.xx.xx:9876: Bad file descriptor

共收到 8 条回复

第二个节点是不是有历史数据啊?

strahe 回复

全新的 docker 啊, 新启动的

Akagi201 回复

xx.xx.xx.xx 这个ip形式是你故意隐藏掉的还是就是这样?

@lome 帮看一下

strahe 回复

我隐藏的啊, 原始是有 ip 的

可以把data里面的数据清除一下。再nodeos --resync启动一下。错误原因应该是你的本地有数据,但是你又用了nodeos --resync 所以报错了。

删除 docker 重新启动, 又好了.... 我真的服了.

Akagi201 回复

官方的docker镜像数据是存在容器里面的, 没有规范设计, 如果你想把数据映射出来的话, 把/root/.local/share/eosio/nodeos这个目录挂载到宿主机就可以.

strahe 回复

好的, 谢谢

Akagi201 关闭了讨论 05月16日 19:33
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册