<?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 fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149829#M44514</link>
    <description>&lt;P&gt;Sadly , I upgrade the agent recently from version  2.5.0.3 to 2.5.1.0 this Issue is still there&lt;/P&gt;</description>
    <pubDate>Fri, 25 Aug 2017 10:22:37 GMT</pubDate>
    <dc:creator>darkz1984</dc:creator>
    <dc:date>2017-08-25T10:22:37Z</dc:date>
    <item>
      <title>Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149822#M44507</link>
      <description>&lt;P&gt;We have upgraded the Ambari Server and agent from 2.2.1.1 to 2.4.0.1-1&lt;/P&gt;&lt;P&gt;Ambari Server and Agent on the same server is running fine. We have additional 2 nodes and we are getting following error on both the nodes while starting Ambari agent. &lt;/P&gt;&lt;P&gt;- we have updated ambari-agent.ini to point to Ambari Server&lt;/P&gt;&lt;P&gt;- We do not see /var/log/ambari-agent/ambari-agent.log file created.&lt;/P&gt;&lt;P&gt;- We have tried uninstall and re-install of the ambari-agent but still getting same following error.&lt;/P&gt;&lt;P&gt;% ambari-agent restart --verbose &lt;/P&gt;&lt;PRE&gt;Restarting ambari-agent
Verifying Python version compatibility...
Using python  /usr/bin/python
ambari-agent is not running. No PID found at /var/run/ambari-agent/ambari-agent.pid
Verifying Python version compatibility...
Using python  /usr/bin/python
Checking for previously running Ambari Agent...
Starting ambari-agent
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
====================
    from Controller import AGENT_AUTO_RESTART_EXIT_CODE
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 37, in &amp;lt;module&amp;gt;
    import AmbariConfig
  File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariConfig.py", line 26, in &amp;lt;module&amp;gt;
    from NetUtil import NetUtil
  File "/usr/lib/python2.6/site-packages/ambari_agent/NetUtil.py", line 22, in &amp;lt;module&amp;gt;
    from HeartbeatHandlers import HeartbeatStopHandlers
  File "/usr/lib/python2.6/site-packages/ambari_agent/HeartbeatHandlers.py", line 21, in &amp;lt;module&amp;gt;
    from ambari_commons.exceptions import FatalException
ImportError: No module named ambari_commons.exceptions
====================
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log&lt;/PRE&gt;&lt;PRE&gt;% yum info ambari-agent 
Loaded plugins: security
Installed Packages
Name        : ambari-agent
Arch        : x86_64
Version     : 2.4.0.1
Release     : 1
Size        : 38 M
Repo        : installed
From repo   : Updates-ambari-2.4.0.1
Summary     : Ambari Agent
URL         : &lt;A href="http://www.apache.org" target="_blank"&gt;http://www.apache.org&lt;/A&gt;
License     : (c) Apache Software Foundation
Description : Maven Recipe: RPM Package.&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Oct 2016 13:14:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149822#M44507</guid>
      <dc:creator>raviraj_murdesh</dc:creator>
      <dc:date>2016-10-26T13:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149823#M44508</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/13969/ravirajmurdeshwar.html" nodeid="13969"&gt;@Raviraj Murdeshwar&lt;/A&gt;&lt;P&gt;please uninstall ambari-agent, remove all associated directories like /etc/ambari-agent, /var/lib/ambari-agent, etc.&lt;/P&gt;&lt;P&gt;Then delete the following directory&lt;/P&gt;&lt;P&gt;/usr/lib/python2.6/site-packages/ambari-agent&lt;/P&gt;&lt;P&gt;after that install ambari-agent again.  &lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:47:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149823#M44508</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-10-26T14:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149824#M44509</link>
      <description>&lt;P&gt;@Raviraj&lt;/P&gt;&lt;P&gt;Please check /var/log/ambari-agent/ambari-agent.out. and provide me more details.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 17:22:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149824#M44509</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-10-26T17:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149825#M44510</link>
      <description>&lt;P&gt;I am working with Raviraj and performed the recommended steps on his behalf, issue still exists, different error message this time though.&lt;/P&gt;&lt;P&gt;As suggested: &lt;/P&gt;&lt;P&gt;Uninstaled ambari-agent, removed following directories and successfully re-installed ambari-agent:&lt;/P&gt;&lt;P&gt;/etc/ambari-agent&lt;/P&gt;&lt;P&gt;/var/lib/ambari-agent,&lt;/P&gt;&lt;P&gt;/var/run/ambari-agent&lt;/P&gt;&lt;P&gt;/usr/lib/amrbari-agent&lt;/P&gt;&lt;P&gt;/usr/lib/python2.6/site-packages/ambari-agent&lt;/P&gt;&lt;P&gt;While starting the agent it now throws different error:&lt;/P&gt;&lt;P&gt;Starting ambari-agent
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see /ambari-agent.out:
====================
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 24, in &amp;lt;module&amp;gt;
  from Controller import AGENT_AUTO_RESTART_EXIT_CODE
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 41, in &amp;lt;module&amp;gt;
  from ambari_agent.ActionQueue import ActionQueue
  File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 37, in &amp;lt;module&amp;gt;
  from ambari_commons.str_utils import split_on_chunks
