Welcome to the new home of Plan-G.
We are endeavouring to bring the old forum data across to the new one, but you will need to re-register here.
Old forum archive: https://plan-g.app/oldforum/index.php

readonly database - cannot build data files

Post Reply
deadmeat
Posts: 3
Joined: Sat Jul 22, 2023 6:32 pm
Contact:

readonly database - cannot build data files

Post by deadmeat »

Hi All

I am unable to properly build my database for MSFS or XPlane11. MSFS ends up with airspaces but XP11 the data button is still greyed out.

I previously had v3 and a v4 alpha installed but removed them and all their data (as far as I could tell). I then installed the latest version and ran the MSFS data scan. When most of the data was missing, I uninstalled again and then ran as administrator with the same results

My log is attached (I may have re-run the scan again, I cannot remember exactly) and contains the error

Code: Select all

SQLite Error 8: 'attempt to write a readonly database'.
but also at least one other I can see:

Code: Select all

20:47:53.0 Apt:   Id: 0x0 prev: 0xe8
20:47:53.0 WARNING! endPos > file length
20:47:53.0 WARNING! endPos > file length
20:47:53.0 WARNING! endPos > file length
20:47:53.0 WARNING! endPos > file length
Any help appreciated. Thank you.
Attachments
Plan-Gv4_Log.txt
(2.14 MiB) Downloaded 140 times
Tim
Site Admin
Posts: 207
Joined: Tue Nov 29, 2022 3:32 pm
Contact:

Re: readonly database - cannot build data files

Post by Tim »

The error you're getting is

Code: Select all

SQLite Error 8: 'attempt to write a readonly database'
That usually means the folder containing the database has been made readonly. Please check the permissions for your Plan-Gv4 Files folder and its subfolders. If you think the folder permissions are fine, you could try renaming the Plan-Gv4 Files folder and letting it build a new one.

BTW, the endPos > file length warnings are usually because some scenery files are encrypted, and that generates the error.

Also, it could be worth restarting Plan-G between consecutive database builds, to reduce memory fragmentation.
deadmeat
Posts: 3
Joined: Sat Jul 22, 2023 6:32 pm
Contact:

Re: readonly database - cannot build data files

Post by deadmeat »

Thanks Tim.

For some reason my 'Documents' folder was set to read only. Plan-G was able to create it's folders and files but they would get locked part way through the scan. I would have assumed that if the parent folder was read only then nothing could be created, but I guess having write but not modify for a specific user might have that effect (Win permissions always confuse me!).

No idea why this happened or when. No anti-virus other than Defender. No relevant changes I can think of for years on this PC and no issues with using that folder before.

Anyway, it works. Thanks again Tim and thanks for the excellent Plan-G!
Post Reply