postgres-operator
postgres-operator copied to clipboard
"could not bind IPv6 address "::1": Cannot assign requested addres" when performing a Point-in-time-Recovery?
My native language is not English I hope there's no offense in tone. I am sorry if any inappropriate remarks.
Hello.
I am tring to work on the example of Perform a Point-in-time-Recovery (PITR). And the Elephant cluster can not restore from Hippo cluster.
Elephant cluster's logs are:
2021-10-09 10:11:57.842 GMT [88] LOG: starting PostgreSQL 13.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1), 64-bit
2021-10-09 10:11:57.843 GMT [88] LOG: listening on IPv4 address "127.0.0.1", port 5432
2021-10-09 10:11:57.843 GMT [88] LOG: could not bind IPv6 address "::1": Cannot assign requested address
2021-10-09 10:11:57.843 GMT [88] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2021-10-09 10:11:57.846 GMT [88] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
2021-10-09 10:11:57.857 GMT [89] LOG: database system was interrupted while in recovery at log time 2021-10-09 10:10:02 GMT
2021-10-09 10:11:57.857 GMT [89] HINT: If this has occurred more than once some data might be corrupted and you might need to choose an earlier recovery target.
2021-10-09 10:11:59.111 GMT [89] LOG: starting point-in-time recovery to 2021-10-09 09:50:00+00
2021-10-09 10:11:59.456 GMT [89] LOG: restored log file "000000010000000000000026" from archive
2021-10-09 10:11:59.474 GMT [89] LOG: redo starts at 0/26000028
2021-10-09 10:11:59.474 GMT [89] LOG: consistent recovery state reached at 0/26000100
2021-10-09 10:11:59.475 GMT [88] LOG: database system is ready to accept read only connections
2021-10-09 10:11:59.687 GMT [89] LOG: redo done at 0/26000100
2021-10-09 10:11:59.687 GMT [89] FATAL: recovery ended before configured recovery target was reached
2021-10-09 10:11:59.688 GMT [88] LOG: startup process (PID 89) exited with exit code 1
2021-10-09 10:11:59.688 GMT [88] LOG: terminating any other active server processes
2021-10-09 10:11:59.702 GMT [88] LOG: database system is shut down
psql: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Hippo.yaml is:
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-13.4-1
postgresVersion: 13
instances:
- name: instance1
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:centos8-2.35-0
global:
repo1-retention-full: "5"
repo1-retention-full-type: count
repos:
- name: repo1
schedules:
full: "*/5 * * * *"
volume:
volumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
Elephant.yaml is:
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: elephant
spec:
dataSource:
postgresCluster:
clusterName: hippo
clusterNamespace: postgres-operator
repoName: repo1
options:
- --type=time
- --target="2021-10-09 09:50:00 GMT"
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-13.4-1
postgresVersion: 13
instances:
- dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:centos8-2.35-0
repos:
- name: repo1
volume:
volumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
Backups on default storage class(using nfs) are:
20211009-094501F
20211009-095001F
20211009-095501F
20211009-100001F
20211009-100501F
Environment
PGO: V5 Kubernetes: v1.22.2