After calling dfx deploy frontend --network ic I got
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 'frontend'.
Caused by: Failed to store assets in canister 'frontend'.
Caused by: Failed asset sync with canister lwdq3-vqaaa-aaaal-acwda-cai.
Caused by: Failed to create batch: The replica returned a rejection error: reject code SysTransient, reject message Canister lwdq3-vqaaa-aaaal-acwda-cai is out of cycles: please top up the canister with at least 28_585_618_602 additional cycles, error code None
However, I used to deploy with about 12 TC, then I made few changes to get such a strange error. I don’t know which caused the canister to requires more cycles like that
Could it be having more canister like cketh_ledger, ckusdc_ledger, but I am not actually deploying them I am just using their declarations
First, cycle count 28_585_618_602 represents the total cost for the freezing threshold and requested action.
To better understand the cost of the canister deployment, subtract the freezing threshold from the total cycle count. It’s a bit hard to say exactly why deployment increased in cost but here are a few things to check on:
What is your current freezing threshold? Have you increased it from the default of 2,590,000 cycles?
You can verify this information using the following command:
dfx canister status <canister_name> --network=ic
Did you switch to a different subnet? The canister will be replicated across all of the replicas in the subnet so if you moved to a subnet with more replicas, that could explain the increase.
regarding the commands: always make sure to add --ic or --network=ic, otherwise dfx tries to execute the command on the local replica instead of IC mainnet.
Yes, like @marc0olo mentioned. Please make sure that you are running the commands on mainnet.
The freezing threshold that you have is the default one so you didn’t change it to something significant that it would result is more cycles being burned.