-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
SQLITE3 error "UNIQUE constraint failed: temp_user_filters.user_id" after update to 1.86.0 #15809
Comments
I also encountered this issue. It was introduced by PR #15649. The workaround I used was to delete the |
And how do I do that? |
having this same issue as well after the 1.86.0 update, I rolled back to v1.85.2 for now and its working. |
That's working for me. |
I seem to encounter similar issues. I also rolled back for the moment and started working again. |
Same issue here |
helps me also - I think it´s a good time to migrate to Postgres... thanks @csnover |
Had the same issue, and I am running the docker image. Temporarily fixed by rolling back to tag Editiing files internally in the docker image is not really a viable solution, so a fix for this would be nice. |
Same issue when building the OpenBSD port. I will wait for a fix before creating a new OpenBSD package. |
nano (or vi) find:
replace with:
(do not forget to remove the comma at the end of "filter_json bytea NOT NULL".. do a systemctl restart matrix-synapse that did it for me. That being said, a proper fix would be nice :) |
Got the same issue since last upgrade to the latest version, had to roll-back to matrixdotorg/synapse:v1.85.2 docker image. |
Got the same error on 2 nodes using the container image. Might indeed need to look into migrating to psql. Rollback solved the issue tho. |
Same issue here. |
Same issue with docker. Same resolution rolling back to v1.85.2. |
I assume they will solve it in the next version, otherwise sqlite support is broken. |
Same issue on NixOS 23.05, also fixed it by downgrading to 1.85.2. |
There is an ongoing PR on this, so a fix is underway |
Same here. What was the testing method used before releasing this version? If there wasn't any, this could be a great time to implement testing. This was released in a completely broken state. I understand it's a large bump from 1.71.0, but since it was the next release in apt, this exact scenario could have been tested. |
Please do not run random SQL against your database. #15817 looks like it should fix this in the next version. |
Every version is released with Debian/apt packages, so in principle there was no need for this large bump. (With that said, we do aim to make it so that any upgrade will work, but it can be quite complex to do so.) |
In my case, the upgrade from 1.85.2 to 1.86.0 also caused this issue, so it doesn't seem like @ThatCoffeeGuy 's large bump is the cause of it in their case. |
I can confirm that this is not limited to big jumps. My |
Same here on Docker v 1.86.0. v1.85.2 is working for me:
|
The solution from @Boldairdev did work. However, by looking at #15817, it could be necessary to also run |
Everyone who has encountered this: please wait for a release with a fix, and in the meantime rollback to a working version. You should NOT manually make edits to the Synapse database at all. Doing so without knowing what you're doing is highly unsafe and we cannot support anyone who has done so without our guidance. |
Also ran into this on Ubuntu 20.04 with the apt package. This is how I rolled back, in case any future Ubuntu users are confused by the process like I was:
|
I would try follow the advice in https://askubuntu.com/a/138327/610524 to downgrade to the deb in the repository itself. (I'm not sure if the debs in |
@DMRobertson I tried that first and it didn't work. Are the old versions still on the package server? |
I'm not familiar with the intricacies of Debian packaging, but I believe so: https://packages.matrix.org/debian/pool/main/m/matrix-synapse-py3/ |
I tried to rollback on debian using My debian is on bullseye, so I looked at https://packages.matrix.org/debian/dists/bullseye/main/binary-amd64/Packages and saw that the only two versions for matrix-synapse-py3 were Edit: looks like this is tracked by this is #14082 |
Description
Hi,
I am using a Ubuntu server and had installed the matrix-synapse-py3. The update to version 1.86.0 appeared Today and I updated it as normal (via apt).
After the update the server was not getting back.
I've tried to rollback to version 1.71.0+focal1, but it complains the database has a newer version.
Steps to reproduce
After that, server did not started.
Homeserver
matrix.brunofontes.net
Synapse Version
1.86.0
Installation Method
Debian packages from packages.matrix.org
Database
SQLite
Workers
Single process
Platform
Linux mx 5.4.0-152-generic #169-Ubuntu SMP x86_64
Configuration
No response
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: