cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

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

Python agent fails to start

Nazia.Mahimi
Creator

Python agent fails to start

Appd python agent fails to start in a docker container ( deploying in alpine:3.12.0) with python 3.8

 

this is the start up log

 

2021-03-18 16:03:00,249 [INFO] appdynamics.proxy.watchdog <14>: Started watchdog with pid=14
2021-03-18 16:03:00,249 [INFO] appdynamics.proxy.watchdog <14>: Started watchdog with pid=14
2021-03-18 16:03:00,251 [INFO] appdynamics.proxy.watchdog <14>: Starting proxy: /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy/runProxy -j /usr/lib/python3.8/site-packages/appdynamics_proxysupport -d /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy -r /tmp/appd/run --max-heap-size=300m --min-heap-size=50m --max-perm-size=120m --agent-type=PYTHON_APP_AGENT /tmp/appd/run/comm /tmp/appd/logs
2021-03-18 16:03:00,251 [INFO] appdynamics.proxy.watchdog <14>: Starting proxy: /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy/runProxy -j /usr/lib/python3.8/site-packages/appdynamics_proxysupport -d /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy -r /tmp/appd/run --max-heap-size=300m --min-heap-size=50m --max-perm-size=120m --agent-type=PYTHON_APP_AGENT /tmp/appd/run/comm /tmp/appd/logs
/usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy/runProxy: line 294: /usr/lib/python3.8/site-packages/appdynamics_proxysupport/bin/java: No such file or directory
2021-03-18 16:03:00,754 [INFO] appdynamics.proxy.watchdog <14>: Started proxy with pid=15
2021-03-18 16:03:00,754 [INFO] appdynamics.proxy.watchdog <14>: Started proxy with pid=15
2021-03-18 16:03:00,755 [WARNING] appdynamics.proxy.watchdog <14>: Found defunct proxy pid file with pid=15
2021-03-18 16:03:00,755 [WARNING] appdynamics.proxy.watchdog <14>: Found defunct proxy pid file with pid=15
2021-03-18 16:03:00,756 [INFO] appdynamics.proxy.watchdog <14>: Starting proxy: /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy/runProxy -j /usr/lib/python3.8/site-packages/appdynamics_proxysupport -d /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy -r /tmp/appd/run --max-heap-size=300m --min-heap-size=50m --max-perm-size=120m --agent-type=PYTHON_APP_AGENT /tmp/appd/run/comm /tmp/appd/logs
2021-03-18 16:03:00,756 [INFO] appdynamics.proxy.watchdog <14>: Starting proxy: /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy/runProxy -j /usr/lib/python3.8/site-packages/appdynamics_proxysupport -d /usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy -r /tmp/appd/run --max-heap-size=300m --min-heap-size=50m --max-perm-size=120m --agent-type=PYTHON_APP_AGENT /tmp/appd/run/comm /tmp/appd/logs
/usr/lib/python3.8/site-packages/appdynamics_bindeps/proxy/runProxy: line 294: /usr/lib/python3.8/site-packages/appdynamics_proxysupport/bin/java: No such file or directory
/tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/backend/cffi/__pycache__/_cffi__x5ee06ebfxfc763883.c:265:10: fatal error: zmq.h: No such file or directory
265 | #include <zmq.h>
| ^~~~~~~
compilation terminated.
{"event": "Exception in agent startup.", "time": "2021-03-18T16:03:00.818988", "level": "ERROR", "exc_info": "Traceback (most recent call last):\n File \"/usr/lib/python3.8/site-packages/appdynamics/autoinject/sitecustomize.py\", line 21, in <module>\n import appdynamics.agent\n File \"/usr/lib/python3.8/site-packages/appdynamics/agent/__init__.py\", line 138, in <module>\n from appdynamics.agent.core.agent import Agent\n File \"/usr/lib/python3.8/site-packages/appdynamics/agent/core/agent.py\", line 24, in <module>\n from appdynamics.agent.services.config import ConfigService\n File \"/usr/lib/python3.8/site-packages/appdynamics/agent/services/config.py\", line 14, in <module>\n from appdynamics.agent.core.transport import ConfigTransport\n File \"/usr/lib/python3.8/site-packages/appdynamics/agent/core/transport.py\", line 12, in <module>\n import appdynamics_bindeps.zmq as zmq\n File \"/tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/__init__.py\", line 50, in <module>\n from appdynamics_bindeps.zmq.backend import *\n File \"/tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/backend/__init__.py\", line 41, in <module>\n reraise(*exc_info)\n File \"/tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/utils/sixcerpt.py\", line 34, in reraise\n raise value\n File \"/tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/backend/__init__.py\", line 29, in <module>\n _ns = select_backend(first)\n File \"/tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/backend/select.py\", line 26, in select_backend\n mod = __import__(name, fromlist=public_api)\n File \"/tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/backend/cython/__init__.py\", line 6, in <module>\n from . import (constants, error, message, context,\nImportError: Error loading shared library libuuid.so.1: No such file or directory (needed by /tmp/appd/lib/cp38-cp38-e7ddbf3f178172094eba0c328d2be0e4/site-packages/appdynamics_bindeps/zmq/backend/cython/constants.cpython-38-x86_64-linux-gnu.so)"}
Error in sitecustomize; set PYTHONVERBOSE for traceback:
NameError: name 'appdynamics' is not defined
[2021-03-18 16:03:00 +0000] [12] [INFO] Starting gunicorn 20.0.4
[2021-03-18 16:03:00 +0000] [12] [INFO] Listening at: http://0.0.0.0:5000 (12)
[2021-03-18 16:03:00 +0000] [12] [INFO] Using worker: sync
[2021-03-18 16:03:00 +0000] [26] [INFO] Booting worker with pid: 26
2021-03-18 16:03:01,258 [INFO] appdynamics.proxy.watchdog <14>: Started proxy with pid=22
2021-03-18 16:03:01,258 [INFO] appdynamics.proxy.watchdog <14>: Started proxy with pid=22

 

could anyone please advise how to resolve this?

 

Tags (2)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
Python agent fails to start
1 REPLY 1
Nazia.Mahimi
Creator

hi,

 

i havent yet found the solution to this , if someone could guide me on this