# Vaultwarden refusing to connect after a period of time

**URL:** <https://vaultwarden.discourse.group/t/vaultwarden-refusing-to-connect-after-a-period-of-time/2378>\
**Category:** Help\
**Created:** [February 15, 2023, 4:51pm UTC](https://vaultwarden.discourse.group/t/vaultwarden-refusing-to-connect-after-a-period-of-time/2378 "2023-02-15T16:51:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Penz6](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Penz6](https://vaultwarden.discourse.group/u/Penz6)\
**Post date:** [February 15, 2023, 4:51pm UTC](https://vaultwarden.discourse.group/t/vaultwarden-refusing-to-connect-after-a-period-of-time/2378/1 "2023-02-15T16:51:34Z")

</div>

Hello! I have setup vaultwarden recently and have been encountering an issue. After a period of time, all clients including the web vault refuse to login or connect, saying incorrect password or invalid refresh token. A restart fixes it until the next time, but that can get annoying and I would like to fix the issue itself, not just stick the bandaid of scheduling a container restart. The error in the logs is “POST /identity/connect/token =\> 400 Bad Request”. I have looked at the timezone, and it is correct, I have made sure that my backup script that follows the advice from the vaultwaren wiki is not causing the issue. Thank you!

---

<div class="post-metadata">

**Author:** ![Penz6](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@Penz6](https://vaultwarden.discourse.group/u/Penz6)\
**Post date:** [February 16, 2023, 6:35pm UTC](https://vaultwarden.discourse.group/t/vaultwarden-refusing-to-connect-after-a-period-of-time/2378/2 "2023-02-16T18:35:57Z")

</div>

Solved by disabling WAL for sqlite.
