phosphor-fan-presence-tach failed with DBusMethodError

Brad Chou chou.brad at gmail.com
Tue Apr 16 19:53:41 AEST 2019


Hi All,
The phosphor-fan-presence-tach failed as :
root at mingder:~# systemctl status phosphor-fan-presence-tach at 0.service --no-pager
? phosphor-fan-presence-tach at 0.service - Phosphor Fan Presence Tach Daemon
   Loaded: loaded (/lib/systemd/system/obmc-chassis-poweron at 0.target.requires/../phosphor-fan-presence-tach at .service; static; vendor preset: enabled)
   Active: failed (Result: signal) since Tue 2019-04-16 15:34:06 UTC; 1min 21s ago
  Process: 2183 ExecStart=/usr/bin/env phosphor-fan-presence-tach (code=killed, signal=ABRT)
 Main PID: 2183 (code=killed, signal=ABRT)

Apr 16 15:34:05 mingder systemd[1]: phosphor-fan-presence-tach at 0.service: Service RestartSec=1s expired, scheduling restart.
Apr 16 15:34:05 mingder systemd[1]: phosphor-fan-presence-tach at 0.service: Scheduled restart job, restart counter is at 2.
Apr 16 15:34:06 mingder systemd[1]: Stopped Phosphor Fan Presence Tach Daemon.
Apr 16 15:34:06 mingder systemd[1]: phosphor-fan-presence-tach at 0.service: Start request repeated too quickly.
Apr 16 15:34:06 mingder systemd[1]: phosphor-fan-presence-tach at 0.service: Failed with result 'signal'.
Apr 16 15:34:06 mingder systemd[1]: Failed to start Phosphor Fan Presence Tach Daemon.
root at mingder:~# 


After trying to execute it manually, I got this error:
root at mingder:~# /usr/bin/env phosphor-fan-presence-tach
terminate called after throwing an instance of 'phosphor::fan::util::DBusMethodError'
  what():  DBus method call failed
Aborted
root at mingder:~# 


My config.yaml for phosphor-fan-presence-config-native/ is :
- name: fan1
  path: /system/chassis/motherboard/fan1
  methods:
    - type: tach
      sensors:
        - FAN1_L

- name: fan2
  path: /system/chassis/motherboard/fan2
  methods:
    - type: tach
      sensors:
        - FAN2_L

- name: fan3
  path: /system/chassis/motherboard/fan3
  methods:
    - type: tach
      sensors:
        - FAN3_L

- name: fan4
  path: /system/chassis/motherboard/fan4
  methods:
    - type: tach
      sensors:
        - FAN4_L


The /system/chassis/motherboard/fanX can be seen as :
[bradchou at localhost ~]$ curl -b cjar -k https://${bmc}/xyz/openbmc_project/inventory/system/chassis/motherboard/enumerate <https://${bmc}/xyz/openbmc_project/inventory/system/chassis/motherboard/enumerate>
"/xyz/openbmc_project/inventory/system/chassis/motherboard/fan1": {
      "Functional": true,
      "Present": true,
      "PrettyName": "fan1"
    },
    "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan2": {
      "Functional": true,
      "Present": true,
      "PrettyName": "fan2"
    },
    "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan3": {
      "Functional": true,
      "Present": true,
      "PrettyName": "fan3"
    },
    "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan4": {
      "Functional": true,
      "Present": true,
      "PrettyName": "fan4"
    },


I can also get the sensors for each FAN:
[bradchou at localhost ~]$ curl -b cjar -k https://${bmc}/xyz/openbmc_project/sensors/fan_tach/enumerate
"data": {
    "/xyz/openbmc_project/sensors/fan_tach/FAN1_L": {
      "CriticalAlarmHigh": false,
      "CriticalAlarmLow": false,
      "CriticalHigh": 20000,
      "CriticalLow": 1200,
      "MaxValue": 0,
      "MinValue": 0,
      "Scale": 0,
      "Target": 128,
      "Unit": "xyz.openbmc_project.Sensor.Value.Unit.RPMS",
      "Value": 10485
    },
  

It seems the sensor is ok and the inventory object for fan is also created.
But the phosphor-fan-presence-tach still failed.
Can anyone help me to figurate out what’s going wrong ?

Thanks.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190416/2d7ea6f1/attachment.htm>


More information about the openbmc mailing list