However, I had to change my laptop, and now I am unable to push to the live app
I have signed in the nns app (Not sure if it is relavent)
Installing canisters...
Upgrading code for canister ttbl, with canister_id ruvat-eqaaa-aaaai-aarvq-cai
The replica returned an HTTP Error: Http Error: status 403 Forbidden, content type "", content: Requested canister rejected the message
This is the error message which I am getting when I try to deploy using the command dfx deploy --network ic --no-wallet
and this is the error which I get when I try with dfx deploy --network ic
Building frontend...
Installing canisters...
Upgrading code for canister ttbl, with canister_id ruvat-eqaaa-aaaai-aarvq-cai
The Replica returned an error: code 3, message: "Canister ruvat-eqaaa-aaaai-aarvq-cai has no update method 'wallet_call'"
Since you changed your laptop I am guessing that you are now using a different principal than the one you were using on your old laptop? We can also have a hint from the first error message Http Error: status 403 Forbidden means you are not authorized to do this change.
If yes then you can’t push code to the live site with your new principal, you need the old one.
If you already have taken care of this, then it’s another issue, maybe a more experienced one could help.
If you have a backup of your old laptop, you can find the private key of that principal at the default location: “~/.config/dfx/identity/default/identity.pem”
I don’t have enough knowledge in that area, on another note did you mention you see your principal in your nns?
Did you assign your principal in the nns to be a controller of that canister? if yes then there’s hope.
Usually what I do is to create the canister first from the nns and then add another controller to it which is my default dfx principal, or the vise versa.
More info here:
I created the canisters through nns. then I added my prinicipal as controllers to the 2 canisters i have created.
i also changed the canister_ids.json file with the new canisters i have created
then I try to do “dfx deploy network=ic”
Building frontend...
Installing canisters...
Installing code for canister ttbl, with canister_id wsxna-waaaa-aaaam-qaa2a-cai
The replica returned an HTTP Error: Http Error: status 404 Not Found, content type "", content: Requested canister has no wasm module
am getting a different error when I try to install:
An error happened during communication with the replica: error sending request for url (http://127.0.0.1:8000/api/v2/status): error trying to connect: tcp connect error: Connection refused (os error 61)