Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve Analytics Agent failing to connect to the Controller registration endpoint

How to resolve Analytics Agent failing to connect to the Controller registration endpoint

I am running my application on python with uWSGI with Emperor: wsgi-file Directive, but the connection to controller in not happening ? Anyone have any insite on it.

 

This is my uWSGI file :

[uwsgi]
http-socket = :9090
wsgi-file = /app/test_service/jyoti_test.py
env = APPD_CONFIG_FILE='/etc/appdynamics.cfg'
env = APPD_WSGI_SCRIPT_ALIAS='/app/test_service/jyoti_test.py'
env = APPD_WSGI_CALLABLE_OBJECT='perf962'

 

and the I am starting up the uWSGI server by "uwsgi --ini test.ini"

And the appdynamics.cfg file is as below

[agent]
app = perf962
tier = perfTest962
node = node 369d

[controller]
host = test.saas.appdynamics.com
port = 443
ssl = (on)
account = my-test
accesskey = 1vb1231b12lo

[log]
level = debug
debugging = on

I am starting the pyagent by "pyagent proxy start

How to resolve Analytics Agent failing to connect to the Controller registration endpoint
5 REPLIES

Re: How to resolve Analytics Agent failing to connect to the Controller registration endpoint

Hi Jmallick,

 

Please try starting your proxy with 'appdynamic.cfg' file and apply some load for 2-3 mins.

ie

"pyagent proxy start -c /etc/appdynamics.cfg -d"

 

Reference; https://docs.appdynamics.com/display/PRO44/Start+the+Python+Agent+Proxy+Manually

 

Let us know if this did not solve the issue.

 

Regards!

Arun G



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Tags (1)

Re: How to resolve Analytics Agent failing to connect to the Controller registration endpoint

I tried but still there is no luck , I am generating the load from Jmeter

Re: How to resolve Analytics Agent failing to connect to the Controller registration endpoint

is there anything to worry about the following highlighted message 

root@ubuntu:/home/jmallick# pyagent proxy start -c /etc/appdynamics.cfg -d
2018-06-13 04:03:23,814 [WARNING] appdynamics.proxy.watchdog <27845>: Defunct proxy pid (27377) found; starting over
2018-06-13 04:03:23,816 [INFO] appdynamics.proxy.watchdog <27845>: Started watchdog with pid=27845
2018-06-13 04:03:23,817 [WARNING] appdynamics.proxy.watchdog <27845>: Found defunct proxy pid file with pid=27378
2018-06-13 04:03:23,817 [INFO] appdynamics.proxy.watchdog <27845>: Starting proxy: /usr/local/lib/python2.7/dist-packages/appdynamics_bindeps/proxy/runProxy -j /usr/local/lib/python2.7/dist-packages/appdynamics_proxysupport -d /usr/local/lib/python2.7/dist-packages/appdynamics_bindeps/proxy -r /tmp/appd/run /tmp/appd/run/comm /tmp/appd/logs
root@ubuntu:/home/jmallick# Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=120m; support was removed in 8.0
Install Directory resolved to[/usr/local/lib/python2.7/dist-packages/appdynamics_bindeps/proxy]
Agent Logging Directory [/tmp/appd/logs]
Logs Directory resolved to[/tmp/appd/logs]
04:03:24,134 INFO [main] ProxyControlEntryPoint - ProxyControl - init
04:03:24,134 INFO [main] ProxyControlEntryPoint - comm dir set to: /tmp/appd/run/comm
04:03:24,140 INFO [main] ZeroMQControlServer - ipcNodeBaseDir dir set to: /tmp/appd/run/comm/proxy-6671126471242587101
04:03:24,140 INFO [main] ZeroMQControlServer - ZeroMQControlServer - init
04:03:24,152 INFO [main] ZeroMQControlServer - ControlReqRouterSocket started at:ipc:///tmp/appd/run/comm/0
04:03:24,233 INFO [main] ProxyControlEntryPoint - ProxyControl - init completed
04:03:24,233 INFO [main] ProxyControlEntryPoint - Should register node at startup:false
2018-06-13 04:03:24,319 [INFO] appdynamics.proxy.watchdog <27845>: Started proxy with pid=27846

Re: How to resolve Analytics Agent failing to connect to the Controller registration endpoint

Hi Jmallick,

 

The highlighted one shouldn't be a problem, Looks like proxy is starting fine.

 

I would be needing the zip of log files. Sharing the way to send it accross in a private message.

 

Regards!

Arun G



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Re: How to resolve Analytics Agent failing to connect to the Controller registration endpoint

I am unable to send with you the log files.