Skip to content

Conversation

@viviveevee
Copy link
Contributor

@viviveevee viviveevee commented May 24, 2024

Description

dfx canister delete occasionally fails because it attempts to withdraw too many cycles from the canister before it is deleted. Usually, dfx tries again with a larger margin of cycles, but sometimes this gets stuck. It is now possible to use --initial-margin to manually supply a margin in case the automatic margin does not work.

This is a temporary workaround until a clean solution exists (requires spec change, runtime change, wallet change, agent support).

Fixes SDK-1556

How Has This Been Tested?

Tested manually on mainnet

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@viviveevee viviveevee requested review from a team and chenyan-dfinity as code owners May 24, 2024 08:23
@viviveevee viviveevee enabled auto-merge (squash) May 24, 2024 11:36
@ghost ghost disabled auto-merge May 24, 2024 15:59
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor note on the documentation update

@viviveevee viviveevee merged commit 5cfddd8 into master May 27, 2024
@viviveevee viviveevee deleted the SDK-1556-dfx-canister-delete-fails-on-mainnet branch May 27, 2024 09:33
@timohanke
Copy link

@sesi200

This is a temporary workaround until a clean solution exists (requires spec change, runtime change, wallet change, agent support).

What is the status of the "clean solution"? And what does it consist of?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants