# Deploying to icp mainnet

**URL:** <https://forum.dfinity.org/t/deploying-to-icp-mainnet/35890>\
**Category:** Motoko\
**Created:** [October 7, 2024, 5:37am UTC](https://forum.dfinity.org/t/deploying-to-icp-mainnet/35890 "2024-10-07T05:37:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hokamsingh](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/hokamsingh/32/20823_2.png) [@hokamsingh](https://forum.dfinity.org/u/hokamsingh)\
**Post date:** [October 7, 2024, 5:37am UTC](https://forum.dfinity.org/t/deploying-to-icp-mainnet/35890/1 "2024-10-07T05:37:24Z")

</div>

I am trying to deploy my backend canisters on mainnet but getting this. i have 10 trillion cycles though. I am running this from root of my project. deploying works on local w/0 any issues.

Error: Failed while trying to deploy canisters.  
Caused by: Failed while trying to register all canisters.  
Caused by: Failed to create canister ‘User’.  
Caused by: Failed to create canister via cycles ledger.  
Caused by: Failed to figure out subnet to create canister on.  
Caused by: unable to determine subnet: Canister is not assigned to any subnet.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [October 7, 2024, 7:57am UTC](https://forum.dfinity.org/t/deploying-to-icp-mainnet/35890/2 "2024-10-07T07:57:45Z")

</div>

Can you share the full command you are running? I suspect you’re using `--next-to <canister>` with a canister id from the local network, which would not work
