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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...