Hi all,
My first post, apologies if this has already been answered. I saw a couple of similar posts, but the solutions offered did not help.
Here’s the command and the output:
[email protected] hello (master) $ dfx deploy hello --network ic --no-wallet
Deploying: hello
All canisters have already been created.
Building canisters...
Installing canisters...
Upgrading code for canister hello, with canister_id jhzj3-dqaaa-aaaag-aaa6a-cai
The Replica returned an error: code 5, message: "Canister jhzj3-dqaaa-aaaag-aaa6a-cai trapped: stable memory out of bounds"
The backstory is that I was following Kyle’s post here: Deploying Your First Canister (NNS dapp)
I have a canister with cycles:
[email protected] hello (master) $ dfx canister --network ic --no-wallet status hello
Canister status call result for hello.
Status: Running
Controllers: mukio-ckxox-lztlx-vefkj-c3dlc-2sbpa-vwkov-rzk2k-72l5x-okm3t-eae sn3cz-jtkyo-ege6o-wxb6a-4at6z-yer32-ytlzz-4qati-fbv2u-nixdn-eae x4ydt-ddd3n-zbbcc-y7pyn-7gbqq-fddgp-45zxe-26krf-ypzgm-g5pn5-7qe
Memory allocation: 0
Compute allocation: 0
Freezing threshold: 2_592_000
Memory Size: Nat(1637076)
Balance: 1_890_498_161_591 Cycles
Module hash: 0xe0df779f65fe44893d8991bef0f9af442bff019b79ec756eface2b58beec236f
I had successfully deployed the static site to the canister, but I’m now in a new repo, and am trying to deploy hello world to the same canister (backend only).
Ever since I switched to the new repo I have been getting this error.
Is it possible to deploy a new app to an existing canister?
If not, is there a way to reclaim the cycles and add them to a different canister?
Not sure what best practice is here.
Any input would be most appreciated!