Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest App Insights: Annotate Release Failing #844

Closed
altnp opened this issue Jan 6, 2020 · 9 comments · Fixed by #902
Closed

Latest App Insights: Annotate Release Failing #844

altnp opened this issue Jan 6, 2020 · 9 comments · Fixed by #902

Comments

@altnp
Copy link

altnp commented Jan 6, 2020

Step template

Application Insights - Annotate Release

Step template parameter inputs

Step template version

7

Step template related environment information

None

Octopus Server version

2019.10.12

Expected behavior

Script should execute and annotate the release.

Actual behavior

OperationStopped: Failed to create an annotation with Id: ... . Error Exception, Description: The underlying connection was closed: An unexpected error occurred on a receive.. 

At C:\Octopus\Work\20200106192330-60093-98\Script.ps1:135 char:3 
January 6th 2020 14:23:38Error
+      throw $output 
January 6th 2020 14:23:38Error
+      ~~~~~~~~~~~~~ 
January 6th 2020 14:23:38Error
at <ScriptBlock>, C:\Octopus\Work\20200106192330-60093-98\Script.ps1: line 135 
January 6th 2020 14:23:38Error
at <ScriptBlock>, C:\Octopus\Work\20200106192330-60093-98\Bootstrap.Script.ps1: line 2239 
January 6th 2020 14:23:38Error
at <ScriptBlock>, <No file>: line 1 
January 6th 2020 14:23:38Error
at <ScriptBlock>, <No file>: line 1 
January 6th 2020 14:23:38Fatal
The remote script failed with exit code 1 
January 6th 2020 14:23:38Fatal
The action Annotate Release on the Octopus Server failed 

Possible solution

--

Steps to reproduce the problem (for bugs)

--

@russellhorton
Copy link

Also seeing this issue - I'm using the latest version of the template with the security protocols enabled.

@Daniel-Svensson
Copy link

Same problem here.
running the script from https://raw.githubusercontent.com/microsoft/ApplicationInsights-Home/master/API/CreateReleaseAnnotation.ps1 works on the same machine

@richardwhatever
Copy link

anyone get a fix for this?

@harrisonmeister
Copy link
Contributor

This could be linked to requiring TLS 1.2

@harrisonmeister
Copy link
Contributor

The Script has this at the top :

$protocols = [Enum]::GetNames([System.Net.SecurityProtocolType])
if([Enum]::IsDefined([System.Net.SecurityProtocolType], 0)) {
    $protocols = @([System.Net.SecurityProtocolType]::SystemDefault)
}
Write-Output "Enabling security protocols: $protocols"
[System.Net.ServicePointManager]::SecurityProtocol = $protocols

What are your System Defaults for TLS?

@altnp
Copy link
Author

altnp commented Apr 11, 2020 via email

@harrisonmeister
Copy link
Contributor

Hi @altnp - thanks for the info. I'll get a change sorted to set the TLS settings to 1.2 on this step template next week.

@harrisonmeister
Copy link
Contributor

Raised #902 to force TLS 1.2 - changes will be reviewed next week.

@richardwhatever
Copy link

Thanks @harrisonmeister - I appreciate the swift response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants