getsentry / getsentry/self-hosted

Migration error: The field notifications.NotificationMessage.rule_fire_history was declared with a lazy reference to 'sentry.rulefirehistory', but app 'sentry' doesn't provide model 'rulefirehistory'.

Open
#4,420 14 comments 0 reactions 2 assignees Claimed by @aldy505 View on GitHub
Bug Waiting for: Product Owner
Dominant language
Shell
Stars
9.6k
Forks
2k
Avg merge
1d 3h
Merged PRs (30d)
12

Description

> I get the following error when upgrading from 26.3.0:
> ```
> File "/.venv/lib/python3.13/site-packages/django/db/migrations/state.py", line 589, in apps
> return StateApps(self.real_apps, self.models)
> File "/.venv/lib/python3.13/site-packages/django/db/migrations/state.py", line 660, in __init__
> raise ValueError("\n".join(error.msg for error in errors))
> ValueError: The field notifications.NotificationMessage.rule_fire_history was declared with a lazy reference to 'sentry.rulefirehistory', but app 'sentry' doesn't provide model 'rulefirehistory'.
>
> Error in install/set-up-and-migrate-database.sh:23.
> '$dcr web upgrade --create-kafka-topics' exited with status 1
> -> ./install.sh:main:45
> --> install/set-up-and-migrate-database.sh:source:23
> ```
> Weirdly I see now that 26.6 is also a hard stop but not mentioned in the docs only in the releases here. Should I have gone to 26.6 first?
>

_Originally posted by @peterdk in [#4396](https://github.com/getsentry/self-hosted/issues/4396#issuecomment-4996195399)_

---

Also reported on Discord: https://discord.com/channels/621778831602221064/1527891598053216337/1527892039394394232

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.