I recently wanted to try a container upgrade with a limit on the size of the container file footprint. As far as the test is concerned, when the file storage occupies 159MB, the container upgrade fails. The error message is: An error happened during the call: 5: Canister XXX-cai exceeded the instruction limit for single message execution. When the file storage occupies 140MB, it can be upgraded normally.
There are the following attempts.
-
in dfx.json file add “args”: “–max-stable-pages-131072”, and call the rust library storage::stable_save() method.
-
creat canister and then request a minimum of 8G storage space from IC network (actual test file size is 650MB) or so. The error is still the same: An error happened during the call: 5: Canister XXX-cai exceeded the instruction limit for single message execution.
Is there any way to upgrade the rust canister.