{"record":{"id":"58a212df165bd147","repo":"glanceapp/glance","slug":"cpu-temperature-sensor-s-not-found","errorCode":null,"errorMessage":"CPU temperature sensor %s not found","messagePattern":"CPU temperature sensor (.+?) not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/sysinfo/sysinfo.go","lineNumber":220,"sourceCode":"\t// keeps returning a single sensor with key \"ACPI\\\\ThermalZone\\\\TZ00_0\" which\n\t// doesn't seem to be the CPU sensor or correspond to anything useful when\n\t// compared against the temperatures Libre Hardware Monitor reports.\n\t// Also disabled on the bsd's because it's not implemented by go-psutil for them\n\tif runtime.GOOS != \"windows\" && runtime.GOOS != \"openbsd\" && runtime.GOOS != \"netbsd\" && runtime.GOOS != \"freebsd\" {\n\t\tsensorReadings, err := sensors.SensorsTemperatures()\n\t\t_, errIsWarning := err.(*sensors.Warnings)\n\t\tif err == nil || errIsWarning {\n\t\t\tif req.CPUTempSensor != \"\" {\n\t\t\t\tfor i := range sensorReadings {\n\t\t\t\t\tif sensorReadings[i].SensorKey == req.CPUTempSensor {\n\t\t\t\t\t\tinfo.CPU.TemperatureIsAvailable = true\n\t\t\t\t\t\tinfo.CPU.TemperatureC = uint8(sensorReadings[i].Temperature)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif !info.CPU.TemperatureIsAvailable {\n\t\t\t\t\taddErr(fmt.Errorf(\"CPU temperature sensor %s not found\", req.CPUTempSensor))\n\t\t\t\t}\n\t\t\t} else if cpuTempSensor := inferCPUTempSensor(sensorReadings); cpuTempSensor != nil {\n\t\t\t\tinfo.CPU.TemperatureIsAvailable = true\n\t\t\t\tinfo.CPU.TemperatureC = uint8(cpuTempSensor.Temperature)\n\t\t\t}\n\t\t} else {\n\t\t\taddErr(fmt.Errorf(\"getting sensor readings: %v\", err))\n\t\t}\n\t}\n\n\taddedMountpoints := map[string]struct{}{}\n\taddMountpointInfo := func(requestedPath string, mpReq MointpointRequest) {\n\t\tif _, exists := addedMountpoints[requestedPath]; exists {\n\t\t\treturn\n\t\t}\n\n\t\tisHidden := req.HideMountpointsByDefault\n\t\tif mpReq.Hide != nil {","sourceCodeStart":202,"sourceCodeEnd":238,"githubUrl":"https://github.com/glanceapp/glance/blob/91324e8de762702e97b0ac5c8e36271d644d8642/pkg/sysinfo/sysinfo.go#L202-L238","documentation":"Error \"CPU temperature sensor %s not found\" thrown in glanceapp/glance.","triggerScenarios":"Raised when the configured CPU temperature sensor name does not match any sensor exposed by the hardware sensors subsystem.","commonSituations":"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.","solutions":["Remove the 'cpu-temp-sensor' option to let Glance automatically infer the CPU temperature sensor.","List available sensor keys (e.g. via 'sensors' from lm-sensors) and set 'cpu-temp-sensor' to the exact key reported by the system.","Verify the sensor exists for your hardware/driver; sensor keys differ between machines, so a key copied from another host may not exist."],"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-15T17:31:12.345Z"}