Alejandro Fernandez created AMBARI-19246:
--------------------------------------------
Summary: 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
Fix For: 2.5.0
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)