Hi,
We just did the upgrade to Octopus 2022.2.8011, and just saw a problem rebuilding the package index.
The task keeps running and every so much seconds, gives the following error for a couple of packages;
Error indexing package ‘\wur\dfs-root\projects\OctopusShared\Packages\Spaces-1\feeds-builtin******.1.0.0.36.nupkg’. End of Central Directory record could not be found.
System.IO.InvalidDataException: End of Central Directory record could not be found.
at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
at System.IO.Compression.ZipArchive…ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
at Octopus.Core.Packages.Extraction.NupkgPackageExtractor.GetIndexPackageData(String packageFile, SpaceId spaceId, ILog log) in ./source/Octopus.Core/Packages/Extraction/NupkgPackageExtractor.cs:line 52
at Octopus.Server.Orchestration.ServerTasks.SynchronizeBuiltInPackageRepositoryIndex.SynchronizeBuiltInPackageRepositoryIndexTaskController.AddFileToIndex(String file, BuiltInPackageIndex repository, ICollection`1 packagesToAddToIndex, IBuiltInPackageRepository builtInPackageRepository, ISpecificSpacePartition spacePartition) in ./source/Octopus.Server/Orchestration/ServerTasks/SynchronizeBuiltInPackageRepositoryIndex/SynchronizeBuiltInPackageRepositoryIndexTaskController.cs:line 249
at Octopus.Server.Orchestration.ServerTasks.SynchronizeBuiltInPackageRepositoryIndex.SynchronizeBuiltInPackageRepositoryIndexTaskController.<>c__DisplayClass11_0.<b__0>d.MoveNext() in ./source/Octopus.Server/Orchestration/ServerTasks/SynchronizeBuiltInPackageRepositoryIndex/SynchronizeBuiltInPackageRepositoryIndexTaskController.cs:line 173
Octopus.Server version 2022.2.8011 (2022.2.8011)
I checked one of those packages and the specific version number, but this specific package with that number is not present in the package repository anymore (has been cleaned because of the policy).
Why does this happen and how can i solve this?
Thanks in advance!
Best regards,
Jeffrey