<?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 Re: ambari-agent generates no pid file and does not register with ambari-server in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235725#M197538</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/69436/paulheinzlreiter.html"&gt;@Paul Heinzlreiter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As we see that the ambari agent log is stuck exactly at : "Data cleanup finished" so i am suspecting that it might be stuck there due to&lt;STRONG&gt; "fuser".&lt;/STRONG&gt; Sometimes it gets stuck and in such cases we need to reboot the agent host. &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you please check if agent is stuck at fuser&lt;/P&gt;&lt;PRE&gt;# ps -flye | grep fuser | grep D
# ps -flye | grep fuser &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The "D" state means Uninterruptible Sleep State.&lt;/P&gt;&lt;P&gt;The Command "fuser" is used by ambari-agent. The ambari-agent does not start properly because fuser might get stuck in uninterrupted sleep state.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Similar Issue in HCC article: &lt;/STRONG&gt;To resolve from this issue reboot the server. &lt;A href="https://community.hortonworks.com/content/supportkb/182955/ambari-agent-loses-heartbeat-and-ambari-agent-log.html"&gt;https://community.hortonworks.com/content/supportkb/182955/ambari-agent-loses-heartbeat-and-ambari-agent-log.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 03:46:04 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-03-15T03:46:04Z</dc:date>
    <item>
      <title>ambari-agent generates no pid file and does not register with ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235724#M197537</link>
      <description>&lt;P&gt;I did shutdown all HDP Services and subsequently ambari-agents and ambari-server on a cluster due to some scheduled network maintainance.&lt;/P&gt;&lt;P&gt;When starting the ambari-server and ambari-agents again, the ambari-agent on the headnode (also running ambari-server) did not register with the ambari-server (the server is not getting a request at all). The ambari-agent on the slavenode registers fine.&lt;/P&gt;&lt;P&gt;Ambari version is 2.6.1.0 (recently upgraded according to HDP documentation, did work after that), HDP version 2.6.0.3&lt;/P&gt;&lt;P&gt;Python 2.7.5 / CentOS7&lt;/P&gt;&lt;P&gt;on headnode (ambari running as root):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;ambari-agent start&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;produces&lt;/P&gt;&lt;P&gt;Verifying Python version compatibility...&lt;BR /&gt;Using python /usr/bin/python&lt;BR /&gt;Checking for previously running Ambari Agent...&lt;BR /&gt;Checking ambari-common dir...&lt;BR /&gt;Starting ambari-agent&lt;BR /&gt;Verifying ambari-agent process status...&lt;BR /&gt;Ambari Agent successfully started&lt;BR /&gt;Agent PID at: /run/ambari-agent/ambari-agent.pid&lt;BR /&gt;Agent out at: /var/log/ambari-agent/ambari-agent.out&lt;BR /&gt;Agent log at: /var/log/ambari-agent/ambari-agent.log&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambari-agent status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ambari-agent currently not running&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ps aux | grep ambari_agent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;root 15892 0.0 0.0 238584 17624 pts/4 S 11:29 0:00 /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start&lt;BR /&gt;root 15900 0.0 0.0 312740 18292 pts/4 Sl 11:29 0:00 /usr/bin/python /usr/lib/python2.6/site-packages/ambari_agent/main.py start&lt;/P&gt;&lt;P&gt;There is no pid-file for ambari-agent, the directory /run/ambari-agent exists and the permissions (root:root 755) are fine, no stale pid file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cat /var/log/ambari-agent/ambari-agent.log&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;....&lt;BR /&gt;INFO 2019-03-14 13:09:26,515 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-03-14 13:09:26,516 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-03-14 13:09:26,516 main.py:145 - loglevel=logging.INFO&lt;BR /&gt;INFO 2019-03-14 13:09:26,517 DataCleaner.py:39 - Data cleanup thread started&lt;BR /&gt;INFO 2019-03-14 13:09:26,518 DataCleaner.py:120 - Data cleanup started&lt;BR /&gt;INFO 2019-03-14 13:09:26,523 DataCleaner.py:122 - Data cleanup finished&lt;/P&gt;&lt;P&gt;However, the loglevel of ambari-agent should be DEBUG:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cat /etc/ambari-agent/conf/ambari-agent.ini&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;loglevel=DEBUG&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- How can I increase the log-level of ambari-agent?&lt;BR /&gt;- ambari-agent seems to be running, but not creating a PID file.&lt;BR /&gt;- according to the ambari-server log, there seems to be no connection attempt from the ambari-agent.&lt;/P&gt;&lt;P&gt;I did reinstall the ambari-agent, but that did not help. Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 23:28:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235724#M197537</guid>
      <dc:creator>pheinzlr</dc:creator>
      <dc:date>2019-03-14T23:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-agent generates no pid file and does not register with ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235725#M197538</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/69436/paulheinzlreiter.html"&gt;@Paul Heinzlreiter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As we see that the ambari agent log is stuck exactly at : "Data cleanup finished" so i am suspecting that it might be stuck there due to&lt;STRONG&gt; "fuser".&lt;/STRONG&gt; Sometimes it gets stuck and in such cases we need to reboot the agent host. &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you please check if agent is stuck at fuser&lt;/P&gt;&lt;PRE&gt;# ps -flye | grep fuser | grep D
# ps -flye | grep fuser &lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The "D" state means Uninterruptible Sleep State.&lt;/P&gt;&lt;P&gt;The Command "fuser" is used by ambari-agent. The ambari-agent does not start properly because fuser might get stuck in uninterrupted sleep state.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Similar Issue in HCC article: &lt;/STRONG&gt;To resolve from this issue reboot the server. &lt;A href="https://community.hortonworks.com/content/supportkb/182955/ambari-agent-loses-heartbeat-and-ambari-agent-log.html"&gt;https://community.hortonworks.com/content/supportkb/182955/ambari-agent-loses-heartbeat-and-ambari-agent-log.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 03:46:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235725#M197538</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-03-15T03:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-agent generates no pid file and does not register with ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235726#M197539</link>
      <description>&lt;P&gt;Hi, thanks very much that resolved the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 15:10:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235726#M197539</guid>
      <dc:creator>pheinzlr</dc:creator>
      <dc:date>2019-03-15T15:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-agent generates no pid file and does not register with ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235727#M197540</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/69436/paulheinzlreiter.html" nodeid="69436"&gt;@Paul Heinzlreiter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Great to know that it resolved your issue. It will be great if you can mark this HCC thread as "Answered" by clicking on "Accept" button on the correct answer.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 16:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-generates-no-pid-file-and-does-not-register/m-p/235727#M197540</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-03-15T16:13:11Z</dc:date>
    </item>
  </channel>
</rss>

