Local nns install error

,

Hi community!

When installing nns with dfx 0.22.0 I get following error.

External: Error calling 'get_average_icp_xdr_conversion_rate': code: Some(5), message: IC0503: Error from Canister rkp4c-7iaaa-aaaaa-aaaca-cai: Canister called ic0.trap with message: Panicked at 'average_icp_xdr_conversion_rate is not set', rs/nns/cmc/src/main.rs:910:14.

1 Like

That error is expected to show up in the local replica output initially until the ICP/XDR conversion rate is set up via an NNS proposal submitted by the dfx nns extension. I.e., once dfx nns install successfully finishes, you should no longer see those errors being logged.

2 Likes

Hi @mraszyk, the error is periodically logged long after I install NNS canisters.

1 Like

How do you install the NNS canisters? If you use the dfx nns extension, then you shouldn’t see this error after dfx nns install completes.

1 Like

@mraszyk, these are steps:

dfxvm default 0.22.0
dfx killall
dfx start --clean --background
dfx extension install nns
dfx nns install

Process doesn’t fully complete, I get endless error logs. Note that canisters are installed and are working. But if I try to kill unfinished install process it breaks.

I just ran the exact same commands you shared and it works for me: I do see all these errors for a while, but eventually I get

######################################
# NNS CANISTER INSTALLATION COMPLETE #
######################################

Backend canisters:
nns-registry          rwlgt-iiaaa-aaaaa-aaaaa-cai
nns-governance        rrkah-fqaaa-aaaaa-aaaaq-cai
nns-ledger            ryjl3-tyaaa-aaaaa-aaaba-cai
nns-root              r7inp-6aaaa-aaaaa-aaabq-cai
nns-cycles-minting    rkp4c-7iaaa-aaaaa-aaaca-cai
nns-lifeline          rno2w-sqaaa-aaaaa-aaacq-cai
nns-genesis-token     renrk-eyaaa-aaaaa-aaada-cai
nns-identity          rdmx6-jaaaa-aaaaa-aaadq-cai
nns-ui                qoctq-giaaa-aaaaa-aaaea-cai
nns-ic-ckbtc-minter   qjdve-lqaaa-aaaaa-aaaeq-cai
nns-sns-wasm          qaa6y-5yaaa-aaaaa-aaafa-cai


Frontend canisters:
internet_identity     http://qhbym-qaaaa-aaaaa-aaafq-cai.localhost:8080/
nns-dapp              http://qsgjb-riaaa-aaaaa-aaaga-cai.localhost:8080/
sns-aggregator        http://sgymv-uiaaa-aaaaa-aaaia-cai.localhost:8080/



