-
Notifications
You must be signed in to change notification settings - Fork 236
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
portdb from SQLite to Postgres fails if Sliding Sync has been used: sliding_sync_connections.connection_key
: cannot insert a non-DEFAULT value
#18053
Comments
After some research I have added sliding_sync_connections to the IGNORED TABLES list and it worked (although often migration process was getting stuck for me on the last steps). And now the instance more or less works with a new database. But I nevertheless lost some media (avatars etc) and order of the messages that were just before migration got distorted. Otherwise works more or less stable now. docker run --rm -it |
Seems to have been introduced by e43c2b0 introduced in 1.115.0 c.f.:
|
sliding_sync_connections.connection_key
: cannot insert a non-DEFAULT value
Running this command:
This is what i get: `Preparing sqlite3... This is likely a programming error and should be reported at A temporary workaround to fix this error is to shut down Synapse (including
This will need to be done every time the server is restarted. Traceback (most recent call last): This is likely a programming error and should be reported at A temporary workaround to fix this error is to shut down Synapse (including
This will need to be done every time the server is restarted. Postgres sequence 'un_partial_stated_room_stream_sequence' is inconsistent with associated stream position This is likely a programming error and should be reported at A temporary workaround to fix this error is to shut down Synapse (including
This will need to be done every time the server is restarted.` |
Description
Hi,
I have an old version of the synapse server that I installed myself with SQLite database. I have set up a new one with the https://github.com/spantaleev/matrix-docker-ansible-deploy and trying to migrate my old SQLite to Postgres.
Getting error when it tries to insert values in identity column.
Steps to reproduce
ansible-playbook -i inventory/hosts setup.yml --tags=install-all
Workaround attempts:
I also tried to adjust the migration script:
The migration itself went well but then my synapse wont start with it and I've got a database with an issue:
Homeserver
personal homeserver
Synapse Version
1.121.1
Installation Method
Default configuration using https://github.com/spantaleev/matrix-docker-ansible-deploy
Database
PostgreSQL
Workers
I don't know
Platform
Ubuntu 24.04
Configuration
Standard configuration set up by the default setup of https://github.com/spantaleev/matrix-docker-ansible-deploy
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: