Encrypt Config works on win2012, but gives error on win 2008r2

It adds a folder named 273113a3-d2c2-4479-bc61-605e2d725c for example and when finished has a web.config in there.
I tried running config manually on the web.config in the folder and it runs ok manually?

Does any one have a encrypt config that works on win2008r2, or what is wrong?

Executing script on ‘jfprodwebtest’
April 20th 2018 10:40:39Info
Configuration - Encrypt .config
April 20th 2018 10:40:39Info
WebsiteDirectory: C:\inetpub\wwwroot\SalesforceDataCleanup
April 20th 2018 10:40:39Info
SectionsToEncrypt: connectionStrings
April 20th 2018 10:40:39Info
Provider:
April 20th 2018 10:40:39Info
ConfigFile: web.config
April 20th 2018 10:40:39Info
configFilePath: C:\inetpub\wwwroot\SalesforceDataCleanup\web.config
April 20th 2018 10:40:39Info
Directory: C:\inetpub\wwwroot\SalesforceDataCleanup
April 20th 2018 10:40:39Info
Mode LastWriteTime Length Name
April 20th 2018 10:40:39Info


April 20th 2018 10:40:39Info
d---- 4/20/2018 10:42 AM 273113a3-d2c2-4479-bc61-605e2d725c
April 20th 2018 10:40:39Info
8c
April 20th 2018 10:40:39Info
Directory: C:\inetpub\wwwroot\SalesforceDataCleanup\273113a3-d2c2-4479-bc61
April 20th 2018 10:40:39Info
-605e2d725c8c
April 20th 2018 10:40:39Info
Mode LastWriteTime Length Name
April 20th 2018 10:40:39Info


April 20th 2018 10:40:39Info
-a— 4/20/2018 10:42 AM 0 web.config
April 20th 2018 10:40:39Error
New-Item : Could not find a part of the path ‘C:\inetpub\wwwroot\SalesforceData
April 20th 2018 10:40:39Error
Cleanup\273113a3-d2c2-4479-bc61-605e2d725c8c’.
April 20th 2018 10:40:39Error
At C:\Octopus\Work\20180420144218-960-17\Script.ps1:76 char:14
April 20th 2018 10:40:39Error

  •  New-Item <<<<  -ItemType File -Path (Join-Path $tempPath $fileName) -For 
    

April 20th 2018 10:40:39Error
ce
April 20th 2018 10:40:39Error
+ CategoryInfo : WriteError: (C:\inetpub\wwwr…1-605e2d725c8c:S
April 20th 2018 10:40:39Error
tring) [New-Item], DirectoryNotFoundException
April 20th 2018 10:40:39Error
+ FullyQualifiedErrorId : NewItemIOError,Microsoft.PowerShell.Commands.New
April 20th 2018 10:40:39Error
ItemCommand
April 20th 2018 10:40:39Error

April 20th 2018 10:40:39Fatal
The remote script failed with exit code 1
April 20th 2018 10:40:39Fatal
The action Configuration - Encrypt Section on jfprodwebtest failed

Hi,

Could you send through the raw log from a deployment that failed on your Server 2008R2.

Are you using a step template from the Octopus Community Library, or a custom script to perform the config encryption? Could you send through the script in question?

Thank you and best regards,
Henrik

It is the community library. I and a co worker just wrote a power shell script that works on 2008r2. The script step made it very easy.

Hi Joel,

Great to hear you found a solution to your issue!

I’ll investigate the community library step template and see if we can get a fix out for it as soon as possible.

Thank you and best regards,
Henrik

I’m not sure how, and I came up with a work around using a script.
Thanks for the help.

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