Can't delete releases with API due to unknown deployments

Hello,

I’m trying to delete releases on mender side via API call.

I endup with a 409 error due to linked active deployments:

However on Mender UI (and API call) there is no deployments with these ids (note that I’m the admin of our Pro account so I should be able to see everything).

If I delete manually the release on the web page it works, so I’m guessing there is a bug on the server/db state of mender.

Could you provide some help or guidance on what to do?

After some investigation, I can call for the deployment individually but they are all in the status “finished”. I have not idea why mender doesn’t allow me to delete these releases…

Hi @g.amaudric , maybe the deployments have been created this morning? There was an incident that required a database fallback: Hosted Mender Status - API issues with Mender Server so it’s possible you have data not coherent in the backend

Hello,

Thanks for the info, I didn’t see it…

Unfortunately, these releases/deployments are quite old (several months):

As you can see the status is “finished”, I even tried to abort the deployment to see if this change something but mender respond with:

image

So, a part of mender thinks this deployment is still active and another acknowledge the fact it’s finished…

Hi @g.amaudric I see… It could be that there is something to fix in the backend, I think it’s better to open a support request