I use the a dev environment to develop project and a production one to migrate to after finishing.
This has been working great for us till recently. I think Octopus.2019.3.1 +
Later whenever we try to import a project we’re getting this error: NRE
Detected automation environment: “NoneOrUnknown”
Space name unspecified, process will run in the default space context
Handshaking with Octopus Server: https://deploy.omni-ts.com/api
Handshake successful. Octopus version: 2019.3.3; API version: 3.0.0
Authenticated as: Bishnu Pokharel bpokharel@rivacrmintegration.com
Finding importer ‘project’
Validating the import
Export file successfully loaded
Checking that lifecycle Default Lifecycle exists
Lifecycle Default Lifecycle does not exist, default lifecycle will be used instead
Found lifecycle ‘Aws-RivaCloud-LifeCycle’
Checking that all environments exist
Checking that all machines exist
Checking that all NuGet Feeds exist
Checking that all Action Templates exist
Checking that all Library Variable Sets exist
Checking that the Project Group exist
Checking that all channel lifecycles exist
Checking that all worker pools exist
No validation errors found. Project is ready to import.
Beginning the import
Beginning import of project ‘Gateway Service’
Importing Project
Project does not exist, a new project will be created
Octopus Server returned an error: Object reference not set to an instance of an object.
Server exception:
Object reference not set to an instance of an object.
System.NullReferenceException
at Octopus.Server.Web.Mapping.DeploymentActionPackageNameMapper.<>c__DisplayClass8_0.b__0(DeploymentProcess p)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func
2 predicate)
at Octopus.Server.Web.Mapping.DeploymentActionPackageNameMapper.GetProcess(String projectId)
at Octopus.Server.Web.Mapping.DeploymentActionPackageNameMapper.MapToIds(String projectId, IEnumerable1 deploymentActionPackageResources) at Octopus.Server.Web.Mapping.DeploymentActionPackageNameMapper.MapToIds(String projectId, DeploymentActionPackageResource deploymentActionPackageResource) at Octopus.Server.Web.Api.Rules.VersioningStrategyWillBeUpdatedRule.AfterMapBeforeStore(Project model, ProjectResource resource, ISpecialRuleContext context) at Octopus.Server.Web.Infrastructure.Api.Responder
1.ExecuteRegisteredRules[TRule](Action2 ruleCallback) at Octopus.Server.Web.Infrastructure.Api.CreateResponseDescriptor
2.Responder.ExecuteRegistered()
at Octopus.Server.Web.Infrastructure.Api.Responder`1.Respond(TDescriptor options, NancyContext context)
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Octopus.Server.Web.Infrastructure.OctopusNancyModule.<>c__DisplayClass14_0.<get_Routes>b__1(Object x)
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)
Error from Octopus Server (HTTP 500 InternalServerError)
Exit code: -7