https://dagster.io/ logo
#ask-community
Title
# ask-community
e

Erik

07/22/2022, 7:24 PM
👋 just upgraded to 0.15.7, anyone seen sensor daemons failing before?
Copy code
$ dagster-daemon run -w data/workspace.yaml
2022-07-22 12:21:38 -0700 - dagster.daemon.SensorDaemon - ERROR - Caught error, daemon loop will restart:
AttributeError: 'NoneType' object has no attribute 'instigator_data'
d

daniel

07/22/2022, 7:25 PM
Hey Erik - is there more stack trace after that message?
e

Erik

07/22/2022, 7:26 PM
yessir
Copy code
AttributeError: 'NoneType' object has no attribute 'instigator_data'

Stack Trace:
  File "/Users/erikreppel/dev/zora/zora-backend/data/venv/lib/python3.9/site-packages/dagster/daemon/daemon.py", line 80, in run_daemon_loop
    result = check.opt_inst(next(daemon_generator), SerializableErrorInfo)
  File "/Users/erikreppel/dev/zora/zora-backend/data/venv/lib/python3.9/site-packages/dagster/daemon/daemon.py", line 236, in core_loop
    yield from execute_sensor_iteration_loop(
  File "/Users/erikreppel/dev/zora/zora-backend/data/venv/lib/python3.9/site-packages/dagster/daemon/sensor.py", line 226, in execute_sensor_iteration_loop
    yield from execute_sensor_iteration(
  File "/Users/erikreppel/dev/zora/zora-backend/data/venv/lib/python3.9/site-packages/dagster/daemon/sensor.py", line 369, in execute_sensor_iteration
    yield from _process_tick_generator(
  File "/Users/erikreppel/dev/zora/zora-backend/data/venv/lib/python3.9/site-packages/dagster/daemon/sensor.py", line 426, in _process_tick_generator
    if _is_under_min_interval(sensor_state, external_sensor):
  File "/Users/erikreppel/dev/zora/zora-backend/data/venv/lib/python3.9/site-packages/dagster/daemon/sensor.py", line 643, in _is_under_min_interval
    if not state.instigator_data:
d

daniel

07/22/2022, 7:28 PM
got it - which version did you upgrade from?
e

Erik

07/22/2022, 7:29 PM
0.14.2, it had been a while 😅
d

daniel

07/22/2022, 7:31 PM
And I don't think you should have needed to do this, but did you run 'dagster instance migrate' to make schema changes after upgrading?
e

Erik

07/22/2022, 7:32 PM
I havent' let me do that now
ah perfect, after migrating everything works, TIL that was needed, thanks Daniel!
d

daniel

07/22/2022, 7:36 PM
hmm, glad its working - i wouldn't have expected you to need to though, will look into that
e

Erik

07/22/2022, 7:37 PM
I have a few thousand runs in storage, seemed to need to mgrate events
18 Views