Access to earlier package is denied

Hello,

We receive following errors during deployment:

Finding earlier packages that have been uploaded to this Tentacle.

May 13th 2019 14:37:39

Error

Access to the path 'C:\Octopus\Files\COORS.Main.Release@S3.1.4.1894-debug@E5D3A206721A57458F8C53847C1BB98D.zip' is denied.

May 13th 2019 14:37:39

Error

System.UnauthorizedAccessException

May 13th 2019 14:37:39

Error

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

May 13th 2019 14:37:39

Error

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)

May 13th 2019 14:37:39

Error

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)

May 13th 2019 14:37:39

Error

at Calamari.Integration.Packages.PackagePhysicalFileMetadata.Build(String fullFilePath, PackageFileNameMetadata identity)

May 13th 2019 14:37:39

Error

at Calamari.Integration.FileSystem.PackageStore.<>c.<GetNearestPackages>b__9_4(<>f__AnonymousType2`2 zipPackage)

May 13th 2019 14:37:39

Error

at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

May 13th 2019 14:37:39

Error

at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

May 13th 2019 14:37:39

Error

at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

May 13th 2019 14:37:39

Error

at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

May 13th 2019 14:37:39

Error

at Calamari.Commands.FindPackageCommand.FindEarlierPackages(PackageStore packageStore, IVersion version)

May 13th 2019 14:37:39

Error

at Calamari.Commands.FindPackageCommand.Execute(String[] commandLineArguments)

May 13th 2019 14:37:39

Error

at Calamari.Program.Execute(String[] args)

Only this package countered this issue. Other packages that are deployed to the same Tentacle worked fine.

Any suggestion will be appreciated!

Thanks,

Ge

Hi Ge,
Thanks for reaching out. Sorry to hear you have hit this issue with Octopus.
From the logs, it looks as though something on the Tentacle machine has a lock on the file C:\Octopus\Files\COORS.Main.Release@S3.1.4.1894-debug@E5D3A206721A57458F8C53847C1BB98D.zip
Is it possible to log into the Tentacle machine and make sure there are no processes that have a lock on that file. Possible restarting the Tentacle machine would be a quick method of achieving this.

I hope that helps.

Kind regards,
Tom W

Hi Tom,

Thanks for looking into this!

I ended up manually deleted the problematic package files, and the deployment went through after that.

I still don’t know what locked the file, and why only that particular one.

This ticket can be closed now.

Thanks again!

Ge

Hi Ge,
That’s great news that you managed to get your deployments working again.
Hopefully it wont happen again.

Feel free to reach out if you have any further questions.

Kind regards,
Tom W

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