Baker fails to inject a block because ~/.dune-client/blocks is illformed
I've seen a case where a baker's ~/.dune-client/blocks
file is corrupted (empty file). Consequently, the baking process works well until the latest baked block's level is checked (read from that file) to prevent double-bake. The baker then fails because it's not able to decode the content of this "empty" file.