Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

“unknown key” when "eosc set contract currency" #510

Closed
loosen opened this issue Sep 27, 2017 · 9 comments
Closed

“unknown key” when "eosc set contract currency" #510

loosen opened this issue Sep 27, 2017 · 9 comments
Milestone

Comments

@loosen
Copy link

loosen commented Sep 27, 2017

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:

➜ 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

@learnforpractice
Copy link
Contributor

learnforpractice commented Sep 27, 2017 via email

@loosen
Copy link
Author

loosen commented Sep 28, 2017

@learnforpractice
thanks for your reply, but it still doesn't work.

@learnforpractice
Copy link
Contributor

learnforpractice commented Sep 28, 2017 via email

@heifner
Copy link
Contributor

heifner commented Oct 18, 2017

Assuming --resync-blockchain fixed your issue. Closing.

@heifner heifner closed this as completed Oct 18, 2017
@thomasbcox thomasbcox added this to the EOS Dawn 1.1 milestone Nov 9, 2017
@shoaib-dr
Copy link

shoaib-dr commented Nov 10, 2017

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

2446211ms thread-0 main.cpp:1111 main ] Failed with error: 10 assert_exception: Assert Exception status_code == 200: Error code 500 : {"code":500,"message":"Internal Service Error","details":"13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key\nunknown key: \n {\"

@heifner
Copy link
Contributor

heifner commented Nov 10, 2017

What are your steps to reproduce? What is the complete error?

@shoaib-dr
Copy link

Steps followed as per the link here

Error occurs on ./eosc set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi -s

Note the added -s at the end

eosd server is run as ./eosd --genesis-json=../../genesis.json --resync-blockchain --skip-transaction-signatures

Error log from eosc terminal is as follows:

Reading WAST...
Assembling WASM...
Publishing contract...
2446211ms thread-0 main.cpp:1111 main ] Failed with error: 10 assert_exception: Assert Exception
status_code == 200: Error code 500
: {"code":500,"message":"Internal Service Error","details":"13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key\nunknown key: \n {"authorizer_account":"currency","code_account":"eos","type":"setcode","what":"unknown key"}\n thread-0 chain_controller.cpp:812 lookup_minimum_permission\n\n {"trx":{"refBlockNum":0,"refBlockPrefix":0,"expiration":"2017-03-30T12:00:30","scope":["currency","eos"],"readscope":[],"messages":[{"code":"eos","type":"setcode","authorization":[{"account":"currency","permission":"active"}],"data":"0000001e4d75af460000e0120061736d0100000001390a60037e7e7f017f60047e7e7f7f017f60017e0060057e7e7e7f7f017f60027f7f0060027f7f017f60027e7f0060017f0060000060027e7e0002790703656e7606617373657274000403656e76086c6f61645f693634000303656e760c726561645f6d657373616765000503656e760a72656d6f76655f693634000003656e760c726571756972655f61757468000203656e760e726571756972655f6e6f74696365000203656e760973746f72655f6936340001030504060708090404017000000503010001077f05066d656d6f727902002b5f5a4e3863757272656e6379313373746f72655f6163636f756e744579524b4e535f376163636f756e74450007355f5a4e3863757272656e637932336170706c795f63757272656e63795f7472616e7366657245524b4e535f387472616e7366657245000804696e69740009056170706c79000a0aba0c043400024020012903084200510d0020004280808080f2a9d388322001411010061a0f0b20004280808080f2a9d38832200110031a0bc40504017e027f047e017f4100410028020441206b2208360204200029030021052000290308100520051005200029030010042000290300210142002105423b2104411021034200210603400240024002400240024020054206560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b420021052008420037031820082006370310200142808080f0d1a9ddd7c6004280808080f2a9d38832200841106a411010011a200041086a2903002101423b2104411021034200210603400240024002400240024020054206560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b2008200637030020084200370308200142808080f0d1a9ddd7c6004280808080f2a9d388322008411010011a200841186a220329030020002903105a4120100020032003290300200029031022057d370300200520082903087c20055a41d00010002008200829030820002903107c370308200029030021050240024020032903004200510d0020054280808080f2a9d38832200841106a411010061a0c010b20054280808080f2a9d38832200841106a10031a0b200041086a290300210502400240200841086a2903004200510d0020054280808080f2a9d388322008411010061a0c010b20054280808080f2a9d38832200810031a0b4100200841206a3602040b970303027f057e017f4100410028020441106b220736020442002103423b210241800121014200210403400240024002400240024020034207560d0020012c00002200419f7f6a41ff017141194b0d01200041a5016a21000c020b420021052003420b580d020c030b200041d0016a41002000414f6a41ff01714105491b21000b2000ad42388642388721050b2005421f83200242ffffffff0f838621050b200141016a2101200342017c2103200520048421042002427b7c2202427a520d000b42002103423b2102411021014200210603400240024002400240024020034206560d0020012c00002200419f7f6a41ff017141194b0d01200041a5016a21000c020b420021052003420b580d020c030b200041d0016a41002000414f6a41ff01714105491b21000b2000ad42388642388721050b2005421f83200242ffffffff0f838621050b200141016a2101200342017c2103200520068421062002427b7c2202427a520d000b2007428094ebdc033703082007200637030020044280808080f2a9d388322007411010061a4100200741106a3602040ba30303027f047e017f4100410028020441206b220836020442002105423b210441800121034200210603400240024002400240024020054207560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b024020062000520d0042002105423b210441900121034200210603400240024002400240024020054207560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b20062001520d0020084200370318200841086a4118100241174b41a0011000200841086a10080b4100200841206a3602040b0bb601070041040b04c04000000041100b086163636f756e74000041200b2c696e746567657220756e646572666c6f77207375627472616374696e6720746f6b656e2062616c616e6365000041d0000b26696e7465676572206f766572666c6f7720616464696e6720746f6b656e2062616c616e636500004180010b0963757272656e637900004190010b097472616e73666572000041a0010b1e6d6573736167652073686f72746572207468616e20657870656374656400009602046e616d650b06617373657274020000086c6f61645f6936340500000000000c726561645f6d6573736167650200000a72656d6f76655f693634030000000c726571756972655f6175746801000e726571756972655f6e6f7469636501000973746f72655f69363404000000002b5f5a4e3863757272656e6379313373746f72655f6163636f756e744579524b4e535f376163636f756e74450201300131355f5a4e3863757272656e637932336170706c795f63757272656e63795f7472616e7366657245524b4e535f387472616e73666572450901300131013201330134013501360137013804696e69740801300131013201330134013501360137056170706c7909013001310132013301340135013601370138010c6163636f756e745f6e616d65044e616d6502087472616e7366657200030466726f6d0c6163636f756e745f6e616d6502746f0c6163636f756e745f6e616d6506616d6f756e740655496e743634076163636f756e740002076163636f756e74044e616d650762616c616e63650655496e74363401000000572d3ccdcd087472616e7366657201000000204f4d11320369363401076163636f756e7401044e616d65076163636f756e74"}],"signatures":[]}}\n thread-0 chain_controller.cpp:244 push_transaction"}

{"c":500,"msg":"{\"code\":500,\"message\":\"Internal Service Error\",\"details\":\"13 N5boost16exception_detail10clone_implINS0_19error_info_injectorISt12out_of_rangeEEEE: unknown key\\nunknown key: \\n    {\\\"authorizer_account\\\":\\\"currency\\\",\\\"code_account\\\":\\\"eos\\\",\\\"type\\\":\\\"setcode\\\",\\\"what\\\":\\\"unknown key\\\"}\\n    thread-0  chain_controller.cpp:812 lookup_minimum_permission\\n\\n    {\\\"trx\\\":{\\\"refBlockNum\\\":0,\\\"refBlockPrefix\\\":0,\\\"expiration\\\":\\\"2017-03-30T12:00:30\\\",\\\"scope\\\":[\\\"currency\\\",\\\"eos\\\"],\\\"readscope\\\":[],\\\"messages\\\":[{\\\"code\\\":\\\"eos\\\",\\\"type\\\":\\\"setcode\\\",\\\"authorization\\\":[{\\\"account\\\":\\\"currency\\\",\\\"permission\\\":\\\"active\\\"}],\\\"data\\\":\\\"0000001e4d75af460000e0120061736d0100000001390a60037e7e7f017f60047e7e7f7f017f60017e0060057e7e7e7f7f017f60027f7f0060027f7f017f60027e7f0060017f0060000060027e7e0002790703656e7606617373657274000403656e76086c6f61645f693634000303656e760c726561645f6d657373616765000503656e760a72656d6f76655f693634000003656e760c726571756972655f61757468000203656e760e726571756972655f6e6f74696365000203656e760973746f72655f6936340001030504060708090404017000000503010001077f05066d656d6f727902002b5f5a4e3863757272656e6379313373746f72655f6163636f756e744579524b4e535f376163636f756e74450007355f5a4e3863757272656e637932336170706c795f63757272656e63795f7472616e7366657245524b4e535f387472616e7366657245000804696e69740009056170706c79000a0aba0c043400024020012903084200510d0020004280808080f2a9d388322001411010061a0f0b20004280808080f2a9d38832200110031a0bc40504017e027f047e017f4100410028020441206b2208360204200029030021052000290308100520051005200029030010042000290300210142002105423b2104411021034200210603400240024002400240024020054206560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b420021052008420037031820082006370310200142808080f0d1a9ddd7c6004280808080f2a9d38832200841106a411010011a200041086a2903002101423b2104411021034200210603400240024002400240024020054206560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b2008200637030020084200370308200142808080f0d1a9ddd7c6004280808080f2a9d388322008411010011a200841186a220329030020002903105a4120100020032003290300200029031022057d370300200520082903087c20055a41d00010002008200829030820002903107c370308200029030021050240024020032903004200510d0020054280808080f2a9d38832200841106a411010061a0c010b20054280808080f2a9d38832200841106a10031a0b200041086a290300210502400240200841086a2903004200510d0020054280808080f2a9d388322008411010061a0c010b20054280808080f2a9d38832200810031a0b4100200841206a3602040b970303027f057e017f4100410028020441106b220736020442002103423b210241800121014200210403400240024002400240024020034207560d0020012c00002200419f7f6a41ff017141194b0d01200041a5016a21000c020b420021052003420b580d020c030b200041d0016a41002000414f6a41ff01714105491b21000b2000ad42388642388721050b2005421f83200242ffffffff0f838621050b200141016a2101200342017c2103200520048421042002427b7c2202427a520d000b42002103423b2102411021014200210603400240024002400240024020034206560d0020012c00002200419f7f6a41ff017141194b0d01200041a5016a21000c020b420021052003420b580d020c030b200041d0016a41002000414f6a41ff01714105491b21000b2000ad42388642388721050b2005421f83200242ffffffff0f838621050b200141016a2101200342017c2103200520068421062002427b7c2202427a520d000b2007428094ebdc033703082007200637030020044280808080f2a9d388322007411010061a4100200741106a3602040ba30303027f047e017f4100410028020441206b220836020442002105423b210441800121034200210603400240024002400240024020054207560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b024020062000520d0042002105423b210441900121034200210603400240024002400240024020054207560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b20062001520d0020084200370318200841086a4118100241174b41a0011000200841086a10080b4100200841206a3602040b0bb601070041040b04c04000000041100b086163636f756e74000041200b2c696e746567657220756e646572666c6f77207375627472616374696e6720746f6b656e2062616c616e6365000041d0000b26696e7465676572206f766572666c6f7720616464696e6720746f6b656e2062616c616e636500004180010b0963757272656e637900004190010b097472616e73666572000041a0010b1e6d6573736167652073686f72746572207468616e20657870656374656400009602046e616d650b06617373657274020000086c6f61645f6936340500000000000c726561645f6d6573736167650200000a72656d6f76655f693634030000000c726571756972655f6175746801000e726571756972655f6e6f7469636501000973746f72655f69363404000000002b5f5a4e3863757272656e6379313373746f72655f6163636f756e744579524b4e535f376163636f756e74450201300131355f5a4e3863757272656e637932336170706c795f63757272656e63795f7472616e7366657245524b4e535f387472616e73666572450901300131013201330134013501360137013804696e69740801300131013201330134013501360137056170706c7909013001310132013301340135013601370138010c6163636f756e745f6e616d65044e616d6502087472616e7366657200030466726f6d0c6163636f756e745f6e616d6502746f0c6163636f756e745f6e616d6506616d6f756e740655496e743634076163636f756e740002076163636f756e74044e616d650762616c616e63650655496e74363401000000572d3ccdcd087472616e7366657201000000204f4d11320369363401076163636f756e7401044e616d65076163636f756e74\\\"}],\\\"signatures\\\":[]}}\\n    thread-0  chain_controller.cpp:244 push_transaction\"}"}
thread-0  httpc.cpp:113 call

{"server":"localhost","port":8888,"path":"/v1/chain/push_transaction","postdata":{"refBlockNum":0,"refBlockPrefix":0,"expiration":"2017-03-30T12:00:30","scope":["currency","eos"],"readscope":[],"messages":[{"code":"eos","type":"setcode","authorization":[{"account":"currency","permission":"active"}],"data":"0000001e4d75af460000e0120061736d0100000001390a60037e7e7f017f60047e7e7f7f017f60017e0060057e7e7e7f7f017f60027f7f0060027f7f017f60027e7f0060017f0060000060027e7e0002790703656e7606617373657274000403656e76086c6f61645f693634000303656e760c726561645f6d657373616765000503656e760a72656d6f76655f693634000003656e760c726571756972655f61757468000203656e760e726571756972655f6e6f74696365000203656e760973746f72655f6936340001030504060708090404017000000503010001077f05066d656d6f727902002b5f5a4e3863757272656e6379313373746f72655f6163636f756e744579524b4e535f376163636f756e74450007355f5a4e3863757272656e637932336170706c795f63757272656e63795f7472616e7366657245524b4e535f387472616e7366657245000804696e69740009056170706c79000a0aba0c043400024020012903084200510d0020004280808080f2a9d388322001411010061a0f0b20004280808080f2a9d38832200110031a0bc40504017e027f047e017f4100410028020441206b2208360204200029030021052000290308100520051005200029030010042000290300210142002105423b2104411021034200210603400240024002400240024020054206560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b420021052008420037031820082006370310200142808080f0d1a9ddd7c6004280808080f2a9d38832200841106a411010011a200041086a2903002101423b2104411021034200210603400240024002400240024020054206560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b2008200637030020084200370308200142808080f0d1a9ddd7c6004280808080f2a9d388322008411010011a200841186a220329030020002903105a4120100020032003290300200029031022057d370300200520082903087c20055a41d00010002008200829030820002903107c370308200029030021050240024020032903004200510d0020054280808080f2a9d38832200841106a411010061a0c010b20054280808080f2a9d38832200841106a10031a0b200041086a290300210502400240200841086a2903004200510d0020054280808080f2a9d388322008411010061a0c010b20054280808080f2a9d38832200810031a0b4100200841206a3602040b970303027f057e017f4100410028020441106b220736020442002103423b210241800121014200210403400240024002400240024020034207560d0020012c00002200419f7f6a41ff017141194b0d01200041a5016a21000c020b420021052003420b580d020c030b200041d0016a41002000414f6a41ff01714105491b21000b2000ad42388642388721050b2005421f83200242ffffffff0f838621050b200141016a2101200342017c2103200520048421042002427b7c2202427a520d000b42002103423b2102411021014200210603400240024002400240024020034206560d0020012c00002200419f7f6a41ff017141194b0d01200041a5016a21000c020b420021052003420b580d020c030b200041d0016a41002000414f6a41ff01714105491b21000b2000ad42388642388721050b2005421f83200242ffffffff0f838621050b200141016a2101200342017c2103200520068421062002427b7c2202427a520d000b2007428094ebdc033703082007200637030020044280808080f2a9d388322007411010061a4100200741106a3602040ba30303027f047e017f4100410028020441206b220836020442002105423b210441800121034200210603400240024002400240024020054207560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b024020062000520d0042002105423b210441900121034200210603400240024002400240024020054207560d0020032c00002202419f7f6a41ff017141194b0d01200241a5016a21020c020b420021072005420b580d020c030b200241d0016a41002002414f6a41ff01714105491b21020b2002ad42388642388721070b2007421f83200442ffffffff0f838621070b200341016a2103200542017c2105200720068421062004427b7c2204427a520d000b20062001520d0020084200370318200841086a4118100241174b41a0011000200841086a10080b4100200841206a3602040b0bb601070041040b04c04000000041100b086163636f756e74000041200b2c696e746567657220756e646572666c6f77207375627472616374696e6720746f6b656e2062616c616e6365000041d0000b26696e7465676572206f766572666c6f7720616464696e6720746f6b656e2062616c616e636500004180010b0963757272656e637900004190010b097472616e73666572000041a0010b1e6d6573736167652073686f72746572207468616e20657870656374656400009602046e616d650b06617373657274020000086c6f61645f6936340500000000000c726561645f6d6573736167650200000a72656d6f76655f693634030000000c726571756972655f6175746801000e726571756972655f6e6f7469636501000973746f72655f69363404000000002b5f5a4e3863757272656e6379313373746f72655f6163636f756e744579524b4e535f376163636f756e74450201300131355f5a4e3863757272656e637932336170706c795f63757272656e63795f7472616e7366657245524b4e535f387472616e73666572450901300131013201330134013501360137013804696e69740801300131013201330134013501360137056170706c7909013001310132013301340135013601370138010c6163636f756e745f6e616d65044e616d6502087472616e7366657200030466726f6d0c6163636f756e745f6e616d6502746f0c6163636f756e745f6e616d6506616d6f756e740655496e743634076163636f756e740002076163636f756e74044e616d650762616c616e63650655496e74363401000000572d3ccdcd087472616e7366657201000000204f4d11320369363401076163636f756e7401044e616d65076163636f756e74"}],"signatures":[]}}
thread-0  httpc.cpp:117 call

@heifner
Copy link
Contributor

heifner commented Nov 10, 2017

Did you create the currency account:

./eosc create account inita currency PUBLIC_KEY_1 PUBLIC_KEY_2

@ruby32
Copy link

ruby32 commented Dec 1, 2017

I'm having the same issue. Steps to reproduce: follow instructions in readme up to this point:

/eosc set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi

At which point I get the "unknown key" error.

Gathering some intel from the issues section here, I decided to run eosd with the command line arguments --resync-blockchain --skip-transaction-signatures, however I get the exact same output running ./eosc set contract currency without the -s flag. If I run that same ./eosc command with -s included I am getting a segfault.

eosc output:

./eosc set contract currency ../../contracts/currency/currency.wast ../../contracts/currency/currency.abi -s
Reading WAST...
Assembling WASM...
Publishing contract...
Segmentation fault (core dumped)

eosd output:

2325338ms thread-0   chain_api_plugin.cpp:75       operator()           ] Exception encountered while processing chain.push_transaction: {"code":13,"name":"St9exception","message":"unknown key","stack":[{"context":{"level":"warn","file":"chain_controller.cpp","line":804,"method":"lookup_minimum_permission","hostname":"","thread_name":"thread-0","timestamp":"2017-12-01T20:38:45"},"format":"${what}: ","data":{"authorizer_account":"currency","code_account":"eos","type":"setcode","what":"unknown key"}},{"context":{"level":"warn","file":"chain_controller.cpp","line":236,"method":"push_transaction","hostname":"","thread_name":"thread-0","timestamp":"2017-12-01T20:38:45"},"format":"","data":{"trx":{"ref_block_num":0,"ref_block_prefix":0,"expiration":"2017-03-30T12:00:30","scope":["currency","eos"],"read_scope":[],"messages":[{"code":"eos","type":"setcode","authorization":[{"account":"currency","permission":"active"}],"data":"..."}],"signatures":[]}}}]}

System: Ubuntu 16.04 server

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants