Error running conventions; running failure conventions

I’m trying to deploy to an environment with 5 machines, using a rolled deployment. The first attempt I did worked fine, however, the following did not go so well as some of the tentacles fail to deploy. I do manage to get them through, by retrying the deployment for that tentacle, but it’s not a clean deployment.

Using Octopus Deploy 2.3.6.1385

Hi Goncalo,

It looks like something very odd is happening in your deployments. Are you using the custom installation directory to copy files to the same place that Tentacle.exe is installed to? Or did you copy the Deploy.ps1 file from Tentacles?

Basically, your Deploy.ps1 file is calling the Deploy.ps1 that we bundle with Tentacle for automatic upgrades, which is then telling the Tentacle service to use a different executable.

Could you attach a raw deployment log?

Paul

Hi Paul,

Thanks for the quick answer. This only happened when trying to deploy a
release that had been deployed before. After posting this issue, I created
a new release and everything seemed to work correctly.

I’m posting the full task log below.

Task ID: ServerTasks-991
Task status: Success
Task queued: 26 de maio de 2014 11:18
Task started: 26 de maio de 2014 11:18
Task duration: 7 minutes

                | Warning: Deploy API release 1.0.39 to Production

11:18:30 Verbose | Packages acquired
11:18:30 Info | Parallelism limited to 1 tentacle concurrently
11:20:12 Verbose | First chance failure detected in: Running step
“Deploy NuGet package” on “Web .12”…
| One or more items in the current operation failed.
11:22:43 Verbose | First chance failure detected in: Running step
“Deploy NuGet package” on “Web .13”…
| One or more items in the current operation failed.
11:24:45 Verbose | First chance failure detected in: Running step
“Deploy NuGet package” on “Web .40”…
| One or more items in the current operation failed.
11:25:07 Verbose | Deploy NuGet package completed
11:25:07 Verbose | All steps completed
|
| Success: Acquire packages
11:18:29 Info | Downloading packages
11:18:29 Info | Making a list of packages to download
11:18:29 Verbose | The following packages will be downloaded by
the Octopus Server:
11:18:29 Verbose | - Frotcom.WebAPI 1.0.38 (feed: TeamCity)
11:18:29 Verbose | The following packages will be downloaded
directly by Tentacles:
11:18:30 Info | All packages have been downloaded
|
| Success: Download package Frotcom.WebAPI
1.0.38 from NuGet feed: TeamCity
11:18:29 Verbose | Checking package cache for package
Frotcom.WebAPI 1.0.38
11:18:29 Verbose | Package was found in cache. No need to
download. Using file:
C:\Frotcom\Octopus\PackageCache\feeds-1\Frotcom.WebAPI.1.0.38_EAB574E528515A4F9C9A8F2FF14226C4.nupkg
11:18:29 Verbose | SHA1 hash of package is:
8221a499397822795ea27f9c844e1be2acf66efa
11:18:29 Verbose | Determining machines that need the package
|
| Success: Upload package to
https://192.168.100.10:10933/
11:18:29 Verbose | Starting Upload package to
https://192.168.100.10:10933/
11:18:29 Info | Uploading Frotcom.WebAPI.1.0.38 (0,88
MB) to SQ-WIN-82JE9QLMNOR-D7F2D526
11:18:29 Verbose | Checking to see if the package is
present on the tentacle
11:18:29 Info | Package Frotcom.WebAPI 1.0.38 with hash
8221a499397822795ea27f9c844e1be2acf66efa has already been uploaded to
tentacle SQ-WIN-82JE9QLMNOR-D7F2D526
|
| Success: Upload package to
https://192.168.100.11:10933/
11:18:29 Verbose | Starting Upload package to
https://192.168.100.11:10933/
11:18:29 Info | Uploading Frotcom.WebAPI.1.0.38 (0,88
MB) to SQ-WIN-6FK7PER2D1L-8ADABC7C
11:18:29 Verbose | Checking to see if the package is
present on the tentacle
11:18:29 Info | Package Frotcom.WebAPI 1.0.38 with hash
8221a499397822795ea27f9c844e1be2acf66efa has already been uploaded to
tentacle SQ-WIN-6FK7PER2D1L-8ADABC7C
|
| Success: Upload package to
https://192.168.100.12:10933/
11:18:29 Verbose | Starting Upload package to
https://192.168.100.12:10933/
11:18:29 Info | Uploading Frotcom.WebAPI.1.0.38 (0,88
MB) to SQ-WIN-UBF9891S0L0-820FD018
11:18:29 Verbose | Checking to see if the package is
present on the tentacle
11:18:30 Info | Package Frotcom.WebAPI 1.0.38 with hash
8221a499397822795ea27f9c844e1be2acf66efa has already been uploaded to
tentacle SQ-WIN-UBF9891S0L0-820FD018
|
| Success: Upload package to
https://192.168.100.13:10933/
11:18:29 Verbose | Starting Upload package to
https://192.168.100.13:10933/
11:18:29 Info | Uploading Frotcom.WebAPI.1.0.38 (0,88
MB) to SQ-WIN-K6KTJE9VM68-F0DDA84D
11:18:29 Verbose | Checking to see if the package is
present on the tentacle
11:18:30 Info | Package Frotcom.WebAPI 1.0.38 with hash
8221a499397822795ea27f9c844e1be2acf66efa has already been uploaded to
tentacle SQ-WIN-K6KTJE9VM68-F0DDA84D
|
| Success: Upload package to
https://192.168.100.40:10933/
11:18:29 Verbose | Starting Upload package to
https://192.168.100.40:10933/
11:18:29 Info | Uploading Frotcom.WebAPI.1.0.38 (0,88
MB) to SQ-WIN-NN8KCDSQ0DA-CDDAF474
11:18:29 Verbose | Checking to see if the package is
present on the tentacle
11:18:30 Info | Package Frotcom.WebAPI 1.0.38 with hash
8221a499397822795ea27f9c844e1be2acf66efa has already been uploaded to
tentacle SQ-WIN-NN8KCDSQ0DA-CDDAF474
|
| Warning: Step 1: Deploy NuGet package
11:18:30 Info | Executing step: Deploy NuGet package
|
| Success: Web .10
11:18:30 Verbose | Starting Running step “Deploy NuGet
package” on “Web .10”
11:18:30 Info | Running “Deploy NuGet package” on “Web .10”
|
| Success: Deploy Frotcom.WebAPI on Web .10
11:18:30 Info | Beginning deployment…
11:18:30 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_3EE81F9794C4CB4082063A5462BCC38D.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-82JE9QLMNOR
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.18449
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:18:30 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:18:31 Verbose | Running procedure Delete temporary package files
11:18:43 Verbose | Storing a record of the deployment.
11:18:43 Info | Deployment complete.
|
| Success: Copy files to C:\Frotcom
11:18:31 Info | Copying package contents to ‘C:\Frotcom’
|
| Success: Web .11
11:18:44 Info | Starting: Running step “Deploy NuGet
package” on “Web .11”
11:18:44 Info | Running “Deploy NuGet package” on “Web .11”
|
| Success: Beginning deployment…
11:18:44 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_908B876D79BCD14E82806866A35A5D7F.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-6FK7PER2D1L
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.18449
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:18:44 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:18:44 Verbose | Running procedure Delete temporary package files
11:18:44 Info | Deploy Frotcom.WebAPI on Web .11
11:18:46 Verbose | Storing a record of the deployment.
11:18:46 Info | Deployment complete.
|
| Success: Copy files to C:\Frotcom
11:18:44 Info | Copying package contents to ‘C:\Frotcom’
|
| Failed: Web .12
11:18:47 Info | Starting: Running step “Deploy NuGet
package” on “Web .12”
11:18:47 Info | Running “Deploy NuGet package” on “Web .12”
11:20:12 Info | Creating an interruption to request failure guidance
11:21:21 Info | Guidance received: Retry
|
| Failed: Deploy Frotcom.WebAPI on Web .12
11:18:48 Info | Beginning deployment…
11:18:48 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_594924994388284C8C98C8A69A0AFA64.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-UBF9891S0L0
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.19455
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:18:48 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:18:49 Verbose | Running procedure Delete temporary package files
11:20:08 Error | Error running conventions; running
failure conventions…
11:20:11 Fatal | Deployment on the Tentacle failed.
11:20:11 Verbose | Storing a record of the deployment.
|
| Success: Copy files to C:\Frotcom
11:18:49 Info | Copying package contents to ‘C:\Frotcom’
|
| Failed: Deploy.ps1
11:19:50 Info | Reconfiguring the Octopus Tentacle
Windows Service to use path: C:\Frotcom\Tentacle.exe
11:19:50 Info | Tentacle instance: Tentacle
11:20:07 Error | & : The term ‘.\Tentacle.exe’ is not
recognized as the name of a cmdlet,
11:20:07 Error | function, script file, or operable
program. Check the spelling of the name, or
11:20:07 Error | if a path was included, verify that
the path is correct and try again.
11:20:07 Error | At
C:\Frotcom\Octopus\Tentacle\Deploy.ps1:10 char:3
11:20:07 Error | + & .\Tentacle.exe service
–reconfigure --instance “$instanceName” --console
11:20:08 Error | | Wr …
11:20:08 Error | + ~~~~~~~~~~~~~~
11:20:08 Error | + CategoryInfo :
ObjectNotFound: (.\Tentacle.exe:String) [], Pare
11:20:08 Error | ntContainsErrorRecordException
11:20:08 Error | + FullyQualifiedErrorId :
CommandNotFoundException
11:20:08 Fatal | PowerShell script returned a non-zero
exit code: 1
|
| Failed: Web .13
11:21:28 Info | Starting: Running step “Deploy NuGet
package” on “Web .13”
11:21:28 Info | Running “Deploy NuGet package” on “Web .13”
11:22:43 Info | Creating an interruption to request failure guidance
11:23:41 Info | Guidance received: Retry
|
| Failed: Deploy Frotcom.WebAPI on Web .13
11:21:29 Info | Beginning deployment…
11:21:29 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_6E71C6F72DB82E4BA44A4D222BEF2052.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-K6KTJE9VM68
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.18449
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:21:29 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:21:30 Verbose | Running procedure Delete temporary package files
11:22:38 Error | Error running conventions; running
failure conventions…
11:22:40 Fatal | Deployment on the Tentacle failed.
11:22:40 Verbose | Storing a record of the deployment.
|
| Success: Copy files to C:\Frotcom
11:21:30 Info | Copying package contents to ‘C:\Frotcom’
|
| Failed: Deploy.ps1
11:22:28 Info | Reconfiguring the Octopus Tentacle
Windows Service to use path: C:\Frotcom\Tentacle.exe
11:22:28 Info | Tentacle instance: Tentacle
11:22:38 Error | & : The term ‘.\Tentacle.exe’ is not
recognized as the name of a cmdlet,
11:22:38 Error | function, script file, or operable
program. Check the spelling of the name, or
11:22:38 Error | if a path was included, verify that
the path is correct and try again.
11:22:38 Error | At
C:\Frotcom\Octopus\Tentacle\Deploy.ps1:10 char:3
11:22:38 Error | + & .\Tentacle.exe service
–reconfigure --instance “$instanceName” --console
11:22:38 Error | | Wr …
11:22:38 Error | + ~~~~~~~~~~~~~~
11:22:38 Error | + CategoryInfo :
ObjectNotFound: (.\Tentacle.exe:String) [], Pare
11:22:38 Error | ntContainsErrorRecordException
11:22:38 Error | + FullyQualifiedErrorId :
CommandNotFoundException
11:22:38 Fatal | PowerShell script returned a non-zero
exit code: 1
|
| Failed: Web .40
11:23:46 Info | Starting: Running step “Deploy NuGet
package” on “Web .40”
11:23:46 Info | Running “Deploy NuGet package” on “Web .40”
11:24:46 Info | Creating an interruption to request failure guidance
11:25:02 Info | Guidance received: Retry
|
| Failed: Beginning deployment…
11:23:28 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_C3BF486BF456644B90D370ADE5F30ED7.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-NN8KCDSQ0DA
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.34003
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:23:28 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:23:30 Verbose | Running procedure Delete temporary package files
11:23:46 Info | Deploy Frotcom.WebAPI on Web .40
11:24:22 Error | Error running conventions; running
failure conventions…
11:24:22 Fatal | Deployment on the Tentacle failed.
11:24:22 Verbose | Storing a record of the deployment.
|
| Success: Copy files to C:\Frotcom
11:23:30 Info | Copying package contents to ‘C:\Frotcom’
|
| Failed: Deploy.ps1
11:24:06 Info | Reconfiguring the Octopus Tentacle
Windows Service to use path: C:\Frotcom\Tentacle.exe
11:24:06 Info | Tentacle instance: Tentacle
11:24:22 Error | & : The term ‘.\Tentacle.exe’ is not
recognized as the name of a cmdlet,
11:24:22 Error | function, script file, or operable
program. Check the spelling of the name, or
11:24:22 Error | if a path was included, verify that
the path is correct and try again.
11:24:22 Error | At
C:\Frotcom\Octopus\Tentacle\Deploy.ps1:10 char:3
11:24:22 Error | + & .\Tentacle.exe service
–reconfigure --instance “$instanceName” --console
11:24:22 Error | | Wr …
11:24:22 Error | + ~~~~~~~~~~~~~~
11:24:22 Error | + CategoryInfo :
ObjectNotFound: (.\Tentacle.exe:String) [], Pare
11:24:22 Error | ntContainsErrorRecordException
11:24:22 Error | + FullyQualifiedErrorId :
CommandNotFoundException
11:24:22 Fatal | PowerShell script returned a non-zero
exit code: 1
|
| Success: Retry: Running step “Deploy NuGet
package” on “Web .12”
11:21:21 Info | Running “Deploy NuGet package” on “Web .12”
|
| Success: Deploy Frotcom.WebAPI on Web .12
11:21:21 Info | Beginning deployment…
11:21:21 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_594924994388284C8C98C8A69A0AFA64.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-UBF9891S0L0
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.19455
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:21:21 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:21:24 Verbose | Running procedure Delete temporary package files
11:21:27 Verbose | Storing a record of the deployment.
11:21:27 Info | Deployment complete.
|
| Success: Copy files to C:\Frotcom
11:21:24 Info | Copying package contents to ‘C:\Frotcom’
|
| Success: Retry: Running step “Deploy NuGet
package” on “Web .13”
11:23:41 Info | Running “Deploy NuGet package” on “Web .13”
|
| Success: Deploy Frotcom.WebAPI on Web .13
11:23:42 Info | Beginning deployment…
11:23:42 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_6E71C6F72DB82E4BA44A4D222BEF2052.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-K6KTJE9VM68
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.18449
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:23:42 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:23:43 Verbose | Running procedure Delete temporary package files
11:23:46 Verbose | Storing a record of the deployment.
11:23:46 Info | Deployment complete.
|
| Success: Copy files to C:\Frotcom
11:23:43 Info | Copying package contents to ‘C:\Frotcom’
|
| Success: Retry: Running step “Deploy NuGet
package” on “Web .40”
11:25:03 Info | Running “Deploy NuGet package” on “Web .40”
|
| Success: Beginning deployment…
11:24:45 Verbose | Begin deployment of package: Frotcom.WebAPI.1.0.38
| Package file path:
C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_C3BF486BF456644B90D370ADE5F30ED7.nupkg
| Package file hash:
8221a499397822795ea27f9c844e1be2acf66efa
| Tentacle Agent information:
| - Machine name: WIN-NN8KCDSQ0DA
| - Is 64-bit: True
| - Service user name: SYSTEM
| - CLR version: 4.0.30319.34003
| - Current directory: C:\Windows\system32
| - OS version: Microsoft Windows
NT 6.2.9200.0
| - Tentacle version: 2.3.6.1385
11:24:45 Verbose | Package will be extracted to:
C:\Frotcom\Octopus\Applications\Production
11:24:45 Verbose | Running procedure Delete temporary package files
11:24:48 Verbose | Storing a record of the deployment.
11:24:49 Info | Deployment complete.
11:25:03 Info | Deploy Frotcom.WebAPI on Web .40
|
| Success: Copy files to C:\Frotcom
11:24:47 Info | Copying package contents to ‘C:\Frotcom’
|

