Hi,
I have a problem where I can’t push a specific package to our octopus server.
We just updated our server to version 2019.9.10. It was working fine before, I do not know the version we were before as I was not the one doing the update.
We have a Jenkins CI/CD creating a package and pushing it to the octopus server.
When pushing the package, I get this error :
Octo.exe push --package App.1.148.zip --replace-existing --server "http://octopusserver/" --apiKey ****
Octopus Deploy Command Line Tool, version 7.4.1
Detected automation environment: "Jenkins"
Space name unspecified, process will run in the default space context
Handshaking with Octopus Server: http://octopusserver/
Handshake successful. Octopus version: 2019.9.10; API version: 3.0.0
Authenticated as: xxxxxxx
Pushing package: D:\xxxxxxxx\App.1.148.zip...
Requesting signature for delta compression from the server for upload of a package with id 'App' and version '1.148'
Something went wrong while performing a delta transfer: Octopus Server returned an error: Object reference not set to an instance of an object.
Falling back to pushing the complete package to the server
Octopus Server returned an error: Object reference not set to an instance of an object.
Error from Octopus Server (HTTP 500 InternalServerError)
I tried packaging the package with octo pack, 7zip and powershell compress-archive. Nothing changed.
Then, when I go on the server in Library -> Package, I don’t see my package. If I open the explorer on the server, I can see the package inside the C:\Octopus\Packages\Spaces-1\feeds-builtin\App folder.
I tried to re-index but I get an error when re-indexing the package;
August 13th 2020 09:35:02Warning
Error inserting package details into database. Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Octopus.Server.Web.Api.ModelRestrictionMap.PackageUsages.<>c__DisplayClass1_0.<UsesPackage>b__2(PackageReference p) in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Server\Web\Api\ModelRestrictionMap\PackageUsages.cs:line 30
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.Linq.Enumerable.<DistinctIterator>d__64`1.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Octopus.Server.Web.Api.ModelRestrictionMap.PackageRestriction.CheckPermissionInProjects(IndexedPackage model, ISpacePartitionPrincipal principal, IOctopusQueryExecutor queryExecutor, Permission permissionToCheck)
at Octopus.Server.Web.Infrastructure.Security.DocumentRestrictions.CompositeAndRestriction`2.CombineWithAnd(Func`2 check) in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Server\Web\Infrastructure\Security\DocumentRestrictions\CompositeAndRestriction.cs:line 44
at Octopus.Server.Web.Infrastructure.Security.DocumentRestrictions.CompositeAndRestriction`2.CombineWithAnd(Func`2 check) in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Server\Web\Infrastructure\Security\DocumentRestrictions\CompositeAndRestriction.cs:line 44
at Octopus.Server.Web.Infrastructure.Security.AccessChecker`1.CanCreate(TModel model)
at Octopus.Core.Security.Permissions.AccessCheckerExtensions.AssertCanCreate[TModel](IAccessChecker`1 accessChecker, TModel model) in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Core\Security\Permissions\IAccessChecker.cs:line 46
at Octopus.Server.Web.Infrastructure.OctopusQueryExecutor.Insert[TDocument](TDocument instance, Nullable`1 commandTimeout) in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Server\Web\Infrastructure\OctopusQueryExecutor.cs:line 200
at Octopus.Core.BuiltInFeed.BuiltInPackageIndex.AddPackage(IndexedPackage package) in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Core\BuiltInFeed\BuiltInPackageIndex.cs:line 29
at Octopus.Server.Orchestration.ServerTasks.SynchronizeBuiltInPackageRepositoryIndex.SynchronizeBuiltInPackageRepositoryIndexTaskController.AddPackagesToIndex(ICollection`1 packages) in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Server\Orchestration\ServerTasks\SynchronizeBuiltInPackageRepositoryIndex\SynchronizeBuiltInPackageRepositoryIndexTaskController.cs:line 207
at Octopus.Server.Orchestration.ServerTasks.SynchronizeBuiltInPackageRepositoryIndex.SynchronizeBuiltInPackageRepositoryIndexTaskController.IndexPackages() in C:\buildAgent\work\abb2fbfce959a439\source\Octopus.Server\Orchestration\ServerTasks\SynchronizeBuiltInPackageRepositoryIndex\SynchronizeBuiltInPackageRepositoryIndexTaskController.cs:line 181
Octopus.Server version 2019.9.10 (2019.9.10+Branch.tags-2019.9.10.Sha.ca4f2468aae1d241b9680055dec48ab3aca34a4a)
I also tried disabling the antivirus and it still do not work.
We have multiple project with different package, and every ones works except this one. When I rename the package, it works but as soon as I try to push a second version, it crash.
Anybody have an idea on what might be the problem?