eos icon indicating copy to clipboard operation
eos copied to clipboard

why doesn't my single node testnet produce blocks

Open GeneSourceCode opened this issue 8 years ago • 2 comments

I start my single node testnet with command

/usr/local/bin/nodeos --enable-stale-production true --producer-name eosio --signature-provider=EOS6ttqSHFAtVoQgc6d9VPTCvAVU4sFCwdYHojbzjoTX6wV8fwLyW=KEY:5HwPk4pD1Tf1VGXW77rjE6AGLj9E7VUTzjgmgGRPoK886UEyS5y --http-server-address 0.0.0.0:8888 --p2p-listen-endpoint 0.0.0.0:9876 --p2p-server-address 127.0.0.1:9876 --agent-name eosio --p2p-max-nodes-per-host 1000 --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::http_plugin --plugin eosio::history_api_plugin --plugin eosio::net_plugin --plugin eosio::net_api_plugin --plugin eosio::bnet_plugin --plugin eosio::wallet_api_plugin --config-dir /root/.nodes/eosio --data-dir /root/.nodes/eosio --genesis-json /root/.nodes/eosio/genesis.json --delete-all-blocks

The test net is supposed to start producing blocks. But the output stops. The json file refered in the command is shown as follows

{ "initial_timestamp": "2018-06-09T10:58:49", "initial_key": "EOS6ttqSHFAtVoQgc6d9VPTCvAVU4sFCwdYHojbzjoTX6wV8fwLyW", "initial_chain_id": "0000000000000000000000000000000000000000000000000000000000000000", "initial_configuration": { "max_block_net_usage": "1048576", "target_block_net_usage_pct": "1000", "max_transaction_net_usage": "524288", "base_per_transaction_net_usage": "12", "net_usage_leeway": "500", "context_free_discount_net_usage_num": "20", "context_free_discount_net_usage_den": "100", "max_block_cpu_usage": "100000", "target_block_cpu_usage_pct": "500", "max_transaction_cpu_usage": "50000", "min_transaction_cpu_usage": "100", "max_transaction_lifetime": "3600", "deferred_trx_expiration_window": "600", "max_transaction_delay": "3888000", "max_inline_action_size": "4096", "max_inline_action_depth": "4", "max_authority_depth": "6", "max_generated_transaction_count": "16" }
}

what is the problem with my launching command?

GeneSourceCode avatar Jun 09 '18 03:06 GeneSourceCode

I add operations adviced in tutorial but still get no block produced. the following is the whole log. please help!

/usr/local/bin/cleos -u http://127.0.0.1:8888/ create key
imported private key for: EOS6o4DSQwXFtJip4BjuzrJQVz8pTqJA1Y4FGSdWfjQA8yPTcjW8g
1172570ms thread-0   main.cpp:2584                 main                 ] Failed with error: Assert Exception (10)
!"Key already in wallet":

/usr/local/bin/nodeos --enable-stale-production true --producer-name eosio --signature-provider=EOS6o4DSQwXFtJip4BjuzrJQVz8pTqJA1Y4FGSdWfjQA8yPTcjW8g=KEY:5KBL3JmS5g6t7yPJ1gG4NsFVQc7E1wtmJVWcfxguDrPiHepdED9 --http-server-address 0.0.0.0:8888 --p2p-listen-endpoint 0.0.0.0:9876 --p2p-server-address 127.0.0.1:9876 --agent-name eosio --p2p-max-nodes-per-host 1000 --plugin eosio::producer_plugin --plugin eosio::chain_api_plugin --plugin eosio::http_plugin --plugin eosio::history_api_plugin --plugin eosio::net_plugin --plugin eosio::net_api_plugin --plugin eosio::bnet_plugin --plugin eosio::wallet_api_plugin --config-dir /root/.nodes/eosio --data-dir /root/.nodes/eosio --genesis-json /root/.nodes/eosio/genesis.json --replay-blockchain
1172583ms thread-0   chain_plugin.cpp:200          plugin_initialize    ] initializing chain plugin
1172583ms thread-0   chain_plugin.cpp:306          plugin_initialize    ] Replay requested: deleting state database
1172583ms thread-0   chain_plugin.cpp:338          plugin_initialize    ] Using genesis state provided in '/root/.nodes/eosio/genesis.json'
1172583ms thread-0   chain_plugin.cpp:344          plugin_initialize    ] Starting up fresh blockchain with provided genesis state.
1172596ms thread-0   http_plugin.cpp:285           plugin_initialize    ] configured http to listen on 0.0.0.0:8888
1172596ms thread-0   net_plugin.cpp:2815           plugin_initialize    ] Initialize net plugin
1172596ms thread-0   net_plugin.cpp:2836           plugin_initialize    ] host: 0.0.0.0 port: 9876
1172596ms thread-0   net_plugin.cpp:2908           plugin_initialize    ] my node_id is d44a5e99e711a9f4426038d4b25266f2dfa02b95f1f3f42903a867a9083b44b5
1172596ms thread-0   net_api_plugin.cpp:97         plugin_initialize    ]
*************************************
*                                   *
*  --  Net API NOT on localhost  -- *
*                                   *
*   this may be abused if exposed   *
*                                   *
*************************************

1172596ms thread-0   bnet_plugin.cpp:1219          plugin_initialize    ] Initialize bnet plugin
1172596ms thread-0   bnet_plugin.cpp:1229          plugin_initialize    ] ip_port: 0.0.0.0:4321 host: 0.0.0.0 port: 4321
1172596ms thread-0   wallet_plugin.cpp:41          plugin_initialize    ] initializing wallet plugin
1172596ms thread-0   wallet_api_plugin.cpp:114     plugin_initialize    ]
*************************************
*                                   *
*  --   Wallet NOT on localhost  -- *
*  - Password and/or Private Keys - *
*  - are transferred unencrypted. - *
*                                   *
*************************************

1172596ms thread-0   main.cpp:104                  main                 ] nodeos version a9526dcd
1172596ms thread-0   main.cpp:105                  main                 ] eosio root is /root/.local/share
1172596ms thread-0   controller.cpp:1142           startup              ] No head block in fork db, perhaps we need to replay
1172597ms thread-0   controller.cpp:307            initialize_fork_db   ]  Initializing new blockchain with genesis state
1172619ms thread-0   chain_plugin.cpp:409          plugin_startup       ] starting chain in read/write mode
1172619ms thread-0   chain_plugin.cpp:414          plugin_startup       ] Blockchain started; head block is #1, genesis timestamp is 2018-06-09T11:19:32.000
1172619ms thread-0   producer_plugin.cpp:577       plugin_startup       ] producer plugin:  plugin_startup() begin
1172619ms thread-0   producer_plugin.cpp:592       plugin_startup       ] Launching block production for 1 producers at 2018-06-09T03:19:32.619.
1172619ms thread-0   producer_plugin.cpp:604       plugin_startup       ] producer plugin:  plugin_startup() end
1172619ms thread-0   http_plugin.cpp:323           plugin_startup       ] start listening for http requests
1172619ms thread-0   chain_api_plugin.cpp:75       plugin_startup       ] starting chain_api_plugin
1172619ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/abi_bin_to_json
1172619ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/abi_json_to_bin
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_account
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_block
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_code
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_currency_balance
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_currency_stats
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_info
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_producers
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_required_keys
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/get_table_rows
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/push_block
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/push_transaction
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/chain/push_transactions
1172620ms thread-0   history_api_plugin.cpp:38     plugin_startup       ] starting history_api_plugin
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/history/get_actions
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/history/get_controlled_accounts
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/history/get_key_accounts
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/history/get_transaction
1172620ms thread-0   net_plugin.cpp:2920           plugin_startup       ] starting listener, max clients is 25
1172620ms thread-0   net_api_plugin.cpp:63         plugin_startup       ] starting net_api_plugin
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/net/connect
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/net/connections
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/net/disconnect
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/net/status
1172620ms thread-0   bnet_plugin.cpp:1244          plugin_startup       ] bnet startup
1172620ms thread-0   wallet_api_plugin.cpp:68      plugin_startup       ] starting wallet_api_plugin
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/create
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/create_key
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/get_public_keys
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/import_key
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/list_keys
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/list_wallets
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/lock
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/lock_all
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/open
1172620ms thread-1   bnet_plugin.cpp:1288          operator()           ] start thread
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/set_timeout
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/sign_digest
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/sign_transaction
1172620ms thread-0   http_plugin.cpp:369           add_handler          ] add api url: /v1/wallet/unlock
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create key
imported private key for: EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.bpay EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: c3543d187692a316b40e40a57fa97e161f8526664c0f09b57cc3120254aee3a6  200 bytes  130 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.msig EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: 7bd8b839a88a2140a442b94adf48f329e2f2e74ef1276ffc940647a4a77d6293  200 bytes  112 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.names EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: 8788896b02cd8d8913ac24a91319705603009ea2f67c4c2e0eb97c5d58fc7d67  200 bytes  104 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.ram EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: 72f5e0a4c5bee9b771cae6388474c8e23d732d735065e6b11ac5cfd09982c6f0  200 bytes  111 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.ramfee EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: b88823a76cb50f550dba683a47c8b76832a5dd55196af5556935d90343df960f  200 bytes  108 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.saving EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: 58f644e1c71930ba2e633ece031ce1f79ce726c900f13037b57fc6665e8db09b  200 bytes  105 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.stake EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: 12dccbea8d0b923336cf6af7b6d8c04c3d6d7f527335aede048c95ce831522af  200 bytes  112 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.token EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: 47f41a074646537013f138626e2a1eb20d5ecabedd1d124c34c3f138a419ad54  200 bytes  105 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ create account eosio eosio.vpay EOS8WoDVwV677VzocSim3UcXnTpzGuRg2Md37wvQTuCAYUz9WhTJd
executed transaction: 2bd5293acccd12c0ba6740607c980ee36d34e7fa20e52e9d317d055ad528d79b  200 bytes  121 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ set contract eosio.token ./contracts/eosio.token -p eosio.token
executed transaction: 4e441ef8bb3160d66c436c397a2300fed44ae433ebe6b2030c0a2e67c1edc452  8096 bytes  679 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ set contract eosio.msig ./contracts/eosio.msig -p eosio.msig
executed transaction: cfa06ca60b22e68c9222af390543255baba2b08ca277f1f47e844068352e93e9  8856 bytes  723 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ push action eosio.token create {"issuer":"eosio","maximum_supply":"2000000000.0000 SYS"} -p eosio.token
executed transaction: 589609f40e2cd5758164015de1171694e3b642c2131f2873cece347d5da8a342  120 bytes  189 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ push action eosio.token issue {"to":"eosio","quantity":"2000000000.0000 SYS","memo":"issue all system coin to eosio"} -p eosio
executed transaction: 323becca5f5b8090d11143e125762d23e193066e756b3859e8673af5e0f15cbd  152 bytes  290 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ set contract eosio ./contracts/eosio.system -p eosio
executed transaction: 40167510d6e4330e8a6640b6444cffb36923c61020dfc5ea0bf9a323b0ec2436  36288 bytes  3258 us
warning: transaction executed locally, but may not be confirmed by the network yet
/usr/local/bin/cleos -u http://127.0.0.1:8888/ push action eosio setpriv ["eosio.msig",1] -p eosio@active
executed transaction: 7be31f7eff0adba7dfdd151907346f73ca6b9718488ccc1ada81d164ee90a391  104 bytes  368 us
warning: transaction executed locally, but may not be confirmed by the network yet

GeneSourceCode avatar Jun 09 '18 03:06 GeneSourceCode

You need --private-key '["EOS6ttqSHFAtVoQgc6d9VPTCvAVU4sFCwdYHojbzjoTX6wV8fwLyW","corresponding_private_key"]' as well. The genesis.json initial_key pair needs to be available so eosio can sign blocks.

jgiszczak avatar Jun 13 '18 23:06 jgiszczak