184
Views
2
Comments
Solved
"Command 'start' can't be executed for deployment 
Question

Dear colleagues,

I am trying to start a lifetime deploy to the production environment using the lifetime REST API: /lifetimeapi/rest/v2/deployments/{DeploymentKey}/{Command}/

When entering the DeploymentKey and command I keep getting this error: "Command 'start' can't be executed for deployment. "StatusCode": 400

The Deployment Plan is created and saved in LifeTime. Manually I can deploy the plan then to production. But automatically via REST it gives me an error. I have tried many things already with no results. Anyone who can help me out?

Thanks and best regards,

Gianni Nicolaas 

2021-10-10 20-04-59
Gianni Nicolaas
Solution

For Future References:

Make sure you create a version also for the module(s) and the deploy will start!


2025-01-17 13-16-27
Igor Kirtak

I had the same problem recently. Finally I saw that the problem was: every application included in the deployment didn't have any changes actually. The reason why they were included into deployment was in that a module was moved out of the application in source environment, but was left in the target environment, which looked like a difference. I have manually deleted those modules from target environment, and the apps are not considered changed any more.

Maybe this will help somebody: if you get the above error, check that there is something to deploy actually.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.