phosphor-fan-presence-tach failed with DBusMethodError

Matthew Barth msbarth at linux.ibm.com
Wed Apr 17 00:21:26 AEST 2019



On 4/16/19 4:53 AM, Brad Chou wrote:
> Hi All,
> The phosphor-fan-presence-tach failed as :
> root at mingder:~# systemctl status phosphor-fan-presence-tach at 0.service 
> <mailto:phosphor-fan-presence-tach at 0.service> --no-pager
> ? phosphor-fan-presence-tach at 0.service 
> <mailto:phosphor-fan-presence-tach at 0.service> - Phosphor Fan Presence 
> Tach Daemon
>     Loaded: loaded 
> (/lib/systemd/system/obmc-chassis-poweron at 0.target.requires 
> <mailto: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 
> <mailto: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 
> <mailto: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 
> <mailto: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 
> <mailto: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:~#
Could you provide the journal pretty output after running it manually 
for the entries in regard to phosphor-fan-presence-tach?
	`journalctl -o json-pretty`
This may help show what object is failing the method call to dbus.
> 
> 
> 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
> "/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.
> 
> 



More information about the openbmc mailing list