0

I have intermittent build failure in TFS

How do you solve Octopus Exited with code - 1

Exception Message: Octopus Exited with code - -1 (type Exception)
Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
cpoDesign
  • 8,953
  • 13
  • 62
  • 106
  • When in the build is this happening? Is it trying to push packages to a nuget repository? Is this during an automated deployment as part of the build? – AutomatedOrder Oct 20 '15 at 15:01
  • Does Octopus fail (Red in the octopus dashboard) or the failure that TFS cannot communicate with Octopus? – James Reed Oct 20 '15 at 21:02

1 Answers1

-1

WorkAround

Only work around is to monitor the build and trigger deploy again and the issue will go away.

So far I have no other solution

Common answer I have found

Thanks for getting in touch! Very rarely we get ghost processes. To reset them on your tentacle please do the following:

> cd \Program Files\Octopus Deploy\Tentacle
> 
> tentacle.exe service --stop tentacle.exe reset-activities tentacle.exe
> service --start

That is however not very neat solution and does not remove the cause as far I can tell.

cpoDesign
  • 8,953
  • 13
  • 62
  • 106