zwavejs2mqtt database lock error

Quick note for anyone who is running an instance of zwavejs2mqtt to control their zwave devices through docker. After a power outage at my home, all my zwave devices became unresponsive in Home Assistant.

Checking the logs said the following error: Failed to initialize the driver: Error: Failed to lock DB file "/usr/src/app/store/f7b4c0f4.jsonl"!

Quick fix is to rename all the .lock folders in the zwavejs2mqtt volume used to something like .lock.bak and restart the container.

Join my Newsletter

Sign up to get the occasional email regarding security updates, tricks and news about the landscape of Web Development.

Back to top of page