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.
build.log

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

My work as a recruited developer changes almost every month. 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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s