<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi All,<div class="">The phosphor-fan-presence-tach failed as :</div><div class=""><div class="">root@mingder:~# systemctl status <a href="mailto:phosphor-fan-presence-tach@0.service" class="">phosphor-fan-presence-tach@0.service</a> --no-pager</div><div class="">? <a href="mailto:phosphor-fan-presence-tach@0.service" class="">phosphor-fan-presence-tach@0.service</a> - Phosphor Fan Presence Tach Daemon</div><div class="">   Loaded: loaded (/<a href="mailto:lib/systemd/system/obmc-chassis-poweron@0.target.requires" class="">lib/systemd/system/obmc-chassis-poweron@0.target.requires</a>/../phosphor-fan-presence-tach@.service; static; vendor preset: enabled)</div><div class="">   Active: failed (Result: signal) since Tue 2019-04-16 15:34:06 UTC; 1min 21s ago</div><div class="">  Process: 2183 ExecStart=/usr/bin/env phosphor-fan-presence-tach (code=killed, signal=ABRT)</div><div class=""> Main PID: 2183 (code=killed, signal=ABRT)</div><div class=""><br class=""></div><div class="">Apr 16 15:34:05 mingder systemd[1]: <a href="mailto:phosphor-fan-presence-tach@0.service" class="">phosphor-fan-presence-tach@0.service</a>: Service RestartSec=1s expired, scheduling restart.</div><div class="">Apr 16 15:34:05 mingder systemd[1]: <a href="mailto:phosphor-fan-presence-tach@0.service" class="">phosphor-fan-presence-tach@0.service</a>: Scheduled restart job, restart counter is at 2.</div><div class="">Apr 16 15:34:06 mingder systemd[1]: Stopped Phosphor Fan Presence Tach Daemon.</div><div class="">Apr 16 15:34:06 mingder systemd[1]: <a href="mailto:phosphor-fan-presence-tach@0.service" class="">phosphor-fan-presence-tach@0.service</a>: Start request repeated too quickly.</div><div class="">Apr 16 15:34:06 mingder systemd[1]: <a href="mailto:phosphor-fan-presence-tach@0.service" class="">phosphor-fan-presence-tach@0.service</a>: Failed with result 'signal'.</div><div class="">Apr 16 15:34:06 mingder systemd[1]: Failed to start Phosphor Fan Presence Tach Daemon.</div><div class="">root@mingder:~# </div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">After trying to execute it manually, I got this error:</div><div class=""><div class="">root@mingder:~# /usr/bin/env phosphor-fan-presence-tach</div><div class="">terminate called after throwing an instance of 'phosphor::fan::util::DBusMethodError'</div><div class="">  what():  DBus method call failed</div><div class="">Aborted</div><div class="">root@mingder:~# </div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">My config.yaml for phosphor-fan-presence-config-native/ is :</div><div class=""><div class="">- name: fan1</div><div class="">  path: /system/chassis/motherboard/fan1</div><div class="">  methods:</div><div class="">    - type: tach</div><div class="">      sensors:</div><div class="">        - FAN1_L</div><div class=""><br class=""></div><div class="">- name: fan2</div><div class="">  path: /system/chassis/motherboard/fan2</div><div class="">  methods:</div><div class="">    - type: tach</div><div class="">      sensors:</div><div class="">        - FAN2_L</div><div class=""><br class=""></div><div class="">- name: fan3</div><div class="">  path: /system/chassis/motherboard/fan3</div><div class="">  methods:</div><div class="">    - type: tach</div><div class="">      sensors:</div><div class="">        - FAN3_L</div><div class=""><br class=""></div><div class="">- name: fan4</div><div class="">  path: /system/chassis/motherboard/fan4</div><div class="">  methods:</div><div class="">    - type: tach</div><div class="">      sensors:</div><div class="">        - FAN4_L</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The /system/chassis/motherboard/fanX can be seen as :</div><div class="">[bradchou@localhost ~]$ curl -b cjar -k <a href="https://${bmc}/xyz/openbmc_project/inventory/system/chassis/motherboard/enumerate" class="">https://${bmc}/xyz/openbmc_project/inventory/system/chassis/motherboard/enumerate</a></div><div class=""><div class="">"/xyz/openbmc_project/inventory/system/chassis/motherboard/fan1": {</div><div class="">      "Functional": true,</div><div class="">      "Present": true,</div><div class="">      "PrettyName": "fan1"</div><div class="">    },</div><div class="">    "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan2": {</div><div class="">      "Functional": true,</div><div class="">      "Present": true,</div><div class="">      "PrettyName": "fan2"</div><div class="">    },</div><div class="">    "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan3": {</div><div class="">      "Functional": true,</div><div class="">      "Present": true,</div><div class="">      "PrettyName": "fan3"</div><div class="">    },</div><div class="">    "/xyz/openbmc_project/inventory/system/chassis/motherboard/fan4": {</div><div class="">      "Functional": true,</div><div class="">      "Present": true,</div><div class="">      "PrettyName": "fan4"</div><div class="">    },</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I can also get the sensors for each FAN:</div><div class="">[bradchou@localhost ~]$ curl -b cjar -k <a href="https://${bmc}/xyz/openbmc_project/sensors/fan_tach/enumerate" class="">https://${bmc}/xyz/openbmc_project/sensors/fan_tach/enumerate</a></div><div class=""><div class="">"data": {</div><div class="">    "/xyz/openbmc_project/sensors/fan_tach/FAN1_L": {</div><div class="">      "CriticalAlarmHigh": false,</div><div class="">      "CriticalAlarmLow": false,</div><div class="">      "CriticalHigh": 20000,</div><div class="">      "CriticalLow": 1200,</div><div class="">      "MaxValue": 0,</div><div class="">      "MinValue": 0,</div><div class="">      "Scale": 0,</div><div class="">      "Target": 128,</div><div class="">      "Unit": "xyz.openbmc_project.Sensor.Value.Unit.RPMS",</div><div class="">      "Value": 10485</div><div class="">    },</div><div class="">  </div></div><div class=""><br class=""></div><div class="">It seems the sensor is ok and the inventory object for fan is also created.</div><div class="">But the phosphor-fan-presence-tach still failed.</div><div class="">Can anyone help me to figurate out what’s going wrong ?</div><div class=""><br class=""></div><div class="">Thanks.</div><div class=""><br class=""></div><div class=""><br class=""></div></div></body></html>