Redis carries the messages between Anthias's services: the background worker gets its jobs through it, and the web interface reaches the viewer through it. If a power cut or a failing memory card left a damaged record in its append-only file, Redis refused to start with Bad file format reading the append only file, restarted, and failed the same way, over and over. The background worker stopped, the splash page answered with a server error, and the player stayed like that until someone repaired the file by hand.
From Anthias 2026.12.0, the Redis container checks the file every time it starts:
- A file with a damaged record is cut short at that record, keeping everything before it.
- If that doesn't give a usable file, the damaged copy is moved to
appendonlydir.corrupt, and Redis starts from its last snapshot,dump.rdb, or with no data if the snapshot is damaged too. Only the latest damaged copy is kept. - A healthy file, or no file at all, is left alone.
Nothing Redis keeps is lost for good: it's state Anthias rebuilds as it runs. Each step logs a line starting redis-entrypoint: in the Redis container's log, such as redis-entrypoint: repaired the append-only file. This applies to every install, balena included, and there's nothing to do.