Open nicraMarcin opened 2 years ago
I have the same problem. But the way I got there is a little different. I'm running on openshift and I went to do a cluster upgrade which resulted in psql-3-0 and psql-4-0 pods. Since this was in the middle of the night and I know no data that I care about has changed I just deleted the deployment and redeploy resulting in psql-1-0 and psql-2-0 as normal and I expect it to be using a PVC from earlier as well. The database is up, but I'm getting the same error: 2023-05-31 08:15:54.124 GMT [1] LOG: starting PostgreSQL 13.10 (Debian 13.10-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit 6 2023-05-31 08:15:54.126 GMT [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 7 2023-05-31 08:15:54.126 GMT [1] LOG: listening on IPv6 address "::", port 5432 8 2023-05-31 08:15:54.158 GMT [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 9 2023-05-31 08:15:54.238 GMT [14] LOG: database system was shut down at 2023-05-31 07:53:13 GMT 10 2023-05-31 08:15:54.291 GMT [1] LOG: database system is ready to accept connections 11 2023-05-31 08:16:09.781 GMT [29] ERROR: requested WAL segment 0000000100000002000000C4 has already been removed 12 2023-05-31 08:16:09.781 GMT [29] STATEMENT: START_REPLICATION 2/C4000000 TIMELINE 1 13 2023-05-31 08:16:09.800 GMT [30] ERROR: requested WAL segment 0000000100000002000000C4 has already been removed 14 2023-05-31 08:16:09.800 GMT [30] STATEMENT: START_REPLICATION 2/C4000000 TIMELINE 1 15 2023-05-31 08:16:14.803 GMT [38] ERROR: requested WAL segment 0000000100000002000000C4 has already been removed 16 2023-05-31 08:16:14.803 GMT [38] STATEMENT: START_REPLICATION 2/C4000000 TIMELINE 1
Hi, in my instances I've got often errors that wal was removed
In this situation replica was promoted to primary by manager. I don't know why previous master pod (postgres-7) was killed :( When I manually restart for example
postgres-2
, the new instanceposrtgres-4
(because I've set 3 replicas) is started isnstead restart second instance.