After having upgraded to the latest version, fail2ban fails to start:
Jul 04 18:15:46 mydomain.fr fail2ban-server[2165108]: 2022-07-04 18:15:46,779 fail2ban [2165108]: ERROR Failed during configuration: Have not found any log file for vaultwarden jail
Jul 04 18:15:46 mydomain.fr fail2ban-server[2165108]: 2022-07-04 18:15:46,782 fail2ban [2165108]: ERROR Async configuration of server failed
Jul 04 18:15:46 mydomain.fr systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Indeed there's no /var/log/vaultwarden/vaultwarden.log file. The directory exists thought.
/etc/systemd/system/vaultwarden.service contains this line:
ReadWriteDirectories=/var/www/vaultwarden/live/ /home/yunohost.app/vaultwarden/var/log/vaultwarden/ should be added to it.
/var/log/vaultwarden was owned by root. I changed it to vaultwarden:vaultwarden.
After having upgraded to the latest version, fail2ban fails to start:
Indeed there's no /var/log/vaultwarden/vaultwarden.log file. The directory exists thought.