Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-6226

ambari-agent start command fails.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.1
    • ambari-agent, test
    • None

    Description

      STR:

      1. Start ambari server
      2. yum update ambari-server -y. This installed new bits
      3. ambari-server restart
      4. Go To UI->install options and let ambari install the agent on all hosts
      5. This failed for the ambari-agent co-hosted with ambari-server
      6. Manually installed ambari-agent on that host. yum install ambari-agent -y
      7. ambari-agent status command outputs
         Found ambari-agent PID: 13954
        ambari-agent not running. Stale PID File at: /var/run/ambari-agent/ambari-agent.pid
      8. ambari-agent start command outputs
         Verifying Python version compatibility...
        Using python  /usr/bin/python2.6
        Checking for previously running Ambari Agent...
        /var/run/ambari-agent/ambari-agent.pid found with no process. Removing 13954...
        Starting ambari-agent
        Verifying ambari-agent process status...
        ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
        ====================
        Failed to start ping port listener of: Could not open port 8670 because port already used by another process:
        UID        PID  PPID  C STIME TTY          TIME CMD
        root      2166  2156  0 Jun17 ?        00:05:35 /usr/bin/python2.6 /usr/lib/python2.6/site-packages/ambari_agent/main.py start restart --expected-hostname=host
        ====================
        Agent out at: /var/log/ambari-agent/ambari-agent.out
        Agent log at: /var/log/ambari-agent/ambari-agent.log
        
      9. ps aux | grep ambari_agent | grep -v grep
         root      2156  0.0  0.3 206732 11008 ?        S    Jun17   0:00 /usr/bin/python2.6 /usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py start restart --expected-hostname=host
        root      2166  0.3  0.4 590496 18064 ?        Sl   Jun17   5:36 /usr/bin/python2.6 /usr/lib/python2.6/site-packages/ambari_agent/main.py start restart --expected-hostname=host
        

      Attachments

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: