I can't deploy a website. I am getting error balance: 0

I am trying to upload a website with dfx deploy --network ic --no-wallet. I searched whole google asked chat gpt and spent 6 hours without success. I am getting always Error: Failed while trying to deploy canisters. Caused by: Failed while trying to register all canisters. Caused by: Failed to create canister 'test3_backend'. Caused by: Failed to create canister via cycles ledger. Caused by: Insufficient funds. Current balance: 0

I have 2.9 T Cycles bought with ICP… Created new identity… added it to NNS Canister Controllers and Ubuntu add-controller. Nothing helped… I even send ICP to default identity and the created one without success…

This is so discouraging to be a ICP developer…

I guess you didn’t tell dfx what canister to deploy to. If there is no canister id configured dfx will try to create a new canister. You can tell it about a canister like this with a canister_ids.json file in the root of your project