-
Notifications
You must be signed in to change notification settings - Fork 3.8k
“unknown key” when "eosc set contract currency" #510
Comments
Please start eosd with --skip-transaction-signatures option:
./eosd/eosd --skip-transaction-signatures
or
Import your private key to your wallet
Refer to https://github.com/EOSIO/eos#smartcontractexample <https://github.com/EOSIO/eos#smartcontractexample> for more information.
… On 27 Sep 2017, at 5:51 PM, KongKong ***@***.***> wrote:
1f020c2c5445f6d350ae97b079e256aa2fea7e513caa1129b6bb4105d6c9b6d4a90b1e55d2f839c505c3be9b42dc3e5be28e2737215f95e9260de26c7fdf793dd5
|
@learnforpractice |
Try the following command
./eosd/eosd —resync-blockchain --skip-transaction-signatures
or delete data-dir and run eosd again.
… On 27 Sep 2017, at 5:51 PM, KongKong ***@***.*** ***@***.***>> wrote:
I ran a node on MacOS Sierra 10.12.6 successfully, but I got an error "http: unknown key" when I upload the sample contract "currency" by using the following command <https://github.com/EOSIO/eos#uploadsmartcontract> :
./eosc set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi
I don't know why, and then, when I tried to restart eosd, it shows me a "segmentation fault " error and can not start eosd again.
Can anyone help me?
This is the log:
➜ eos git:(master) ✗ ./build/programs/eosd/eosd
2783369ms thread-0 chain_plugin.cpp:80 plugin_initialize ] initializing chain plugin
2783372ms thread-0 producer_plugin.cpp:159 plugin_initialize ] Public Key: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
2783373ms thread-0 wallet_plugin.cpp:30 plugin_initialize ] initializing wallet plugin
2783373ms thread-0 http_plugin.cpp:132 plugin_initialize ] host: 127.0.0.1 port: 8888
2783375ms thread-0 http_plugin.cpp:135 plugin_initialize ] configured http to listen on 127.0.0.1:8888
2783375ms thread-0 net_plugin.cpp:1205 plugin_initialize ] Initialize net plugin
2783375ms thread-0 net_plugin.cpp:1224 plugin_initialize ] host: 0.0.0.0 port: 9876
2783384ms thread-0 block_log.cpp:88 open ] Opening block log at /Users/liusong/Downloads/BlockChain/eos/data-dir/blocks/blocks.log
2784414ms thread-0 chain_plugin.cpp:166 plugin_startup ] starting chain in read/write mode
2784414ms thread-0 chain_plugin.cpp:171 plugin_startup ] Blockchain started; head block is #0, genesis timestamp is 2017-09-27T10:00:00
2784429ms thread-0 producer_plugin.cpp:170 plugin_startup ] producer plugin: plugin_startup() begin
2784429ms thread-0 producer_plugin.cpp:175 plugin_startup ] Launching block production for 21 producers.
*
------ NEW CHAIN ------ *
Welcome to EOS! - *
----------------------- *
*
2784429ms thread-0 producer_plugin.cpp:185 plugin_startup ] producer plugin: plugin_startup() end
2784429ms thread-0 http_plugin.cpp:147 plugin_startup ] start processing http thread
2784431ms thread-0 http_plugin.cpp:195 plugin_startup ] start listening for http requests
2784434ms thread-0 http_plugin.cpp:200 plugin_startup ] http io service exit
2784434ms thread-0 wallet_api_plugin.cpp:64 plugin_startup ] starting wallet_api_plugin
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/create
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/get_public_keys
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/import_key
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/list_keys
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/list_wallets
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/lock
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/lock_all
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/open
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/set_timeout
2784437ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/sign_transaction
2784438ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/wallet/unlock
2784438ms thread-0 chain_api_plugin.cpp:45 plugin_startup ] starting chain_api_plugin
2784439ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/abi_bin_to_json
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/abi_json_to_bin
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/get_account
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/get_block
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/get_code
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/get_info
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/get_required_keys
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/get_table_rows
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/push_block
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/push_transaction
2784440ms thread-0 http_plugin.cpp:224 add_handler ] add api url: /v1/chain/push_transactions
3553083ms thread-0 wallet.cpp:182 save_wallet_file ] saving wallet to file /Users/liusong/Downloads/BlockChain/eos/data-dir/./default.wallet
774241ms thread-0 wallet.cpp:182 save_wallet_file ] saving wallet to file /Users/liusong/Downloads/BlockChain/eos/data-dir/./default.wallet
3559379ms thread-0 wallet.cpp:182 save_wallet_file ] saving wallet to file /Users/liusong/Downloads/BlockChain/eos/data-dir/./default.wallet
391318ms thread-0 http_plugin.cpp:186 operator() ] http: unknown key
544341ms thread-0 http_plugin.cpp:186 operator() ] http: unknown key
16764ms thread-0 chain_api_plugin.cpp:60 operator() ] Exception encountered while processing chain.push_transaction: {"code":3030011,"name":"tx_duplicate","message":"duplicate transaction","stack":[{"context":{"level":"error","file":"chain_controller.cpp","line":836,"method":"validate_uniqueness","hostname":"","thread_name":"thread-0","timestamp":"2017-09-27T09:00:16"},"format":"Transaction is not unique","data":{}},{"context":{"level":"warn","file":"chain_controller.hpp","line":319,"method":"validate_transaction","hostname":"","thread_name":"thread-0","timestamp":"2017-09-27T09:00:16"},"format":"","data":{"trx":{"refBlockNum":0,"refBlockPrefix":0,"expiration":"2017-09-27T10:00:00","scope":["eos","inita"],"readscope":[],"messages":[{"code":"eos","type":"newaccount","authorization":[{"account":"inita","permission":"active"}],"data":"000000000093dd740000001e4d75af460100000001029dfb3843afcadee9e34d859f5c9021cd1494f9a3793ef4c979a8912ff595c4d50100000100000001030998a956422536d5f54110e89404edad0eb37f2c010b667d82c0679d82b89bc5010000010000000001000000000093dd7400000000a8ed32320100010000000000000004454f5300000000"}],"signatures":["1f020c2c5445f6d350ae97b079e256aa2fea7e513caa1129b6bb4105d6c9b6d4a90b1e55d2f839c505c3be9b42dc3e5be28e2737215f95e9260de26c7fdf793dd5"]}}},{"context":{"level":"warn","file":"chain_controller.cpp","line":971,"method":"apply_transaction","hostname":"","thread_name":"thread-0","timestamp":"2017-09-27T09:00:16"},"format":"","data":{"trx":{"refBlockNum":0,"refBlockPrefix":0,"expiration":"2017-09-27T10:00:00","scope":["eos","inita"],"readscope":[],"messages":[{"code":"eos","type":"newaccount","authorization":[{"account":"inita","permission":"active"}],"data":"000000000093dd740000001e4d75af460100000001029dfb3843afcadee9e34d859f5c9021cd1494f9a3793ef4c979a8912ff595c4d50100000100000001030998a956422536d5f54110e89404edad0eb37f2c010b667d82c0679d82b89bc5010000010000000001000000000093dd7400000000a8ed32320100010000000000000004454f5300000000"}],"signatures":["1f020c2c5445f6d350ae97b079e256aa2fea7e513caa1129b6bb4105d6c9b6d4a90b1e55d2f839c505c3be9b42dc3e5be28e2737215f95e9260de26c7fdf793dd5"]}}},{"context":{"level":"warn","file":"chain_controller.cpp","line":263,"method":"push_transaction","hostname":"","thread_name":"thread-0","timestamp":"2017-09-27T09:00:16"},"format":"","data":{"trx":{"refBlockNum":0,"refBlockPrefix":0,"expiration":"2017-09-27T10:00:00","scope":["eos","inita"],"readscope":[],"messages":[{"code":"eos","type":"newaccount","authorization":[{"account":"inita","permission":"active"}],"data":"000000000093dd740000001e4d75af460100000001029dfb3843afcadee9e34d859f5c9021cd1494f9a3793ef4c979a8912ff595c4d50100000100000001030998a956422536d5f54110e89404edad0eb37f2c010b667d82c0679d82b89bc5010000010000000001000000000093dd7400000000a8ed32320100010000000000000004454f5300000000"}],"signatures":["1f020c2c5445f6d350ae97b079e256aa2fea7e513caa1129b6bb4105d6c9b6d4a90b1e55d2f839c505c3be9b42dc3e5be28e2737215f95e9260de26c7fdf793dd5"]}}}]}
74884ms thread-0 wallet_api_plugin.cpp:87 operator() ] Exception encountered while processing wallet.import_key: {"code":10,"name":"assert_exception","message":"Assert Exception","stack":[{"context":{"level":"error","file":"wallet.cpp","line":150,"method":"import_key","hostname":"","thread_name":"thread-0","timestamp":"2017-09-27T09:01:14"},"format":"!"Key already in wallet": ","data":{}}]}
120223ms thread-0 http_plugin.cpp:186 operator() ] http: unknown key
296467ms thread-0 net_plugin.cpp:1282 plugin_shutdown ] shutdown..
296467ms thread-0 net_plugin.cpp:1285 plugin_shutdown ] close acceptor
296468ms thread-0 net_plugin.cpp:1288 plugin_shutdown ] close 0 connections
296468ms thread-0 net_plugin.cpp:1297 plugin_shutdown ] exit shutdown
296469ms thread-0 database_plugin.cpp:58 plugin_shutdown ] closing database
296469ms thread-0 database_plugin.cpp:60 plugin_shutdown ] database closed successfully
[1] 5266 segmentation fault ./build/programs/eosd/eosd
➜ eos git:(master) ✗ ./build/programs/eosd/eosd
327652ms thread-0 chain_plugin.cpp:80 plugin_initialize ] initializing chain plugin
327652ms thread-0 producer_plugin.cpp:159 plugin_initialize ] Public Key: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
327652ms thread-0 wallet_plugin.cpp:30 plugin_initialize ] initializing wallet plugin
327653ms thread-0 http_plugin.cpp:132 plugin_initialize ] host: 127.0.0.1 port: 8888
327653ms thread-0 http_plugin.cpp:135 plugin_initialize ] configured http to listen on 127.0.0.1:8888
327653ms thread-0 net_plugin.cpp:1205 plugin_initialize ] Initialize net plugin
327654ms thread-0 net_plugin.cpp:1224 plugin_initialize ] host: 0.0.0.0 port: 9876
327661ms thread-0 block_log.cpp:88 open ] Opening block log at /Users/liusong/Downloads/BlockChain/eos/data-dir/blocks/blocks.log
eosd(9358,0x7fffc707d3c0) malloc: *** error for object 0x105831a50: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[1] 9358 abort ./build/programs/eosd/eosd
➜ eos git:(master) ✗ ./build/programs/eosd/eosd
350014ms thread-0 chain_plugin.cpp:80 plugin_initialize ] initializing chain plugin
350014ms thread-0 producer_plugin.cpp:159 plugin_initialize ] Public Key: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
350015ms thread-0 wallet_plugin.cpp:30 plugin_initialize ] initializing wallet plugin
350015ms thread-0 http_plugin.cpp:132 plugin_initialize ] host: 127.0.0.1 port: 8888
350016ms thread-0 http_plugin.cpp:135 plugin_initialize ] configured http to listen on 127.0.0.1:8888
350016ms thread-0 net_plugin.cpp:1205 plugin_initialize ] Initialize net plugin
350016ms thread-0 net_plugin.cpp:1224 plugin_initialize ] host: 0.0.0.0 port: 9876
350022ms thread-0 block_log.cpp:88 open ] Opening block log at /Users/liusong/Downloads/BlockChain/eos/data-dir/blocks/blocks.log
^C
➜ eos git:(master) ✗ ./build/programs/eosd/eosd
430976ms thread-0 chain_plugin.cpp:80 plugin_initialize ] initializing chain plugin
430977ms thread-0 producer_plugin.cpp:159 plugin_initialize ] Public Key: EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
430977ms thread-0 wallet_plugin.cpp:30 plugin_initialize ] initializing wallet plugin
430977ms thread-0 http_plugin.cpp:132 plugin_initialize ] host: 127.0.0.1 port: 8888
430978ms thread-0 http_plugin.cpp:135 plugin_initialize ] configured http to listen on 127.0.0.1:8888
430978ms thread-0 net_plugin.cpp:1205 plugin_initialize ] Initialize net plugin
430978ms thread-0 net_plugin.cpp:1224 plugin_initialize ] host: 0.0.0.0 port: 9876
430982ms thread-0 block_log.cpp:88 open ] Opening block log at /Users/liusong/Downloads/BlockChain/eos/data-dir/blocks/blocks.log
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#510>, or mute the thread <https://github.com/notifications/unsubscribe-auth/Ad6ZPv3xmrx9wU3HOfulE9Px1d4G8R9Wks5smhq0gaJpZM4PlgRF>.
|
Assuming --resync-blockchain fixed your issue. Closing. |
Problem still seems to persist despite adding the options --resync-blockchain --skip-transaction-signatures - Any solution? Adding -s to the eosc command gets a new set of errors
|
What are your steps to reproduce? What is the complete error? |
Steps followed as per the link here Error occurs on Note the added eosd server is run as Error log from eosc terminal is as follows:
|
Did you create the currency account:
|
I'm having the same issue. Steps to reproduce: follow instructions in readme up to this point:
At which point I get the "unknown key" error. Gathering some intel from the issues section here, I decided to run eosc output:
eosd output:
System: Ubuntu 16.04 server |
I ran a node on MacOS Sierra 10.12.6 successfully, but I got an error "http: unknown key" when I upload the sample contract "currency" by using the following command :
./eosc set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi
I don't know why, and then, when I tried to restart eosd, it shows me a "segmentation fault " error and can not start eosd again.
Can anyone help me?
This is the log:
The text was updated successfully, but these errors were encountered: