phosphor-fan-presence-tach failed with DBusMethodError

Brad Chou chou.brad at gmail.com
Tue Apr 23 17:26:39 AEST 2019


Hi Matthew,
I found it is released to entity-manager and dbus-sensors.
Because I add it into my packagegroup as :
RDEPENDS_${PN}-system = " \
        systemd-analyze \
		entity-manager \
		dbus-sensors \
        "

After remove them from my packagegroup, I don’t see DBusMethodError anymore.
But I don’t have any idea why entity-manager and dbus-sensors make it wrong.

Thanks.


> On Apr 19, 2019, at 3:19 PM, Brad Chou <chou.brad at gmail.com> wrote:
> 
> Hi Matthew,
> This is the log of journalctl -u phosphor-fan-presence-tach at 0.service -o json-pretty
> 
> {
> 	"_EXE" : "/lib/systemd/systemd",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"__REALTIME_TIMESTAMP" : "1555568618101923",
> 	"CODE_FUNC" : "job_log_done_status_message",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568618101833",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_COMM" : "systemd",
> 	"INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"CODE_FILE" : "../git/src/core/job.c",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"MESSAGE" : "Started Phosphor Fan Presence Tach Daemon.",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=519;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=836e180;t=586c80ae7dca3;x=a5277960ea22abcd",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_CMDLINE" : "/sbin/init",
> 	"_GID" : "0",
> 	"JOB_RESULT" : "done",
> 	"_PID" : "1",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"MESSAGE_ID" : "39f53479d3a045ac8e11786248231fbf",
> 	"JOB_TYPE" : "start",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"CODE_LINE" : "950",
> 	"__MONOTONIC_TIMESTAMP" : "137814400",
> 	"JOB_ID" : "1011",
> 	"_HOSTNAME" : "mingder",
> 	"SYSLOG_FACILITY" : "3",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"PRIORITY" : "6",
> 	"_TRANSPORT" : "journal",
> 	"_UID" : "0"
> }
> {
> 	"__REALTIME_TIMESTAMP" : "1555568618911936",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=51f;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=8433d9c;t=586c80af438c0;x=93f1aa23393a811f",
> 	"_STREAM_ID" : "47100c2027b549cfa790b02dd6699d78",
> 	"__MONOTONIC_TIMESTAMP" : "138624412",
> 	"_PID" : "2337",
> 	"_COMM" : "phosphor-fan-pr",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_SYSTEMD_UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"SYSLOG_FACILITY" : "3",
> 	"SYSLOG_IDENTIFIER" : "phosphor-fan-presence-tach",
> 	"MESSAGE" : "terminate called after throwing an instance of 'phosphor::fan::util::DBusMethodError'",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_SYSTEMD_CGROUP" : "/system.slice/system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice/phosphor-fan-presence-tach at 0.service",
> 	"_UID" : "0",
> 	"_SYSTEMD_SLICE" : "system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice",
> 	"_GID" : "0",
> 	"_EXE" : "/usr/sbin/phosphor-fan-presence-tach",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"_TRANSPORT" : "stdout",
> 	"_CMDLINE" : "phosphor-fan-presence-tach",
> 	"PRIORITY" : "6",
> 	"_SYSTEMD_INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"_HOSTNAME" : "mingder"
> }
> {
> 	"_COMM" : "phosphor-fan-pr",
> 	"__REALTIME_TIMESTAMP" : "1555568618921247",
> 	"_GID" : "0",
> 	"SYSLOG_FACILITY" : "3",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=520;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=84361f5;t=586c80af45d1f;x=8f95fe0699c6e8a7",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_CMDLINE" : "phosphor-fan-presence-tach",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_STREAM_ID" : "47100c2027b549cfa790b02dd6699d78",
> 	"_EXE" : "/usr/sbin/phosphor-fan-presence-tach",
> 	"_SYSTEMD_SLICE" : "system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice",
> 	"_SYSTEMD_INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"__MONOTONIC_TIMESTAMP" : "138633717",
> 	"_UID" : "0",
> 	"_TRANSPORT" : "stdout",
> 	"SYSLOG_IDENTIFIER" : "phosphor-fan-presence-tach",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"_SYSTEMD_UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"MESSAGE" : "  what():  DBus method call failed",
> 	"PRIORITY" : "6",
> 	"_HOSTNAME" : "mingder",
> 	"_PID" : "2337",
> 	"_SYSTEMD_CGROUP" : "/system.slice/system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice/phosphor-fan-presence-tach at 0.service"
> }
> {
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568619532708",
> 	"PRIORITY" : "4",
> 	"_UID" : "0",
> 	"CODE_FUNC" : "unit_log_process_exit",
> 	"MESSAGE_ID" : "98e322203f7a4ed290d09fe03c09fe15",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"_PID" : "1",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"COMMAND" : "ExecStart",
> 	"__MONOTONIC_TIMESTAMP" : "139245283",
> 	"CODE_LINE" : "5537",
> 	"INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"_TRANSPORT" : "journal",
> 	"EXIT_CODE" : "killed",
> 	"SYSLOG_FACILITY" : "3",
> 	"__REALTIME_TIMESTAMP" : "1555568619532806",
> 	"_GID" : "0",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=521;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=84cb6e3;t=586c80afdb206;x=a2e66b415469912b",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Main process exited, code=killed, status=6/ABRT",
> 	"_CMDLINE" : "/sbin/init",
> 	"_COMM" : "systemd",
> 	"EXIT_STATUS" : "6",
> 	"CODE_FILE" : "../git/src/core/unit.c",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"_HOSTNAME" : "mingder",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7"
> }
> {
> 	"_TRANSPORT" : "journal",
> 	"CODE_LINE" : "5508",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"UNIT_RESULT" : "signal",
> 	"MESSAGE_ID" : "d9b373ed55a64feb8242e02dbe79a49c",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"PRIORITY" : "4",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"__REALTIME_TIMESTAMP" : "1555568619542496",
> 	"_GID" : "0",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"_CMDLINE" : "/sbin/init",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=522;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=84cdcb7;t=586c80afdd7e0;x=4a46ee5bdffab5af",
> 	"__MONOTONIC_TIMESTAMP" : "139254967",
> 	"CODE_FILE" : "../git/src/core/unit.c",
> 	"_HOSTNAME" : "mingder",
> 	"_UID" : "0",
> 	"SYSLOG_FACILITY" : "3",
> 	"_COMM" : "systemd",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"CODE_FUNC" : "unit_log_failure",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Failed with result 'signal'.",
> 	"_PID" : "1",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568619541125"
> }
> {
> 	"CODE_LINE" : "3558",
> 	"PRIORITY" : "6",
> 	"_CMDLINE" : "/sbin/init",
> 	"_UID" : "0",
> 	"_TRANSPORT" : "journal",
> 	"_COMM" : "systemd",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=527;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=86787b2;t=586c80b1882d6;x=16bce9a8a50a44e7",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"_HOSTNAME" : "mingder",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_GID" : "0",
> 	"CODE_FILE" : "../git/src/core/service.c",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Service RestartSec=1s expired, scheduling restart.",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"__MONOTONIC_TIMESTAMP" : "141002674",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"__REALTIME_TIMESTAMP" : "1555568621290198",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"SYSLOG_FACILITY" : "3",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"CODE_FUNC" : "service_dispatch_timer",
> 	"_PID" : "1",
> 	"INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568621290104"
> }
> {
> 	"CODE_FILE" : "../git/src/core/service.c",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"SYSLOG_FACILITY" : "3",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"_COMM" : "systemd",
> 	"CODE_LINE" : "2172",
> 	"INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"CODE_FUNC" : "service_enter_restart",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"__MONOTONIC_TIMESTAMP" : "141044909",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568621332340",
> 	"MESSAGE_ID" : "5eb03494b6584870a536b337290809b3",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_HOSTNAME" : "mingder",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Scheduled restart job, restart counter is at 1.",
> 	"_GID" : "0",
> 	"_TRANSPORT" : "journal",
> 	"PRIORITY" : "6",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=528;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=8682cad;t=586c80b1927cf;x=88ee0587d013ab68",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"N_RESTARTS" : "1",
> 	"_CMDLINE" : "/sbin/init",
> 	"_UID" : "0",
> 	"__REALTIME_TIMESTAMP" : "1555568621332431",
> 	"_PID" : "1"
> }
> {
> 	"JOB_RESULT" : "done",
> 	"SYSLOG_FACILITY" : "3",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"MESSAGE" : "Stopped Phosphor Fan Presence Tach Daemon.",
> 	"_GID" : "0",
> 	"_PID" : "1",
> 	"_CMDLINE" : "/sbin/init",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568621463958",
> 	"_TRANSPORT" : "journal",
> 	"_HOSTNAME" : "mingder",
> 	"PRIORITY" : "6",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"INVOCATION_ID" : "96facc9c420a4f3091e051b99910cbe3",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"_COMM" : "systemd",
> 	"__REALTIME_TIMESTAMP" : "1555568621464285",
> 	"CODE_LINE" : "950",
> 	"_UID" : "0",
> 	"CODE_FUNC" : "job_log_done_status_message",
> 	"CODE_FILE" : "../git/src/core/job.c",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=52a;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=86a2fb3;t=586c80b1b2add;x=53fd37e81b1c0559",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"MESSAGE_ID" : "9d1aaa27d60140bd96365438aad20286",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"__MONOTONIC_TIMESTAMP" : "141176755",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"JOB_TYPE" : "restart",
> 	"JOB_ID" : "1998",
> 	"_SYSTEMD_SLICE" : "-.slice"
> }
> {
> 	"_UID" : "0",
> 	"JOB_RESULT" : "done",
> 	"_CMDLINE" : "/sbin/init",
> 	"CODE_LINE" : "950",
> 	"MESSAGE" : "Started Phosphor Fan Presence Tach Daemon.",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"JOB_TYPE" : "start",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"_PID" : "1",
> 	"CODE_FUNC" : "job_log_done_status_message",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"_GID" : "0",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"PRIORITY" : "6",
> 	"_HOSTNAME" : "mingder",
> 	"JOB_ID" : "1998",
> 	"__REALTIME_TIMESTAMP" : "1555568621508089",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"MESSAGE_ID" : "39f53479d3a045ac8e11786248231fbf",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"SYSLOG_FACILITY" : "3",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=52b;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=86adad6;t=586c80b1bd5f9;x=769420352032c3b3",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568621508006",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"__MONOTONIC_TIMESTAMP" : "141220566",
> 	"CODE_FILE" : "../git/src/core/job.c",
> 	"_COMM" : "systemd",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_TRANSPORT" : "journal",
> 	"_SYSTEMD_UNIT" : "init.scope"
> }
> {
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=532;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=86f7e5f;t=586c80b207982;x=5e8f66bc3dae9aaa",
> 	"_SYSTEMD_SLICE" : "system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_CMDLINE" : "phosphor-fan-presence-tach",
> 	"__REALTIME_TIMESTAMP" : "1555568621812098",
> 	"_HOSTNAME" : "mingder",
> 	"SYSLOG_FACILITY" : "3",
> 	"_GID" : "0",
> 	"SYSLOG_IDENTIFIER" : "phosphor-fan-presence-tach",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"MESSAGE" : "terminate called after throwing an instance of 'phosphor::fan::util::DBusMethodError'",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_TRANSPORT" : "stdout",
> 	"_PID" : "2359",
> 	"__MONOTONIC_TIMESTAMP" : "141524575",
> 	"_SYSTEMD_INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"PRIORITY" : "6",
> 	"_EXE" : "/usr/sbin/phosphor-fan-presence-tach",
> 	"_SYSTEMD_CGROUP" : "/system.slice/system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice/phosphor-fan-presence-tach at 0.service",
> 	"_STREAM_ID" : "6a2b58209654429bbca1b7c6bf181604",
> 	"_COMM" : "phosphor-fan-pr",
> 	"_UID" : "0",
> 	"_SYSTEMD_UNIT" : "phosphor-fan-presence-tach at 0.service"
> }
> {
> 	"_SYSTEMD_CGROUP" : "/system.slice/system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice/phosphor-fan-presence-tach at 0.service",
> 	"SYSLOG_IDENTIFIER" : "phosphor-fan-presence-tach",
> 	"_EXE" : "/usr/sbin/phosphor-fan-presence-tach",
> 	"__MONOTONIC_TIMESTAMP" : "141582711",
> 	"SYSLOG_FACILITY" : "3",
> 	"PRIORITY" : "6",
> 	"_HOSTNAME" : "mingder",
> 	"_STREAM_ID" : "6a2b58209654429bbca1b7c6bf181604",
> 	"__REALTIME_TIMESTAMP" : "1555568621870233",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"_CMDLINE" : "phosphor-fan-presence-tach",
> 	"_SYSTEMD_INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"_TRANSPORT" : "stdout",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=533;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=8706177;t=586c80b215c99;x=42eb32999d52f312",
> 	"_PID" : "2359",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_UID" : "0",
> 	"_SYSTEMD_SLICE" : "system-phosphor\\x2dfan\\x2dpresence\\x2dtach.slice",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"MESSAGE" : "  what():  DBus method call failed",
> 	"_COMM" : "phosphor-fan-pr",
> 	"_SYSTEMD_UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"_GID" : "0"
> }
> {
> 	"_TRANSPORT" : "journal",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568622203107",
> 	"EXIT_STATUS" : "6",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Main process exited, code=killed, status=6/ABRT",
> 	"__REALTIME_TIMESTAMP" : "1555568622203204",
> 	"PRIORITY" : "4",
> 	"SYSLOG_FACILITY" : "3",
> 	"_CMDLINE" : "/sbin/init",
> 	"MESSAGE_ID" : "98e322203f7a4ed290d09fe03c09fe15",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_UID" : "0",
> 	"CODE_FILE" : "../git/src/core/unit.c",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_GID" : "0",
> 	"_PID" : "1",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"_COMM" : "systemd",
> 	"EXIT_CODE" : "killed",
> 	"COMMAND" : "ExecStart",
> 	"__MONOTONIC_TIMESTAMP" : "141915681",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"CODE_FUNC" : "unit_log_process_exit",
> 	"_HOSTNAME" : "mingder",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=538;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=8757621;t=586c80b267144;x=50dbb59748c240cb",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"CODE_LINE" : "5537",
> 	"_SYSTEMD_UNIT" : "init.scope"
> }
> {
> 	"CODE_FUNC" : "unit_log_failure",
> 	"UNIT_RESULT" : "signal",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_GID" : "0",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=539;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=875b376;t=586c80b26ae98;x=7ceede57b1cf63c5",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"__REALTIME_TIMESTAMP" : "1555568622218904",
> 	"CODE_FILE" : "../git/src/core/unit.c",
> 	"_COMM" : "systemd",
> 	"__MONOTONIC_TIMESTAMP" : "141931382",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568622218809",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"_PID" : "1",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"_TRANSPORT" : "journal",
> 	"_CMDLINE" : "/sbin/init",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"SYSLOG_FACILITY" : "3",
> 	"CODE_LINE" : "5508",
> 	"_HOSTNAME" : "mingder",
> 	"_UID" : "0",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"MESSAGE_ID" : "d9b373ed55a64feb8242e02dbe79a49c",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Failed with result 'signal'.",
> 	"PRIORITY" : "4",
> 	"_SYSTEMD_SLICE" : "-.slice"
> }
> {
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=556;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=8858d4f;t=586c80b368870;x=bd285be09a2b202c",
> 	"PRIORITY" : "6",
> 	"_TRANSPORT" : "journal",
> 	"_COMM" : "systemd",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_UID" : "0",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Service RestartSec=1s expired, scheduling restart.",
> 	"_PID" : "1",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"_GID" : "0",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568623255178",
> 	"CODE_FUNC" : "service_dispatch_timer",
> 	"_CMDLINE" : "/sbin/init",
> 	"__MONOTONIC_TIMESTAMP" : "142970191",
> 	"CODE_LINE" : "3558",
> 	"SYSLOG_FACILITY" : "3",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"CODE_FILE" : "../git/src/core/service.c",
> 	"_HOSTNAME" : "mingder",
> 	"__REALTIME_TIMESTAMP" : "1555568623257712"
> }
> {
> 	"SYSLOG_FACILITY" : "3",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"N_RESTARTS" : "2",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"MESSAGE_ID" : "5eb03494b6584870a536b337290809b3",
> 	"_TRANSPORT" : "journal",
> 	"CODE_LINE" : "2172",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"CODE_FILE" : "../git/src/core/service.c",
> 	"_HOSTNAME" : "mingder",
> 	"PRIORITY" : "6",
> 	"_UID" : "0",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"__MONOTONIC_TIMESTAMP" : "143105318",
> 	"CODE_FUNC" : "service_enter_restart",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_GID" : "0",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"__REALTIME_TIMESTAMP" : "1555568623392846",
> 	"_COMM" : "systemd",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Scheduled restart job, restart counter is at 2.",
> 	"_PID" : "1",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=55b;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=8879d26;t=586c80b38984e;x=cbae35c18148d750",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568623392516",
> 	"_CMDLINE" : "/sbin/init"
> }
> {
> 	"_UID" : "0",
> 	"_COMM" : "systemd",
> 	"__REALTIME_TIMESTAMP" : "1555568624108590",
> 	"CODE_LINE" : "950",
> 	"_PID" : "1",
> 	"CODE_FUNC" : "job_log_done_status_message",
> 	"MESSAGE_ID" : "9d1aaa27d60140bd96365438aad20286",
> 	"_CMDLINE" : "/sbin/init",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=566;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=892890b;t=586c80b43842e;x=562735cdc759ad4c",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"MESSAGE" : "Stopped Phosphor Fan Presence Tach Daemon.",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568624108502",
> 	"__MONOTONIC_TIMESTAMP" : "143821067",
> 	"CODE_FILE" : "../git/src/core/job.c",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"_GID" : "0",
> 	"PRIORITY" : "6",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"_HOSTNAME" : "mingder",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"SYSLOG_FACILITY" : "3",
> 	"_TRANSPORT" : "journal",
> 	"JOB_TYPE" : "restart",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"JOB_RESULT" : "done",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"JOB_ID" : "2233"
> }
> {
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_PID" : "1",
> 	"SYSLOG_FACILITY" : "3",
> 	"_TRANSPORT" : "journal",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"CODE_LINE" : "1680",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568624111946",
> 	"_UID" : "0",
> 	"__REALTIME_TIMESTAMP" : "1555568624112066",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"__MONOTONIC_TIMESTAMP" : "143824543",
> 	"_GID" : "0",
> 	"_COMM" : "systemd",
> 	"CODE_FILE" : "../git/src/core/unit.c",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Start request repeated too quickly.",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"PRIORITY" : "4",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"CODE_FUNC" : "unit_start_limit_test",
> 	"_HOSTNAME" : "mingder",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=567;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=892969f;t=586c80b4391c2;x=6bda45b32807d5a2",
> 	"_CMDLINE" : "/sbin/init"
> }
> {
> 	"_HOSTNAME" : "mingder",
> 	"SYSLOG_FACILITY" : "3",
> 	"__MONOTONIC_TIMESTAMP" : "143830627",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"_GID" : "0",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"CODE_FUNC" : "unit_log_failure",
> 	"_PID" : "1",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"MESSAGE_ID" : "d9b373ed55a64feb8242e02dbe79a49c",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"CODE_LINE" : "5508",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"__REALTIME_TIMESTAMP" : "1555568624118149",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568624114749",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=568;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=892ae63;t=586c80b43a985;x=48d7d6d11e761693",
> 	"UNIT_RESULT" : "signal",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"_UID" : "0",
> 	"CODE_FILE" : "../git/src/core/unit.c",
> 	"_CMDLINE" : "/sbin/init",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_TRANSPORT" : "journal",
> 	"_COMM" : "systemd",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"MESSAGE" : "phosphor-fan-presence-tach at 0.service: Failed with result 'signal'.",
> 	"PRIORITY" : "4"
> }
> {
> 	"MESSAGE" : "Failed to start Phosphor Fan Presence Tach Daemon.",
> 	"_SYSTEMD_CGROUP" : "/init.scope",
> 	"__MONOTONIC_TIMESTAMP" : "143882036",
> 	"PRIORITY" : "3",
> 	"UNIT" : "phosphor-fan-presence-tach at 0.service",
> 	"JOB_RESULT" : "failed",
> 	"_GID" : "0",
> 	"CODE_FILE" : "../git/src/core/job.c",
> 	"_EXE" : "/lib/systemd/systemd",
> 	"_CMDLINE" : "/sbin/init",
> 	"_COMM" : "systemd",
> 	"CODE_FUNC" : "job_log_done_status_message",
> 	"_MACHINE_ID" : "fa1a707917fa4b75a16ab529dc09c8ce",
> 	"_SYSTEMD_UNIT" : "init.scope",
> 	"CODE_LINE" : "950",
> 	"JOB_TYPE" : "start",
> 	"_BOOT_ID" : "94b392ebfa2147b6b28f32ce1c87d8a7",
> 	"INVOCATION_ID" : "bd4bdaf8c8f04f17a5f7d8d2b9c8b7ce",
> 	"SYSLOG_IDENTIFIER" : "systemd",
> 	"_TRANSPORT" : "journal",
> 	"_PID" : "1",
> 	"_SOURCE_REALTIME_TIMESTAMP" : "1555568624169239",
> 	"_HOSTNAME" : "mingder",
> 	"__REALTIME_TIMESTAMP" : "1555568624169565",
> 	"SYSLOG_FACILITY" : "3",
> 	"_CAP_EFFECTIVE" : "3fffffffff",
> 	"_SYSTEMD_SLICE" : "-.slice",
> 	"JOB_ID" : "2233",
> 	"MESSAGE_ID" : "be02cf6855d2428ba40df7e9d022f03d",
> 	"__CURSOR" : "s=6362c6cda2b64a3eb14f6aa46acd1d7a;i=569;b=94b392ebfa2147b6b28f32ce1c87d8a7;m=8937734;t=586c80b44725d;x=99dec20be5513aa5",
> 	"_UID" : "0"
> }
> 
> 
> 
> 
>> On Apr 16, 2019, at 10:21 PM, Matthew Barth <msbarth at linux.ibm.com> wrote:
>> 
>> 
>> 
>> 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