Skip to content

When something is wrong

Start with the status. Peat says in words what it is waiting for.

Terminal window
peat status # the platform, each piece, and why
kubectl get platform peat -o wide # the same, in one line
peat show orders # one database
kubectl get database -A # every database and where to reach it
The message is aboutWhat to do
no machine labelledkubectl label node <node> peat.zabaca.com/machine=true
the Secret peat-store missing, or lacking a keykubectl -n peat create secret generic peat-store --from-literal=AWS_ACCESS_KEY_ID=<key id> --from-literal=AWS_SECRET_ACCESS_KEY=<secret key>
the store’s own error (NoSuchBucket, a refused key)Make the bucket, or correct objectStore.endpoint, bucket or the key. This is only checked on a first install.
an image that cannot be pulledrelease names a release that does not exist. Check it against the releases page.
a pod that cannot be placedFewer labelled machines than the spread needs, or too little free memory on them.
an object the operator did not makeSomething else in the cluster already has that name. Peat leaves it alone; remove or rename it.
cert-manager or an issuerYou set certificates.issuer: install cert-manager, or correct the issuer’s name.

The pods themselves are in the peat namespace: kubectl -n peat get pods, then kubectl -n peat logs <pod>.

Each piece may only reach the addresses it needs. For a store with a public name, the private address ranges are left out, so a piece cannot reach other devices on your network. If your store has a public name that leads to a private address (an S3 interface endpoint, a MinIO behind split DNS), allow it:

spec:
objectStore:
egressExcept: []
  • “connection refused” or a timeout from outside: check the front door has an address (kubectl -n peat-gateway get svc pg-front), that your wildcard DNS name points at it, and that the client’s address is inside gateways.allowFrom.
  • A certificate error: the client must connect by the database’s name and trust the authority in the ConfigMap peat-ca (peat ca > peat-ca.crt). Connecting by IP address fails the check.
  • It hangs, then works: the database was asleep and woke. Give clients a connect timeout of a minute.
  • “SSL error: tlsv1 unrecognized name”: the front door has no open database of that name. Check the spelling (peat list -A); the database may also be closed (peat show <db>; peat open <db>), or being moved to a newer Postgres version.
  • One failed connection right after a database is made or woken: a client that connects in the first seconds can fail once. Retry.

peat show <db> gives the reason. The usual ones: the platform itself is not Ready; no machine has memory for the compute (kubectl -n peat-compute get pods); or it was made from a parent that does not exist in that namespace.

peat status names the step and the failed check. Fix the cause and peat retry, or set the earlier release back. Upgrading says more.

With three machines the platform keeps working through the loss of one. The control layer replaces a lost safekeeper by itself, and the storage controller moves the lost pageserver’s databases to the other. peat status says what is missing while a machine is gone.

A dashboard and alerts are in Monitoring.

Open an issue at github.com/Zabaca/peat/issues with the output of peat status, the release, and your Kubernetes version. Leave out passwords and peat url output.