Skip to content

Survive an unwritable state dir (Docker uid-1000 bind mounts) - #41

Merged
AlexNly merged 1 commit into
mainfrom
fix/state-dir-resilience
Aug 12, 2026
Merged

Survive an unwritable state dir (Docker uid-1000 bind mounts)#41
AlexNly merged 1 commit into
mainfrom
fix/state-dir-resilience

Conversation

@AlexNly

@AlexNly AlexNly commented Aug 12, 2026

Copy link
Copy Markdown
Owner

First user report: /newbag fails with the generic error on a fresh Docker install. Root cause: the compose example bind-mounts ./data, Docker creates it root-owned, the container runs as uid 1000 - so the FIRST state write (which /newbag happens to be before any shot) raises PermissionError.

  • State degrades to in-memory with one loud, actionable log line instead of raising on every write
  • startup probes writability and logs the chown fix immediately
  • generic command errors now include the exception summary in the chat reply, so users can self-diagnose
  • compose example + README document the chown -R 1000:1000 fix

@AlexNly
AlexNly merged commit cca4673 into main Aug 12, 2026
3 checks passed
@AlexNly
AlexNly deleted the fix/state-dir-resilience branch August 12, 2026 06:03
@AlexNly AlexNly mentioned this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant