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

v1.7.x error: "assertion failure with message: system contract must first be initialized" #7061

Closed
lpx1988 opened this issue Apr 4, 2019 · 3 comments
Labels

Comments

@lpx1988
Copy link

lpx1988 commented Apr 4, 2019

I was Building a new private chain with EOS v1.7.1.
After create the system account (eosio.bpay, eosio.msig,... , eosio.ram, eosio.ramfee, eosio.vpay) and set system contract (eosio.token, eosio.msig), I create and issue a Token (SYS) to eosio, but when i create a ordinary account (cleos system newaccount --transfer eosio aaabbbcccddd EOS6HZEJJ8VgUEj1TKb6sVLz3pcmiHrEyCvZx9bKQpdqksDR3LoVJ --stake-net "10.0000 SYS" --stake-cpu "10.0000 SYS" --buy-ram "10.0000 SYS"), it will fail and print "assertion failure with message: system contract must first be initialized".
when i used EOS v1.6.3, it will succeed.Is this a bug in v1.7.x(v1.7.0 and v1.7.1)?

@taokayan
Copy link
Contributor

taokayan commented Apr 4, 2019

please run ./cleos push action eosio init '[0,"4,SYS"]' -p eosio@active after installing the system contract.

@jgiszczak
Copy link
Contributor

It is not a bug, and is not specific to v1.7.x. It's a feature that's specific to the version of eosio.system you are using. Please link to the documentation you were following that doesn't include the init step.

@lpx1988
Copy link
Author

lpx1988 commented Apr 8, 2019

Got it, thanks @taokayan @jgiszczak

@lpx1988 lpx1988 closed this as completed Apr 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants