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

Aaron Bailey

04/20/2022, 7:03 PM
Hello all - just starting my journey with dagster as a converted Airflow'er. Having an issue as soon as I start dagit. Operation name: InstanceSensorsQuery Message: (sqlite3.OperationalError) near "(": syntax error [SQL: SELECT subquery.id, subquery.selector_id, subquery.tick_body FROM (SELECT job_ticks.id AS id, job_ticks.selector_id AS selector_id, job_ticks.tick_body AS tick_body, rank() OVER (PARTITION BY job_ticks.selector_id ORDER BY job_ticks.timestamp DESC) AS rank FROM job_ticks WHERE job_ticks.selector_id IN (?)) AS subquery WHERE subquery.rank <= ? ORDER BY subquery.rank ASC] [parameters: ('03064b2df6239201293d653e3d171fd86ca400fa', 1)] (Background on this error at: https://sqlalche.me/e/14/e3q8) Path: ["repositoriesOrError","nodes",0,"sensors",0,"sensorState","ticks"] Locations: [{"line":152,"column":3}] This results in errors on schedules, sensors, and backfills pages not returning.
j

johann

04/20/2022, 7:06 PM
What version?
a

Aaron Bailey

04/20/2022, 7:06 PM
0.14.9
The daemons are running - just the page is failing and errors seem to be in the sqllite side of things
j

johann

04/20/2022, 7:11 PM
What version of sqllite do you have installed?
a

Aaron Bailey

04/20/2022, 7:13 PM
3.7.17
p

prha

04/20/2022, 7:20 PM
I’ll get a fix for this right out… should be able to get this in for the dagster release tomorrow
a

Aaron Bailey

04/20/2022, 7:22 PM
Do you need to see any more information to assist fix development?
p

prha

04/20/2022, 7:23 PM
No, I think I got it. I think a workaround in the meantime would be to upgrade your version of sqlite to >
3.25
. If that’s not feasible, I can also walk you through a more involved workaround (would need to manually update a row in your db)
a

Aaron Bailey

04/20/2022, 7:48 PM
Upgrading isnt a problem - I'll go ahead and pursue that route. If you'd like for me to test the fix with 3.7 once released just let me know! Thanks for the quick turnaround on this!!!
I upgraded to 3.38 and the issue is persisting
p

prha

04/20/2022, 8:28 PM
How did you do the upgrade? I think sqlite became builtin to Python, so we’d need to check the version from within the Python executable you’re using to run dagit:
Copy code
$ python
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.36.0'
a

Aaron Bailey

04/20/2022, 8:30 PM
Dang - yeah that makes sense - I upgrade usr/bin/sqlite3 and checked version from there
i'll upgrade from within the python construct
thanks
That did the trick! Much appreciated.
dagsir 1