Canister violated contract: "ic0_call_new" cannot be executed in pre upgrade mode.
I changed pre_upgrade back, but it is still stuck
Is there any solution?
Canister violated contract: "ic0_call_new" cannot be executed in pre upgrade mode.
I changed pre_upgrade back, but it is still stuck
Is there any solution?
I see the following options:
ic0.call_new
from triggering--skip-pre-upgrade
option of dfx canister install
--wasm-memory-persistence
option of dfx canister install
), but this option requires careful testing as it was originally intended for Motoko EOP, not for canisters written in generic-purpose high-level languages (moreover, the new canister WASM must also include a custom section called enhanced-orthogonal-persistence
).