ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-19246) Ambari Agent start fails with local variable 'server_url' referenced before assignment
Date Tue, 20 Dec 2016 11:52:58 GMT

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

Andrew Onischuk updated AMBARI-19246:
-------------------------------------
    Status: Patch Available  (was: Open)

> Ambari Agent start fails with local variable 'server_url' referenced before assignment
> --------------------------------------------------------------------------------------
>
>                 Key: AMBARI-19246
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19246
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.5.0
>            Reporter: Alejandro Fernandez
>            Assignee: Andrew Onischuk
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-19246.patch
>
>
> ambari-server-2.5.0.0-496.x86_64
> When starting Ambari Agent, getting this error.
> The server host is accessible.
> {code}
> [root@c6405 ~]# ambari-agent start
> Verifying Python version compatibility...
> Using python  /usr/bin/python
> Checking for previously running Ambari Agent...
> Starting ambari-agent
> Verifying ambari-agent process status...
> ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
> ====================
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 407, in <module>
>     main(heartbeat_stop_callback)
>   File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 375, in main
>     (retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
> UnboundLocalError: local variable 'server_url' referenced before assignment
> ====================
> Agent out at: /var/log/ambari-agent/ambari-agent.out
> Agent log at: /var/log/ambari-agent/ambari-agent.log
> {code}
> ambari-agent.log:
> {code}
> INFO 2016-12-19 23:53:42,640 PingPortListener.py:50 - Ping port listener started on port:
8670
> WARNING 2016-12-19 23:53:42,761 main.py:371 - Unable to determine the IP address of the
Ambari server 'c6404.ambari.apache.org'
> ERROR 2016-12-19 23:53:42,762 main.py:412 - Exiting with exception:
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 407, in <module>
>     main(heartbeat_stop_callback)
>   File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 375, in main
>     (retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
> UnboundLocalError: local variable 'server_url' referenced before assignment
> INFO 2016-12-19 23:53:42,762 ExitHelper.py:53 - Performing cleanup before exiting...
> {code}
> cc [~aonishuk]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message