Octopus deploy timeout fix

The nightly build failed and a bug was assigned to me. Digging trough the msbuild.log file the error was in the deployment

One or more tasks did not complete before the timeout was reached. We waited 10.1 minutes for the tasks to complete.

There is a timeout of 10 minutes? Never knew this. To be precise, the timeout is in octo.exe not in the EXEC task of msbuild (which has no default timeout).

In the octopus deploy task log we read the deployment had succeeded in 11 minutes. Took 1 minute too long 😕

This task started 14 hours ago and ran for 11 minutes
Octopus deploy task summary

In the octopus documentation we found the deploymenttimeout parameter that has a default of 00:10:00. Looks like we found the solution. We must specify the deploymenttimeout from more that 11 minutes.

Octo.exe create-release --server=http://our.octopus.server/api 
  --project="slow deployment" --deployto=Development 
  --apikey=API-123456789 --waitfordeployment 
  --enableservicemessages --deploymenttimeout=00:30:00

About erictummers

Working in a DevOps team is the best thing that happened to me. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.