package main // The order and cure paragraphs are pinned to docs/troubleshooting.md. var inspectionChecks = []inspectionCheck{ {ID: "master.reachable", Title: "master.reachable", Reach: "anywhere", Cure: "blockmaster did not answer at `-master`: check that it runs and that `-master` is its `--listen` address; a non-loopback address needs the client certificate the role file names.", Run: (*inspectionObservation).reachable}, {ID: "master.lifecycle", Title: "master.lifecycle", Reach: "anywhere", Cure: "blockmaster answers no workspace query: start it with `--workspace-rpc=true` and a writable `--lifecycle-store` (with the shipped unit, under /var/lib/sw-block-master), then restart.", Run: (*inspectionObservation).lifecycle}, {ID: "master.version", Title: "master.version", Reach: "anywhere", Cure: "blockmaster did not report its version: it is older than v1.0.1, so upgrade it first.", Run: (*inspectionObservation).version}, {ID: "filer.single", Title: "filer.single", Reach: "master+filer", Cure: "sw-block needs exactly one filer in its filer group: remove the other filers of the group or give the block store its own group, then restart the volume hosts.", Run: (*inspectionObservation).filer}, {ID: "host.heartbeat", Title: "host.heartbeat", Reach: "anywhere", Cure: "No fresh heartbeat from `` for this volume: check that its blockvolume unit runs and reaches `--master`, and that its clock is synchronized (a backward step beyond the freshness window expires its slots).", Run: (*inspectionObservation).heartbeat}, {ID: "volume.known", Title: "volume.known", Reach: "anywhere", Cure: "blockmaster does not know ``: add it to the cluster spec (or register its volume record) and restart blockmaster.", Run: (*inspectionObservation).known}, {ID: "volume.assigned", Title: "volume.assigned", Reach: "anywhere", Cure: "No primary assigned: check that `--server-id` and `--replica-id` match the volume's slot and that `--expected-slots-per-volume` equals its slot count.", Run: (*inspectionObservation).assigned}, {ID: "volume.lease", Title: "volume.lease", Reach: "anywhere", Cure: "The holder waits for its lease: read `MasterWait.Reason` on its status page; `unreachable`, `credentials` or `identity refused` each name what to fix.", Run: (*inspectionObservation).lease}, {ID: "volume.frontend", Title: "volume.frontend", Reach: "host", Cure: "The frontend does not serve: the status page's `NotReadyReason` names the step (listener not up yet, the durable backend admits no I/O, lease, profile).", Run: (*inspectionObservation).frontend}, {ID: "volume.chunkstore", Title: "volume.chunkstore", Reach: "host", Cure: "Snapshots require a walstore-chunk backend: configure --durable-impl=walstore-chunk with its chunk store before taking snapshots.", Run: (*inspectionObservation).chunkstore}, {ID: "volume.cut", Title: "volume.cut", Reach: "host", Cure: "Cuts are behind or failing: read `lastFailure.code` and the holder's log for `capture` errors; a cut that needs more than one 5-minute request is retried by the schedule.", Run: (*inspectionObservation).cut}, {ID: "volume.cleaning", Title: "volume.cleaning", Reach: "host", Cure: "The volume's last cleaning pass failed or has not run: read its result on the holder's `/status/durable` and the holder's log; cleaning runs every `--chunk-maintenance-interval` and after a snapshot delete made by the holder.", Run: (*inspectionObservation).cleaning}, {ID: "versions.equal", Title: "versions.equal", Reach: "host", Cure: "blockmaster and this volume's blockvolume run different releases: finish the upgrade in the documented order.", Run: (*inspectionObservation).versions}, {ID: "clock.skew", Title: "clock.skew", Reach: "host", Cure: "This host's clock is far from blockmaster's: synchronize both to one time source (chrony, slewing, not stepping); beyond `--workspace-max-clock-skew` (20 s by default) the lease bound does not hold.", Run: (*inspectionObservation).clock}, }