eos icon indicating copy to clipboard operation
eos copied to clipboard

error: generating default genesis file failed when run "nodeos"

Open Justin-ye opened this issue 8 years ago • 3 comments

in the official wiki "Creating and Launching a Single Node Testnet"

JiQin-MacBook-Pro:nodeos $ nodeos 1321454ms thread-0 chain_plugin.cpp:130 plugin_initialize ] initializing chain plugin 1321454ms thread-0 chain_plugin.cpp:194 plugin_initialize ] generating default genesis file /path/to/eos/source/genesis.json 1321454ms thread-0 main.cpp:106 main ] 11 eof_exception: End Of File unexpected end of file {} thread-0 json.cpp:427 variant_from_stream

Justin-ye avatar May 24 '18 13:05 Justin-ye

nerf:nodeos dlarimer$ ./nodeos --delete
1437274ms thread-0   chain_plugin.cpp:149          plugin_initialize    ] initializing chain plugin
1437274ms thread-0   chain_plugin.cpp:213          plugin_initialize    ] Deleting state database and blocks
1437296ms thread-0   http_plugin.cpp:264           plugin_initialize    ] configured http to listen on 127.0.0.1:8888
1437296ms thread-0   net_plugin.cpp:2862           plugin_initialize    ] Initialize net plugin
1437296ms thread-0   net_plugin.cpp:2883           plugin_initialize    ] host: 0.0.0.0 port: 9876
1437296ms thread-0   net_plugin.cpp:2955           plugin_initialize    ] my node_id is 9aabc0de08034e785d1ec30fff8271780ed2437800691b46a79c96e837f26da3
1437296ms thread-0   main.cpp:102                  main                 ] nodeos version 03c01b76
1437296ms thread-0   main.cpp:103                  main                 ] eosio root is /Users/dlarimer/Library/Application Support
1437296ms thread-0   controller.cpp:1089           startup              ] No head block in fork db, perhaps we need to replay
1437296ms thread-0   controller.cpp:308            initialize_fork_db   ]  Initializing new blockchain with genesis state
1437329ms thread-0   chain_plugin.cpp:320          plugin_startup       ] 3050000 action_validate_exception: action exception
max transaction cpu usage must be less than max block cpu usage
    {}
    thread-0  chain_config.cpp:24 validate
1437330ms thread-0   chain_plugin.cpp:320          plugin_startup       ] my->genesis_file.generic_string(): /Users/dlarimer/Library/Application Support/eosio/nodeos/config/genesis.json
1437330ms thread-0   fork_database.cpp:96          close                ] states.size(): 1
Segmentation fault: 11
nerf:nodeos dlarimer$ ./nodeos
1452744ms thread-0   chain_plugin.cpp:149          plugin_initialize    ] initializing chain plugin
1452745ms thread-0   main.cpp:119                  main                 ] database dirty flag set (likely due to unclean shutdown): replay required

bytemaster avatar May 25 '18 05:05 bytemaster

nodeos should start cleanly with no arguments, nightly tests should verify this

bytemaster avatar May 25 '18 05:05 bytemaster

@Justin-ye it appears as if you are using an older version based on the line number "chain_plugin.cpp:194 plugin_initialize". Please retry with the latest changes.

larryk85 avatar May 25 '18 15:05 larryk85