Hi.
We’ve just tried to upgrade our Octopus Server from version 3.13.10 to 3.17.6.
After the upgrade we get error on powershell scripts interpretation on Octopus Script Modules.
It looks like it can’t decode special chars (such as - ) correctly.
ERROR LOG EXAMPLE:
Executing script on 'PRV-WEVM-SLI06’
March 2nd 2018 11:11:08Warning
Failed to import Script Module 'HAProxy Off/On Rotation V2’
March 2nd 2018 11:11:08Error
At C:\Octopus\Work\20180302111105-3676\Library_HAProxyOffOnRotationV2_636555858
March 2nd 2018 11:11:08Error
670274862.psm1:13 char:11
March 2nd 2018 11:11:08Error
foreach â?"parallel ($ha in $haproxyIP){
March 2nd 2018 11:11:08Error
~
March 2nd 2018 11:11:08Error
Missing opening ‘(’ after keyword ‘foreach’.
March 2nd 2018 11:11:08Error
At C:\Octopus\Work\20180302111105-3676\Library_HAProxyOffOnRotationV2_636555858
March 2nd 2018 11:11:08Error
670274862.psm1:59 char:125
March 2nd 2018 11:11:08Error
… mputername “CAT-WE-VM-WEB01-88” -state “maint” -haproxyIP "10.1.0.59"
March 2nd 2018 11:11:08Error
~
March 2nd 2018 11:11:08Error
The string is missing the terminator: ".
March 2nd 2018 11:11:08Error
At C:\Octopus\Work\20180302111105-3676\Library_HAProxyOffOnRotationV2_636555858
March 2nd 2018 11:11:08Error
670274862.psm1:1 char:33
March 2nd 2018 11:11:08Error
workflow Invoke_HAProxyRotation {
March 2nd 2018 11:11:08Error
~
March 2nd 2018 11:11:08Error
Missing closing ‘}’ in statement block or type definition.
March 2nd 2018 11:11:08Error
CategoryInfo : ParserError: ( [], ParentContainsErrorRecordEx
March 2nd 2018 11:11:08Error
ception
March 2nd 2018 11:11:08Error
Preformatted text FullyQualifiedErrorId : MissingOpenParenthesisAfterKeyword
March 2nd 2018 11:11:08Error
March 2nd 2018 11:11:08Error
The remote script failed with exit code 1
END OF LOG ERROR
Do you have any ideia how we can get this to work?
Thank you.
Joel Ferreira