{"record":{"id":"ceb5f8cd938a5d35","repo":"glanceapp/glance","slug":"getting-filesystem-usage-for-s-v","errorCode":null,"errorMessage":"getting filesystem usage for %s: %v","messagePattern":"getting filesystem usage for (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/sysinfo/sysinfo.go","lineNumber":258,"sourceCode":"\t\t}\n\t\tif isHidden {\n\t\t\treturn\n\t\t}\n\n\t\tusage, err := disk.Usage(requestedPath)\n\t\tif err == nil {\n\t\t\tmpInfo := MountpointInfo{\n\t\t\t\tPath:        requestedPath,\n\t\t\t\tName:        mpReq.Name,\n\t\t\t\tTotalMB:     usage.Total / 1024 / 1024,\n\t\t\t\tUsedMB:      usage.Used / 1024 / 1024,\n\t\t\t\tUsedPercent: uint8(math.Min(usage.UsedPercent, 100)),\n\t\t\t}\n\n\t\t\tinfo.Mountpoints = append(info.Mountpoints, mpInfo)\n\t\t\taddedMountpoints[requestedPath] = struct{}{}\n\t\t} else {\n\t\t\taddErr(fmt.Errorf(\"getting filesystem usage for %s: %v\", requestedPath, err))\n\t\t}\n\t}\n\n\tif !req.HideMountpointsByDefault {\n\t\tfilesystems, err := disk.Partitions(false)\n\t\tif err == nil {\n\t\t\tfor _, fs := range filesystems {\n\t\t\t\taddMountpointInfo(fs.Mountpoint, req.Mountpoints[fs.Mountpoint])\n\t\t\t}\n\t\t} else {\n\t\t\taddErr(fmt.Errorf(\"getting filesystems: %v\", err))\n\t\t}\n\t}\n\n\tfor mountpoint, mpReq := range req.Mountpoints {\n\t\taddMountpointInfo(mountpoint, mpReq)\n\t}\n","sourceCodeStart":240,"sourceCodeEnd":276,"githubUrl":"https://github.com/glanceapp/glance/blob/91324e8de762702e97b0ac5c8e36271d644d8642/pkg/sysinfo/sysinfo.go#L240-L276","documentation":"Error \"getting filesystem usage for %s: %v\" thrown in glanceapp/glance.","triggerScenarios":"Raised when statfs on a monitored mount point fails, usually because the filesystem is unmounted, stale (NFS), or inaccessible.","commonSituations":"Monitoring a network mount that went stale, a mount point that was removed while glance is running, or a path the process cannot stat.","solutions":["Verify the mountpoint path configured under the widget's 'mountpoints' actually exists on the host.","Ensure the process has permission to stat the filesystem (check mount namespaces if running in a container).","Remove or correct the offending mountpoint entry in the configuration."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"91324e8de762702e97b0ac5c8e36271d644d8642","analyzedAt":"2026-08-15T14:12:54.279Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}