Jump to content
FIBOS社区
  • 0
Sign in to follow this  
FIBOS 运营 颖了個颖

问题贴!来自电报群 FIBOS开发者 :chens

Question

6 answers to this question

Recommended Posts

  • 0

删除genesis.json之后报数据库问题

2018-11-13T01:11:41.340 thread-0   chain_plugin.cpp:648          plugin_initialize    ] 13 St13runtime_error: database dirty flag set

rethrow database dirty flag set: 

    {"what":"database dirty flag set"}

    thread-0  chain_plugin.cpp:648 plugin_initialize

/data/FIBOS/testnet/product_node.js:42:7

fibos.start();

Share this post


Link to post
Share on other sites
  • 0
12 小时前 , lanlyhs 说:

方法一 清空所有区块数据 rm -rf fibos_*

方法二 删除 ` "genesis-json": "genesis.json"` 这一行

 

而且我并不想删除全部数据,因为同步block耗时太长。已经同步好久的数据了

Share this post


Link to post
Share on other sites
  • 0
4 分钟前 , chens 说:

而且我并不想删除全部数据,因为同步block耗时太长。已经同步好久的数据了

删除 ` "genesis-json": "genesis.json"` 这一行

Share this post


Link to post
Share on other sites
  • 0
3 分钟前 , lanlyhs 说:

删除 ` "genesis-json": "genesis.json"` 这一行

删除这一行就报错啊

删除后:

fibos.load('http', {

        'http-server-address': '0.0.0.0:8870'

});

 

fibos.load('net', {

        'p2p-listen-endpoint': '0.0.0.0:9870',

        'p2p-peer-address': ['p2p-testnet.fibos.fo:9870','p2p-testnet-02.fibos.fo:9870']

});

 

fibos.load('producer', {

        'producer-name': config['producer-name'],

        'enable-stale-production': true,

        'private-key': JSON.stringify([config['public-key'], config['private-key']])

});

 

fibos.load('chain',{

//      'genesis-json':'genesis.json'

//      "delete-all-blocks": true

});

fibos.load('chain_api');

 

fibos.start();

 

报错:

 

Error: 13 St13runtime_error: database dirty flag set

rethrow database dirty flag set: 

    {"what":"database dirty flag set"}

    thread-0  chain_plugin.cpp:648 plugin_initialize

    at /data/FIBOS/testnet/product_node.js:42:7

Share this post


Link to post
Share on other sites
  • 0
2 小时前 , chens 说:

删除这一行就报错啊

删除后:

 fibos.load('http', {

        'http-server-address': '0.0.0.0:8870'

});

 

fibos.load('net', {

        'p2p-listen-endpoint': '0.0.0.0:9870',

        'p2p-peer-address': ['p2p-testnet.fibos.fo:9870','p2p-testnet-02.fibos.fo:9870']

});

 

fibos.load('producer', {

        'producer-name': config['producer-name'],

        'enable-stale-production': true,

        'private-key': JSON.stringify([config['public-key'], config['private-key']])

});

 

fibos.load('chain',{

//      'genesis-json':'genesis.json'

//      "delete-all-blocks": true

});

fibos.load('chain_api');

 

fibos.start();

 

报错:

 

Error: 13 St13runtime_error: database dirty flag set

rethrow database dirty flag set: 

     {"what":"database dirty flag set"}

     thread-0  chain_plugin.cpp:648 plugin_initialize

    at /data/FIBOS/testnet/product_node.js:42:7

数据已经脏了 ,需要重新同步

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×