{"record":{"id":"70df7bebfedf0f40","repo":"lionsoul2014/ip2region","slug":"failed-to-create-v6-searcher-pool-w","errorCode":null,"errorMessage":"failed to create v6 searcher pool: %w","messagePattern":"failed to create v6 searcher pool: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"binding/golang/service/ip2region.go","lineNumber":78,"sourceCode":"\t}\n\n\t// check and init the v6 pool or in-memory searcher\n\tvar v6Pool *SearcherPool\n\tvar v6InMemSearcher *xdb.Searcher\n\tif v6Config == nil {\n\t\tv6Pool = nil\n\t\tv6InMemSearcher = nil\n\t} else if v6Config.cachePolicy == BufferCache {\n\t\tv6Pool = nil\n\t\tv6InMemSearcher, err = xdb.NewWithBuffer(v6Config.ipVersion, v6Config.cBuffer)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to create v6 in-memory searcher: %w\", err)\n\t\t}\n\t} else {\n\t\tv6InMemSearcher = nil\n\t\tv6Pool, err = NewSearcherPool(v6Config)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"failed to create v6 searcher pool: %w\", err)\n\t\t}\n\t}\n\n\treturn &Ip2Region{\n\t\tv4Pool:          v4Pool,\n\t\tv4InMemSearcher: v4InMemSearcher,\n\n\t\tv6Pool:          v6Pool,\n\t\tv6InMemSearcher: v6InMemSearcher,\n\t}, nil\n}\n\n// create the ip2region search service with the specified v4 & v6 xdb path.\n// with default cache policy VIndexCache and default searchers = 20\nfunc NewIp2RegionWithPath(v4XdbPath string, v6XdbPath string) (*Ip2Region, error) {\n\tvar err error\n\n\t// create v4 config with default config items","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/lionsoul2014/ip2region/blob/c1a1fc7d5941760db3f8431dc05c48cf7f0e30a1/binding/golang/service/ip2region.go#L60-L96","documentation":"Go service factory: NewSearcherPool failed while pre-creating the v6 searcher pool; the wrapped error identifies the first searcher that could not be created (bad path, permissions, or corrupt xdb).","triggerScenarios":"Thrown at binding/golang/service/ip2region.go:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the v6 xdb path/permissions reported by the wrapped error","Regenerate a valid v6 database","Retry service creation once the underlying cause is resolved"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c1a1fc7d5941760db3f8431dc05c48cf7f0e30a1","analyzedAt":"2026-09-02T16:58:39.988Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T21:17:11.164Z"}