glanceapp/glance · error

CPU temperature sensor %s not found

Error message

CPU temperature sensor %s not found

What it means

Error "CPU temperature sensor %s not found" thrown in glanceapp/glance.

Source

Thrown at pkg/sysinfo/sysinfo.go:220

	// keeps returning a single sensor with key "ACPI\\ThermalZone\\TZ00_0" which
	// doesn't seem to be the CPU sensor or correspond to anything useful when
	// compared against the temperatures Libre Hardware Monitor reports.
	// Also disabled on the bsd's because it's not implemented by go-psutil for them
	if runtime.GOOS != "windows" && runtime.GOOS != "openbsd" && runtime.GOOS != "netbsd" && runtime.GOOS != "freebsd" {
		sensorReadings, err := sensors.SensorsTemperatures()
		_, errIsWarning := err.(*sensors.Warnings)
		if err == nil || errIsWarning {
			if req.CPUTempSensor != "" {
				for i := range sensorReadings {
					if sensorReadings[i].SensorKey == req.CPUTempSensor {
						info.CPU.TemperatureIsAvailable = true
						info.CPU.TemperatureC = uint8(sensorReadings[i].Temperature)
						break
					}
				}

				if !info.CPU.TemperatureIsAvailable {
					addErr(fmt.Errorf("CPU temperature sensor %s not found", req.CPUTempSensor))
				}
			} else if cpuTempSensor := inferCPUTempSensor(sensorReadings); cpuTempSensor != nil {
				info.CPU.TemperatureIsAvailable = true
				info.CPU.TemperatureC = uint8(cpuTempSensor.Temperature)
			}
		} else {
			addErr(fmt.Errorf("getting sensor readings: %v", err))
		}
	}

	addedMountpoints := map[string]struct{}{}
	addMountpointInfo := func(requestedPath string, mpReq MointpointRequest) {
		if _, exists := addedMountpoints[requestedPath]; exists {
			return
		}

		isHidden := req.HideMountpointsByDefault
		if mpReq.Hide != nil {

View on GitHub (pinned to 91324e8de7)

Solutions

  1. Remove the 'cpu-temp-sensor' option to let Glance automatically infer the CPU temperature sensor.
  2. List available sensor keys (e.g. via 'sensors' from lm-sensors) and set 'cpu-temp-sensor' to the exact key reported by the system.
  3. Verify the sensor exists for your hardware/driver; sensor keys differ between machines, so a key copied from another host may not exist.

When it happens

Trigger: Raised when the configured CPU temperature sensor name does not match any sensor exposed by the hardware sensors subsystem.

Common situations: The sensor name in the config is misspelled, the lm-sensors chip name differs between machines, or the machine is a VM without hardware temperature sensors.


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