<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><br>
This is the issue I encountered and I’m still stuck on..<br>
<br>
Using journalctl -u <a href="mailto:phosphor-reset-host-check@0.service">phosphor-reset-host-check@0.service</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Apr 28 23:28:18 kudo systemd[1]: Starting Check Host0 status on BMC reset...<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:20 kudo phosphor-host-check[973]: Check if host is running<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:20 kudo phosphor-host-check[973]: Error in mapper call for control host, use default service<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:25 kudo phosphor-host-check[973]: Error in call to control host Execute<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:25 kudo phosphor-host-check[973]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:25 kudo phosphor-host-check[973]:   what():  sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:33 kudo systemd[1]: <a href="mailto:phosphor-reset-host-check@0.service">
phosphor-reset-host-check@0.service</a>: Main process exited, code=dumped, status=6/ABRT<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:33 kudo systemd[1]: <a href="mailto:phosphor-reset-host-check@0.service">
phosphor-reset-host-check@0.service</a>: Failed with result 'core-dump'.<o:p></o:p></p>
<p class="MsoNormal">Apr 28 23:28:33 kudo systemd[1]: Failed to start Check Host0 status on BMC reset.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">phosphor-host-check[973]: Error in mapper call for control host, use default service<o:p></o:p></p>
<p class="MsoNormal"><br>
We tried to run the command manually:<o:p></o:p></p>
<p class="MsoNormal">busctl call xyz.openbmc_project.ObjectMapper /xyz/openbmc_project/object_mapper xyz.openbmc_project.ObjectMapper GetObject sas "/xyz/openbmc_project/control/host0" 1 "xyz.openbmc_project.Control.Host"<br>
<br>
The response was the correct response.<br>
a{sas} 1 "xyz.openbmc_project.Control.Host" 4 "org.freedesktop.DBus.Introspectable" "org.freedesktop.DBus.Peer" "org.freedesktop.DBus.Properties" "xyz.openbmc_project.Control.Host"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Next, we tried to run the phosphor-host-check<span style="color:#1F497D">
</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@kudo:~# phosphor-host-check<o:p></o:p></p>
<p class="MsoNormal">xyz.openbmc_project.Control.Host.Command.Heartbeat<o:p></o:p></p>
<p class="MsoNormal">Test<o:p></o:p></p>
<p class="MsoNormal">terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'<o:p></o:p></p>
<p class="MsoNormal">  what():  sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable<o:p></o:p></p>
<p class="MsoNormal">Aborted (core dumped)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The issue still is that when phosphor-host-check fails when it is running the sdbus command<br>
<a href="https://github.com/openbmc/phosphor-state-manager/blob/master/host_check_main.cpp#L74-L84">https://github.com/openbmc/phosphor-state-manager/blob/master/host_check_main.cpp#L74-L84</a><br>
<br>
Thanks,<br>
Brandon<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>