Failed to restore from backup: All subscriptions and replication slots must be dropped before a backup can be restored. #21830
Replies: 4 comments 3 replies
-
ERROR: 42501: must be a superuser to terminate superuser process |
Beta Was this translation helpful? Give feedback.
-
Ongoing issue I am experiencing with reverting backups in my Supabase project. Despite my efforts, I am still unable to revert to older backups. I would like to provide you with the version of the CLI I am using for your reference: SQL code: Interestingly, backups are functioning correctly on a simpler project, but I am encountering unresolved issues when attempting to revert backups on a more complex project. This is my conversation with Supabase customer service: Dear Supabase Support Team, Thank you for your prompt response regarding my issue with restoring the database from a backup. I appreciate your suggestion to disable realtime publications via the publication dashboard. However, I am still facing challenges due to permission restrictions. When I attempted to terminate the active processes for the replication slots and drop the subscriptions, I encountered the following error: ERROR: 42501: must be a superuser to terminate superuser process As a result, I am unable to proceed with removing the replication slots and subscriptions necessary for restoring my database. Could you please assist me in removing the following replication slots and any related subscriptions so that I can successfully restore my database? realtime_messages_replication_slot_v2_34_1 |
Beta Was this translation helpful? Give feedback.
-
For anyone struggling with this you can restart your project Project Settings(left sidebar) -> Restart project and then quickly revert to a backup |
Beta Was this translation helpful? Give feedback.
-
My project was able to restore without having to restart, not sure what was
done on the backend to make it work.
However I do have another issue where I'm unable to "Restore to a new
project". what does it mean "restore to new project requires physical
backups"? if i have scheduled backups to select then physical backups are
already running right?
[image: image.png]
My main goal is to create a database template project that i can quickly
bring up the same table/functions/triggers ect in a new database from the
original template database.
Let me know if you can help me get this Restore to new project working, or
an alternate solution.
Thanks,
…On Mon, Feb 10, 2025 at 12:35 AM Leon Aburime ***@***.***> wrote:
For anyone struggling with this you can restart your project
Project Settings(left sidebar) -> Restart project
and then quickly revert to a backup
—
Reply to this email directly, view it on GitHub
<#21830 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BMOXOE3UDSMK6KP6UUJCRVT2PBCC7AVCNFSM6AAAAABVVHQ7MSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMJRGQYTANI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
As the error suggests, you must first drop any current subscriptions or replication slots to restore backups.
You can check those with:
You can drop them with:
NOTE: These are destructive actions. This is fine since you will overwrite your database with a backup.
Beta Was this translation helpful? Give feedback.
All reactions