martin@lenovo:~/tmp$ 2024-09-11 13:10:27.063267900 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:27.063267900 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:27.063267900 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:27.063267900 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:27.063267900 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:27.063267900 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:28.351043073 UTC: [Canister rkp4c-7iaaa-aaaaa-aaaca-cai] [cycles] serialized state prior to upgrade (1605 bytes)
2024-09-11 13:10:28.351043073 UTC: [Canister rkp4c-7iaaa-aaaaa-aaaca-cai] Panicked at 'Deserialization Failed: "Cannot parse header 286f7074207265636f7264207b206379636c65735f6c65646765725f63616e69737465725f6964203d206f7074207072696e636970616c2022756d3569772d72716161612d61616161712d71616162612d63616922207d29"', rs/rust_canisters/dfn_core/src/endpoint.rs:49:41
2024-09-11 13:10:28.351043073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:28.351043073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:28.351043073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:28.351043073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:28.351043073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:28.351043073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:29.647329368 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:29.647329368 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:29.647329368 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:29.647329368 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:29.647329368 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:29.647329368 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:30.294821193 UTC: [Canister r7inp-6aaaa-aaaaa-aaabq-cai] [Root Canister] start_canister call successful. Ok(())
2024-09-11 13:10:30.294821193 UTC: [Canister r7inp-6aaaa-aaaaa-aaabq-cai] [Root Canister] change_canister: Canister change failed: Attempt to call install_code with request ChangeCanisterRequest { stop_before_installing: true, mode: Upgrade, canister_id: CanisterId(rkp4c-7iaaa-aaaaa-aaaca-cai), wasm_module_sha256: "[3f, 4a, 7b, 2e, a5, 9e, a0, b3, 53, c1, ad, 96, 15, 74, 1d, 8e, 27, b, 5b, af, c0, 34, 37, c1, cc, 97, 20, 75, 58, 27, 49, af]", arg_sha256: "[5, c5, db, 83, 70, 35, 2c, 62, 2d, ef, f3, a2, 49, de, d6, e3, 55, 61, 2c, 3, 92, 8f, f6, 42, 18, 31, 87, ca, 80, 36, 4a, 13]", compute_allocation: None, memory_allocation: None } failed with code CanisterError: Error from Canister rkp4c-7iaaa-aaaaa-aaaca-cai: Canister called `ic0.trap` with message: Panicked at 'Deserialization Failed: "Cannot parse header 286f7074207265636f7264207b206379636c65735f6c65646765725f63616e69737465725f6964203d206f7074207072696e636970616c2022756d3569772d72716161612d61616161712d71616162612d63616922207d29"', rs/rust_canisters/dfn_core/src/endpoint.rs:49:41.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: http://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly
2024-09-11 13:10:30.937631704 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:30.937631704 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:30.937631704 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:30.937631704 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:30.937631704 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:30.937631704 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:32.231112210 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:32.231112210 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:32.231112210 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:32.231112210 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:32.231112210 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:32.231112210 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:33.522397344 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:33.522397344 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:33.522397344 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:33.522397344 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:33.522397344 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:33.522397344 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:34.819166578 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:34.819166578 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:34.819166578 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:34.819166578 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:34.819166578 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:34.819166578 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:36.112313657 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:36.112313657 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:36.112313657 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:36.112313657 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:36.112313657 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:36.112313657 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:37.408387694 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:37.408387694 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:37.408387694 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:37.408387694 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:37.408387694 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:37.408387694 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:38.702324276 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:38.702324276 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:38.702324276 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:38.702324276 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:38.702324276 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:38.702324276 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:39.996871073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:39.996871073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:39.996871073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:39.996871073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:39.996871073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:39.996871073 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:41.289122598 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:41.289122598 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:41.289122598 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:41.289122598 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:41.289122598 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:41.289122598 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:42.583145949 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:42.583145949 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:42.583145949 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:42.583145949 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:42.583145949 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:42.583145949 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:43.876921574 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:43.876921574 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:43.876921574 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:43.876921574 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:43.876921574 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:43.876921574 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:45.172392707 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:45.172392707 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:45.172392707 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:45.172392707 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:45.172392707 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:45.172392707 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
2024-09-11 13:10:46.467528092 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:46.467528092 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:46.467528092 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:46.467528092 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:46.467528092 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:46.467528092 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
dfx s2024-09-11 13:10:47.759654773 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Getting upstream data...
2024-09-11 13:10:47.759654773 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Maybe have SNSs
2024-09-11 13:10:47.759654773 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-11 13:10:47.759654773 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-11 13:10:47.759654773 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-11 13:10:47.759654773 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}
1 Like

I’m getting this in the dfx logs over and over.

024-09-25 22:29:17.625894 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Need to get more SNSs
2024-09-25 22:29:17.625894 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asking for more SNSs
2024-09-25 22:29:17.625894 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Asked for more SNSs
2024-09-25 22:29:17.625894 UTC: [Canister sgymv-uiaaa-aaaaa-aaaia-cai] Yay, got 0 SNSs: {"instances":[]}

That is the SNS aggregator being very noisy. Someone mentioned turning the volume down on those. In this context, being that verbose can hide real errors.

Thanks for all the answers! Dev experience could be more seamless, neverthless I like developing on top of IC.