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

Aperta
#4,420 14 commenti 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@aldy505 ci sta già lavorando.

Dal 19/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
Shell
Stelle
9.7k
Fork
2k
Merge medio
3g 2h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/self-hosted

Tutte le issue di getsentry/self-hosted

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.