Closed Qrtn closed 2 months ago
Hi @Qrtn ! This error usually happens when the replication handler can't find a replication slot in the configured database. Is is possible that the init was run against a different postgres URL than the one configured for the listener (PGSTREAM_POSTGRES_LISTENER_URL
)? If no --pgurl
flag is provided the init
command will default to using postgres://postgres:postgres@localhost?sslmode=disable
.
If that's not the case, could you confirm that the replication slot exists in your postgres database? You can check by running the following query:
select * from pg_replication_slots;
You should see something along these lines in the response:
+------------------------+----------+-----------+--------+----------+-----------+--------+------------+--------+--------------+-------------+---------------------+------------+---------------+-----------+
| slot_name | plugin | slot_type | datoid | database | temporary | active | active_pid | xmin | catalog_xmin | restart_lsn | confirmed_flush_lsn | wal_status | safe_wal_size | two_phase |
|------------------------+----------+-----------+--------+----------+-----------+--------+------------+--------+--------------+-------------+---------------------+------------+---------------+-----------|
| pgstream_postgres_slot | wal2json | logical | 5 | postgres | False | False | <null> | <null> | 812 | 0/164BE28 | 0/164BE60 | reserved | <null> | False |
+------------------------+----------+-----------+--------+----------+-----------+--------+------------+--------+--------------+-------------+---------------------+------------+---------------+-----------+
Let me know if this helps!
ahh @eminano you were right
is is possible that the init was run against a different postgres URL than the one configured for the listener (PGSTREAM_POSTGRES_LISTENER_URL)?
i accidentally re-specified my PGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_URL
as PGSTREAM_POSTGRES_LISTENER_URL
😅
thanks very much for your help!
Hey there, I'm getting this error when trying to start pgstream:
Before this, I ran
pgstream init
and created apgstream
database and schema forPGSTREAM_POSTGRES_LISTENER_URL
andPGSTREAM_WEBHOOK_SUBSCRIPTION_STORE_URL
.Any idea why this might be? Happy to provide any additional info you need!