{"record":{"id":"8298656e1226a3ac","repo":"juicedata/juicefs","slug":"init-s-s","errorCode":null,"errorMessage":"init %s: %s","messagePattern":"init (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/object/gluster.go","lineNumber":326,"sourceCode":"\t\tcase \"DEBUG\":\n\t\t\tlevel = gfapi.LogDebug\n\t\tcase \"TRACE\":\n\t\t\tlevel = gfapi.LogTrace\n\t\t}\n\t}\n\tlogPath := os.Getenv(\"JFS_GLUSTER_LOG_PATH\")\n\thosts := strings.Split(uri.Host, \",\")\n\tpid := os.Getpid()\n\tostore := gluster{\n\t\tname: name,\n\t\tvols: make([]*gfapi.Volume, size),\n\t}\n\tfor i := range ostore.vols {\n\t\tv := &gfapi.Volume{}\n\t\t// TODO: support port in host\n\t\terr = v.Init(name, hosts...)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"init %s: %s\", name, err)\n\t\t}\n\t\tif logPath == \"\" {\n\t\t\terr = v.SetLogging(fmt.Sprintf(\"/var/log/glusterfs/%s-%s-%d-%d.log\", hosts[0], name, pid, i), level)\n\t\t} else {\n\t\t\terr = v.SetLogging(logPath, level)\n\t\t}\n\t\tif err != nil {\n\t\t\tlogger.Warnf(\"Set gluster logging for vol %s: %s\", name, err)\n\t\t}\n\t\terr = v.Mount()\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"mount %s: %s\", name, err)\n\t\t}\n\t\tostore.vols[i] = v\n\t}\n\treturn &ostore, nil\n}\n","sourceCodeStart":308,"sourceCodeEnd":344,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/pkg/object/gluster.go#L308-L344","documentation":"Returned by newGluster when initializing a gfapi Volume handle against the gluster hosts fails — unreachable glusterd, unknown volume, or library issues. The wrapped error names the volume that failed.","triggerScenarios":"Thrown at pkg/object/gluster.go:326 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify gluster hosts are reachable and the volume exists","Check gluster daemon status and firewall rules"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c9a67b23e8e08ec23ec331aa6f1675e2319e921c","analyzedAt":"2026-09-06T17:55:48.476Z","contentChangedAt":"2026-09-06T17:55:48.476Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}