{"record":{"id":"37b9fca401bfa89b","repo":"goharbor/harbor","slug":"bad-redis-url-harbor","errorCode":null,"errorMessage":"bad _REDIS_URL_HARBOR","messagePattern":"bad _REDIS_URL_HARBOR","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/main.go","lineNumber":169,"sourceCode":"\tif len(redisCoreURL) > 0 {\n\t\t_, err := url.Parse(redisCoreURL)\n\t\tif err != nil {\n\t\t\tpanic(\"bad _REDIS_URL_CORE\")\n\t\t}\n\t\t// configure the beego session redis\n\t\tweb.BConfig.WebConfig.Session.SessionProvider = session.HarborProviderName\n\t\tweb.BConfig.WebConfig.Session.SessionProviderConfig = redisCoreURL\n\t}\n\n\tlog.Info(\"initializing cache ...\")\n\t// the harbor db used for harbor business, use core db if not specified\n\tredisHarborURL := os.Getenv(\"_REDIS_URL_HARBOR\")\n\tif redisHarborURL == \"\" {\n\t\tredisHarborURL = redisCoreURL\n\t}\n\tu, err := url.Parse(redisHarborURL)\n\tif err != nil {\n\t\tpanic(\"bad _REDIS_URL_HARBOR\")\n\t}\n\tif err := cache.Initialize(u.Scheme, redisHarborURL); err != nil {\n\t\tlog.Fatalf(\"failed to initialize cache: %v\", err)\n\t}\n\t// when config/db init function is called, the cache is not ready,\n\t// enable config cache explicitly when the cache is ready\n\tdbCfg.EnableConfigCache()\n\n\tweb.AddTemplateExt(\"htm\")\n\n\tlog.Info(\"initializing configurations...\")\n\tconfig.Init()\n\tlog.Info(\"configurations initialization completed\")\n\n\t// default beego max memory and max upload size is 128GB, consider from some AI related image would be large,\n\t// also support customize it from the environment variables if the default value cannot satisfy some scenarios.\n\tweb.BConfig.MaxMemory = config.GetBeegoMaxMemoryBytes()\n\tweb.BConfig.MaxUploadSize = config.GetBeegoMaxUploadSizeBytes()","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/core/main.go#L151-L187","documentation":"Error \"bad _REDIS_URL_HARBOR\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/core/main.go:169 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"}