-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
psycopg2.IntegrityError (duplicated key device_lists_remote_cache_unique_id) #4389
Comments
I have dozens of those too. This + #4379 are filling my logs. |
Seems to be #2182 btw. |
I hope someone can resolve this :-/ |
Still have this error in my log every one second. |
@SylvainCecchetto The “magic SQL command” you are looking for is here. |
This one does not work for me :-/ My error is on |
Don't know if it's the correct way but it seems that I was finally able to fix this error with: ALTER TABLE device_lists_remote_cache DROP COLUMN user_id;
ALTER TABLE device_lists_remote_cache DROP COLUMN device_id;
ALTER TABLE device_lists_remote_cache DROP COLUMN content;
ALTER TABLE device_lists_remote_cache ADD COLUMN user_id text;
ALTER TABLE device_lists_remote_cache ADD COLUMN device_id text;
ALTER TABLE device_lists_remote_cache ADD COLUMN content text;
ALTER TABLE device_lists_remote_extremeties DROP COLUMN user_id;
ALTER TABLE device_lists_remote_extremeties DROP COLUMN stream_id;
ALTER TABLE device_lists_remote_extremeties ADD COLUMN user_id text;
ALTER TABLE device_lists_remote_extremeties ADD COLUMN stream_id text; BACKUP YOUR DATABASE BEFORE DOING ANYTHING!! |
Have you had any problems since doing that as I am getting this every second as well. |
No problem since this fix ;-) |
Instead of modifying the table structure, I simply deleted the contents of the affected tables (3 in my case) and then synapse managed to create the indices. |
Description
Synapse seems working but I get an error in log since my last update:
This error happen again and again.
Version information
Homeserver: https://matrix.cecchettosylvain.fr
Version: 0.33.9
Install method:
YunoHost package
Platform:
Debian 9/YunoHost
The text was updated successfully, but these errors were encountered: