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

ambari-agent cannot register to server when deploy ambari-agent with web UI on python2.7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.2
    • Component/s: ambari-agent, ambari-server
    • Labels:
      None

      Description

      When deploy ambari-agent use web UI, there is error like that

      INFO 2018-08-21 14:19:49,634 security.py:93 - SSL Connect being called.. connecting to the server
      ERROR 2018-08-21 14:19:49,636 Controller.py:226 - Unable to connect to: https://hostxx:8441/agent/v1/register/hostxx
      Traceback (most recent call last):
      File "/usr/lib/ambari-agent/lib/ambari_agent/Controller.py", line 175, in registerWithServer
      ret = self.sendRequest(self.registerUrl, data)
      File "/usr/lib/ambari-agent/lib/ambari_agent/Controller.py", line 549, in sendRequest
      raise IOError('Request to {0} failed due to {1}'.format(url, str(exception)))
      IOError: Request to https://hostxx:8441/agent/v1/register/hostxx failed due to EOF occurred in violation of protocol (_ssl.c:661)
      ERROR 2018-08-21 14:19:49,637 Controller.py:227 - Error:Request to https://hostxx:8441/agent/v1/register/hostxx failed due to EOF occurred in violation of protocol (_ssl.c:661)
      WARNING 2018-08-21 14:19:49,637 Controller.py:228 - Sleeping for 28 seconds and then trying again
      

      and creat Soft link 

       /usr/bin/ambari-python-wrap -> /usr/bin/python

      while python version is 2.7, so I recreate a soft link to python2.6

      ln -s /usr/bin/python2.6 /usr/bin/ambari-python-wrap
      

      and restart ambari-server and ambari-agent, the the ambari-agent registe successfull.

      INFO 2018-08-21 14:09:48,976 Controller.py:196 - Registration Successful (response id = 0)

      It seems to have solved the problem.But when i Install,Start and Test, the Progress bar donot move.And I cannot stop it.

        Attachments

        1. image-2018-08-21-14-54-45-813.png
          30 kB
          yangxiaoshuo
        2. image-2018-08-21-14-54-01-767.png
          136 kB
          yangxiaoshuo

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yangxiaoshuo yangxiaoshuo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: