Container Layout
/data
├─ config.yaml # See also configuration reference
├─ config-backups/ # Timestamped config.yaml backups (last 100 retained)
├─ logs/ # Rolling logs for agent, every data flow, Redpanda …
├─ redpanda/ # Redpanda data & WALs (backup-worthy)
├─ services/ # S6 service directories (only when S6_PERSIST_DIRECTORY=true)
└─ hwid # Device fingerprint sent to the console
/tmp/umh-core-services/ # S6 service directories (default, cleared on restart)
/run/service/ # S6 scan directory (contains symlinks to service directories)Mount one persistent volume (e.g. umh-core-data) to /data and you're done.
Advanced: Custom Data Location
If you need control over the exact data location (e.g., for compliance or backup requirements), you can use a custom folder instead of a Docker volume:
mkdir -p /path/to/umh-core-data
# Ensure container user has write access
chown -R 1000:1000 /path/to/umh-core-data
docker run -d --name umh-core -v /path/to/umh-core-data:/data:z ...On SELinux systems (RHEL, Rocky), the :z flag allows Docker to relabel the directory. It's harmlessly ignored on other systems.
Upgrading Custom Folders to v0.44+
Version 0.44+ runs as a non-root user. If upgrading from an older version with a custom data folder, fix permissions first:
Migrating to Docker Volumes (Optional)
If you want to switch from a custom folder to a Docker volume:
Keep your old folder as backup for 24-48 hours before deleting.
/config.yaml
See also Configuration Reference
/logs
Every process that S6 supervises writes to its own directory, /data/logs/<service>/. The agent writes to /data/logs/umh-core/. The read flow of a bridge writes to /data/logs/benthos-dataflow-read-protocolconverter-<bridge name>/. Each log line starts with an ISO 8601 timestamp in the container's local time.
current
The file S6 is actively appending log lines to. Keep an eye on this one with tail -f.
Always – it is recreated immediately after every rotation. (Skarnet)
previous
A temporary name used during a rotation; disappears once rotation completes.
Only while a rotation is in flight. (Skarnet)
@<timestamp>.s
An archived log that was rotated cleanly. The timestamp is the moment the rotation occurred, in TAI64N format.
After every successful rotation. (Skarnet)
@<timestamp>.u
A “unfinished” archive – it was the current file when the container was killed.
Only after an un-clean shutdown. (Skarnet)
lock, state, processed, newstate
Book-keeping files S6-log uses while rotating or while a post-processor runs.
Internal – you normally ignore them. (Skarnet)
The life-cycle in practice
Normal running – all services write to their own
currentfile.Size hits the limit – S6 atomically renames
currentto@<timestamp>.s, then immediately creates a fresh emptycurrent. The agent's log rotates at 10 MB. Other services rotate at a size umh-core sets per service, or at s6-log's default of 99,999 bytes. (Skarnet)Prune – S6 deletes the oldest archives. The agent keeps the newest 5, and every other service keeps the newest 20. (Skarnet)
You read logs – use:
/redpanda
The Redpanda data directory.
HWID
A unique identifier for that UMH Core installation. Useful for troubleshooting.
S6 Service Directories
UMH Core uses S6 overlay for service supervision. Service directories contain the runtime state and configuration for each managed service (Benthos, Redpanda, monitors, etc.).
By default, these directories are created in /tmp/umh-core-services/ which is cleared on container restart, ensuring a clean state. This prevents issues from stale supervisor state files.
For debugging purposes, you can set S6_PERSIST_DIRECTORY=true to use /data/services/ instead, which persists across container restarts. This allows inspection of S6 supervisor state files when troubleshooting service startup issues.
The /run/service/ directory contains symlinks pointing to the actual service directories, which S6's scanner monitors for changes.
See the Environment Variables reference for more details on S6_PERSIST_DIRECTORY.
Last updated

