dfx crashes while deploying
Open
Nobody has claimed this yet.
needs-triage
- Dominant language
- Rust
- Stars
- 204
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
I tried the following:
git clone https://github.com/vporton/grants-science/commit/7444a8b70264f7fde63b24c61518f0104572fbb1
cd grants-science/science-grants-blockchain
dfx start --clean
# In other terminal:
dfx deploy frontend
This happened:
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to install all canisters.
Caused by: Failed to install wasm module to canister 'grants_system'.
Caused by: Failed during wasm installation call
Caused by: The replica returned a rejection error: reject code CanisterError, reject message Error from Canister umunu-kh777-77774-qaaca-cai: Canister called `ic0.trap` with message: 'RTS error: blob_of_principal: invalid principal'
Canister Backtrace:
rts_trap
motoko_rts::trap_with_prefix::h38b3fa56e36ec881
motoko_rts::rts_trap_with::h52b3dd26714cf24e
blob_of_principal
init
canister_init
.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: https://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly, error code Some("IC0503")
Meta
dfx --version:
dfx 0.28.0
Further log output
Fetching properties for all assets in the canister.
Fetched properties for all assets in the canister in 13.797532ms
Staging contents of new and changed assets in batch 2:
/assets/index-BML3YvH_.js (478878 bytes) sha 4ac1134c00d67055101b40522de824896a08d6ab0e870945d55ac5681535f8a9 is already installed
/assets/index-BML3YvH_.js (gzip) (165405 bytes) sha e85544230db1e51d69c7573e2d047e7b6ae03ad420f28ab18d4560f13ed8047c is already installed
/index.html (648 bytes) sha 160f063f00c73bc23f75e63c685093ccf52307f170a7da33cc9a9134104183d2 is already installed
/index.html (gzip) (394 bytes) sha 5a504d1ab8f09cf179f599814b84ca2f1800e008a49189028b9b92f0955acf08 is already installed
/assets/index-DyQ5GJHb.css (18661 bytes) sha 6c1aa683fcd4af3cbc044098774d16d47b56f8d290f88eebbd1dbf453edc4485 is already installed
/assets/index-DyQ5GJHb.css (gzip) (4033 bytes) sha 25838e55631cc0410d58ed1e07d7e30c7c776e6cc2953bca962ae80723fc607e is already installed
Count of each Batch Operation Kind: {}
Chunks: 0 Bytes: 0
Canister API version: 2. ic-asset API version: 1
Committing batch.
Upgraded code for canister frontend, with canister ID uzt4z-lp777-77774-qaabq-cai
Previously installed module hash: None
New wasm module hash: 7b3223ef0d697137db39dc8918cba1a0f66c3f6b3b9f4884c3e392a91cca680e
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to install all canisters.
Caused by: Failed to install wasm module to canister 'grants_system'.
Caused by: Failed during wasm installation call
Caused by: The replica returned a rejection error: reject code CanisterError, reject message Error from Canister umunu-kh777-77774-qaaca-cai: Canister called `ic0.trap` with message: 'RTS error: blob_of_principal: invalid principal'
Canister Backtrace:
rts_trap
motoko_rts::trap_with_prefix::h38b3fa56e36ec881
motoko_rts::rts_trap_with::h52b3dd26714cf24e
blob_of_principal
init
canister_init
.
Consider gracefully handling failures from this canister or altering the canister to handle exceptions. See documentation: https://internetcomputer.org/docs/current/references/execution-errors#trapped-explicitly, error code Some("IC0503")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure from the reported repository and commands: dfx start --clean, then dfx deploy frontend, using dfx 0.28.0 and verbose output. Start at the deploy/install path indicated by the Failed to install wasm module error and the canister_init backtrace. Done means deployment completes without the blob_of_principal: invalid principal trap.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100