Hello! I’m deploying a package that’s been compressed using the node octopack module. It is building fine without errors, but when I go to deploy it on Octopus, I get
Extracting package to: C:\Octopus\Applications\Test\dimple\1.0.156
System.NotSupportedException: Unknown header: 56
at SharpCompress.Common.Zip.ZipHeaderFactory.ReadHeader(UInt32 headerBytes, BinaryReader reader)
at SharpCompress.Common.Zip.StreamingZipHeaderFactory.<ReadStreamHeader>d__1.MoveNext()
at SharpCompress.Reader.Zip.ZipReader.<GetEntries>d__6.MoveNext()
at SharpCompress.Reader.AbstractReader`2.NextEntryForCurrentStream()
at SharpCompress.Reader.AbstractReader`2.MoveToNextEntry()
at Calamari.Integration.Packages.ZipPackageExtractor.Extract(String packageFile, String directory, Boolean suppressNestedScriptWarning) in Y:\work\14ffc968155e4956\source\Calamari\Integration\Packages\ZipPackageExtractor.cs:line 19
at Calamari.Deployment.Conventions.ExtractPackageConvention.Install(RunningDeployment deployment) in Y:\work\14ffc968155e4956\source\Calamari\Deployment\Conventions\ExtractPackageConvention.cs:line 31
at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
at Calamari.Deployment.ConventionProcessor.RunConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28
Running rollback conventions...
Adding journal entry:
<Deployment Id="d49de879-6ae4-4877-924c-d66f95ca7b3e" EnvironmentId="Environments-1" ProjectId="Projects-21" PackageId="dimple" PackageVersion="1.0.156" InstalledOn="2016-03-16 14:12:08" ExtractedFrom="C:\Octopus\Files\dimple.1.0.156.zip-3d1ecfbc-1b9f-4d7b-ac8d-54533ccaf160" ExtractedTo="" RetentionPolicySet="Environments-1/Projects-21/Step-dimple/Machines-1/<default>" CustomInstallationDirectory="C:\inetpub\wwwroot\Dimple" WasSuccessful="False" />
System.ArgumentNullException: Value cannot be null.
Parameter name: path
at System.IO.DirectoryInfo..ctor(String path)
at Calamari.Integration.FileSystem.CalamariPhysicalFileSystem.EnumerateFiles(String parentDirectoryPath, String[] searchPatterns) in Y:\work\14ffc968155e4956\source\Calamari\Integration\FileSystem\CalamariPhysicalFileSystem.cs:line 181
at Calamari.Integration.Scripting.PackagedScriptRunner.FindScripts(RunningDeployment deployment) in Y:\work\14ffc968155e4956\source\Calamari\Integration\Scripting\PackagedScriptRunner.cs:line 55
at Calamari.Integration.Scripting.PackagedScriptRunner.RunScripts(RunningDeployment deployment) in Y:\work\14ffc968155e4956\source\Calamari\Integration\Scripting\PackagedScriptRunner.cs:line 29
at Calamari.Deployment.ConventionProcessor.RunRollbackConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 69
at Calamari.Deployment.ConventionProcessor.RunConventions() in Y:\work\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 48
at Calamari.Commands.DeployPackageCommand.Execute(String[] commandLineArguments) in Y:\work\14ffc968155e4956\source\Calamari\Commands\DeployPackageCommand.cs:line 110
at Calamari.Program.Execute(String[] args) in Y:\work\14ffc968155e4956\source\Calamari\Program.cs:line 38
The remote script failed with exit code 100
This appears to be an issue with SharpCompress rather than Calamari. The exception is getting thrown from https://github.com/adamhathcock/sharpcompress/blob/2a630e04b279b3491fda9276b09a86b8fedbcb3d/SharpCompress/Common/Zip/ZipHeaderFactory.cs#L90. If you need the file for debugging, I’d be happy to send it your way.
Thanks,
Caleb