Fail2ban resets banned ip addresses to 0


I recently added Fail2ban to my OpenWRT router to block incoming attackers. However, I noticed that after every reboot, my Fail2ban banned IP addresses reset to 0.

I configured my jail.local file and set dbfile = /var/lib/fail2ban/fail2ban.sqlite3. The issue only occurs after a reboot. If I perform a reset through /etc/init.d/fail2ban restart/reload, it doesn't reset my banned IP addresses to 0.

I also installed Logrotate after setting up Fail2Ban. Could Logrotate be causing the issue with the banned IP addresses resetting after a reboot?

Could anyone help me resolve this issue?

Thank you!

/var/lib isn't persistent storage ?

You reboot, and it's gone ?

I did actually create my own persist storage in /etc/fail2ban/persist/fail2ban.sqlite3 to keep my banned IP addresses. But it didn't help and I found on some forum that fail2ban.sqlite3 already exists after installing fail2ban.
And yes I reboot my OpenWRT device and the banned IP addresses are gone.
I can post the jail.local if it helps

ignoreip =,
bantime  = -1
findtime  = 1200
maxretry = 3
backend = auto
dbfile = /var/lib/fail2ban/fail2ban.sqlite3
save_state = 1

enabled  = true
port     = 1194
protocol = udp
filter   = openvpn
logpath  = /var/log/openvpn.log
maxretry = 1