glanceapp/glance · error

getting filesystem usage for %s: %v

Error message

getting filesystem usage for %s: %v

What it means

Error "getting filesystem usage for %s: %v" thrown in glanceapp/glance.

Source

Thrown at pkg/sysinfo/sysinfo.go:258

		}
		if isHidden {
			return
		}

		usage, err := disk.Usage(requestedPath)
		if err == nil {
			mpInfo := MountpointInfo{
				Path:        requestedPath,
				Name:        mpReq.Name,
				TotalMB:     usage.Total / 1024 / 1024,
				UsedMB:      usage.Used / 1024 / 1024,
				UsedPercent: uint8(math.Min(usage.UsedPercent, 100)),
			}

			info.Mountpoints = append(info.Mountpoints, mpInfo)
			addedMountpoints[requestedPath] = struct{}{}
		} else {
			addErr(fmt.Errorf("getting filesystem usage for %s: %v", requestedPath, err))
		}
	}

	if !req.HideMountpointsByDefault {
		filesystems, err := disk.Partitions(false)
		if err == nil {
			for _, fs := range filesystems {
				addMountpointInfo(fs.Mountpoint, req.Mountpoints[fs.Mountpoint])
			}
		} else {
			addErr(fmt.Errorf("getting filesystems: %v", err))
		}
	}

	for mountpoint, mpReq := range req.Mountpoints {
		addMountpointInfo(mountpoint, mpReq)
	}

View on GitHub (pinned to 91324e8de7)

Solutions

  1. Verify the mountpoint path configured under the widget's 'mountpoints' actually exists on the host.
  2. Ensure the process has permission to stat the filesystem (check mount namespaces if running in a container).
  3. Remove or correct the offending mountpoint entry in the configuration.

When it happens

Trigger: Raised when statfs on a monitored mount point fails, usually because the filesystem is unmounted, stale (NFS), or inaccessible.

Common situations: Monitoring a network mount that went stale, a mount point that was removed while glance is running, or a path the process cannot stat.


AI-assisted analysis of glanceapp/glance@91324e8de7 (2026-08-15). Data as JSON: /api/errors/ceb5f8cd938a5d35. Report an issue: GitHub.