# OpenClaw Gateway fails on NFS with SQLite snapshot cleanup errors

Canonical: https://cwyn.com/pages/openclaw-guide-nfs-snapshot-cleanup.html
Last updated: 2026-11-26T21:35:43-05:00

OpenClaw operations guide

If OpenClaw 2026.11.2 reports `ENOTEMPTY` on a `.sqlite-publish-*` directory during Doctor or Gateway startup, check whether that path is on NFS. OpenClaw 2026.11.5 fixes this snapshot cleanup error. Leave the database and its sidecars in place and test the fixed release on a verified backup restored to equivalent storage.

Last updated November 26, 2026 · Published November 18, 2026

By CWYN · Reviewed November 18, 2026 against OpenClaw 2026.11.5

## 1. Check where the service writes state

Record the installed build, service owner and state path used by the Gateway. Where status output is available, compare the CLI and service configuration with `openclaw gateway status --deep`. Check the mount type for the actual state directory, the update capture directory and the cleanup path in the error, inside the container if that is where the service runs. [Gateway runbook](https://docs.openclaw.ai/gateway)

## 2. Match the snapshot cleanup signature

Look for `ENOTEMPTY` on a snapshot staging directory, such as `.sqlite-publish-*`, alongside Doctor’s snapshot error or the Gateway’s shared-state read-scope failure. The [November incident report](https://github.com/openclaw/openclaw/issues/195396) observed this on 2026.11.2 with NFS-backed state. Preserve the first error and its path. A generic SQLite integrity or lock error calls for separate diagnosis.

## 3. Confirm the release addresses that error

The [2026.11.5 changelog](https://raw.githubusercontent.com/openclaw/openclaw/v2026.11.5/CHANGELOG/2026.11.5.md) includes a fix for NFS snapshot-directory cleanup. The [fix notes](https://github.com/openclaw/openclaw/pull/195409) describe when cleanup can be deferred after a verified snapshot. Leave the database, SQLite sidecars and any busy `.nfs*` entries in place. Escalate any integrity or snapshot verification failure separately.

## 4. Rehearse with a verified backup

Use the [backup and verification commands](https://docs.openclaw.ai/cli/backup) for the installed build. If the failing build cannot produce a verified backup, recover a known-good archive with the service owner before attempting another migration. In a separate environment on equivalent storage, restore the archive, disable external delivery and test the fixed build against that restored state.

## 5. Verify the service and retained state

In the rehearsal, check that Doctor and Gateway startup complete, that a known recent conversation is readable and that a fresh backup verifies. Record the actual mount type and whether cleanup completed or left only a warning. Agree on the maintenance window and the verified recovery point with the service owner before applying the change to the active Gateway.

If the Gateway starts but edits you make with Claude Code still skip formatting, [check which edits trigger the formatter hook](https://cwyn.com/pages/claude-code-guide-hooks-not-firing.html).

[Get your free CWYN Score](https://cwyn.com/score) to choose your next setup improvement.

## Related guides

- [Restore an OpenClaw backup: rehearse a move to a new host](https://cwyn.com/pages/openclaw-guide-backup-restore-drill.html)
- [OpenClaw SQLite WAL checkpoint blocked by a reader](https://cwyn.com/pages/openclaw-guide-sqlite-wal-checkpoint-blocked.html)
- [OpenClaw session storage growing? Preview cleanup](https://cwyn.com/pages/openclaw-guide-session-storage-growth.html)
- [OpenClaw update-recovery-pending: inspect the previous update](https://cwyn.com/pages/openclaw-guide-update-recovery-pending.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [CWYN Score](https://cwyn.com/pages/score.html)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)

### Check retained memory after recovery

The [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) is an optional paid kit with a fresh-session recall test for checking workspace memory after the Gateway is running again.
Kit details as of Nov 18, 2026

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.
