electric icon indicating copy to clipboard operation
electric copied to clipboard

replication slot "electric_slot_default" is active

Open hamedmam opened this issue 1 year ago • 1 comments

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

hamedmam avatar Jan 07 '25 20:01 hamedmam

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.

balegas avatar Jan 13 '25 16:01 balegas