<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Failed to receive heartbeat from agent. CM server guid in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-receive-heartbeat-from-agent-CM-server-guid/m-p/64227#M74191</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;My install fails when it tries to get heartbeat from newly installed agent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a few things suggested on the interenet by other users, such as cleaning the folders:&lt;/P&gt;&lt;P&gt;&amp;nbsp; rm /var/lib/cloudera-scm-agent/ -rf&lt;BR /&gt;&amp;nbsp; rm /var/lib/cloudera-scm-server/ -rf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I uninstalled and reinstalled:&lt;/P&gt;&lt;P&gt;/usr/share/cmf/uninstall-cloudera-manager.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;./cloudera-manager-installer.bin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the error on step 5 of the install wizard is always :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="InstallStatus error"&gt;Installation failed. Failed to receive heartbeat from agent.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOG SNIPPET:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="error"&gt;&lt;STRONG&gt;BEGIN sudo tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.log | sed 's/^/&amp;gt;&amp;gt;/' &lt;/STRONG&gt;&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 12:29:01 +0000] 68880 MainThread agent ERROR Error, CM server guid updated, expected eb29c04c-7699-43d6-8896-ea6024c0edc2, received 40d851ea-2dd7-4a6d-8840-410425111154&lt;BR /&gt;&amp;gt;&amp;gt;[0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="error"&gt;&amp;nbsp;&amp;gt;&amp;gt;[01/Feb/2018 12:49:29 +0000] 71602 MainThread __init__ ERROR Failed to generate and store Agent UUID &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="error"&gt;&amp;gt;&amp;gt;IOError: [Errno 2] No such file or directory: '/var/lib/cloudera-scm-agent/uuid'&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 12:49:29 +0000] 71602 Dummy-1 daemonize WARNING Stopping daemon.&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 13:02:19 +0000] 73786 MainThread __init__ INFO Generating Agent UUID for the first time: '/var/lib/cloudera-scm-agent/uuid'&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 13:02:19 +0000] 73786 MainThread __init__ ERROR Failed to generate and store Agent UUID&lt;BR /&gt;&amp;gt;&amp;gt;Traceback (most recent call last):&lt;BR /&gt;&amp;gt;&amp;gt; File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.14.0-py2.7.egg/cmf/util/__init__.py", line 414, in get_host_uuid&lt;BR /&gt;&amp;gt;&amp;gt; uuid_file = open(uuid_path, 'w')&lt;BR /&gt;&amp;gt;&amp;gt;IOError: [Errno 2] No such file or directory: '/var/lib/cloudera-scm-agent/uuid'&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 13:02:19 +0000] 73786 Dummy-1 daemonize WARNING Stopping daemon.&lt;BR /&gt;&lt;STRONG&gt;END (0) &lt;/STRONG&gt;&lt;BR /&gt;end of agent logs. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 18:34:46 GMT</pubDate>
    <dc:creator>NewBee22</dc:creator>
    <dc:date>2018-02-01T18:34:46Z</dc:date>
    <item>
      <title>Failed to receive heartbeat from agent. CM server guid</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-receive-heartbeat-from-agent-CM-server-guid/m-p/64227#M74191</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;My install fails when it tries to get heartbeat from newly installed agent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried a few things suggested on the interenet by other users, such as cleaning the folders:&lt;/P&gt;&lt;P&gt;&amp;nbsp; rm /var/lib/cloudera-scm-agent/ -rf&lt;BR /&gt;&amp;nbsp; rm /var/lib/cloudera-scm-server/ -rf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I uninstalled and reinstalled:&lt;/P&gt;&lt;P&gt;/usr/share/cmf/uninstall-cloudera-manager.sh&lt;/P&gt;&lt;P&gt;&amp;nbsp;./cloudera-manager-installer.bin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the error on step 5 of the install wizard is always :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="InstallStatus error"&gt;Installation failed. Failed to receive heartbeat from agent.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOG SNIPPET:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="error"&gt;&lt;STRONG&gt;BEGIN sudo tail -n 50 /var/log/cloudera-scm-agent//cloudera-scm-agent.log | sed 's/^/&amp;gt;&amp;gt;/' &lt;/STRONG&gt;&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 12:29:01 +0000] 68880 MainThread agent ERROR Error, CM server guid updated, expected eb29c04c-7699-43d6-8896-ea6024c0edc2, received 40d851ea-2dd7-4a6d-8840-410425111154&lt;BR /&gt;&amp;gt;&amp;gt;[0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="error"&gt;&amp;nbsp;&amp;gt;&amp;gt;[01/Feb/2018 12:49:29 +0000] 71602 MainThread __init__ ERROR Failed to generate and store Agent UUID &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="error"&gt;&amp;gt;&amp;gt;IOError: [Errno 2] No such file or directory: '/var/lib/cloudera-scm-agent/uuid'&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 12:49:29 +0000] 71602 Dummy-1 daemonize WARNING Stopping daemon.&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 13:02:19 +0000] 73786 MainThread __init__ INFO Generating Agent UUID for the first time: '/var/lib/cloudera-scm-agent/uuid'&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 13:02:19 +0000] 73786 MainThread __init__ ERROR Failed to generate and store Agent UUID&lt;BR /&gt;&amp;gt;&amp;gt;Traceback (most recent call last):&lt;BR /&gt;&amp;gt;&amp;gt; File "/usr/lib64/cmf/agent/build/env/lib/python2.7/site-packages/cmf-5.14.0-py2.7.egg/cmf/util/__init__.py", line 414, in get_host_uuid&lt;BR /&gt;&amp;gt;&amp;gt; uuid_file = open(uuid_path, 'w')&lt;BR /&gt;&amp;gt;&amp;gt;IOError: [Errno 2] No such file or directory: '/var/lib/cloudera-scm-agent/uuid'&lt;BR /&gt;&amp;gt;&amp;gt;[01/Feb/2018 13:02:19 +0000] 73786 Dummy-1 daemonize WARNING Stopping daemon.&lt;BR /&gt;&lt;STRONG&gt;END (0) &lt;/STRONG&gt;&lt;BR /&gt;end of agent logs. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:34:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-receive-heartbeat-from-agent-CM-server-guid/m-p/64227#M74191</guid>
      <dc:creator>NewBee22</dc:creator>
      <dc:date>2018-02-01T18:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to receive heartbeat from agent. CM server guid</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-receive-heartbeat-from-agent-CM-server-guid/m-p/64228#M74192</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/25658"&gt;@NewBee22&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key error in your output is:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class="error"&gt;Failed to generate and store Agent UUID&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the agent starts, it will check /var/lib/cloudera-scm-agent/ to see if there is a "uuid" file.&amp;nbsp; If there isn't, the agent will create the file with a unique uuid value.&amp;nbsp; It seems this operation fails.&lt;/P&gt;&lt;P&gt;Since the agent runs as root, it is possible there is something else preventing file creation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest looking at the file path. Run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# ls -lrt /var/lib/cloudera-scm-agent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we see that &lt;STRONG&gt;&lt;SPAN class="error"&gt;uuid_file = open(uuid_path, 'w')&lt;/SPAN&gt;&lt;/STRONG&gt; fails I believe that it is most likely that "cloudera-scm-agent" does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it doesn't, create /var/lib/cloudera-scm-agent and try restarting the agent.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 18:42:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Failed-to-receive-heartbeat-from-agent-CM-server-guid/m-p/64228#M74192</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2018-02-01T18:42:07Z</dc:date>
    </item>
  </channel>
</rss>

