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

Documentation problems: Error 3090003 #7668

Closed
NorseGaud opened this issue Jul 20, 2019 · 3 comments
Closed

Documentation problems: Error 3090003 #7668

NorseGaud opened this issue Jul 20, 2019 · 3 comments

Comments

@NorseGaud
Copy link
Contributor

NorseGaud commented Jul 20, 2019

Following https://developers.eos.io/eosio-nodeos/docs/bios-boot-sequence
Old issue related to this: #4518

--- Executing: eval cleos --wallet-url unix:///tmp/nodeos-data-dir/keosd.sock set contract eosio.system /tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system
Failed to get existing code hash, continue without duplicate check...
Reading WASM from /private/tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system/eosio.system.wasm...
Publishing contract...
Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and your wallet is unlocked.
Error Details:
transaction declares authority '{"actor":"eosio.system","permission":"active"}', but does not have signatures for it.
cat /tmp/nodeos-data-dir/genesis.json
{
    "initial_timestamp": "2018-12-05T08:55:11.000",
    "initial_key": "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
    "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
    },
    "initial_chain_id": "0000000000000000000000000000000000000000000000000000000000000000"
  }
cleos --wallet-url unix:///tmp/nodeos-data-dir/keosd.sock wallet private_keys --password $(cat /tmp/nodeos-data-dir/default.pwd)                   
[[
    "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
    "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
  ],[
    "EOS7pZafhf7cv3HusPddzZbTD6rbXWoev5pJEiNUxxT6wSpp2ckRB",
    "5JdsxhMExTPQZeZwrjWU36CMS56vHW7gJcTagiqKHdXjnZJgNaY"
]]

in my config.ini:

signature-provider = EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV=KEY:5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
cleos --wallet-url unix:///tmp/nodeos-data-dir/keosd.sock wallet import -n default --private-key 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 
Error 3120008: Key already exists
Error Details:
Key already in wallet
@NorseGaud
Copy link
Contributor Author

Even tried

cleos --wallet-url unix:///tmp/nodeos-data-dir/keosd.sock set contract eosio.system /tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system -p eosio@active  
Failed to get existing code hash, continue without duplicate check...
Reading WASM from /private/tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system/eosio.system.wasm...
Publishing contract...
Error 3090004: Missing required authority
Ensure that you have the related authority inside your transaction!;
If you are currently using 'cleos push action' command, try to add the relevant authority using -p option.
Error Details:
missing authority of eosio
cleos --wallet-url unix:///tmp/nodeos-data-dir/keosd.sock set contract eosio.system /tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system -p default@active
Failed to get existing code hash, continue without duplicate check...
Reading WASM from /private/tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system/eosio.system.wasm...
Publishing contract...
Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and your wallet is unlocked.
Error Details:
transaction declares authority '{"actor":"default","permission":"active"}', but does not have signatures for it.

@NorseGaud
Copy link
Contributor Author

NorseGaud commented Jul 20, 2019

Ok, I see something off... setting the system contract says to specify eosio for the account. Yet, that errors.

cleos --wallet-url unix:///tmp/nodeos-data-dir/keosd.sock set contract eosio /tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system
Reading WASM from /private/tmp/nodeos-data-dir/eosio.contracts/build/contracts/eosio.system/eosio.system.wasm...
Publishing contract...
Error 3070000: WASM Exception
Error Details:
env.is_feature_activated unresolveable
pending console output: 

Update: https://eosio.stackexchange.com/questions/4659/env-is-feature-activated-error-when-set-contract

Fix: #7180

@NorseGaud
Copy link
Contributor Author

Looks like the bios contract needs to come before any of these other contracts.

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

1 participant