Howto fix redis AOF file

Modify the kubernetes statefull set command and arguments, from this:

        - args:
            - '-c'
            - /opt/bitnami/scripts/start-scripts/start-master.sh
          command:
            - /bin/bash

to this:

        - args:
            - '-c'
            - while true; do sleep 3600; done
          command:
            - /bin/bash

get into the container and execute:

cd data/appendonlydir/
ls -al
redis-check-aof --fix appendonly.aof.manifest 

Then restore the statefull set command and arguments if everything is ok. Last but not least, if you feel the need, backup the data folder before fixing the files.