You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Max (JIRA)" <ji...@apache.org> on 2013/06/04 23:55:20 UTC
[jira] [Commented] (AMBARI-2269) Agent failed to register on Server
[ https://issues.apache.org/jira/browse/AMBARI-2269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675313#comment-13675313 ]
Max commented on AMBARI-2269:
-----------------------------
I identified the problem. I created Virtual machines with using script in User-data with Cloud-init.
Cloud-init supports gzip compressed user data.
if I supplied machine with compressed data I got this error. this bug is absent if I provide uncompressed data.
The field which cause an error 'ec2_userdata' from ambari-agent.log
The possible solution can be to ignore fields which are not required for ambari setup.
I would still leave this bug opened.
> Agent failed to register on Server
> ----------------------------------
>
> Key: AMBARI-2269
> URL: https://issues.apache.org/jira/browse/AMBARI-2269
> Project: Ambari
> Issue Type: Bug
> Components: agent, controller
> Affects Versions: 1.4.0
> Environment: CentOS 6.4
> Reporter: Max
> Priority: Minor
> Attachments: ambari-agent.log, ambari-server.log
>
>
> The Agent failed to register on Server.
> Message from Agent:
> {code}
> INFO 2013-06-04 03:11:20,894 Controller.py:99 - Unable to connect to: https://ip-10-252-41-38.us-west-2.compute.internal:8441/agent/v1/register/ip-10-252-44-239.us-west-2.compute.internal
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 82, in registerWithServer
> data = json.dumps(self.register.build(id))
> File "/usr/lib64/python2.6/json/__init__.py", line 230, in dumps
> return _default_encoder.encode(obj)
> File "/usr/lib64/python2.6/json/encoder.py", line 367, in encode
> chunks = list(self.iterencode(o))
> File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
> for chunk in self._iterencode_dict(o, markers):
> File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
> for chunk in self._iterencode(value, markers):
> File "/usr/lib64/python2.6/json/encoder.py", line 309, in _iterencode
> for chunk in self._iterencode_dict(o, markers):
> File "/usr/lib64/python2.6/json/encoder.py", line 275, in _iterencode_dict
> for chunk in self._iterencode(value, markers):
> File "/usr/lib64/python2.6/json/encoder.py", line 294, in _iterencode
> yield encoder(o)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid start byte
> {code}
> Server doesn't have error messages. The server and agent log will be attached
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira