Unable to find Octo.exe, but its just been installed


(Mark Van Cooten) #1

Hi,

We’re seeing this error very occasionally on VSTS build. Only occurs when octo needs to be installed. Which seems to succeed, but then it can’t find it. This doesn’t happen if octo is already installed, and usually doesn’t happen, even if it is.

2018-10-17T02:39:52.4646373Z ==============================================================================
2018-10-17T02:39:52.4646506Z Task : Package Application
2018-10-17T02:39:52.4646614Z Description : Package your application into a NuPkg or Zip file.
2018-10-17T02:39:52.4646728Z Version : 3.0.180
2018-10-17T02:39:52.4646824Z Author : Octopus Deploy
2018-10-17T02:39:52.4646920Z Help : Version: 3.0.180. More Information
2018-10-17T02:39:52.4647045Z ==============================================================================
2018-10-17T02:39:53.6391699Z Checking local tool cache
2018-10-17T02:39:53.6450057Z Downloading: https://download.octopusdeploy.com/octopus-tools/4.41.5/OctopusTools.4.41.5.portable.zip
2018-10-17T02:39:53.6965884Z Extracting archive
2018-10-17T02:39:53.7012757Z [command]/usr/bin/unzip /home/vsts/work/_temp/3ceab605-2ec0-40e7-9e37-95336c0b6699
2018-10-17T02:39:53.7701306Z Archive: /home/vsts/work/_temp/3ceab605-2ec0-40e7-9e37-95336c0b6699
2018-10-17T02:39:53.8142009Z inflating: Autofac.dll
2018-10-17T02:39:53.8147976Z inflating: Markdown.dll
2018-10-17T02:39:53.8152898Z inflating: Microsoft.Extensions.Caching.Abstractions.dll
2018-10-17T02:39:53.8158186Z inflating: Microsoft.Extensions.Caching.Memory.dll
2018-10-17T02:39:53.8164461Z inflating: Microsoft.Extensions.DependencyInjection.Abstractions.dll
2018-10-17T02:39:53.8168173Z inflating: Microsoft.Extensions.Options.dll
2018-10-17T02:39:53.8173040Z inflating: Microsoft.Extensions.Primitives.dll
2018-10-17T02:39:53.8225342Z inflating: Newtonsoft.Json.dll
2018-10-17T02:39:53.8230932Z inflating: NuGet.Common.dll
2018-10-17T02:39:53.8244212Z inflating: NuGet.Frameworks.dll
2018-10-17T02:39:53.8248270Z inflating: NuGet.Packaging.Core.dll
2018-10-17T02:39:53.8251122Z inflating: NuGet.Packaging.Core.Types.dll
2018-10-17T02:39:53.8270207Z inflating: NuGet.Packaging.dll
2018-10-17T02:39:53.8275941Z inflating: NuGet.Versioning.dll
2018-10-17T02:39:53.8277190Z inflating: Octo
2018-10-17T02:39:53.8278965Z inflating: Octo.cmd
2018-10-17T02:39:53.8285129Z inflating: Octo.deps.json
2018-10-17T02:39:53.8288116Z inflating: Octo.dll
2018-10-17T02:39:53.8289701Z inflating: Octo.pdb
2018-10-17T02:39:53.8291254Z inflating: Octo.runtimeconfig.json
2018-10-17T02:39:53.8299113Z inflating: Octodiff.dll
2018-10-17T02:39:53.8345195Z inflating: Octopus.Cli.dll
2018-10-17T02:39:53.8356488Z inflating: Octopus.Cli.pdb
2018-10-17T02:39:53.8421518Z inflating: Octopus.Client.dll
2018-10-17T02:39:53.8421669Z inflating: Octopus.Client.dll.config
2018-10-17T02:39:53.8439963Z inflating: Octopus.Client.pdb
2018-10-17T02:39:53.8452581Z inflating: Octopus.Client.xml
2018-10-17T02:39:53.8462564Z inflating: Octostache.dll
2018-10-17T02:39:53.8476234Z inflating: Serilog.dll
2018-10-17T02:39:53.8478655Z inflating: Serilog.Sinks.ColoredConsole.dll
2018-10-17T02:39:53.8480776Z inflating: Serilog.Sinks.Trace.dll
2018-10-17T02:39:53.8488960Z inflating: Sprache.dll
2018-10-17T02:39:53.8540818Z Caching tool: Octo 4.41.5 x64
2018-10-17T02:39:53.8890298Z Looking for /opt/hostedtoolcache/Octo/4.41.5/x64/*Octo.dll
2018-10-17T02:39:53.9013471Z Prepending PATH environment variable with directory: /opt/hostedtoolcache/Octo/4.41.5/x64
2018-10-17T02:39:53.9118139Z ##[error]Error: Unable to find or install octo.
2018-10-17T02:39:53.9131477Z ##[error]Failed to execute octo pack command. Unable to find or install octo.


(Matthew Casperson) #2

Hi Mark, thanks for reaching out.

I’m sorry to hear you are experiencing this issue. I’ve created an issue at https://github.com/OctopusDeploy/OctoTFS/issues/115 for this problem.

As a workaround you can manually define the Octo capability, which will mean the plugin will not attempt to download and install the octo cli. The documentation at https://octopus.com/docs/api-and-integration/tfs-vsts/using-octopus-extension/install-octo-capability has more information on defining the Octo capability.

Regards
Matt C


(Mark Van Cooten) #3

Thanks.


(system) #5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.