{"record":{"id":"b5061001c4c54a7c","repo":"goharbor/harbor","slug":"panic-during-the-process","errorCode":null,"errorMessage":"panic during the process","messagePattern":"panic during the process","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/controller/replication/execution.go","lineNumber":156,"sourceCode":"\t\t\t}\n\t\t\treturn id, nil\n\t\t}\n\t}\n\n\t// start the replication flow in background\n\t// as the process runs inside a goroutine, the transaction in the outer ctx\n\t// may be submitted already when the process starts, so create an new context\n\t// with orm populated to the goroutine\n\tgo func() {\n\t\tc.wp.GetWorker()\n\t\tdefer c.wp.ReleaseWorker()\n\n\t\tctx := orm.NewContext(context.Background(), c.ormCreator.Create())\n\t\t// recover in case panic during the adapter process\n\t\tdefer func() {\n\t\t\tif err := recover(); err != nil {\n\t\t\t\tlogger.Errorf(\"recovered from the panic: %v\", err)\n\t\t\t\tc.markError(ctx, id, fmt.Errorf(\"panic during the process\"))\n\t\t\t}\n\t\t}()\n\n\t\t// as we start a new transaction in the goroutine, the execution record may not\n\t\t// be inserted yet, wait until it is ready before continue\n\t\tif err := retry.Retry(func() error {\n\t\t\t_, err := c.execMgr.Get(ctx, id)\n\t\t\treturn err\n\t\t}); err != nil {\n\t\t\tc.markError(ctx, id, fmt.Errorf(\n\t\t\t\t\"failed to wait the execution record to be inserted: %v\", err))\n\t\t\treturn\n\t\t}\n\n\t\terr := c.flowCtl.Start(ctx, id, policy, resource)\n\t\tif err == nil {\n\t\t\t// no err, return directly\n\t\t\treturn","sourceCodeStart":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/replication/execution.go#L138-L174","documentation":"Error \"panic during the process\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/replication/execution.go:156 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}