Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Re-index built-in package repository job failing

Open veochen-octopus opened this issue 2 years ago • 0 comments

Team

  • [X] I've assigned a team label to this issue

Severity

non blocking

Version

2022.4

Latest Version

I could reproduce the problem in the latest build

What happened?

SynchronizeBuiltInPackageRepositoryIndex task has been consistently failing. This is due to recent changes that will error if tasks are created in a Queued state rather than a New state.

Reproduction

Enable sync built-in package repository and wait for it to run.

Error and Stacktrace

Failed to initialise ServerTask 'ServerTasks-509690' Preconditions
 Octopus.Core.Model.Exceptions.DomainException: A task must be in the New state before it can be queued.
   at Octopus.Core.Model.ServerTasks.ServerTask.Queue() in ./source/Octopus.Core/Model/ServerTasks/ServerTask.cs:line 242
   at Octopus.Core.Features.ServerTasks.InitializeNewServerTaskCommandHandler.Handle(InitializeNewServerTaskCommand command, CancellationToken cancellationToken) in ./source/Octopus.Core/Features/ServerTasks/InitializeNewServerTaskCommandHandler.cs:line 36

More Information

slack [sc-31862]

Workaround

Manually trigger the re-index

veochen-octopus avatar Nov 21 '22 03:11 veochen-octopus