influxdata / influxdata-docker

Official docker images for the influxdata stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Influx 2.1.0 and up: influxd.sqlite -> database locked. Azure Linux web app with share

driesnollet opened this issue · comments

Recently we are running Influxdb on a Linux Web App in Azure. A file share from a Storage Account is linked to it (mount).
We have discovered that since the .sqlite file is introduced in 2.1.0, the web app doesn't want to start any more.
msg="Failed to apply SQL migrations" error="database is locked"

We have found several topics related to sqlite db files and azure share issues.
Is there a way to fix this, or even a possibility to ignore this database when running influxdb?

Topics:
https://learn.microsoft.com/en-us/answers/questions/346794/how-to-update-or-insert-sqlite-database-in-web-app
https://learn.microsoft.com/en-us/answers/questions/318948/azure-app-service-nodejs-sqlite3-lock-issue-cifs-m
https://stackoverflow.com/questions/74996628/sqlite-database-locked-for-writing-on-azure-linux-but-not-on-windows
MicrosoftDocs/azure-docs#47130