glanceapp/glance · error

getting filesystems: %v

Error message

getting filesystems: %v

What it means

Error "getting filesystems: %v" thrown in glanceapp/glance.

Source

Thrown at pkg/sysinfo/sysinfo.go:269

				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)
	}

	sort.Slice(info.Mountpoints, func(a, b int) bool {
		return info.Mountpoints[a].UsedPercent > info.Mountpoints[b].UsedPercent
	})

	return info, errs
}

func inferCPUTempSensor(sensors []sensors.TemperatureStat) *sensors.TemperatureStat {
	for i := range sensors {
		switch sensors[i].SensorKey {
		case

View on GitHub (pinned to 91324e8de7)

Solutions

  1. Ensure /proc/mounts (or the platform equivalent) is readable by the process.
  2. When running in a container, mount /proc from the host or run with the necessary privileges.
  3. Set 'hide-mountpoints-by-default: true' on the widget to skip enumerating filesystems if listing is not possible.

When it happens

Trigger: Occurs when enumerating mounted filesystems from /proc/mounts or /etc/mtab fails.

Common situations: Restricted container environments without /proc/mounts, or malformed mount table entries.


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