dfinity / sns-testing

Testing SNS in local testing environment
Apache License 2.0
9 stars 13 forks source link

Running `./run_basic_scenario.sh` fails on Apple Silicon #24

Closed harsh-mn-yral closed 7 months ago

harsh-mn-yral commented 1 year ago

I'm trying to test sns deployment locally and running into some errors:

Environment:

Steps I followed:

bash-3.2$ ./setup_locally.sh
Using identity: "default".
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  308k  100  308k    0     0  1092k      0 --:--:-- --:--:-- --:--:-- 1106k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  162k  100  162k    0     0   770k      0 --:--:-- --:--:-- --:--:--  782k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  649k  100  649k    0     0  1140k      0 --:--:-- --:--:-- --:--:-- 1150k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  659k  100  659k    0     0  2081k      0 --:--:-- --:--:-- --:--:-- 2099k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  438k  100  438k    0     0  1884k      0 --:--:-- --:--:-- --:--:-- 1915k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7154  100  7154    0     0  77206      0 --:--:-- --:--:-- --:--:-- 80382
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  512k  100  512k    0     0  2132k      0 --:--:-- --:--:-- --:--:-- 2173k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 83840  100 83840    0     0   631k      0 --:--:-- --:--:-- --:--:--  649k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7154  100  7154    0     0  50205      0 --:--:-- --:--:-- --:--:-- 51467
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  808k  100  808k    0     0  2177k      0 --:--:-- --:--:-- --:--:-- 2197k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  255k  100  255k    0     0  1367k      0 --:--:-- --:--:-- --:--:-- 1396k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  428k  100  428k    0     0  1749k      0 --:--:-- --:--:-- --:--:-- 1778k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  275k  100  275k    0     0  1443k      0 --:--:-- --:--:-- --:--:-- 1474k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  583k  100  583k    0     0  2126k      0 --:--:-- --:--:-- --:--:-- 2176k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  391k  100  391k    0     0  1649k      0 --:--:-- --:--:-- --:--:-- 1675k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  527k  100  527k    0     0  2120k      0 --:--:-- --:--:-- --:--:-- 2153k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  209k  100  209k    0     0  1087k      0 --:--:-- --:--:-- --:--:-- 1104k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  211k  100  211k    0     0  1202k      0 --:--:-- --:--:-- --:--:-- 1232k
Importing all canisters from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/dfx.json
Importing canister 'cycles-minting' as 'nns-cycles-minting'
Importing /Users/mbp/code/sns-testing/candid/nns-cycles-minting.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/cmc/cmc.did
cycles-minting canister id on network 'ic' is rkp4c-7iaaa-aaaaa-aaaca-cai
Importing canister 'genesis-token' as 'nns-genesis-token'
Importing /Users/mbp/code/sns-testing/candid/nns-genesis-token.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/gtc/canister/gtc.did
genesis-token canister id on network 'ic' is renrk-eyaaa-aaaaa-aaada-cai
Importing canister 'governance' as 'nns-governance'
Importing /Users/mbp/code/sns-testing/candid/nns-governance.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/governance/canister/governance.did
governance canister id on network 'ic' is rrkah-fqaaa-aaaaa-aaaaq-cai
Importing canister 'ledger' as 'nns-ledger'
Importing /Users/mbp/code/sns-testing/candid/nns-ledger.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/rosetta-api/icp_ledger/ledger.did
ledger canister id on network 'ic' is ryjl3-tyaaa-aaaaa-aaaba-cai
Importing canister 'lifeline' as 'nns-lifeline'
Importing /Users/mbp/code/sns-testing/candid/nns-lifeline.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/handlers/lifeline/lifeline.did
lifeline canister id on network 'ic' is rno2w-sqaaa-aaaaa-aaacq-cai
Importing canister 'registry' as 'nns-registry'
Importing /Users/mbp/code/sns-testing/candid/nns-registry.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/registry/canister/canister/registry.did
registry canister id on network 'ic' is rwlgt-iiaaa-aaaaa-aaaaa-cai
Importing canister 'root' as 'nns-root'
Importing /Users/mbp/code/sns-testing/candid/nns-root.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/handlers/root/impl/canister/root.did
root canister id on network 'ic' is r7inp-6aaaa-aaaaa-aaabq-cai
Importing canister 'sns-wasm' as 'nns-sns-wasm'
Importing /Users/mbp/code/sns-testing/candid/nns-sns-wasm.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/sns-wasm/canister/sns-wasm.did
sns-wasm canister id on network 'ic' is qaa6y-5yaaa-aaaaa-aaafa-cai
nns-registry canister id on network 'local' is rwlgt-iiaaa-aaaaa-aaaaa-cai
nns-governance canister id on network 'local' is rrkah-fqaaa-aaaaa-aaaaq-cai
nns-ledger canister id on network 'local' is ryjl3-tyaaa-aaaaa-aaaba-cai
nns-root canister id on network 'local' is r7inp-6aaaa-aaaaa-aaabq-cai
nns-cycles-minting canister id on network 'local' is rkp4c-7iaaa-aaaaa-aaaca-cai
nns-lifeline canister id on network 'local' is rno2w-sqaaa-aaaaa-aaacq-cai
nns-genesis-token canister id on network 'local' is renrk-eyaaa-aaaaa-aaada-cai
nns-identity has no local canister ID.
nns-ui has no local canister ID.
nns-sns-wasm canister id on network 'local' is qaa6y-5yaaa-aaaaa-aaafa-cai
nns-ic-ckbtc-minter has no local canister ID.
Importing all canisters from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/sns/cli/dfx.json
Importing canister 'sns_governance' as 'sns_governance'
Importing /Users/mbp/code/sns-testing/candid/sns_governance.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/sns/governance/canister/governance.did
sns_governance has no canister id for network 'ic'
Importing canister 'sns_index' as 'sns_index'
Importing /Users/mbp/code/sns-testing/candid/sns_index.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/rosetta-api/icrc1/index/index.did
sns_index has no canister id for network 'ic'
Importing canister 'sns_ledger' as 'sns_ledger'
Importing /Users/mbp/code/sns-testing/candid/sns_ledger.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/rosetta-api/icrc1/ledger/ledger.did
sns_ledger has no canister id for network 'ic'
Importing canister 'sns_root' as 'sns_root'
Importing /Users/mbp/code/sns-testing/candid/sns_root.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/sns/root/canister/root.did
sns_root has no canister id for network 'ic'
Importing canister 'sns_swap' as 'sns_swap'
Importing /Users/mbp/code/sns-testing/candid/sns_swap.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/sns/swap/canister/swap.did
sns_swap has no canister id for network 'ic'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19528  100 19528    0     0  31106      0 --:--:-- --:--:-- --:--:-- 31395
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15498  100 15498    0     0  26604      0 --:--:-- --:--:-- --:--:-- 26813
[ic-nns-init] The content of the registry will be initialized with an empty content. This is most likely not what you want. Use --initial-registry or --registry-local-store-dir to specify initial content.
[ic-nns-init] Initializing neurons from CSV file: "initial_neurons.csv"
[ic-nns-init] Initializing with test ledger account: 2b19bf8d4e46deb8414cf7fabdf5d7b2b85008a0bdbb17200836ac4c12c96862
[ic-nns-init] Initializing with test ledger account: 5b315d2f6702cb3a27d826161797d7b2c2e131cd312aece51d4d5574d1247087
[ic-nns-init] Initializing with test ledger account: 2b8fbde99de881f695f279d2a892b1137bfe81a42d7694e064b1be58701e1138
[ic-nns-init] Initialized governance.
Compiling Wasm for registry-canister in task on thread: ThreadId(11)
looking up registry-canister at REGISTRY_CANISTER_WASM_PATH
Compiling Wasm for governance-canister in task on thread: ThreadId(12)
looking up governance-canister at GOVERNANCE_CANISTER_TEST_WASM_PATH
Using pre-built binary for registry-canister (size = 2694186)
Using pre-built binary for governance-canister (size = 2285560)
Done compiling the wasm for registry-canister
Compiling Wasm for ledger-canister in task on thread: ThreadId(11)
looking up ledger-canister at LEDGER_CANISTER_NOTIFY_METHOD_WASM_PATH
Using pre-built binary for ledger-canister (size = 1200309)
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: rwlgt-iiaaa-aaaaa-aaaaa-cai
  wasm_module: <2694186 bytes>
  arg: <69 bytes>
  compute_allocation: None
  memory_allocation: Some("4_294_967_296")
  query_allocation: None
}

Done compiling the wasm for governance-canister
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: rrkah-fqaaa-aaaaa-aaaaq-cai
  wasm_module: <2285560 bytes>
  arg: <1498 bytes>
  compute_allocation: None
  memory_allocation: Some("4_294_967_296")
  query_allocation: None
}

Done compiling the wasm for ledger-canister
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: ryjl3-tyaaa-aaaaa-aaaba-cai
  wasm_module: <1200309 bytes>
  arg: <1505 bytes>
  compute_allocation: None
  memory_allocation: Some("4_294_967_296")
  query_allocation: None
}

Successfully installed wasm into canister with ID: rwlgt-iiaaa-aaaaa-aaaaa-cai
Installed rwlgt-iiaaa-aaaaa-aaaaa-cai with registry-canister
Successfully installed wasm into canister with ID: rrkah-fqaaa-aaaaa-aaaaq-cai
Installed rrkah-fqaaa-aaaaa-aaaaq-cai with governance-canister
Successfully installed wasm into canister with ID: ryjl3-tyaaa-aaaaa-aaaba-cai
Installed ryjl3-tyaaa-aaaaa-aaaba-cai with ledger-canister
Compiling Wasm for root-canister in task on thread: ThreadId(12)
looking up root-canister at ROOT_CANISTER_WASM_PATH
Using pre-built binary for root-canister (size = 752978)
looking up lifeline_canister at LIFELINE_CANISTER_WASM_PATH
Compiling Wasm for cycles-minting-canister in task on thread: ThreadId(11)
looking up cycles-minting-canister at CYCLES_MINTING_CANISTER_WASM_PATH
Using pre-built binary for lifeline_canister (size = 211924)
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: rno2w-sqaaa-aaaaa-aaacq-cai
  wasm_module: <211924 bytes>
  arg: <0 bytes>
  compute_allocation: None
  memory_allocation: Some("1_073_741_824")
  query_allocation: None
}

