mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Fail2ban won't work after updating or redeploying Vaultwarden #1633
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Chippel on GitHub (Jul 11, 2023).
Subject of the issue
I've set up Vaultwarden successfully via Docker and Nginx reverse proxy manager. Also, I set up the logfile environment variable and I find the logfile it in Linux. I followed the Fail2ban manual and everything works as expected. I get banned and the website will not be accessible anymore if I enter too many bad credentials.
Unfortunately after updating it won't work anymore. I can still see the logfile and it gets updated but I won't get banned via Fail2ban anymore.
I did "update" the container as followed:
After that I just created a new container with all the same settings. Settings were kept cuz I could access my admin panel and SMTP settings were still available.
Deployment environment
I did set up manually via Portainer. I set the name, gave the image link and I also created a volume which is called vw-data and which points to /data/
manual Portainer way by clicking the buttons.
Clients used: *
Android, Windows 11.
Reverse proxy and version:
Nginx Proxy Manager
EDIT: seems like the vaultwarden.log file won't get updated after updating. Do I have to set the logpath again when I update? That does not seem to be convinient.