-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
'sqlite3.OperationalError: near "WHERE"' on sqlite 3.7 #6246
Comments
Are you using CentOS 7? I had to work around this by installing sqlite 3.8. |
works for me on CentOS with the above rpm package, I also tried to compile sqlite3.30 from the official site but for whatever reason, that doesn't work either. 3.8 works. |
Problem with query: I am commnent it, and was abble to install. |
My SQLite version is 3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668 |
so it looks like #5934 broke compatibility with sqlite 3.7. At this point sqlite 3.7 is over 6 years old, and there have been a lot of improvements to sqlite since. In any case, the sqlite support in synapse isn't really intended for production use: you should be using postgres for anything other than a test installation. |
We even have a shiny new migration script about to land in 1.5.0. So either way, upgrade sqlite will fix, but I'd really recommend that you migrate to postgres. |
I'd suggest making postgres the default then :) |
sadly you won't be able to run the migration script without having run the migrations, which means that you'll first need to upgrade sqlite. Neil: if we're dropping support for sqlite 3.7, we need to update https://github.com/matrix-org/synapse/blob/master/INSTALL.md#centosfedora and possibly add something to https://github.com/matrix-org/synapse/blob/master/INSTALL.md#installing-from-source. |
and a note in UPGRADE.rst |
This is terrible. |
fixed in #6499 |
Thank you so much for that! |
Hi, I have problem, on first run:
The text was updated successfully, but these errors were encountered: