Troubleshooting
Common install + runtime issues and their fixes. Tiphys's chat is the fastest troubleshooting surface for most of these — the agent already knows how to diagnose its own errors — but the common symptoms are collected here as a pre-chat reference.
Install
Pod stuck in Pending after helm install
-
Resource requests don't fit the node: check
kubectl describe pod -n tiphys— the scheduler'sFailedSchedulingevent names the exact constraint that failed. -
No default StorageClass: the state volume never binds. Since v0.5.0
helm installstops with "This cluster has no default StorageClass" instead of leaving the pod inPending. Pick a class fromkubectl get storageclassand setpersistence.storageClass, mark one as the default, or install a provisioner such as local-path-provisioner. (persistence.mode=configmapneeds no volume, but then the admin password has to come fromauth.builtin.existingSecret.)
A wrong IRSA annotation doesn't cause Pending; see the next section.
Pod is Running but AWS calls are denied
The ServiceAccount annotation doesn't match a real IAM role, or the
role's trust policy doesn't trust this ServiceAccount. The pod still
starts (Tiphys's permission checks never stop it), but every AWS call
fails. With Bedrock as the model provider, chat replies fail with an
AccessDenied error from AssumeRoleWithWebIdentity, and the backend
log shows llm stream failed. Fix the annotation and restart the pod:
kubectl annotate sa -n tiphys tiphys \
eks.amazonaws.com/role-arn=arn:aws:iam::...:role/tiphys-irsa --overwrite
kubectl rollout restart -n tiphys sts/tiphys
With persistence.mode=configmap the workload is a Deployment: use
deploy/tiphys here and in the commands below.
Pod in CrashLoopBackOff
kubectl logs -n tiphys sts/tiphys -c backend
pydantic_core._pydantic_core.ValidationErroron startup — a Helm value doesn't match the expected type. The traceback names the field.- The log ends at
Tiphys v... startingand the backend restarts: the startup probe gave up before the backend answered/health. The scan, the model check and the chart repositories don't hold it up (they run once it's serving, andserving; the cluster scan ... continue in the backgroundfollows within seconds). If that line never shows, the node is too slow to start the backend in two minutes; raiseprobes.startup.failureThreshold. StateUnavailableError: Can't open the state databaseorCan't read the ConfigMaps that hold Tiphys's state: see the two sections below.- Missing AWS credentials don't crash the pod: see
Pod is
Runningbut AWS calls are denied.
If the pod has already restarted, add --previous to see the log of
the run that failed.
Can't open the state database
The backend log ends with:
StateUnavailableError: Can't open the state database /var/lib/tiphys/state.db:
unable to open database file. Tiphys won't start on in-memory state instead: ...
With persistence.mode=sqlite (the default), Tiphys keeps its audit
trail, approvals, conversations, reports and the admin account in one
SQLite file on the state volume. If it can't create, open or write
that file, it stops instead of starting without it. (Before this,
it ran on memory, passed readiness, and lost all of that on the next
restart.) The text after the path is SQLite's own reason.
The usual causes:
- The volume isn't writable by the backend's user. The backend
runs as uid 1000, and the chart sets
fsGroup: 1000so the volume is group-writable when mounted. Some storage ignoresfsGroup, NFS most often, so the directory stays owned by root. SQLite's reason isunable to open database fileorattempt to write a readonly database. - The volume is read-only or full. A volume mounted read-only, or
one with no space left, fails the same way (
disk I/O errorordatabase or disk is fullwhen it's full). - The file is damaged, usually by a restore that copied it while
it was being written, or copied
state.dbwithout its-walfile. SQLite's reason isfile is not a databaseordatabase disk image is malformed.
To look at the volume, or fix it, stop Tiphys and mount the volume in a
short-lived pod. The claim is state-<release>-0 (state-tiphys-0 for
a release named tiphys):
kubectl -n tiphys scale sts/tiphys --replicas=0
kubectl -n tiphys apply -f - <<'EOF'
apiVersion: v1
kind: Pod
metadata:
name: tiphys-state-check
spec:
restartPolicy: Never
containers:
- name: check
image: busybox:1.36
command: ["sh", "-c", "ls -ln /state; df -h /state; sleep 3600"]
volumeMounts:
- { name: state, mountPath: /state }
volumes:
- name: state
persistentVolumeClaim: { claimName: state-tiphys-0 }
EOF
kubectl -n tiphys logs tiphys-state-check
Then:
- Wrong owner:
kubectl -n tiphys exec tiphys-state-check -- chown -R 1000:1000 /state. On NFS with root squashing, the pod's root can't change ownership; set it on the NFS server, or use a StorageClass that honorsfsGroup. If the namespace enforces therestrictedPod Security level, the check pod runs as root and is refused; do the same from wherever you manage the storage. - Full: grow the claim (if the StorageClass allows expansion) or
raise
persistence.sizeon a new install. - Damaged: restore a good copy of
state.db. To start again with empty state instead, move the files aside (this keeps them, but Tiphys starts without its history and creates a new admin password):kubectl -n tiphys exec tiphys-state-check -- sh -c 'cd /state && for f in state.db*; do mv "$f" "$f.damaged"; done'.
Finish with:
kubectl -n tiphys delete pod tiphys-state-check
kubectl -n tiphys scale sts/tiphys --replicas=1
Can't read the ConfigMaps that hold Tiphys's state
With persistence.mode=configmap, Tiphys keeps its state in ConfigMaps
in its own namespace and reads one of them at startup. If that read
fails, it stops with this message instead of running on memory. The
reason after the namespace says why:
Forbidden: the chart'stiphys-stateRole, or the RoleBinding that grants it to Tiphys's service account, is missing or was changed. Runhelm upgradewith the same values, and--versionthe chart you run, to put them back, and check withkubectl -n tiphys auth can-i get configmaps/tiphys-reports --as=system:serviceaccount:tiphys:tiphys.- A connection error or timeout: the pod can't reach the Kubernetes API, often a NetworkPolicy that blocks egress to it.
Chat returns errors
error_kind: permission_denied in chat
The agent hit a 403 — K8s RBAC, Prometheus auth, or AWS IAM. Tiphys surfaces the exact fix inline. Example:
error_kind: permission_denied
The agent was denied 'list' on Pod (namespace 'prod'): forbidden.
Fix:
Tiphys's reader isn't allowed to list pods, though the current reader
includes it. On-Prem, upgrade to the newest chart (``helm show chart
oci://ghcr.io/intelligant-ai/charts/tiphys`` names its version), which puts
the reader ClusterRole's rules back: ``helm upgrade <release>
oci://ghcr.io/intelligant-ai/charts/tiphys -n <namespace> --version 0.8.0
--reuse-values``. ...
What the Fix: block says depends on what was denied:
- Something the reader includes (built-in kinds, the Argo CD, Flux,
cert-manager and Velero resources, and Kyverno's and Gatekeeper's
policies unless
rbac.policyEnginesis off): the role on the cluster is older than the chart or was changed by hand. Upgrade to the newest chart, naming its--version(Upgrading). - A custom resource the reader doesn't include: the block carries a
rule. Apply it with
kubectl apply -fas your own ClusterRole, with a ClusterRoleBinding to Tiphys's service account (named for the Helm release,tiphysby default, in the namespace Tiphys runs in). - Secrets: no rule, by design. Secret read is off on purpose and
turned on only with
rbac.helmValuesDecode=true; read Data residency by inference provider first. Don't paste a Secret rule into a ClusterRole of your own either: it gives the same access without that decision. - A write: changes run under the writer ClusterRole, which needs
modules.corePlus.enabledandmodules.corePlus.writeOperations.enabled, and only for the classes left on inmodules.corePlus.writeOperations.resources.
The other denials have the same shape:
- Prometheus 401/403 → set
integrations.prometheus.urlto the unauthenticated in-cluster Service, or open a NetworkPolicy. - AWS IAM → paste into the Cloud IAM policy (the JSON is inlined in IAM setup).
tool execution error: Prometheus is not configured...
You're running Tiphys without Prometheus configured (or auto-discovery didn't find it). The error names both fixes:
-
Install a kube-prometheus-stack release — Tiphys auto-detects Services whose name contains
prometheuswith port 9090. -
Set the URL explicitly — if your Prometheus runs under a non-standard name:
integrations: prometheus: url: http://my-prometheus.monitoring.svc:9090
Bedrock returns AccessDeniedException
Two distinct failure modes:
- IAM action missing — the IRSA role doesn't have
bedrock:InvokeModel. Fix via Terraform or IAM console. - Model access not requested — Bedrock in a fresh AWS account blocks every model by default until you opt in. Go to the Bedrock console → Model access → enable Claude Sonnet + Haiku in the target region.
The error message distinguishes them: "is not authorized" → IAM action missing; "You don't have access to the model" → model access not requested.
Reports + approvals
Reports view is empty
First check takes up to 30 minutes if the pod was restarted
immediately after install (the first scheduled tick hasn't fired
yet). Force one from the UI (Run now) or from chat ("run a health
check now"). The endpoint behind both is
POST /api/reports/run-now.
Approvals view is empty overnight
By default reports.recommenderMode=true — findings carry
recommendations but the operator has to manually stage them. For
"approvals populate overnight" behavior, set:
reports:
recommenderMode: false
maxAutoStagedPerTick: 10 # cap per scheduler tick
And bump the TTL if a weekend might pass between stage + approve:
approvals:
ttlSeconds: 172800 # 48h
Approved a recommendation but nothing happened in the cluster
Check the Approvals view for a "Approved, but the write didn't land" banner — the dispatch failed post-approval. The audit log (the Audit view) has the specific error. To read the latest entries from a shell, with the default SQLite store:
kubectl -n tiphys exec tiphys-0 -c backend -- python -c \
"import sqlite3; db = sqlite3.connect('file:/var/lib/tiphys/state.db?mode=ro', uri=True); [print(d) for (d,) in db.execute('SELECT data FROM audit ORDER BY timestamp DESC LIMIT 5')]"
With persistence.mode=configmap:
kubectl get cm -n tiphys tiphys-audit -o jsonpath='{.data.audit\.json}' | jq '.[-5:]'
Common causes:
- Core Plus entitlement lapsed between stage + approve. Re-check the Modules view.
- RBAC changed. Re-look at the writer
ClusterRolediff. - The target workload was deleted between stage + approve (the dry-run from 12 hours ago was against a now-gone resource).
UI
Where's the admin password?
Fresh installs create admin with a one-time password on first start:
kubectl -n tiphys exec tiphys-0 -c backend -- cat /var/lib/tiphys/initial-admin-password
No such file means it has already been used and replaced. Reset it:
kubectl -n tiphys exec tiphys-0 -c backend -- python -m ops_agent.reset_admin
That prints a new one-time password and signs everyone out. If the
password comes from auth.builtin.existingSecret, change it in the
Secret and restart the pod instead.
"Too many attempts. Try again in N seconds."
Five wrong passwords in a row lock admin for 30 seconds, doubling
with each further miss up to 15 minutes. Wait it out, or restart the
pod to clear the counter.
The sign-in page says "Tiphys couldn't set up sign-in"
The backend had nowhere writable for the one-time password (the
state volume and /tmp both failed). Check the backend log and the
state PVC, then restart the pod. Alternatively set
auth.builtin.existingSecret.
The UI says "Sign-in happens at your proxy"
The install runs with auth.mode=proxy and the request carried no
identity in the headers auth.proxy.headers names, as with a plain
port-forward. Open Tiphys through your SSO ingress, or switch to the
built-in sign-in with --set auth.mode=builtin, at the version you run
(as in Logs + debugging).
Through the ingress and still refused? Check that auth.proxy.headers
matches what the ingress sends (UI Access):
forwarded: the proxy must setX-Forwarded-UserorX-Forwarded-Email.auth-request: the Ingress needsnginx.ingress.kubernetes.io/auth-response-headerslistingX-Auth-Request-UserandX-Auth-Request-Email, and oauth2-proxy needs--set-xauthrequest=true.alb:auth.proxy.albArnmust be the ARN of the load balancer in front of Tiphys (it changes if the load balancer is recreated), and the pod needs outbound HTTPS topublic-keys.auth.elb.<region>.amazonaws.com. The backend log names the reason for each refused token (alb_token_refused reason=signer,alb_key_fetch_failed).
UI shows "Failed to load approvals" / "Failed to load reports"
The backend couldn't read the store. Where that is depends on
persistence.mode.
With the default sqlite, the stores are in
/var/lib/tiphys/state.db on the state PVC. Check the backend log
for the SQLite error, and check that the PVC is Bound and not full:
kubectl get pvc -n tiphys
kubectl -n tiphys exec tiphys-0 -c backend -- df -h /var/lib/tiphys
With configmap, the ConfigMap client can't read the store. Verify
the state Role exists + is bound:
kubectl get role -n tiphys | grep state
kubectl get rolebinding -n tiphys | grep state
Missing → re-render the chart (the role-state.yaml template is part
of the default install). Present but the API server still 403s → look
for custom NetworkPolicy or AdmissionController rules blocking
the agent's SA.
SSE chat stream disconnects after 60 seconds
Ingress timeout. Configure long-lived timeouts for /api/query:
- nginx:
proxy-read-timeout: 3600on the Ingress annotation. - ALB:
idle_timeout.timeout_seconds=3600on the load balancer attributes.
See UI Access for the full examples.
Performance
First chat response is slow
First conversation turn builds the system prompt, which reads the
scan. If the scanner hasn't run yet, the prompt has no cluster
context and the agent will call more tools to compensate. Wait for
the first scheduled knowledge refresh (or force a scan via run a cluster scan), then chat is snappier.
Reporter scan blocks for minutes
Large clusters (10k+ pods) can spend significant time listing resources, and a scan reads every namespace Tiphys's reader can. The scan runs in the background (at startup too), so Tiphys keeps answering meanwhile, but the dashboard and reports show the previous scan until it finishes. Scan less often:
agent:
schedule:
knowledgeGraphRefresh: 6h # default 1h
healthCheckInterval: 2h # default 30m
Chat feels slow
Chat runs on the smart tier: Claude Sonnet, by default. To trade some
multi-step reasoning for speed, point the smart tier at a faster model,
for example Claude Haiku on Bedrock, using the fast model's ID for your
region from the table in
configuration.md:
llm:
bedrock:
models:
smart: <the fast model's ID for your region>
Each provider has the same models.smart (llm.anthropic,
llm.vertex, llm.azure, llm.openaiCompatible). The fast model is
several times faster than the smart one, and cheaper on your model bill;
fine for "fetch logs + describe pod" flows, worse for "debug this
cross-cluster connectivity puzzle." llm.tiers isn't used yet, so it
doesn't change which model chat uses.
Logs + debugging
The backend logs at info. For more while you chase a problem, turn on
debug, reproduce it, then turn it back off:
VERSION=$(helm get metadata tiphys -n tiphys | awk '/^VERSION:/ {print $2}')
helm upgrade tiphys oci://ghcr.io/intelligant-ai/charts/tiphys -n tiphys \
--version "$VERSION" --reuse-values --set agent.logLevel=debug
kubectl logs -n tiphys sts/tiphys -c backend -f | grep DEBUG
helm upgrade tiphys oci://ghcr.io/intelligant-ai/charts/tiphys -n tiphys \
--version "$VERSION" --reuse-values --set agent.logLevel=info
Debug adds one line per tool call (tool k8s_call (verb=get kind=Pod namespace=prod): 2048 bytes in 41 ms), per AWS call (aws ec2 DescribeVolumes (us-east-1): 403 AccessDenied in 120 ms) and per helm
run (its command line, exit code and time), plus the reads Tiphys tried
and couldn't make. It never logs manifests, values, prompts or secrets,
and libraries stay at info. VERSION is the chart you run: without
--version, the upgrade would move you to the latest chart too.
# Backend logs (streaming)
kubectl logs -n tiphys sts/tiphys -c backend -f
# Frontend / ingress logs
kubectl logs -n tiphys sts/tiphys -c frontend
# State ConfigMaps
kubectl get cm -n tiphys -o name | grep tiphys-
# → tiphys-config (chart settings, not state)
# → tiphys-scan
# → tiphys-prices (once AWS list prices have been looked up)
# → tiphys-billed-costs (once Cost Explorer has been called)
# With persistence.mode=configmap, also:
# → tiphys-reports
# → tiphys-approvals
# → tiphys-snoozes
# → tiphys-audit
# → tiphys-conversations
# Inspect the audit log (persistence.mode=configmap; with the default
# SQLite store, use the command under "Approved a recommendation")
kubectl get cm -n tiphys tiphys-audit \
-o jsonpath='{.data.audit\.json}' | jq '.[-20:]'
Getting help
Write to support@intelligant.ai (the Feedback link in the app opens an email to the same place). Say what you expected, what happened instead, and when it started, and attach the diagnostics bundle below. It's the fastest way to an answer: it holds the facts we'd otherwise ask for one at a time.
The diagnostics bundle
One command collects a redacted bundle from inside the pod:
kubectl exec -n tiphys sts/tiphys -c backend -- \
python -m ops_agent.diagnostics > tiphys-diagnostics.tar.gz
(With persistence.mode=configmap, use deploy/tiphys. Add
--lines 2000 for more log lines; the default is 500 per container.)
The bundle holds:
- the Tiphys, Python and Kubernetes versions
- the effective settings, with every secret shown only as set or not
- what
/api/statuslast answered, the permission checks, and the server's readiness probes - the state of Tiphys's pods and volumes, and the namespace's recent events
- the last lines of each container's log, and of the backend's previous run when it restarted
Secrets are removed before anything is written: the model provider's
key, webhook URLs, the license, the admin password, and anything shaped
like a token, a key or a password in a URL. It's still worth a look
before you send it (tar -xzf tiphys-diagnostics.tar.gz). The command
only reads, makes no model call, and sends nothing anywhere; the file
goes where you redirect it. What it couldn't collect is listed in
errors.txt inside the bundle.
The usual facts, by hand
If the backend container won't start, the bundle can't run. Collect these instead:
# Tiphys version
kubectl get sts -n tiphys tiphys \
-o jsonpath='{.metadata.labels.app\.kubernetes\.io/version}{"\n"}'
# Kubernetes version
kubectl version
# Pod, volume and recent events
kubectl get pods,pvc -n tiphys -o wide
kubectl describe pod -n tiphys tiphys-0
kubectl get events -n tiphys --sort-by=.lastTimestamp | tail -30
# Logs: this run, and the one before a restart
kubectl logs -n tiphys tiphys-0 -c backend --tail=500
kubectl logs -n tiphys tiphys-0 -c backend --previous --tail=500
# Your chart values (check for keys before you send them)
helm get values -n tiphys tiphys
helm get values shows what you set, including any key you passed with
--set: take those out before you send it.
Before you write
- Install Tiphys has the happy-path walkthrough, and is worth re-reading if anything AWS-shaped is failing.
- Tiphys's chat can diagnose most of its own errors; ask it first.