Gonçalo Oliveira
Technical Lead

T. + 351 214 135 670

[image: Descrição: Descrição: Descrição:
cid:image001.png@01CC5CD0.34B03D60]http://frotcom.wordpress.com/[image:
Descrição: Descrição: Descrição:
cid:image002.png@01CC5CD0.34B03D60]http://www.linkedin.com/company/frotcom-international
[image: face] http://www.facebook.com/frotcom.international [image:
Descrição: Descrição: Descrição:
cid:image004.png@01CC5CD0.34B03D60]http://twitter.com/#!/frotcom

*Frotcom | 31 Offices | 13 languages http://frotcom.wordpress.com/ |
*One team moving forward

Angola | Belgium | Brazil | Bulgaria | Cameroon | Cyprus | Croatia |
D.R.Congo | Georgia | Greece | Italy | Kenya | Kosova | Luxembourg |
Macedonia | Madagascar | Mauritius | Morocco | Portugal | Reunion Islands |
Romania | Rwanda | Senegal | Seychelles | Sierra Leone | Slovenia |
South Africa | Spain | Tanzania | Uganda | UK |

The information transmitted, including attachments, is intended only for
the person(s) or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, re-transmission,
dissemination or other use of, or taking of any action in reliance upon
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
destroy any copies of this information.

