attempt to write a readonly database
hello, i have had a look at old posts and this seems to be a thing but not sure how to fix for non-docker setups. i'm running ubuntu. i got everything running fine, but once i added a plugin and some more music to my library (maybe shouldn't have done both at once), i got the following error logs:
navidrome[8926]: time="2026-08-16T16:52:24+10:00" level=error msg="Error applying PRAGMA optimize" error="attempt to write a readonly database"
navidrome[8926]: time="2026-08-16T16:52:24+10:00" level=info msg="Scanner: Starting scan" fullScan=false numLibraries=1
navidrome[8926]: time="2026-08-16T16:52:24+10:00" level=error msg="SQL: \UPDATE property SET value = {:p0} WHERE id = {:p1}`" args="map[p0:quick p1:LastScanType]" elapsedTime="35.842µs" er>`
navidrome[8926]: time="2026-08-16T16:52:24+10:00" level=error msg="SQL: \UPDATE property SET value = {:p0} WHERE id = {:p1}`" args="map[p0:2026-08-16T16:52:24+10:00 p1:LastScanStartTime]" >`
navidrome[8926]: time="2026-08-16T16:52:24+10:00" level=error msg="SQL: \UPDATE library SET last_scan_started_at = {:p0}, full_scan_in_progress = {:p1} WHERE id = {:p2}`" args="map[p0:2026>`
navidrome[8926]: time="2026-08-16T16:52:24+10:00" level=error msg="Scanner: Error marking scan start" error="attempt to write a readonly database" lib="Music Library"
navidrome[8926]: time="2026-08-16T16:52:24+10:00" level=error msg="Scanner: Error preparing libraries for scan" error="no libraries available for scanning"
navidrome[8909]: time="2026-08-16T16:52:24+10:00" level=warning msg="Scan warning: attempt to write a readonly database"
navidrome[8909]: time="2026-08-16T16:52:24+10:00" level=error msg="SQL: \UPDATE property SET value = {:p0} WHERE id = {:p1}`" args="map[p0:no libraries available for scanning p1:LastScanEr>`
navidrome[8909]: time="2026-08-16T16:52:24+10:00" level=error msg="Scan failed" error="no libraries available for scanning"
I don't know why this would be caused by the plugin but i tried to disable it to check, and got internal server error. very confused. i've tested permissions on the music directory to no avail. all the existing music still shows up and plays, just not the new stuff. any ideas welcome.