Using pre-built binary for cycles-minting-canister (size = 932099)
Compiling Wasm for genesis-token-canister in task on thread: ThreadId(12)
looking up genesis-token-canister at GENESIS_TOKEN_CANISTER_WASM_PATH
Done compiling the wasm for root-canister
Compiling Wasm for sns-wasm-canister in task on thread: ThreadId(11)
looking up sns-wasm-canister at SNS_WASM_CANISTER_WASM_PATH
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: r7inp-6aaaa-aaaaa-aaabq-cai
  wasm_module: <752978 bytes>
  arg: <9 bytes>
  compute_allocation: None
  memory_allocation: Some("1_073_741_824")
  query_allocation: None
}

Using pre-built binary for genesis-token-canister (size = 472071)
Using pre-built binary for sns-wasm-canister (size = 1347513)
Done compiling the wasm for cycles-minting-canister
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: rkp4c-7iaaa-aaaaa-aaaca-cai
  wasm_module: <932099 bytes>
  arg: <165 bytes>
  compute_allocation: None
  memory_allocation: Some("1_073_741_824")
  query_allocation: None
}

Done compiling the wasm for genesis-token-canister
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: renrk-eyaaa-aaaaa-aaada-cai
  wasm_module: <472071 bytes>
  arg: <8 bytes>
  compute_allocation: None
  memory_allocation: Some("1_073_741_824")
  query_allocation: None
}

Done compiling the wasm for sns-wasm-canister
Install args: InstallCodeArgs {
  mode: Reinstall
  canister_id: qaa6y-5yaaa-aaaaa-aaafa-cai
  wasm_module: <1347513 bytes>
  arg: <32 bytes>
  compute_allocation: None
  memory_allocation: Some("1_073_741_824")
  query_allocation: None
}

