# Unable to deploy to the IC Network

**URL:** <https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341>\
**Category:** Getting Started\
**Tags:** deployed\
**Created:** [December 5, 2021, 8:06am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341 "2021-12-05T08:06:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 5, 2021, 8:06am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/1 "2021-12-05T08:06:53Z")

</div>

Hello,  
My dapp is presently Live on [https://rbsr6-fyaaa-aaaai-aarwa-cai.ic0.app/](https://rbsr6-fyaaa-aaaai-aarwa-cai.ic0.app/)

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)

```auto
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 `

```auto
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'"

```

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 5, 2021, 10:06am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/2 "2021-12-05T10:06:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 5, 2021, 10:35am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/3 "2021-12-05T10:35:20Z")

</div>

Thanks, that makes sense…  
How then do I retrieve and use my old principal?

---

<div class="post-metadata">

**Author:** ![GLdev](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@GLdev](https://forum.dfinity.org/u/GLdev)\
**Post date:** [December 5, 2021, 11:15am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/4 "2021-12-05T11:15:13Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 5, 2021, 11:16am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/5 "2021-12-05T11:16:10Z")

</div>

Do you still have access to your old laptop?

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 5, 2021, 11:25am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/6 "2021-12-05T11:25:44Z")

</div>

No, unfortunately I do not have access

however I see that the nns app gives me the original principal…  
is it somehow possible to set the identity here using the older principal?

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 5, 2021, 11:44am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/7 "2021-12-05T11:44:17Z")

</div>

I dont have the private keys, but I believe I have the prinicipal

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 5, 2021, 12:31pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/8 "2021-12-05T12:31:07Z")

</div>

Principal only won’t work, if you lost access to your private key you lost access to your app.

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 5, 2021, 2:32pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/9 "2021-12-05T14:32:33Z")

</div>

Aah I see thanks! that sucks  
lesson learnt

Is there a guide on best practises for deployments?  
I have seen some people use multiple canisters fronted by a LoadBalancer?

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 5, 2021, 2:43pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/10 "2021-12-05T14:43:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 5, 2021, 2:56pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/11 "2021-12-05T14:56:56Z")

</div>

there are 3 canisters in the nns app  
all 3 say that “You are not the controller of this canister.”

and the front end canister where the app is deployed does not show up on the nns.

Im very new to this… and just got it to work somehow…

> **[Principal rbsr6-fyaaa-aaaai-aarwa-cai | ic.rocks](https://ic.rocks/principal/rbsr6-fyaaa-aaaai-aarwa-cai)**
>
> Details for principal rbsr6-fyaaa-aaaai-aarwa-cai on the Internet Computer.

has no controllers apparently

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 5, 2021, 4:35pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/12 "2021-12-05T16:35:00Z")

</div>

Yup it was worth the try though, your dapp looks cool 🙂

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 5, 2021, 4:42pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/13 "2021-12-05T16:42:03Z")

</div>

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:

> **[Internet Computer | Documentation](https://smartcontracts.org/docs/developers-guide/default-wallet.html#wallet-add-controller)**
>
> Documentation for the internet computer.

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 5, 2021, 5:36pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/14 "2021-12-05T17:36:13Z")

</div>

Thanks for this information. I will try to set up a new dapp with these steps

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 11, 2021, 7:45am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/16 "2021-12-11T07:45:07Z")

</div>

i followed the steps you had mentioned here…  
however now I am getting this error

```auto
The replica returned an HTTP Error: Http Error: status 404 Not Found, content type "", content: Requested canister has no wasm module

```

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 11, 2021, 7:52am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/17 "2021-12-11T07:52:14Z")

</div>

Can you give more details how and where you get this error?

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 11, 2021, 7:55am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/18 "2021-12-11T07:55:22Z")

</div>

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”

```auto
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

```

---

<div class="post-metadata">

**Author:** ![coin\_master](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/coin_master/32/15963_2.png) [@coin\_master](https://forum.dfinity.org/u/coin_master)\
**Post date:** [December 11, 2021, 7:58am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/19 "2021-12-11T07:58:09Z")

</div>

I think you need to install first  
`dfx canister install`  
Edit: looks like you already installed

---

<div class="post-metadata">

**Author:** ![designcoderepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/designcoderepeat/32/3899_2.png) [@designcoderepeat](https://forum.dfinity.org/u/designcoderepeat)\
**Post date:** [December 11, 2021, 8:08am UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/20 "2021-12-11T08:08:37Z")

</div>

am getting a different error when I try to install:

```auto
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)

```

---

<div class="post-metadata">

**Author:** ![cryptoschindler](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/cryptoschindler/32/26_2.png) [@cryptoschindler](https://forum.dfinity.org/u/cryptoschindler)\
**Post date:** [December 13, 2021, 7:29pm UTC](https://forum.dfinity.org/t/unable-to-deploy-to-the-ic-network/9341/21 "2021-12-13T19:29:26Z")

</div>

You need the `--network ic` flag for your command to actually install/deploy your canisters on the IC.
