Hello
I’m not able to delete or deploy canisters with following errors
dfx canister delete --all --network ic:
Please enter the passphrase for your identity: [hidden]
Decryption complete.
Beginning withdrawal of cycles; on failure try --no-wallet --no-withdrawal.
WARNING!
Canister hello_backend has not been stopped. Delete anyway?
Do you want to proceed? yes/No
yes
Setting the controller to identity principal.
Installing temporary wallet in canister hello_backend to enable transfer of cycles.
Attempting to transfer 2929468569383 cycles to canister ctkwm-aaaaa-aaaal-adgca-cai.
Error: Failed to delete canister ‘hello_backend’.
Caused by: Failed to delete canister ‘hello_backend’.
Failed to deposit 2929468569383 cycles into ctkwm-aaaaa-aaaal-adgca-cai.
Failed to call update function ‘deposit_cycles’ regarding canister ‘ctkwm-aaaaa-aaaal-adgca-cai’.
Update call using wallet failed.
The replica returned a rejection error: reject code CanisterError, reject message Canister 3a7fa-hiaaa-aaaal-ajb5a-cai is out of cycles, error code None
dfx canister status --all --network ic
Please enter the passphrase for your identity: [hidden]
Decryption complete.
Canister status call result for hello_backend.
Status: Running
Controllers: btazm-leowb-c427k-v3mx3-lznjf-vwtaw-q2ib2-ghrry-s2ocd-5nykn-rae
Memory allocation: 0
Compute allocation: 0
Freezing threshold: 0
Memory Size: Nat(3678000)
Balance: 2_940_071_151_165 Cycles
Reserved: 0 Cycles
Reserved Cycles Limit: 5_000_000_000_000 Cycles
Module hash: 0xc1290ad65e6c9f840928637ed7672b688216a9c1e919eacbacc22af8c904a5e3
Number of queries: 0
Instructions spent in queries: 0
Total query request paylod size (bytes): 0
Total query response payload size (bytes): 0
Canister status call result for hello_frontend.
Status: Stopped
Controllers: btazm-leowb-c427k-v3mx3-lznjf-vwtaw-q2ib2-ghrry-s2ocd-5nykn-rae
Memory allocation: 0
Compute allocation: 0
Freezing threshold: 0
Memory Size: Nat(1116)
Balance: 2_974_860_703_077 Cycles
Reserved: 0 Cycles
Reserved Cycles Limit: 5_000_000_000_000 Cycles
Module hash: None
Number of queries: 0
Instructions spent in queries: 0
Total query request paylod size (bytes): 0
Total query response payload size (bytes): 0
dfx deploy --network ic
Deploying all canisters.
All canisters have already been created.
Building canisters…
WARN: /home/admin/ic-app/src/hello_backend/main.mo:78.5-78.31: warning [M0195], this function call implicitly requires system
capability and may perform undesired actions (please review the call and provide a type instantiation <system>
to suppress this warning)
/home/admin/ic-app/src/hello_backend/main.mo:1.8-1.13: warning [M0194], unused identifier Debug (delete or rename to wildcard _
or _Debug
)
/home/admin/ic-app/src/hello_backend/main.mo:4.8-4.13: warning [M0194], unused identifier Error (delete or rename to wildcard _
or _Error
)
/home/admin/ic-app/src/hello_backend/main.mo:5.8-5.13: warning [M0194], unused identifier Array (delete or rename to wildcard _
or _Array
)
/home/admin/ic-app/src/hello_backend/main.mo:6.8-6.12: warning [M0194], unused identifier Nat8 (delete or rename to wildcard _
or _Nat8
)
/home/admin/ic-app/src/hello_backend/main.mo:7.8-7.13: warning [M0194], unused identifier Nat64 (delete or rename to wildcard _
or _Nat64
)
Building frontend…
WARN: Building canisters before generate for Motoko
WARN: /home/admin/ic-app/src/hello_backend/main.mo:78.5-78.31: warning [M0195], this function call implicitly requires system
capability and may perform undesired actions (please review the call and provide a type instantiation <system>
to suppress this warning)
/home/admin/ic-app/src/hello_backend/main.mo:1.8-1.13: warning [M0194], unused identifier Debug (delete or rename to wildcard _
or _Debug
)
/home/admin/ic-app/src/hello_backend/main.mo:4.8-4.13: warning [M0194], unused identifier Error (delete or rename to wildcard _
or _Error
)
/home/admin/ic-app/src/hello_backend/main.mo:5.8-5.13: warning [M0194], unused identifier Array (delete or rename to wildcard _
or _Array
)
/home/admin/ic-app/src/hello_backend/main.mo:6.8-6.12: warning [M0194], unused identifier Nat8 (delete or rename to wildcard _
or _Nat8
)
/home/admin/ic-app/src/hello_backend/main.mo:7.8-7.13: warning [M0194], unused identifier Nat64 (delete or rename to wildcard _
or _Nat64
)
Generating type declarations for canister hello_frontend:
/home/admin/ic-app/src/declarations/hello_frontend/hello_frontend.did.d.ts
/home/admin/ic-app/src/declarations/hello_frontend/hello_frontend.did.js
/home/admin/ic-app/src/declarations/hello_frontend/hello_frontend.did
Generating type declarations for canister hello_backend:
/home/admin/ic-app/src/declarations/hello_backend/hello_backend.did.d.ts
/home/admin/ic-app/src/declarations/hello_backend/hello_backend.did.js
/home/admin/ic-app/src/declarations/hello_backend/hello_backend.did
…/…/node_modules/js-sha256/src/sha256.js (83:17) Use of eval in “…/…/node_modules/js-sha256/src/sha256.js” is strongly discouraged as it poses security risks and may cause issues with minification.
…/…/node_modules/js-sha256/src/sha256.js (84:17) Use of eval in “…/…/node_modules/js-sha256/src/sha256.js” is strongly discouraged as it poses security risks and may cause issues with minification.
Installing canisters…
Installing code for canister hello_backend, with canister ID 3a7fa-hiaaa-aaaal-ajb5a-cai
Installing code for canister hello_frontend, with canister ID 4gyxz-sqaaa-aaaal-ajbnq-cai
Uploading assets to asset canister…
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
Failed while trying to install all canisters.
Failed to install wasm module to canister ‘hello_frontend’.
Failed to store assets in canister ‘hello_frontend’.
Failed asset sync with canister 4gyxz-sqaaa-aaaal-ajbnq-cai.
Failed to list assets: The replica returned a rejection error: reject code CanisterError, reject message IC0508: Canister 4gyxz-sqaaa-aaaal-ajbnq-cai is stopped and therefore does not have a CallContextManager, error code Some(“IC0508”)
link to my app on the github