Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: The support homepage carousel is not displaying. We are working toward a resolution.

Qlik Replicate postgres source - ERROR: all replication slots are in use

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
KellyHobson
Former Employee
Former Employee

Qlik Replicate postgres source - ERROR: all replication slots are in use

Last Update:

Jun 2, 2022 4:35:58 PM

Updated By:

KellyHobson

Created date:

Jun 2, 2022 4:35:58 PM

 

I encountered the following error:

Creating replication slot 'postie_test_pk_00016394_5281ce4c_6304_2b4d_9a64_86e5f359f324' failed.
wal_slot_create(...) - Unable to create slot 'postie_test_pk_00016394_5281ce4c_6304_2b4d_9a64_86e5f359f324' (on execute(...) phase)
RetCode: SQL_ERROR SqlState: 53400 NativeError: 1 Message: ERROR: all replication slots are in use;
Error while executing the query
Failed (retcode -1) to execute statement: 'SELECT lsn FROM pg_create_logical_replication_slot('postie_test_pk_00016394_5281ce4c_6304_2b4d_9a64_86e5f359f324', 'test_decoding')'


Steps to investigate:

1. Check on postgres source if another process is using all of the replication slots. Please be advised these could be other Replicate task or business processes so proceed with caution.

https://stackoverflow.com/questions/30854961/how-to-delete-replication-slot-in-postgres-9-4

https://hevodata.com/learn/postgresql-replication-slots/


2. Try increasing the max_replication_slots so Replicate can attempt to use another slot. This is a parameter set in postgresql.conf file. The default number of replication slots is 10. Once 10 slots are consumed, even if the slots are not actively in use, a new task cannot start. The task error is treated as recoverable and will cause the task to attempt to start indefinitely.


https://www.postgresql.org/docs/current/runtime-config-replication.html


Once I freed up the slots (from #1 above), I was able to run the Replicate task.

Environment

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

 

Contributors
Version history
Last update:
‎2022-06-02 04:35 PM
Updated by: