Skip to content
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

replication slot "electric_slot_default" is active #2220

Open
hamedmam opened this issue Jan 7, 2025 · 1 comment
Open

replication slot "electric_slot_default" is active #2220

hamedmam opened this issue Jan 7, 2025 · 1 comment

Comments

@hamedmam
Copy link

hamedmam commented Jan 7, 2025

Using the following guide I have deployed a new Electric instance on Render.com, and getting the following error in my Web Server logs.

** (Postgrex.Error) ERROR 55006 (object_in_use) replication slot "electric_slot_default" is active for PID 623

I also have another Electric instance that uses the same Neon project but different DB, could there be conflict between the two ? if yes, how can I consolidate two databases to stream into one Electric SQL?

thanks

@balegas
Copy link
Contributor

balegas commented Jan 13, 2025

Hi,
Replication slots are shared for a Neon project. What's happening is that the two electric instances are trying (and conflicting) to create a replication slot with the default name electric_slot_default. You can override the replication slot name by setting the environment variable ELECTRIC_REPLICATION_STREAM_ID.

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

No branches or pull requests

2 participants