Pgsql replication keeps breaking

We are using Markdown syntax here. Logs and code snippets should always be surrounded with three back-ticks to get proper formatting.
If you need help with Markdown see here.
This textblock can be removed before creating a new post.

Problem:
Pgsql replication keeps breaking with below error that WAL has alreadt been removed.

Tried to configure wal_keep_segment in postgres.conf file to 120 - 240 - 840 - 1680 but still no luck.

Expected outcome:
[Replication should be working always]

OpenNMS version:1.13.1

Other relevant data:
[e.g. logs from OpenNMS, error messages etc]

[root@space-0319022020000012 ~]# tail -f /var/lib/pgsql/9.4/data/pg_log/postgresql-Wed.log

< 2021-06-02 08:54:49.089 UTC >LOG:  started streaming WAL from primary at AA/E5000000 on timeline 1
< 2021-06-02 08:54:49.089 UTC >FATAL:  could not receive data from WAL stream: ERROR:  requested WAL segment 00000001000000AA000000E5 has already been removed

< 2021-06-02 08:54:54.106 UTC >LOG:  started streaming WAL from primary at AA/E5000000 on timeline 1
< 2021-06-02 08:54:54.106 UTC >FATAL:  could not receive data from WAL stream: ERROR:  requested WAL segment 00000001000000AA000000E5 has already been removed

Those are stunningly old versions of postgresql and opennms to be running in a production environment.

I see this is a Space node. You should contact Juniper for support.