Issue while creating nugget package via automated deployment -DLM Automation 2.1.3.2175

Hi all,

We are facing the following issue while creating nugget package via automated deployment. Database pipelines used to run with out any issues until last week. We started getting the following error since last week. Can you help please? any pointers would be appreciated.


below is the error log:
New-DlmDatabasePackage, DLM Automation 2.1.3.2175, Copyright � Red Gate Software Ltd 2014-2018
Export-DlmDatabasePackage, DLM Automation 2.1.3.2175, Copyright � Red Gate Software Ltd 2014-2018
.\db\state\.git\objects\pack\pack-eed583f0d4c17901857c231e14698d4cf4cc70b5.pack
WARNING: System.ObjectDisposedException: Can not access a closed Stream.
   at System.IO.Compression.DeflateStream.EnsureNotDisposed()
   at MS.Internal.IO.Packaging.CompressStream.Flush()
   at MS.Internal.IO.Zip.ZipIOLocalFileBlock.FlushExposedStreams()
   at MS.Internal.IO.Zip.ZipIOLocalFileBlock.UpdateReferences(Boolean closingFlag)
   at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
   at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag)
   at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at System.IO.Packaging.PackagePart.Close()
   at System.IO.Packaging.Package.DoClose(PackagePart p)
   at System.IO.Packaging.Package.DoOperationOnEachPart(PartOperation operation)
   at System.IO.Packaging.Package.System.IDisposable.Dispose()
   at NuGet.PackageBuilder.Save(Stream stream)
   at RedGate.DLMAutomation.Compare.BuildArtifacts.NuGet.NuGetPackageCreator.CreateFromFolder(String path, String id,
String version, String packageDescription) in
D:\BuildAgentB\work\745625c1cb6ba184\DLMAutomation\Cmdlets\RedGate.DLMAutomation.Compare\BuildArtifacts\NuGet\NuGetPack
ageCreator.cs:line 28
   at RedGate.DLMAutomation.Compare.BuildArtifacts.BuildArtifactExporter.ExportAsNuGetFromFolder(String sourceFolder,
String outputDirectory, String id, String version, String packageDescription, Boolean overwrite) in
D:\BuildAgentB\work\745625c1cb6ba184\DLMAutomation\Cmdlets\RedGate.DLMAutomation.Compare\BuildArtifacts\BuildArtifactEx
porter.cs:line 119
   at RedGate.DLMAutomation.Compare.BuildArtifacts.BuildArtifactExporter.Export(String outputDirectory, IBuildArtifact
buildArtifact, Boolean force, BuildArtifactOutputFormat outputFormat, Action checkForAbort) in
D:\BuildAgentB\work\745625c1cb6ba184\DLMAutomation\Cmdlets\RedGate.DLMAutomation.Compare\BuildArtifacts\BuildArtifactEx
porter.cs:line 80
   at RedGate.DLMAutomation.PowerShell.Commands.ExportDlmDatabasePackageCommandImpl.Process() in
D:\BuildAgentB\work\745625c1cb6ba184\DLMAutomation\Cmdlets\RedGate.DLMAutomation.PowerShell\Commands\ExportDlmDatabaseP
ackageCommand.cs:line 111
   at RedGate.DLMAutomation.PowerShell.DlmAutomationCommandImpl`1.ProcessRecord() in
D:\BuildAgentB\work\745625c1cb6ba184\DLMAutomation\Cmdlets\RedGate.DLMAutomation.PowerShell\DlmAutomationCommandImpl.cs
:line 158
   at RedGate.PowerShell.CommandBase`2.DelegateTo(Action doImplementation)
Can not access a closed Stream.
 
Script execution finished at 2021-08-18-T09-40-11



Thanks In advance


Tagged:
Sign In or Register to comment.