image003.png

image001.png

image004.png

image002.png

Hi Goncalo,

Thanks for the update. On the Tentacle, can you use the NuGet Package Explorer tool to open this package:

C:\Frotcom\Octopus\Applications.Tentacle\Packages\Frotcom.WebAPI.1.0.38_6E71C6F72DB82E4BA44A4D222BEF2052.nupkg

Inside, there is a Deploy.ps1 file. Can you show me what the Deploy.ps1 file in that package looks like?

NuGet Package Explorer is available here:

Paul

Hi Paul,

I can’t seem to find a deploy.ps1 file inside the package…

Gonçalo Oliveira
Technical Lead

T. + 351 214 135 670

[image: Descrição: Descrição: Descrição:
cid:image001.png@01CC5CD0.34B03D60]http://frotcom.wordpress.com/[image:
Descrição: Descrição: Descrição:
cid:image002.png@01CC5CD0.34B03D60]http://www.linkedin.com/company/frotcom-international
[image: face] http://www.facebook.com/frotcom.international [image:
Descrição: Descrição: Descrição:
cid:image004.png@01CC5CD0.34B03D60]http://twitter.com/#!/frotcom

*Frotcom | 31 Offices | 13 languages http://frotcom.wordpress.com/ |
*One team moving forward

Angola | Belgium | Brazil | Bulgaria | Cameroon | Cyprus | Croatia |
D.R.Congo | Georgia | Greece | Italy | Kenya | Kosova | Luxembourg |
Macedonia | Madagascar | Mauritius | Morocco | Portugal | Reunion Islands |
Romania | Rwanda | Senegal | Seychelles | Sierra Leone | Slovenia |
South Africa | Spain | Tanzania | Uganda | UK |

The information transmitted, including attachments, is intended only for
the person(s) or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, re-transmission,
dissemination or other use of, or taking of any action in reliance upon
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
destroy any copies of this information.

image001.png

image003.png

image004.png

image002.png