SeaweedFS names a full store only to the assign that tries to grow a volume, so one object's retries and a cut's upload batch keep that answer over plainer failures. A real-weed integration test fills a tiny store and checks every round of concurrent uploads answers remote_full. The ledger gains the remote_full and LastCutFailure rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 KiB
Troubleshooting
cluster.check in sw-block shell runs the checks below in the order a start-up fails and prints
one line per check: ok, FAIL, not checked here or not applicable. A FAIL line names its section on this page. Each section
begins with the same one-sentence cure the command prints, then says what you see and how to fix it.
- Checks of blockmaster and the filer run on any machine that reaches them.
- Checks of a volume's holder (frontend, last cut, last cleaning, clock) read the holder's status page, which listens
on loopback only. Off that host they print
not checked here: run on <server_id>; runcluster.checkon that host for them. They never printokoff the host. - On a volume host whose
blockvolumeruns with--status-addrempty (the default), the holder's checks fail with the cure: startblockvolumewith--status-addr 127.0.0.1:<port>.
This page and the command come from one list; a test keeps them equal.
master.reachable
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.
What you see: no other check can run. A volume host's blockvolume waits with MasterWait.Reason
unreachable on its status page.
Fix: systemctl status sw-blockmaster; compare -master with blockmaster's --listen. Off loopback,
blockmaster requires mutual TLS: see authenticate the control API.
master.lifecycle
blockmaster runs without --lifecycle-store: walstore-chunk volumes need it, so start blockmaster with it and
restart.
What you see: FAIL master.lifecycle: lifecycle store unavailable. The same check reports
workspace RPC disabled when blockmaster runs without --workspace-rpc, which walstore-chunk volumes also need.
Fix: set --lifecycle-store and --workspace-rpc on blockmaster (see
standalone deployment) and restart it.
master.version
blockmaster did not report its version: it is older than v1.0.1, so upgrade it first.
What you see: FAIL master.version: no version reported.
Fix: follow upgrade from v1.0.0 to v1.0.1: blockmaster first.
filer.single
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.
What you see: the group and the filers found, for example
filer group "" has 2 filers [...]. The check can wait up to 60 s for an answer, and it reports the filers at
this moment only.
Fix: run one filer for the block store's group. A volume host checks this at start, so restart the volume hosts after the change.
host.heartbeat
No fresh heartbeat from <server_id> 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).
What you see: FAIL host.heartbeat: <server_id> not observed. A heartbeat is fresh for blockmaster's
--freshness-window (30 s by default).
Fix: systemctl status of the volume's unit on that host; check that it reaches blockmaster; keep the host on
the same time source as blockmaster (clock safety requirement).
volume.known
blockmaster does not know <v>: add it to the cluster spec (or register its volume record) and restart blockmaster.
What you see: FAIL volume.known: <v> not found. The volume host logs
subscribe: volume "<v>" not in accepted topology.
Fix: make the volume known to blockmaster.
volume.assigned
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.
What you see: FAIL volume.assigned: no primary (epoch 0). The holder's status shows "Epoch":0,
"Healthy":false, "AuthorityRole":"unknown".
Fix: compare the unit's flags with the volume's slot in the cluster spec; see the table under make the volume known to blockmaster.
volume.lease
The holder waits for its lease: read MasterWait.Reason on its status page; unreachable, credentials or
identity refused each name what to fix.
What you see: the holder's status shows NotReadyReason=lease_not_held and MasterWait with Reason and
SinceMs; off the host, blockmaster's view of the lease (granted, expired or revoking).
Fix: a volume waiting for blockmaster.
volume.frontend
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).
What you see: "FrontendPrimaryReady":false on the holder's status page, with its NotReadyReason. Off the
host: not checked here: run on <server_id>.
Fix: act on the reason it names; lease_not_held is the section above.
volume.chunkstore
Snapshots require a walstore-chunk backend: configure --durable-impl=walstore-chunk with its chunk store before taking snapshots.
What you see: on a volume that runs on the local engine only (walstore, for example a sw-block mini trial
without weed), this check prints ok: local engine only: no snapshots; not the supported configuration (start with a filer, see sw-block mini --weed), and the exit code does not change. Such a volume runs, but it has no chunk store, so no cut,
no snapshot and no restore, and it is not the supported configuration. volume.cut
and volume.cleaning then print not applicable: no chunk store.
Fix: if you want snapshots, run the volume with --durable-impl=walstore-chunk and its chunk store (--chunk-filer, and
--chunk-path when not the default); see standalone deployment.
volume.cut
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.
What you see: read from the holder's /status/durable: a FAIL for an unresolved HEAD outcome
(PendingUnresolved) or for snapshot_overdue with ScheduledSnapshot.lastFailure.code. Earlier failed cuts
(CutsFailed above 0) and no completed cut since the holder started print not checked here: one reading cannot
prove a new failure, so read the holder's log. Off the host: not checked here: run on <server_id>. On a
local-engine volume: not applicable: no chunk store.
Fix: the holder's Chunk.Stats.LastCutFailure names the last failed cut, whatever requested it, with its Code
and Cause; the holder logs one cuts failing WARN each time the code changes. remote_full: SeaweedFS has no
writable volume and no free volume slot; add capacity (see size a host), and cuts
resume on their next retry. A full store behind a follower master, or a master with volume growth disabled, still
answers remote_unavailable: check SeaweedFS's free volume count too. A retryable remote_unavailable clears when
SeaweedFS answers again. remote_unavailable also follows a request that ran out of its own 5-minute bound while SeaweedFS was
still answering (a long first cut); rerun it: the work already done is kept. See recovery point and sync policy.
volume.cleaning
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.
What you see: read from the holder's /status/durable: the last pass's time, its planned and removed totals
(with chunks, roots and segments counted apart), the HEAD generation it ran on, and its error. A FAIL for a pass
that failed or for no pass completed since the holder started; not checked here while a pass is in progress. In
the log, durable: maintenance volume=<v>: <error> after a failed pass. On a local-engine volume:
not applicable: no chunk store.
Fix: act on the error. Space comes back only after the cleaning and then SeaweedFS's vacuum (deleting snapshots and getting space back).
versions.equal
blockmaster and this volume's blockvolume run different releases: finish the upgrade in the documented order.
What you see: FAIL versions.equal: blockmaster <version>, blockvolume <version>.
Fix: upgrade from v1.0.0 to v1.0.1: blockmaster first, then each volume host.
clock.skew
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.
What you see: local clock difference <d> plus RTT uncertainty <r>; configured max skew <m>. The check
compares the midpoint of its own request to blockmaster with the time blockmaster reports, and fails when the
difference plus half the round trip reaches half of the shell's -max-clock-skew (20 s by default, so 10 s). Set
-max-clock-skew to blockmaster's --workspace-max-clock-skew. It measures this host only, so run cluster.check
on each volume host.
Fix: clock safety requirement.
Reading HEAD write logs
Every HEAD write that the filer acknowledges is logged by the process that made it: blockvolume for a holder's writes, blockmaster for a volume's create, restore and delete. One line per write:
layout: HEAD write level=INFO volume="v1" volume_id=<id> gen=12->13 head_write=commit session="<session>" epoch=3 holder="s1" claim="<claim>" activity=idle state=live current="<root>" position=4096 snapshots=2 dependents=0 took_ms=1.234
head_writesays why HEAD was written. It is one of:create,claim,start-rollback-snap,start-rollback-clean,session-begin,session-rollback,commit,snapshot-unchanged,stop-abort,clean-begin,clean-end,snapshot-retire,snapshot-delete,dependent-add,delete-marking,delete-done,dependent-release,tombstone.gen=A->Bis HEAD's generation before and after the write.took_msis the time the conditional write took.
A write whose answer was lost is logged at WARN, because it may or may not have applied:
layout: HEAD write level=WARN outcome=unknown volume="v1" volume_id=<id> expected_gen=12 head_write=commit session="<session>" took_ms=2000.000 err="<error>"
The next attempt reads HEAD and settles it. A definite refusal by the filer (the generation moved, the HEAD exists or is missing) is not an unknown outcome and is not logged here. Several outcome=unknown lines in a row for one volume mean the filer is not answering HEAD writes: see filer.single.