You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2017/08/16 18:21:00 UTC

[jira] [Updated] (AMBARI-17991) Ambari agent unable to register with server when server response is too big

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

Yusaku Sako updated AMBARI-17991:
---------------------------------
    Description: 
Ambari agent is unable to register with ambari server, failing with:

{code}

INFO 2016-06-09 11:22:00,964 security.py:147 - Encountered communication error. Details: SSLError('The read operation timed out',)
ERROR 2016-06-09 11:22:00,965 Controller.py:196 - Unable to connect to: https://localhost:8441/agent/v1/register/host1
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 150, in registerWithServer
    ret = self.sendRequest(self.registerUrl, data)
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 423, in sendRequest
    raise IOError('Request to {0} failed due to {1}'.format(url, str(exception)))
IOError: Request to https://server1:8441/agent/v1/register/host1 failed due to Error occured during connecting to the server: The read operation timed out
ERROR 2016-06-09 11:22:00,965 Controller.py:197 - Error:Request to https://server1:8441/agent/v1/register/host1 failed due to Error occured during connecting to the server: The read operation timed out
{code}

The problem was fixed by modifying the timeout in  /usr/lib/python2.6/site-packages/ambari_agent/security.py:

{code}
def create_connection(self):
    if self.sock:
      self.sock.close()
    logger.info("SSL Connect being called.. connecting to the server")
    sock = socket.create_connection((self.host, self.port), 120)
{code}

Use Jetty 8 instead of 9 in Ambari 2.4.0

  was:
Ambari agent is unable to register with ambari server, failing with:

{code}

INFO 2016-06-09 11:22:00,964 security.py:147 - Encountered communication error. Details: SSLError('The read operation timed out',)
ERROR 2016-06-09 11:22:00,965 Controller.py:196 - Unable to connect to: https://localhost:8441/agent/v1/register/dvtcbdqd02.corp.cox.com
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 150, in registerWithServer
    ret = self.sendRequest(self.registerUrl, data)
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 423, in sendRequest
    raise IOError('Request to {0} failed due to {1}'.format(url, str(exception)))
IOError: Request to https://server1:8441/agent/v1/register/host1 failed due to Error occured during connecting to the server: The read operation timed out
ERROR 2016-06-09 11:22:00,965 Controller.py:197 - Error:Request to https://server1:8441/agent/v1/register/host1 failed due to Error occured during connecting to the server: The read operation timed out
{code}

The problem was fixed by modifying the timeout in  /usr/lib/python2.6/site-packages/ambari_agent/security.py:

{code}
def create_connection(self):
    if self.sock:
      self.sock.close()
    logger.info("SSL Connect being called.. connecting to the server")
    sock = socket.create_connection((self.host, self.port), 120)
{code}

Use Jetty 8 instead of 9 in Ambari 2.4.0


> Ambari agent unable to register with server when server response is too big
> ---------------------------------------------------------------------------
>
>                 Key: AMBARI-17991
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17991
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>            Priority: Blocker
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17991_2.patch, AMBARI-17991_3-branch-2.4.patch, AMBARI-17991_3-trunk.patch, AMBARI-17991.patch
>
>
> Ambari agent is unable to register with ambari server, failing with:
> {code}
> INFO 2016-06-09 11:22:00,964 security.py:147 - Encountered communication error. Details: SSLError('The read operation timed out',)
> ERROR 2016-06-09 11:22:00,965 Controller.py:196 - Unable to connect to: https://localhost:8441/agent/v1/register/host1
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 150, in registerWithServer
>     ret = self.sendRequest(self.registerUrl, data)
>   File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 423, in sendRequest
>     raise IOError('Request to {0} failed due to {1}'.format(url, str(exception)))
> IOError: Request to https://server1:8441/agent/v1/register/host1 failed due to Error occured during connecting to the server: The read operation timed out
> ERROR 2016-06-09 11:22:00,965 Controller.py:197 - Error:Request to https://server1:8441/agent/v1/register/host1 failed due to Error occured during connecting to the server: The read operation timed out
> {code}
> The problem was fixed by modifying the timeout in  /usr/lib/python2.6/site-packages/ambari_agent/security.py:
> {code}
> def create_connection(self):
>     if self.sock:
>       self.sock.close()
>     logger.info("SSL Connect being called.. connecting to the server")
>     sock = socket.create_connection((self.host, self.port), 120)
> {code}
> Use Jetty 8 instead of 9 in Ambari 2.4.0



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)