New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleos system newaccount error! #4909

Closed
wypsanity opened this Issue Jul 28, 2018 · 8 comments

Comments

Projects
None yet
3 participants
@wypsanity

wypsanity commented Jul 28, 2018

./cleos system newaccount --stake-net "0.0000 SYS" --s
take-cpu "0.0000 SYS" --buy-ram-kbytes 8 eosio xiaoxiaopeng EOS7kVxD5WaUo6TfB7g3oziyh3ttSwuMxqWQpZCLyh2eS7Y5kCYuf E
OS6NRhuH1BH3zaTrnsA4vMo59z7yWyVYKksxgbLYR5h2cGmgrB83
Error 3050000: action exception

nodeos console:
3441965ms thread-0 http_plugin.cpp:468 handle_exception ] FC Exception encountered while process
ing chain.abi_json_to_bin
3441965ms thread-0 http_plugin.cpp:469 handle_exception ] Exception Details: 3050000 action_vali
date_exception: action exception
Unknown action buyrambytes in contract eosio
{"action":"buyrambytes","contract":"eosio"}
thread-0 chain_plugin.cpp:1109 abi_json_to_bin

{"params.code":"eosio","params.action":"buyrambytes","params.args":{"payer":"eosio","receiver":"xiaoxiaopeng","bytes":8192}}
thread-0  chain_plugin.cpp:1119 abi_json_to_bin

i'm loaded eosio.system contract in this Local test.but throw this error.I am confused,please help me.sir.

@andriantolie

This comment has been minimized.

Contributor

andriantolie commented Jul 30, 2018

Can you share your cleos get abi eosio here?
Seems to me like you haven't uploaded the eosio.system contract to eosio account properly

@wypsanity

This comment has been minimized.

wypsanity commented Jul 30, 2018

cleos system newaccount eosio --transfer xiaoxiaopeng EOS7kVxD5WaUo6TfB7g3oziyh3ttSwuMxqWQpZCLyh2eS7Y5kCYuf EOS6NRhuH1BH3zaTrnsA4vMo59z7yWyVYKksxgbLYR5h2cGmgrB83 --
stake-net "000.0000 SYS" --stake-cpu "000.0000 SYS" --buy-ram-kbytes 8
983901ms thread-0 main.cpp:429 create_action ] result: {"binargs":"0000000000ea3055c0a
6aad4b84e8deb00200000"} arg: {"code":"eosio","action":"buyrambytes","args":{"payer":"eosio","receiver":"xiaoxiao
peng","bytes":8192}}
Error 3050003: eosio_assert_message assertion failure
Error Details:
assertion failure with message: must purchase a positive amount

The nodeos:

983911ms thread-0 wasm_interface.cpp:929 eosio_assert ] message: must purchase a positive amoun
t
983912ms thread-0 http_plugin.cpp:468 handle_exception ] FC Exception encountered while processi
ng chain.push_transaction
983912ms thread-0 http_plugin.cpp:469 handle_exception ] Exception Details: 3050003 eosio_assert
_message_exception: eosio_assert_message assertion failure
assertion failure with message: must purchase a positive amount
{"s":"must purchase a positive amount"}
thread-0 wasm_interface.cpp:930 eosio_assert

{"_pending_console_output.str()":""}
thread-0  apply_context.cpp:62 exec_one
@andriantolie

This comment has been minimized.

Contributor

andriantolie commented Jul 30, 2018

Please stake some tokens for net and cpu, don't just stake 000.0000 SYS

@wypsanity

This comment has been minimized.

wypsanity commented Jul 30, 2018

i'm stake 100.0000 SYS.The eosio have 900.0000SYS.The same mistake

@wypsanity

This comment has been minimized.

wypsanity commented Jul 30, 2018

some abi:

"version": "eosio::abi/1.0",
"types": [{
"new_type_name": "account_name",
"type": "name"
},{
"new_type_name": "permission_name",
"type": "name"
},{
"new_type_name": "action_name",
"type": "name"
},{
"new_type_name": "transaction_id_type",
"type": "checksum256"
},{
"new_type_name": "weight_type",
"type": "uint16"
}
],
"structs": [{
"name": "permission_level",
"base": "",
"fields": [{
"name": "actor",
"type": "account_name"
},{
"name": "permission",
"type": "permission_name"
}
]
},{

},{
"name": "newaccount",
"base": "",
"fields": [{
"name": "creator",
"type": "account_name"
},{
"name": "name",
"type": "account_name"
},{
"name": "owner",
"type": "authority"
},{
"name": "active",
"type": "authority"
}
]
},{

},{
"name": "buyrambytes",
"base": "",
"fields": [{
"name": "payer",
"type": "account_name"
},{
"name": "receiver",
"type": "account_name"
},{
"name": "bytes",
"type": "uint32"
}
]
},{
"name": "sellram",
"base": "",
"fields": [{
"name": "account",
"type": "account_name"
},{
"name": "bytes",
"type": "uint64"
}
]
},{
"name": "buyram",
"base": "",
"fields": [{
"name": "payer",
"type": "account_name"
},{
"name": "receiver",
"type": "account_name"
},{
"name": "quant",
"type": "asset"
}
]
},{
"name": "delegatebw",
"base": "",
"fields": [{
"name": "from",
"type": "account_name"
},{
"name": "receiver",
"type": "account_name"
},{
"name": "stake_net_quantity",

@andriantolie

This comment has been minimized.

Contributor

andriantolie commented Jul 30, 2018

So I guess the original problem of this issue has been solved and you encountered a new problem that you post in the comment section?

@wypsanity

This comment has been minimized.

wypsanity commented Jul 30, 2018

I have posted the latest one. I saw that you have a response, so I am here to ask.

@wypsanity

This comment has been minimized.

wypsanity commented Jul 30, 2018

#4928 @andriantolie This is my new post comment, please take a look.

@wypsanity wypsanity closed this Jul 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment