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'.

オープン
#4,420 コメント 14 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@aldy505 がすでに取り組んでいます。

2026年7月19日 から。

評価

この issue はまだ評価されていません。

説明

Bug Waiting for: Product Owner

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


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

主要言語
Shell
スター
9.7k
フォーク
2k
平均マージ
3日 2時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/self-hosted のほかの issue

getsentry/self-hosted の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。