Hello!
I am trying to deploy multiple canisters on my mainnet.
The first canister I run deployed fine, but after the second, I always get an error.
[ first canister ]
dfx deploy GoldDIP20 --argument='("Token Gold Logo", "Token Silver", "TGLD", 8, 10000000000000000, principal '\"$ROOT_PRINCIPAL\"', 0)' --network ic --with-cycles 1000000000000
Deploying: GoldDIP20
All canisters have already been created.
Building canisters...
Installing canisters...
Installing code for canister GoldDIP20, with canister ID hksm4-biaaa-aaaap-qauba-cai
Deployed canisters.
URLs:
Backend canister via Candid interface:
GoldDIP20: https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.ic0.app/?id=hksm4-biaaa-aaaap-qauba-cai
[ second canister ]
dfx deploy SilverDIP20 --argument='("Token Silver Logo", "Token Silver", "TSLV", 8, 10000000000000000, principal '\"$ROOT_PRINCIPAL\"', 0)' --network ic --with-cycles 1000000000000
Deploying: SilverDIP20
All canisters have already been created.
Building canisters...
Installing canisters...
Installing code for canister SilverDIP20, with canister ID hntki-mqaaa-aaaap-qaubq-cai
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 'SilverDIP20'.
Failed to install wasm in canister 'hntki-mqaaa-aaaap-qaubq-cai'.
Failed to install wasm.
The replica returned an HTTP Error: Http Error: status 503 Service Unavailable, content type "application/cbor", content: Canister hntki-mqaaa-aaaap-qaubq-cai is out of cycles: requested 652544000 cycles but the available balance is 0 cycles and the freezing threshold 0 cycles
The first and second canisters are token canisters using DIP20. (The canister names are different, but they are copies.)
After this, I increased the cycle amount by one digit and tried to deploy the canisters again, but got the same error. The same is true for the another canister.
- Is there something wrong with my deployment method?
- Is there a best practice?
- Or is it just a lack of cycles? (If it is a lack of cycles, the 20T I got from faucet is far from enough, so I have to think of another way).
Thank you in advance for your answer.