Error regarding not enough cycles to deploy canister

I’m following the developer tutorial hosted on ICP’s website and I’m running into an issue about minimum number of cycles when trying to deploy a canister. I have about 3 trillion cycles as indicated by the attached image, which I figure is plenty but I’m still getting an error regarding not having enough cycles. The canister is just hosting the poll application in the tutorial so I dont see where I’m going wrong. Thanks for any help!

1 Like

In the logs it says that poll_backend was created successfully, so I assume you have a canister poll_frontend that was not created. You can check in canister_ids.json.

Dfx by default takes 3T cycles per canister, plus 0.5T for canister creation cost. Most likely it used up almost all your balance for the first canister. You can tell it to e.g. only use 1T using --with-cycles 1T

1 Like

Thank you Severin for the feedback. So even specifying the amount of cycles I want to use, I’m running into the error of running out of cycles still. It seems as if Dfx is using the default, even when I use the extension you provided. At this point I have almost 2 ICP converted into cycles and that has given me the 2 canisters created as indicated by the image but it says one canister is running out, even when I have 7T cycles. Perhaps I’m missing something but I think 2 ICP worth of cycles should be enough to host a poll dapp, no?

1 Like

Try to find issues with ChatGPT, it can give many options how to fix it.

1 Like

Unfortunately chatgpt gets most of it wrong when I ask it for bash commands with ICP canisters. I imagine its something I’m doing wrong fundamentally. Or maybe I didn’t setup something. So far I’ve used a good amount of cycles and its giving me issues when trying to fabricate them, so I’ve used a little money trying to get it deployed and I dont want to just keep banging my head against the wall. Like it either gives me this error of not enough cycles or when I try to restart the process it gives me an IC0512 error, which basically says I don’t have access and doesnt make sense.

1 Like

It looks to me like the backend (moki4) is working since it was created with 3T cycles, but it says that the frontend doesn’t have enough cycles. This sounds plausible to me since you created the frontend with fewer cycles. The error message says it needs 800M more cycles for a successful installation. If you top it up with a few more cycles (e.g. dfx cycles top-up --ic poll_frontend 200B) then installation should work.

Yep, the problem is that it doesn’t really have access to very current data. If you try the chatbot in our docs you probably have a much better chance at getting a useful response