Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert matching query does not exist #4248

Open
colinlabs opened this issue Apr 18, 2024 · 0 comments
Open

Alert matching query does not exist #4248

colinlabs opened this issue Apr 18, 2024 · 0 comments

Comments

@colinlabs
Copy link

colinlabs commented Apr 18, 2024

What went wrong?

What happened:

  • can not receive alert, include demo test

What did you expect to happen:

  • recevive alert

How do we reproduce it?

I don't know how to reproduce it, but the log keeps reporting errors.

oncall Traceback (most recent call last):
oncall   File "/usr/local/lib/python3.11/site-packages/celery/app/autoretry.py", line 38, in run
oncall     return task._orig_run(*args, **kwargs)
oncall            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
oncall   File "/etc/app/apps/integrations/tasks.py", line 42, in create_alertmanager_alerts
oncall     alert = Alert.create(
oncall             ^^^^^^^^^^^^^
oncall   File "/etc/app/apps/alerts/models/alert.py", line 167, in create
oncall     if group.resolved_by == AlertGroup.SOURCE and group.resolved_by_alert is None:
oncall                                                   ^^^^^^^^^^^^^^^^^^^^^^^
oncall   File "/usr/local/lib/python3.11/site-packages/django/db/models/fields/related_descriptors.py", line 236, in __get__
oncall     rel_obj = self.get_object(instance)
oncall               ^^^^^^^^^^^^^^^^^^^^^^^^^
oncall   File "/usr/local/lib/python3.11/site-packages/django/db/models/fields/related_descriptors.py", line 199, in get_object
oncall     return qs.get(self.field.get_reverse_related_filter(instance))
oncall            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
oncall   File "/usr/local/lib/python3.11/site-packages/django/db/models/query.py", line 637, in get
oncall     raise self.model.DoesNotExist(
oncall apps.alerts.models.alert.Alert.DoesNotExist: Alert matching query does not exist.
oncall 2024-04-18 04:07:43,769 source=engine:celery worker=ForkPoolWorker-37 task_id=fb768c29-3cc5-4c00-bff5-105706ab62bb task_name=apps.integrations.tasks.create_alertmanager_alerts name=celery.app.trace level=INFO Task apps.integrations.tasks.create_alertmanager_alerts[fb768c29-3cc5-4c00-bff5-105706ab62bb] retry: Retry in 58s: DoesNotExist('Alert matching query does not exist.')

Grafana OnCall Version

1.4.3

Product Area

Alert Flow & Configuration

Grafana OnCall Platform?

Kubernetes

User's Browser?

Chrome

Anything else to add?

No response

@colinlabs colinlabs added the bug Something isn't working label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants