[ 
https://issues.apache.org/jira/browse/AMBARI-24510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

yangxiaoshuo updated AMBARI-24510:
----------------------------------
    Affects Version/s: 2.6.2
           Attachment: image-2018-08-21-14-54-01-767.png
                       image-2018-08-21-14-54-45-813.png
        Fix Version/s: 2.6.2
          Description: 
When deploy ambari-agent use web UI, there is error like that
{code:java}
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
{code}
and creat Soft link 
{code:java}
 /usr/bin/ambari-python-wrap -> /usr/bin/python{code}
while python version is 2.7, so I recreate a soft link to python2.6
{code:java}
ln -s /usr/bin/python2.6 /usr/bin/ambari-python-wrap
{code}
and restart ambari-server and ambari-agent, the the ambari-agent registe 
successfull.
{code:java}
INFO 2018-08-21 14:09:48,976 Controller.py:196 - Registration Successful 
(response id = 0){code}
It seems to have solved the problem.But when i _*Install,Start and Test,*_ the 
Progress bar donot move.And I cannot stop it.

!image-2018-08-21-14-54-01-767.png!

!image-2018-08-21-14-54-45-813.png!
          Component/s: ambari-server
                       ambari-agent
              Summary: ambari-agent cannot register to server when deploy 
ambari-agent with web UI on python2.7  (was: ambari)

> ambari-agent cannot register to server when deploy ambari-agent with web UI 
> on python2.7
> ----------------------------------------------------------------------------------------
>
>                 Key: AMBARI-24510
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24510
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent, ambari-server
>    Affects Versions: 2.6.2
>            Reporter: yangxiaoshuo
>            Priority: Minor
>             Fix For: 2.6.2
>
>         Attachments: image-2018-08-21-14-54-01-767.png, 
> image-2018-08-21-14-54-45-813.png
>
>
> When deploy ambari-agent use web UI, there is error like that
> {code:java}
> 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
> {code}
> and creat Soft link 
> {code:java}
>  /usr/bin/ambari-python-wrap -> /usr/bin/python{code}
> while python version is 2.7, so I recreate a soft link to python2.6
> {code:java}
> ln -s /usr/bin/python2.6 /usr/bin/ambari-python-wrap
> {code}
> and restart ambari-server and ambari-agent, the the ambari-agent registe 
> successfull.
> {code:java}
> INFO 2018-08-21 14:09:48,976 Controller.py:196 - Registration Successful 
> (response id = 0){code}
> It seems to have solved the problem.But when i _*Install,Start and Test,*_ 
> the Progress bar donot move.And I cannot stop it.
> !image-2018-08-21-14-54-01-767.png!
> !image-2018-08-21-14-54-45-813.png!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to