Splunk AppDynamics

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

CommunityUser
Splunk Employee
Splunk Employee

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

Labels (1)
0 Karma

Arun_Gangadhara
Explorer

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

Tags (1)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee
I tried but still there is no luck , I am generating the load from Jmeter
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

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

0 Karma

Arun_Gangadhara
Explorer

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

0 Karma

CommunityUser
Splunk Employee
Splunk Employee
I am unable to send with you the log files.
0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...