EOS nodeos 常见问题错误故障排除解决

Memory does not match data

Error:”Memory does not match data” ,即“内存不匹配数据”重启时出错。

如果当你启动nodeos时遇到了这个错误,例如St9exception: content of memory does not match data expected by executable,尝试使用下列参数选项之一重新启动nodeos(可以使用nodeos --help获得这些参数选项的完整列表)。

Command Line Options for eosio::chain_plugin:
    --fix-reversible-blocks               recovers reversible block database if 
                                          that database is in a bad state
    --force-all-checks                    do not skip any checks that can be 
                                          skipped while replaying irreversible 
                                          blocks
    --replay-blockchain                   clear chain state database and replay 
                                          all blocks
    --hard-replay-blockchain              clear chain state database, recover as 
                                          many blocks as possible from the block 
                                          log, and then replay those blocks
    --delete-all-blocks                   clear chain state database and block 
                                          log

Could not grow database file to requested size.

Error:”Could not grow database file to requested size.” 即“无法将数据库文件增长到请求的大小。”

--shared-memory-size-mb 1024来启动nodeos。1 GB共享内存文件允许大约一百万个交易。

我运行/连接到什么版本的EOSIO?

如果可以使用默认值,那么cleos get info将输出一个包含server_version的字段的块。如果你的nodeos没有使用默认值,那么你需要知道nodeos的URL。在这种情况下,使用你的URL参数的nodeos命令:

cleos --url http://localhost:8888 get info

只关注当前块的版本行:

cleos --url http://localhost:8888 get info | grep server_version

分享一个EOS智能合约与DApp开发入门教程,欢迎大家来学习互动:

EOS教程

本教程帮助你快速入门EOS区块链去中心化应用的开发,内容涵盖EOS工具链、账户与钱包、发行代币、智能合约开发与部署、使用代码与智能合约交互等核心知识点,最后综合运用React和EOS的各知识点完成一个便签DApp的开发。

  • web3j教程,主要是针对java和android程序员进行区块链以太坊开发的web3j详解。
  • 以太坊教程,主要介绍智能合约与dapp应用开发,适合入门。
  • 以太坊开发,主要是介绍使用node.js、mongodb、区块链、ipfs实现去中心化电商DApp实战,适合进阶。
  • python以太坊,主要是针对python工程师使用web3.py进行区块链以太坊开发的详解。
  • php以太坊,主要是介绍使用php进行智能合约开发交互,进行账号创建、交易、转账、代币开发以及过滤器和事件等内容。

猜你喜欢

转载自blog.csdn.net/mongo_node/article/details/81263182
eos