# Dfx deploy --network ic --no-wallet command reported error 404

**URL:** <https://forum.dfinity.org/t/dfx-deploy-network-ic-no-wallet-command-reported-error-404/6262>\
**Category:** Developers\
**Tags:** Functional-Programming\
**Created:** [August 2, 2021, 6:58am UTC](https://forum.dfinity.org/t/dfx-deploy-network-ic-no-wallet-command-reported-error-404/6262 "2021-08-02T06:58:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anywn](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/anywn/32/2771_2.png) [@anywn](https://forum.dfinity.org/u/anywn)\
**Post date:** [August 2, 2021, 6:58am UTC](https://forum.dfinity.org/t/dfx-deploy-network-ic-no-wallet-command-reported-error-404/6262/1 "2021-08-02T06:58:46Z")

</div>

root@anywn:~/motoko/workspace/wallet# dfx deploy --network ic --no-wallet  
Deploying all canisters.  
Creating canisters…  
Creating canister “record”…  
The replica returned an HTTP Error: Http Error: status 404 Not Found, content type “text/html”, content:

404 Not Found
# 404 Not Found

* * *
nginx/1.19.10

---

<div class="post-metadata">

**Author:** ![honopu](https://avatars.discourse-cdn.com/v4/letter/h/ecccb3/32.png) [@honopu](https://forum.dfinity.org/u/honopu)\
**Post date:** [August 10, 2021, 8:21am UTC](https://forum.dfinity.org/t/dfx-deploy-network-ic-no-wallet-command-reported-error-404/6262/2 "2021-08-10T08:21:19Z")

</div>

Is there some resolutions?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [August 10, 2021, 9:18am UTC](https://forum.dfinity.org/t/dfx-deploy-network-ic-no-wallet-command-reported-error-404/6262/3 "2021-08-10T09:18:00Z")

</div>

I get this error when I forgot to create a canister in nns app and link it with the canister I would like to deploy.

> ❯ dfx deploy --network=ic --no-wallet  
> Deploying all canisters.  
> Creating canisters…  
> Creating canister “deck”…  
> The replica returned an HTTP Error: Http Error: status 404 Not Found, content type “text/html”, content:
> 
> 404 Not Found
> # 404 Not Found
> 
> * * *
> nginx/1.19.10

You can follow that tutorial to create and link canister with nns app: [How to Deploy Your First Canister Smart Contract Using the NNS Dapp | by DFINITY | The Internet Computer Review | Medium](https://medium.com/dfinity/how-to-deploy-your-first-canister-using-the-nns-dapp-c8b75e01a05b)

When the canister is created, you need to add the related id at the root of your project in a `canister_ids.json` file.

P.S.: I think you can also do it with the cmd line but never tried.
