Skip to content
Vector database engineering on Kubernetes · Chapter 19 of 20 Appendix B: Error catalogue

Appendix B: Error catalogue

What this appendix is for: you have an error message or a strange result and are looking for a place to start. Each entry says how the problem showed up, what caused it and how it was fixed. All entries come from the drills, diagnosis tasks and incidents of this course; the messages are the ones from the lab. The days in the last column lead to the full solution path.

Three rules apply to almost every entry:

  • Green does not mean complete. A collection with green, a snapshot with "status":"ok" and pods with 1/1 Running say nothing about whether all data is there and arrives fast enough (B5, B9, B10, B16, B17).
  • A timeout means “result unknown”. With Qdrant and with Milvus an aborted write was sometimes there later and sometimes not. Read it back, do not guess (B8, B15).
  • A newline in the key is the most common single error. It broke the Prometheus scrape and the S3 signature (B13).

Overview

No. Message/symptom (excerpt) Cause Day
B1 13,210 instead of 13,220 sections, a word missing from the text order of replacements for Hugo shortcodes 1
B2 400, Vector dimension error: expected dim: 384, got 768 collection for 384 dimensions, model delivers 768 2
B3 No space left on device: WAL buffer size exceeds available disk space, HTTP 500 Qdrant volume full 3
B4 volume almost empty inside the pod, node still full block device does not know about deleted files, expand snapshot holds blocks 3
B5 filtered search returns nothing, no error keyword filter with wrong upper/lower case 4
B6 half a minute of 1 of 1 read operations failed on every update collection has only one copy per shard 5
B7 new pods stay Pending although they no longer have anti-affinity anti-affinity of the old pods 6
B8 collection is in the list, 0 of 0 read operations failed shard waits for a missing peer 7
B9 median unchanged, p99 four times higher, throughput halved ingestion loads the same nodes 8
B10 4 instead of 342 requests/s, no errors, pods ready memory limit of 128 Mi too tight 9
B11 OOMKilled, exit code 137 memory limit of 64 Mi 9
B12 UPGRADE FAILED: conflict … with "kubectl" with subresource "scale" kubectl scale took over .spec.replicas 9
B13 invalid header field value for "Authorization" or SignatureDoesNotMatch newline in the key 11, 12
B14 all three pods in CrashLoopBackOff after TLS between peers raft_state.json stores peer addresses with http:// 10
B15 Milvus insert ends with DEADLINE_EXCEEDED, pod ready object storage (off-site store) stopped 14
B16 367,231 instead of 1,183,514 points after restore, collection green snapshot of a single peer contains only its shards 12
B17 snapshot of 7,680 bytes, "status":"ok", restored 0 points snapshot request through the Service hit a peer without the shard 12
B18 pgvector query slow, EXPLAIN shows no index operator <-> against an index with vector_cosine_ops 13
B19 collection not loaded in Milvus search before load_collection 14
B20 rollout status reports “complete” after 6 s Argo CD had not applied anything yet 15
B21 64 instead of 505 requests/s, p99 595 ms, zero errors CPU limit of 500m via commit, throttling 16
B22 workbench locked out, kubectl apply helps for only 4 s wrong allow rule in Git, selfHeal restores it 16

Storage and data

B1 – A word is missing (Day 1). Symptom: 13,210 instead of 13,220 sections; in one place “cluster” is missing. Cause: the line that replaces glossary_tooltip with its text was missing; the next line deleted all Hugo shortcodes, word included. Fix: replacements in the right order, then rebuild the holdings and the vectors together – otherwise IDs point to the wrong texts.

B2 – The collection accepts nothing (Day 2). Symptom: the loader aborts with 400 and Vector dimension error: expected dim: 384, got 768. Cause: collection created with 384 dimensions, nomic-embed-text delivers 768. Fix: a new collection with 768 and the same distance metric, reload everything. Dimension and distance metric are the contract between model and collection.

B3 – Volume full (Day 3). Symptom: first the optimizer reports errors; minutes later Qdrant rejects writes with HTTP 500 and No space left on device: WAL buffer size exceeds available disk space. Fix: grow the PVC (kubectl patch pvc, StorageClass with allowVolumeExpansion), then kick the optimizer with an empty PATCH. Monitor usage instead of reacting at the first 500.

B4 – An empty volume fills the node (Day 3). Cause: a block device knows nothing about deleted files, and Longhorn kept a snapshot with the old blocks when expanding. Fix: fstrim on the mount point, check snapshots in snapshots.longhorn.io. Size node disks for the peak, not for today’s usage.

Search and performance

B5 – The filter finds nothing (Day 4). Cause: keyword compares character by character; Tasks is not tasks. Fix: look up the values with facet, count with points/count and the filter before you search.

B9 – The median lies (Day 8). Symptom: median unchanged, p99 320 instead of 70 ms, throughput 192 instead of 455. Cause: glove was being ingested during the search; vdb4 (2 vCPU) was at 90 %. Fix: separate loading and searching in time or plan capacity for both; always measure p99 and throughput too.

B18 – The index is not used (Day 13). Cause: the query orders by <-> (Euclidean), the index is built with vector_cosine_ops. PostgreSQL then silently reads every row. Fix: use <=> or build the index for the matching distance; check with EXPLAIN (ANALYZE).

B19 – collection not loaded (Day 14). Cause: Milvus searches only loaded collections; loading without an index fails with index not found. Fix: flush, build the index, load_collection, then search.

Distribution and failures

B6 – “But we have three replicas” (Day 5). Cause: the collection was created with one pod and has one copy per shard. replicaCount: 3 is about pods, not data; replication_factor alone copies nothing. Fix: replicate_shard per shard, check with /collections/<name>/cluster that every shard is Active twice on different nodes.

B7 – The rebuild never finishes (Day 6). Symptom: 3 node(s) didn't satisfy existing pods anti-affinity rules. Cause: the old pods forbid any pod with the same label next to them, and the rolling update waits for the new ones. Fix: recreate the Deployment or use Recreate briefly.

B8 – The collection that exists and doesn’t (Day 7). Cause: created during a partition, its shards are also placed on the missing peer (Initializing). Fix: …/cluster shows the shards in Initializing; heal the partition (the peer then creates them) or delete the collection and create it again after the outage. Treat timeouts during the partition as “result unknown” and read the points back.

B10 – Slow but healthy (Day 9). Symptom: 4 instead of 342 requests/s, median 3.9 s, no restart, 34 waiting processes and 40 MB/s of reads on the node. Cause: memory.current at the 128 Mi limit; the kernel evicts mapped file pages and reads them again. Fix: size the limit as anon plus quantized copy plus graph; read memory.stat, not just kubectl top.

B11 – OOMKilled (Day 9). Symptom: OOMKilled, exit code 137, two pods gone during the rollout. Fix: reset the limit; after the restart kick the optimizer until the collection is green again.

B12 – Helm conflict (Day 9). Cause: kubectl scale from Day 6 owns .spec.replicas, and Helm 4 applies server-side. Fix: --force-conflicts; from then on scale only one way.

B15 – Object storage gone (Day 14). Symptom: searches keep working, inserts end after 15 s with DEADLINE_EXCEEDED, the pod reports ready. Fix: start the off-site store again; the aborted record was still missing half a minute after the restart and there 13 s later – read it back, do not ingest twice.

Security and access

B13 – Newline in the key (Day 11, 12). Symptom: Prometheus: invalid header field value for "Authorization"; S3: SignatureDoesNotMatch. Cause: file with a trailing \n in the secret. Fix: check with wc -c, clean with tr -d "\n", recreate the secret.

B14 – TLS between peers breaks the council (Day 10). Symptom: all pods in CrashLoopBackOff, the log shows Failed to recover from peer … at http://qdrant-0.qdrant-headless:6335/. Cause: raft_state.json keeps the old http:// addresses. Fix: stop Qdrant, change the addresses to https:// with a workshop pod, start again. Take a snapshot first.

More access errors from Days 10 and 11: without a key 401, with the read key on writes 403; x509: certificate is valid for 10.43.151.237, not 10.42.1.56 when Prometheus scrapes pods directly (fix: serverName in the ServiceMonitor); illegal request line when a client sends http:// to a TLS port.

Backup and GitOps

B16 – Half a restore (Day 12). Cause: the collection snapshot of one peer contains only its local shards. Fix: create an empty collection with the same configuration, then restore every shard snapshot; compare the point count with the original.

B17 – The backup is 7.5 KB (Day 12). Cause: the Service sends the snapshot request to any peer, including peers without a shard of doku. Fix: request snapshots per shard from the peer that holds it; check the size.

B20 – “rollout complete” after 6 s (Day 15). Cause: rollout status checks the current state; Argo CD had not applied the commit yet. Fix: argocd app wait <app> --sync --health.

B21 – Lending takes forever (Day 16). Cause: a commit with a CPU limit of 500m, qdrant-0 throttled in every period; CPUThrottlingHigh waits 15 minutes. Fix: git revert, sync; check the throttled share in PromQL.

B22 – The workbench cannot get in (Day 16). Cause: allow rule for 172.16.0.182/32 instead of the Flannel address 10.42.0.0; selfHeal overwrites every manual fix. Fix: revert in Git, argocd app get regeln --refresh.

Passed the exam? With a free account it counts towards your belt. Sign up for free

Contents

More