Exception when deploying package

The package contains a bunch of power shell scripts, a text file called VERSION, and nothing else. The exception is as below. All our other packages deploy without issues.

Deploying package ‘C:\Octopus\Files\MLP.Locates.Scripts.0.152.13215.nupkg-f3194118-7a43-4ba6-bfb2-561b95df053a’ to machine 'https://susitappd001:10933/'
17:46:20Info
Deploying package: C:\Octopus\Files\MLP.Locates.Scripts.0.152.13215.nupkg-f3194118-7a43-4ba6-bfb2-561b95df053a
17:46:20Error
System.NotSupportedException: The given path’s format is not supported.
17:46:20Error
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
17:46:20Error
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
17:46:20Error
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
17:46:20Error
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
17:46:20Error
at System.Security.Permissions.FileIOPermission…ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
17:46:20Error
at System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost)
17:46:20Error
at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption)
17:46:20Error
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.<>c__DisplayClass11_0.b__1(String pattern) in Y:\work\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 183
17:46:20Error
at System.Linq.Enumerable.d__142.MoveNext() 17:46:20Error at Calamari.Deployment.Conventions.ConfigurationTransformsConvention.ApplyTransformations(String sourceFile, IEnumerable1 transformations, HashSet1 alreadyRun) in Y:\work\14ffc968155e4956\source\Calamari\Deployment\Conventions\ConfigurationTransformsConvention.cs:line 68 17:46:20Error at Calamari.Deployment.Conventions.ConfigurationTransformsConvention.Install(RunningDeployment deployment) in Y:\work\14ffc968155e4956\source\Calamari\Deployment\Conventions\ConfigurationTransformsConvention.cs:line 46 17:46:20Error at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60 17:46:20Error at Calamari.Deployment.ConventionProcessor.RunConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28 17:46:20Error Running rollback conventions... 17:46:20Error System.NotSupportedException: The given path's format is not supported. 17:46:20Error at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) 17:46:20Error at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) 17:46:20Error at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) 17:46:20Error at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) 17:46:20Error at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) 17:46:20Error at System.IO.FileSystemEnumerableIterator1…ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) 17:46:20Error at System.IO.DirectoryInfo.InternalGetFiles(String searchPattern, SearchOption searchOption) 17:46:20Error at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.<>c__DisplayClass11_0.<EnumerateFiles>b__1(String pattern) in Y:\work\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 183 17:46:20Error at System.Linq.Enumerable.<SelectManyIterator>d__142.MoveNext()
17:46:20Error
at Calamari.Deployment.Conventions.ConfigurationTransformsConvention.ApplyTransformations(String sourceFile, IEnumerable1 transformations, HashSet1 alreadyRun) in Y:\work\14ffc968155e4956\source\Calamari\Deployment\Conventions\ConfigurationTransformsConvention.cs:line 68
17:46:20Error
at Calamari.Deployment.Conventions.ConfigurationTransformsConvention.Install(RunningDeployment deployment) in Y:\work\14ffc968155e4956\source\Calamari\Deployment\Conventions\ConfigurationTransformsConvention.cs:line 46
17:46:20Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
17:46:20Error
at Calamari.Deployment.ConventionProcessor.RunConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 50
17:46:20Error
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments) in Y:\work\14ffc968155e4956\source\Calamari\Commands\DeployPackageCommand.cs:line 106
17:46:20Error
at Calamari.Program.Execute(String[] args) in Y:\work\14ffc968155e4956\source\Calamari\Program.cs:line 38
17:46:20Error
The remote script failed with exit code 100

Additional information:

Exception seems to be from here, which implies we have a “:” in our file names

http://referencesource.microsoft.com/#mscorlib/system/security/util/stringexpressionset.cs,9962e430aeafa4ab

none of the files contain a colon.

here’s a directory listing:

Directory: \\susitappd001\C$\Octopus\Applications\Staging\MLP.Locates.Scripts\0.152.13215_3

Mode LastWriteTime Length Name


-a— 11/11/2015 5:53 PM 1003 environment-helpers.ps1
-a— 11/11/2015 5:53 PM 585 execute-task.ps1
-a— 11/11/2015 5:53 PM 2031 migrate-autolocates.ps1
-a— 11/11/2015 5:53 PM 566 populate-block-ids.ps1
-a— 11/11/2015 5:53 PM 213 process-auto-locates.ps1
-a— 11/11/2015 5:53 PM 707 process-availability.ps1
-a— 11/11/2015 5:53 PM 309 process-clearing-map-availability.ps1
-a— 11/11/2015 5:53 PM 227 process-trader-files.ps1
-a— 11/11/2015 5:53 PM 536 publish-availability.ps1
-a— 11/11/2015 5:53 PM 391 publish-clearing-map-availability.ps1
-a— 11/11/2015 5:53 PM 1502 shared.ps1
-a— 11/11/2015 5:53 PM 28 VERSION

one very last thing. the environment name does not contain a “:”

Hi Jonathan,

Thanks for getting in touch.

This looks like a really strange one, I’m sure how to go about reproducing that one. My first thought, what if you left the VERSION file out (or renamed it to version.txt)?

Regards

Damian

Damian, we have the same VERSION in other packages we publish. I can try but don’t think it will make a difference. This is happening since an upgrade, so maybe the step itself is corrupted somehow? We aren’t doing any config transformations, but it looks like it’s trying to apply those conventions somehow?

Deleting and recreating the step made it go away. Go figure. COMPUTERS!!!111two

Hi Jonathan,

That’s always a good troubleshooting step! Bizarre though.
I don’t have an explanation for that one, but glad to hear you got it working.

Regards

Damian