Unable to start python django APM

Hi ,

I have installed latest version of python agent, apm-server & ELK stack. But i am unable to find the service in APM dashboard. I can see the below error log in apm-server logs:

2020-07-29T10:26:27.692Z ERROR [request] middleware/log_middleware.go:95 404 page not found {"request_id": "9f3a51bb-1e2b-4f82-ae8d-024258c4fc18", "method": "POST", "URL": "/v1/transactions", "content_length": 1765, "remote_address": "", "user-agent": "elasticapm-python/2.0.0", "response_code": 404, "error": "404 page not found"}

Please help.

I have added the below configuration in my django application file:


'SERVER_URL': 'http://localhost:8200',


Hi and thanks for your question.

It looks like you're using an incompatible combination of the Python agent and APM Server version. I suggest updating to the latest Python agent version.

See also https://www.elastic.co/guide/en/apm/get-started/current/agent-server-compatibility.html

Hi Barny,

Below are my python agent & apm-server version. Kindly help

Name: elastic-apm

Version: 5.8.1

Name: apm-server

Version: 7.8.0

Can you try uninstalling and reinstalling the python agent? The reason we think you may be on an old version is that the error is showing from a /v1/transactions URL -- modern versions of the agent send to /intake/v2/events.

pip freeze from inside your app's virtualenv would also be useful.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.