-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when testing telegraf config on Windows: driver "sqlite" not supported #11259
Comments
Enable windows support with the sqlite driver library. fixes: influxdata#11259
It is/was a limitation of the sqlite library itself that Telegraf users. Telegraf imports modernc.org/sqlite as a driver for sqlite. If you look at our import file, it is only enabled for linux, freebsd, and darwin. Looking at the sqlite driver's project, it was not until last November that Windows support was fully enabled:
I have created #11260 which updates the library and adds the windows build flags. Once artifacts are built, can you please try testing those? Thanks! |
Hi Joshua, thanks for triggering that quick build! Same error on telegraf-1.23.0~acea120f_windows_amd64.zip Going from the structure in https://github.com/powersj/telegraf/blob/fix/11259/plugins/inputs/sql/sql.go#L329 |
@kuzyn thanks for the quick attempt. I have pushed another few changes and confirmed that I get past the missing driver error and get to connect to the database failed. Can you try again with the latest artifacts? Thanks! |
Yup @powersj works fine on my end as well. Thanks for the fix! Do you expect this to be rolled into 1.23 ? |
yes - I just pushed a formatting change for go.mod, so I'll need a review from someone on the team tomorrow, and then I should be able to push and release in next week's v1.23 release! Thanks for trying it out for me! |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.22.4; Windows 10 Pro
Docker
No response
Steps to reproduce
conf
to point to sqlite database--test
and--debug
switches...
Expected behavior
Works and show a test example of the sql metrics
Actual behavior
Gives the error aboves
Additional info
This config works on Linux (with updated dsn path). The database can be loaded via the
sqlite3.exe
util, so I know it's not corrupt... Is there a limitation with telegraf, sqlite and Windows 10?The text was updated successfully, but these errors were encountered: