Deployment error - Django app

Hi all,

I have built a Django app and have deployed (via the CLI command ‘flyctl deploy’) that app many times successfully to live. The last successful deployment was yesterday and after minor changes to the Django code base (just a few typos here and there - nothing substantial) I have tried (multiple times) today to deploy and received the following error:

Release command failed - aborting deployment. error running release_command machine: error updating release_command machine: failed to update VM xxx: invalid_argument: unable to update machine configured for auto destroy

I have never received this kind of error before and it comes out of nowhere for me. Any idea what the reason might be and what I could do to resolve the issue?

Many thanks in advance for your support.

Hello! it is OK to share the machine ID and it will me debug this issue.

@dangra Yes, the machine ID is d890666a429098

Thank you.

Thanks @neptunhiker

I think I have a good idea of what the problem is, until it is fixed, you can unblock the deployment by destroying the machine with:

fly machine destroy -f d890666a429098

or any other machine that cause the same error later.

Thank you very much for the suggestion. I will be able to try it out tomorrow. In the meantime could you let me know what your thoughts are on what possibly caused the error?

Also, does destroying the machine come with any risks or sideffects on my app? I am asking because I have never destroyed a machine and it sounds a bit risky. Would be good to get some assurance that your propsed solution is safe to follow.

Thanks a lot.