ImportError: cannot import name split_on_chunks
====================&lt;/P&gt;&lt;P&gt;The  ambari-agent.out file also show same above messages that we see in console&lt;/P&gt;,&lt;P&gt;Uninstaled ambari-agent, removed following directories and successfully re-installed ambari-agent:&lt;/P&gt;&lt;P&gt;/etc/ambari-agent&lt;/P&gt;&lt;P&gt;/var/lib/ambari-agent,&lt;/P&gt;&lt;P&gt;/var/run/ambari-agent&lt;/P&gt;&lt;P&gt;/usr/lib/amrbari-agent&lt;/P&gt;&lt;P&gt;/usr/lib/python2.6/site-packages/ambari-agent&lt;/P&gt;&lt;P&gt;While starting the agent it now throws different error:&lt;/P&gt;&lt;P&gt;Starting ambari-agent
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see /ambari-agent.out:
====================
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 24, in &amp;lt;module&amp;gt;
  from Controller import AGENT_AUTO_RESTART_EXIT_CODE
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 41, in &amp;lt;module&amp;gt;
  from ambari_agent.ActionQueue import ActionQueue
  File "/usr/lib/python2.6/site-packages/ambari_agent/ActionQueue.py", line 37, in &amp;lt;module&amp;gt;
  from ambari_commons.str_utils import split_on_chunks
ImportError: cannot import name split_on_chunks
====================&lt;/P&gt;&lt;P&gt;The  ambari-agent.out file also show same above messages that we see in console&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 20:19:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149825#M44510</guid>
      <dc:creator>samir_buche</dc:creator>
      <dc:date>2016-10-26T20:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149826#M44511</link>
      <description>&lt;P&gt;@Samir Buche&lt;/P&gt;&lt;P&gt;Please follow the link may be it's help you.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;yum erase ambari-agent&lt;/LI&gt;&lt;LI&gt;rm -rf /var/lib/ambari-agent&lt;/LI&gt;&lt;LI&gt;rm -rf /var/log/ambari-agent&lt;/LI&gt;&lt;LI&gt;rm -rf /usr/lib/python2.6/site-packages/ambari_agent&lt;/LI&gt;&lt;LI&gt;yum install -y ambari-agent&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Or please follow the link. &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/25382/hdp-exporess-upgrade-failing-with-importerror-cann.html" target="_blank"&gt;https://community.hortonworks.com/questions/25382/hdp-exporess-upgrade-failing-with-importerror-cann.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 22:13:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149826#M44511</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-10-26T22:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149827#M44512</link>
      <description>&lt;P&gt;@ Samir Buche &lt;/P&gt;&lt;P&gt;Issue is resolved or still there?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 12:38:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149827#M44512</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-11-02T12:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149828#M44513</link>
      <description>&lt;P&gt;Thanks Ashnee, It worked after removing all files/configuration from previous installs was causing problem.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 02:23:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149828#M44513</guid>
      <dc:creator>samir_buche</dc:creator>
      <dc:date>2016-11-12T02:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari agent fail to start with errors after upgrade from Ambari 2.2.1.1 to 2.4.0.1-1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149829#M44514</link>
      <description>&lt;P&gt;Sadly , I upgrade the agent recently from version  2.5.0.3 to 2.5.1.0 this Issue is still there&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 10:22:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-agent-fail-to-start-with-errors-after-upgrade-from/m-p/149829#M44514</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2017-08-25T10:22:37Z</dc:date>
    </item>
  </channel>
</rss>