Successfully installed wasm into canister with ID: rno2w-sqaaa-aaaaa-aaacq-cai
Installed rno2w-sqaaa-aaaaa-aaacq-cai with the lifeline handler
Successfully installed wasm into canister with ID: r7inp-6aaaa-aaaaa-aaabq-cai
Installed r7inp-6aaaa-aaaaa-aaabq-cai with root-canister
Successfully installed wasm into canister with ID: rkp4c-7iaaa-aaaaa-aaaca-cai
Installed rkp4c-7iaaa-aaaaa-aaaca-cai with cycles-minting-canister
Successfully installed wasm into canister with ID: renrk-eyaaa-aaaaa-aaada-cai
Installed renrk-eyaaa-aaaaa-aaada-cai with genesis-token-canister
Successfully installed wasm into canister with ID: qaa6y-5yaaa-aaaaa-aaafa-cai
Installed qaa6y-5yaaa-aaaaa-aaafa-cai with sns-wasm-canister
NNS canisters installed after 30.4 s
NNS canisters set up after 32.4 s
[ic-nns-init] All NNS canisters have been set up on the replica with http://localhost:53060/
Using identity: "default".
No arguments supplied. Script will download the sns wasm binaries at specified IC_COMMIT.
Importing all canisters from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/dfx.json
Importing canister 'cycles-minting' as 'nns-cycles-minting'
Importing /Users/mbp/code/sns-testing/candid/nns-cycles-minting.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/cmc/cmc.did
cycles-minting canister id on network 'local' is rkp4c-7iaaa-aaaaa-aaaca-cai
Importing canister 'genesis-token' as 'nns-genesis-token'
Importing /Users/mbp/code/sns-testing/candid/nns-genesis-token.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/gtc/canister/gtc.did
genesis-token canister id on network 'local' is renrk-eyaaa-aaaaa-aaada-cai
Importing canister 'governance' as 'nns-governance'
Importing /Users/mbp/code/sns-testing/candid/nns-governance.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/governance/canister/governance.did
governance canister id on network 'local' is rrkah-fqaaa-aaaaa-aaaaq-cai
Importing canister 'ledger' as 'nns-ledger'
Importing /Users/mbp/code/sns-testing/candid/nns-ledger.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/rosetta-api/icp_ledger/ledger.did
ledger canister id on network 'local' is ryjl3-tyaaa-aaaaa-aaaba-cai
Importing canister 'lifeline' as 'nns-lifeline'
Importing /Users/mbp/code/sns-testing/candid/nns-lifeline.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/handlers/lifeline/lifeline.did
lifeline canister id on network 'local' is rno2w-sqaaa-aaaaa-aaacq-cai
Importing canister 'registry' as 'nns-registry'
Importing /Users/mbp/code/sns-testing/candid/nns-registry.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/registry/canister/canister/registry.did
registry canister id on network 'local' is rwlgt-iiaaa-aaaaa-aaaaa-cai
Importing canister 'root' as 'nns-root'
Importing /Users/mbp/code/sns-testing/candid/nns-root.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/handlers/root/impl/canister/root.did
root canister id on network 'local' is r7inp-6aaaa-aaaaa-aaabq-cai
Importing canister 'sns-wasm' as 'nns-sns-wasm'
Importing /Users/mbp/code/sns-testing/candid/nns-sns-wasm.did from https://raw.githubusercontent.com/dfinity/ic/e4a9c0aa4ef24f7ee5bb9d27ce930551a7c5e24d/rs/nns/sns-wasm/canister/sns-wasm.did
sns-wasm canister id on network 'local' is qaa6y-5yaaa-aaaaa-aaafa-cai
nns-registry canister id on network 'local' is rwlgt-iiaaa-aaaaa-aaaaa-cai
nns-governance canister id on network 'local' is rrkah-fqaaa-aaaaa-aaaaq-cai
nns-ledger canister id on network 'local' is ryjl3-tyaaa-aaaaa-aaaba-cai
nns-root canister id on network 'local' is r7inp-6aaaa-aaaaa-aaabq-cai
nns-cycles-minting canister id on network 'local' is rkp4c-7iaaa-aaaaa-aaaca-cai
nns-lifeline canister id on network 'local' is rno2w-sqaaa-aaaaa-aaacq-cai
nns-genesis-token canister id on network 'local' is renrk-eyaaa-aaaaa-aaada-cai
nns-identity has no local canister ID.
nns-ui has no local canister ID.
nns-sns-wasm canister id on network 'local' is qaa6y-5yaaa-aaaaa-aaafa-cai
nns-ic-ckbtc-minter has no local canister ID.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19528  100 19528    0     0  85836      0 --:--:-- --:--:-- --:--:-- 88763
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15498  100 15498    0     0  60769      0 --:--:-- --:--:-- --:--:-- 62744
error: Found argument '--specified-id' which wasn't expected, or isn't valid in this context

        If you tried to supply `--specified-id` as a value rather than a flag, use `-- --specified-id`

USAGE:
    dfx canister create --no-wallet <CANISTER_NAME>

For more information try --help

This is the dfx service's output:

Running dfx start for version 0.13.1
Using shared network 'local' defined in /Users/mbp/.config/dfx/networks.json
Dashboard: http://localhost:53060/_/dashboard
[Canister rwlgt-iiaaa-aaaaa-aaaaa-cai] [Registry] canister_init: Initializing with: mutations: []
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] canister_init: Initializing with: economics: Some(NetworkEconomics { reject_cost_e8s: 100000000, neuron_minimum_stake_e8s: 100000000, neuron_management_fee_per_proposal_e8s: 1000000, minimum_icp_xdr_rate: 100, neuron_spawn_dissolve_delay_seconds: 604800, maximum_node_provider_rewards_e8s: 100000000000000, transaction_fee_e8s: 10000, max_proposals_to_keep_per_topic: 100 }), genesis_timestamp_seconds: 0, neuron count: 11
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Error when getting total ICP supply: External: Error calling method 'total_supply' of the ledger canister. Code: Some(3). Message: IC0304: Attempt to execute a message on canister ryjl3-tyaaa-aaaaa-aaaba-cai which contains no Wasm module
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Running GC now at timestamp 1686834228 seconds
[Canister ryjl3-tyaaa-aaaaa-aaaba-cai] [ledger] init(): minting account is 082ecf2e3f647ac600f43f38a68342fba5b8e68b085f02592b77f39808a8d2b5
[Canister ryjl3-tyaaa-aaaaa-aaaba-cai] [ledger] init(): using maximum message size: 131072
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Couldn't update maturity modulation. Error: IC0304: Attempt to execute a message on canister rkp4c-7iaaa-aaaaa-aaaca-cai which contains no Wasm module
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Couldn't update maturity modulation. Error: IC0304: Attempt to execute a message on canister rkp4c-7iaaa-aaaaa-aaaca-cai which contains no Wasm module
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Couldn't update maturity modulation. Error: IC0304: Attempt to execute a message on canister rkp4c-7iaaa-aaaaa-aaaca-cai which contains no Wasm module
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Couldn't update maturity modulation. Error: IC0304: Attempt to execute a message on canister rkp4c-7iaaa-aaaaa-aaaca-cai which contains no Wasm module
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Couldn't update maturity modulation. Error: IC0304: Attempt to execute a message on canister rkp4c-7iaaa-aaaaa-aaaca-cai which contains no Wasm module
[Canister r7inp-6aaaa-aaaaa-aaabq-cai] [Root Canister] canister_init
[Canister rkp4c-7iaaa-aaaaa-aaaca-cai] [cycles] init() with ledger canister ryjl3-tyaaa-aaaaa-aaaba-cai, governance canister rrkah-fqaaa-aaaaa-aaaaq-cai, exchange rate canister <none>, and minting account 082ecf2e3f647ac600f43f38a68342fba5b8e68b085f02592b77f39808a8d2b5
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] [Governance] Updated daily maturity modulation rate to (in basis points): 0, at: 1686834234. Last updated: None
[Canister renrk-eyaaa-aaaaa-aaada-cai] [GTC] canister_init: Initializing
[Canister qaa6y-5yaaa-aaaaa-aaafa-cai] [SNS-WASM] canister_init_

Solutions I've tried

I tried deleting .dfx folder inside sns-testing & tried running ./cleanup.sh script but the result remains the same.

mraszyk commented 1 year ago

You need to use dfx 0.14. This is installed by running the script ./install.sh.

harsh-mn-yral commented 1 year ago

@mraszyk Thanks for the quick reply, but I'm not able to install DFX 0.14.0 version:

DFX_VERSION=0.14.0 sh -ci "$(curl -sSL https://internetcomputer.org/install.sh)"
info: Executing dfx install script, commit: c9964420b98f735a2626daba6f20b860b2876305
info: Version found: 0.14.0
info: Creating uninstall script in ~/.cache/dfinity
info: uninstall path=/Users/mbp/.cache/dfinity/uninstall.sh
info: Checking for latest release...
warn: Not forcing TLS v1.2, this is potentially less secure
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     9    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
dfinity-sdk: command failed: downloader https://github.com/dfinity/sdk/releases/download/0.14.0/dfx-0.14.0-x86_64-darwin.tar.gz /var/folders/y0/0dq6fgpd31g3th4_w2vlbccc0000gn/T/tmp.Bcr14DVX/dfx-0.14.0-x86_64-darwin.tar.gz
exit

Edit: I was not able to install it using the ./install.sh script as well. It seems it was trying to install 0.14.1 version as well (and failing to do that too)

mraszyk commented 1 year ago

I'm not able to install DFX 0.14.0 version

You shouldn't need to install DFX 0.14.0, the latest DFX 0.14.1 is fine.

I was not able to install it using the ./install.sh script as well.

The install.sh script fetches DFX 0.14.1 and it worked for me just now.

mraszyk commented 1 year ago

@harshbaz Any update on this issue? Is it resolved?

anchpop commented 7 months ago

@harshbaz I just merged a PR that should resolve this issue! Make sure to run ./install.sh again. Please leave a comment here if using the latest version of sns-testing does not resolve the issue :D