We have a step in our deployment that deploys an Azure Cloud Service. We have around 30 tenants we will deploy to, sometimes all together (no more than 6 at a time). Somewhere close to half of the deployments will fail on the Cloud Role step with the error Could not find a part of the path '4kdjsdpj.cnk'.
. The random looking file name is different every time. This error use to only crop up one out of 20 deployments, but now it’s almost every other.
Has anyone seen this type of error before? My google fu has been defeated.
Could not find a part of the path '4kdjsdpj.cnk'.
January 10th 2019 22:28:33Error
System.IO.DirectoryNotFoundException
January 10th 2019 22:28:33Error
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
January 10th 2019 22:28:33Error
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
January 10th 2019 22:28:33Error
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath)
January 10th 2019 22:28:33Error
at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, IsolatedStorageFile isf)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Packaging.PackagingUtilities.SafeIsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, ReliableIsolatedStorageFileFolder folder)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Packaging.PackagingUtilities.CreateUserScopedIsolatedStorageFileStreamWithRandomName(Int32 retryCount, String& fileName)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Packaging.SparseMemoryStream.EnsureIsolatedStoreStream()
January 10th 2019 22:28:33Error
at MS.Internal.IO.Packaging.SparseMemoryStream.SwitchModeIfNecessary()
January 10th 2019 22:28:33Error
at MS.Internal.IO.Packaging.SparseMemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Zip.ZipIOFileItemStream.Write(Byte[] buffer, Int32 offset, Int32 count)
January 10th 2019 22:28:33Error
at System.IO.Compression.DeflateStream.WriteDeflaterOutput(Boolean isAsync)
January 10th 2019 22:28:33Error
at System.IO.Compression.DeflateStream.PurgeBuffers(Boolean disposing)
January 10th 2019 22:28:33Error
at System.IO.Compression.DeflateStream.Dispose(Boolean disposing)
January 10th 2019 22:28:33Error
at System.IO.Stream.Close()
January 10th 2019 22:28:33Error
at MS.Internal.IO.Packaging.CompressStream.ChangeMode(Mode newMode)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.FlushExposedStreams()
January 10th 2019 22:28:33Error
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.UpdateReferences(Boolean closingFlag)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag)
January 10th 2019 22:28:33Error
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing)
January 10th 2019 22:28:33Error
at System.IO.Stream.Close()
January 10th 2019 22:28:33Error
at Calamari.Azure.Deployment.Conventions.RePackageCloudServiceConvention.AddContent(Package package, PackageDefinition manifest, Uri partUri, String file)
January 10th 2019 22:28:33Error
at Calamari.Azure.Deployment.Conventions.RePackageCloudServiceConvention.AddLocalContentParts(Package package, PackageDefinition manifest, LayoutDefinition layout, String baseDirectory, String relativeDirectory)
January 10th 2019 22:28:33Error
at Calamari.Azure.Deployment.Conventions.RePackageCloudServiceConvention.AddLocalContentParts(Package package, PackageDefinition manifest, LayoutDefinition layout, String baseDirectory, String relativeDirectory)
January 10th 2019 22:28:33Error
at Calamari.Azure.Deployment.Conventions.RePackageCloudServiceConvention.AddLocalContent(Package package, PackageDefinition manifest, String workingDirectory)
January 10th 2019 22:28:33Error
at Calamari.Azure.Deployment.Conventions.RePackageCloudServiceConvention.Install(RunningDeployment deployment)
January 10th 2019 22:28:34Error
System.ObjectDisposedException: Can not access a closed Stream.
January 10th 2019 22:28:34Error
at System.IO.Compression.DeflateStream.EnsureNotDisposed()
January 10th 2019 22:28:34Error
at MS.Internal.IO.Packaging.CompressStream.Flush()
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.FlushExposedStreams()
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.UpdateReferences(Boolean closingFlag)
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag)
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.Stream.Close()
January 10th 2019 22:28:34Error
at System.IO.StreamWriter.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.StreamWriter.Close()
January 10th 2019 22:28:34Error
at System.Xml.XmlTextWriter.Close()
January 10th 2019 22:28:34Error
at System.Xml.XmlWriter.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.Packaging.ZipPackage.ContentTypeHelper.SaveToFile()
January 10th 2019 22:28:34Error
at System.IO.Packaging.ZipPackage.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.Packaging.Package.System.IDisposable.Dispose()
January 10th 2019 22:28:34Error
at Calamari.Azure.Deployment.Conventions.RePackageCloudServiceConvention.Install(RunningDeployment deployment)
January 10th 2019 22:28:34Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
January 10th 2019 22:28:34Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
January 10th 2019 22:28:34Error
Running rollback conventions...
January 10th 2019 22:28:34Error
Can not access a closed Stream.
January 10th 2019 22:28:34Error
System.ObjectDisposedException
January 10th 2019 22:28:34Error
at System.IO.Compression.DeflateStream.EnsureNotDisposed()
January 10th 2019 22:28:34Error
at MS.Internal.IO.Packaging.CompressStream.Flush()
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.FlushExposedStreams()
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOLocalFileBlock.UpdateReferences(Boolean closingFlag)
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag)
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag)
January 10th 2019 22:28:34Error
at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.Stream.Close()
January 10th 2019 22:28:34Error
at System.IO.StreamWriter.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.StreamWriter.Close()
January 10th 2019 22:28:34Error
at System.Xml.XmlTextWriter.Close()
January 10th 2019 22:28:34Error
at System.Xml.XmlWriter.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.Packaging.ZipPackage.ContentTypeHelper.SaveToFile()
January 10th 2019 22:28:34Error
at System.IO.Packaging.ZipPackage.Dispose(Boolean disposing)
January 10th 2019 22:28:34Error
at System.IO.Packaging.Package.System.IDisposable.Dispose()
January 10th 2019 22:28:34Error
at Calamari.Azure.Deployment.Conventions.RePackageCloudServiceConvention.Install(RunningDeployment deployment)
January 10th 2019 22:28:34Error
at Calamari.Deployment.ConventionProcessor.RunInstallConventions()
January 10th 2019 22:28:34Error
at Calamari.Deployment.ConventionProcessor.RunConventions()
January 10th 2019 22:28:34Error
at Calamari.Azure.Commands.DeployAzureCloudServiceCommand.Execute(String[] commandLineArguments)
January 10th 2019 22:28:34Error
at Calamari.Program.Execute(String[] args)
January 10th 2019 22:28:37Fatal
The remote script failed with exit code 100
January 10th 2019 22:28:37Fatal