Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Key (room_id)=(!NFBkIKQHXkwtmAyxaE:permaweb.io) is still referenced from table "destination_rooms". #13

Open
Y0ngg4n opened this issue Feb 23, 2021 · 1 comment
Labels

Comments

@Y0ngg4n
Copy link

Y0ngg4n commented Feb 23, 2021

Hey guys tried the script but get following Error Message:

postgres@7bef9c5eb50c:~/data$ psql -d synapse -f synapse_scripts/synapse_janitor.sql 
DROP FUNCTION
CREATE FUNCTION
DROP FUNCTION
CREATE FUNCTION
DROP FUNCTION
CREATE FUNCTION
DROP FUNCTION
CREATE FUNCTION
 synapse_clean_redacted_messages 
---------------------------------
 
(1 row)

psql:synapse_scripts/synapse_janitor.sql:87: NOTICE:  synapse_clean_unused_rooms() Cleaning up 3 unused rooms

psql:synapse_scripts/synapse_janitor.sql:87: ERROR:  update or delete on table "rooms" violates foreign key constraint "destination_rooms_room_id_fkey" on table "destination_rooms"
DETAIL:  Key (room_id)=(!NFBkIKQHXkwtmAyxaE:permaweb.io) is still referenced from table "destination_rooms".
CONTEXT:  SQL statement "DELETE FROM rooms AS x WHERE x.room_id IN (SELECT y.room_id FROM synapse_clean_unused_rooms__tmp AS y)"
PL/pgSQL function synapse_clean_unused_rooms() line 21 at SQL statement

I have left the Room Technology already long ago.

@ansuz ansuz added the wontfix label Feb 24, 2021
@ansuz
Copy link
Contributor

ansuz commented Feb 24, 2021

As per the README, this project is unmaintained and its use is discouraged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants