# Error loading config: Unable to write to log file. /data/vaultwarden.log

**URL:** <https://vaultwarden.discourse.group/t/error-loading-config-unable-to-write-to-log-file-data-vaultwarden-log/2628>\
**Category:** Help\
**Created:** [April 28, 2023, 5:32pm UTC](https://vaultwarden.discourse.group/t/error-loading-config-unable-to-write-to-log-file-data-vaultwarden-log/2628 "2023-04-28T17:32:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![chashock](https://avatars.discourse-cdn.com/v4/letter/c/dec6dc/32.png) [@chashock](https://vaultwarden.discourse.group/u/chashock)\
**Post date:** [May 25, 2023, 4:01pm UTC](https://vaultwarden.discourse.group/t/error-loading-config-unable-to-write-to-log-file-data-vaultwarden-log/2628/2 "2023-05-25T16:01:16Z")

</div>

On the latest build, I had to change the LOG\_FILE directive to remove the leading slash AND the quotes. So

LOG\_FILE: data/vaultwarden.log

And then the log started getting written to.

---

_[View the full topic](https://vaultwarden.discourse.group/t/error-loading-config-unable-to-write-to-log-file-data-vaultwarden-log/2628)._
