Skip to content

Elastic apm runtime error #276

@pusnik

Description

@pusnik

We've seen this issue when running elastic APM on the following stack:

Python 2.7.11
Django 1.8.19
Elastic apm 3.0.0

Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/django/http/response.py", line 309, in close signals.request_finished.send(sender=self._handler_class) File "/usr/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 189, in send response = receiver(signal=self, sender=sender, **named) File "/usr/local/lib/python2.7/site-packages/elasticapm/contrib/django/apps.py", line 50, in <lambda> lambda sender, **kwargs: client.end_transaction() if _should_start_transaction(client) else None, File "/usr/local/lib/python2.7/site-packages/elasticapm/base.py", line 260, in end_transaction self._collect_transactions() File "/usr/local/lib/python2.7/site-packages/elasticapm/base.py", line 298, in _collect_transactions self._stop_send_timer() File "/usr/local/lib/python2.7/site-packages/elasticapm/base.py", line 323, in _stop_send_timer self._send_timer.join() File "/usr/local/lib/python2.7/threading.py", line 929, in join raise RuntimeError("cannot join thread before it is started") RuntimeError: cannot join thread before it is started
This happens in a production environment or on the test server where we simulate higher rps on the server. On the staging environment with lower rps rate apm runs normally.
It doesn't happen immediately. We get for about 1-2 minutes of records before if crashes.

Do you recommend changing any setting to have it running more stable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions