# Cannot download CMC canister wasm anymore

**URL:** <https://forum.dfinity.org/t/cannot-download-cmc-canister-wasm-anymore/22387>\
**Category:** Developers\
**Created:** [August 26, 2023, 10:26am UTC](https://forum.dfinity.org/t/cannot-download-cmc-canister-wasm-anymore/22387 "2023-08-26T10:26:41Z")\
**Posts on this page:** 5\
**Page:** 1

<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 26, 2023, 10:26am UTC](https://forum.dfinity.org/t/cannot-download-cmc-canister-wasm-anymore/22387/1 "2023-08-26T10:26:41Z")

</div>

I’ve got a script in Juno ([source](https://github.com/buildwithjuno/juno/blob/main/scripts/cmc.sh)) that downloads and installs the CMC canister locally.

While trying to install a clean project from scratch, I discovered my script does not work anymore because the source of the CMC wasm is not accessible anymore.

Anyone knows where was the wasm file was moved?

* * *

This fails:

```auto
IC_VERSION=c9b2f9653afc2da47e5bd527c192090b860acbf0
curl -o cmc.wasm.gz "https://download.dfinity.systems/ic/$IC_VERSION/canisters/cycles-minting-canister.wasm.gz"
gunzip cmc.wasm.gz

```

Because [https://download.dfinity.systems/ic/c9b2f9653afc2da47e5bd527c192090b860acbf0/canisters/cycles-minting-canister.wasm.gz](https://download.dfinity.systems/ic/c9b2f9653afc2da47e5bd527c192090b860acbf0/canisters/cycles-minting-canister.wasm.gz) returns

```auto
<Error>
  <Code>AccessDenied</Code>
  <Message>Access Denied</Message>
  ...
</Error>

```

---

<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:** [September 14, 2023, 9:22am UTC](https://forum.dfinity.org/t/cannot-download-cmc-canister-wasm-anymore/22387/2 "2023-09-14T09:22:35Z")

</div>

Forgot to close this. I believe wasm hosted by download.dfinity.systems are deleted after 6 months, therefore the “old” wasm I was trying to download was not available anymore.

To solve the issue I bumped the commit number to most recent and luckily, there was no breaking changes. So my deploy script for local development was still ok.

> <https://github.com/buildwithjuno/juno/commit/c3d67e0f0e4010dbfcb4da70c6fee6d5e06ac244>
>
> Signed-off-by: David Dal Busco \<david.dalbusco@outlook.com\>

---

<div class="post-metadata">

**Author:** ![rabbithole](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/rabbithole/32/8138_2.png) [@rabbithole](https://forum.dfinity.org/u/rabbithole)\
**Post date:** [September 15, 2023, 5:35pm UTC](https://forum.dfinity.org/t/cannot-download-cmc-canister-wasm-anymore/22387/3 "2023-09-15T17:35:01Z")

</div>

I would like to add that in this form, the `CMC` will not be able to create canisters using the `notify_create_canister` method. I ran into this issue [here](https://forum.dfinity.org/t/canister-does-not-consume-cycles-local/17852/8) and the solution suggested was to deploy a locally modified version of `CMC`. I wrote [a small readme](https://github.com/rabbithole-app/rabbithole/blob/main/src/backend/cmc/README.md) how to build a custom `CMC`, a link to [`cmc.sh`](https://github.com/rabbithole-app/rabbithole/blob/main/scripts/cmc.sh). I hope this helps someone 🙂

---

<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:** [September 15, 2023, 6:45pm UTC](https://forum.dfinity.org/t/cannot-download-cmc-canister-wasm-anymore/22387/4 "2023-09-15T18:45:54Z")

</div>

Thanks for the readme and…starred ⭐

---

<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:** [September 18, 2023, 3:41pm UTC](https://forum.dfinity.org/t/cannot-download-cmc-canister-wasm-anymore/22387/6 "2023-09-18T15:41:04Z")

</div>

In case someone is facing yet another issue trying to deploy the Cmc locally

> Error: Failed while trying to deploy canisters.  
> Caused by: Failed while trying to deploy canisters.  
> Failed while trying to install all canisters.  
> Failed to install wasm module to canister ‘cmc’.  
> Failed during wasm installation call: The replica returned a replica error: Replica Error: reject code CanisterError, reject message Canister rkp4c-7iaaa-aaaaa-aaaca-cai trapped explicitly: Panicked at ‘Deserialization Failed: “Fail to decode argument 0 from table0 to opt record {\n exchange\_rate\_canister : opt variant { Set : principal; Unset };\n last\_purged\_notification : opt nat64;\n governance\_canister\_id : opt principal;\n minting\_account\_id : opt text;\n ledger\_canister\_id : opt principal;\n}”’, rs/rust\_canisters/dfn\_core/src/endpoint.rs:49:41, error code None

Try again. For no reason, I just restarted my script and it worked out.
