![]() |
"attempt to write a readonly database"
I just repurchased my playerworld after it had been offline for a few weeks, and now RC is spammed with the error "attempt to write a readonly database" whenever I try to work with the SQLite Database.
Help please! |
I also can't seem to download main.db from file browser.
PHP Code:
|
If you change the database definitions in server ops are you able to use a different database file?
e.g. add database=default,main-new |
Quote:
|
Bump. Come on Stefan, two days of browsing the forum and no help? This is pretty important :(
|
Sorry for not answering earlier.
The file wasn't writable by the npcserver because of missing rights. It must have been caused by the fact that I was restoring it from a backup sometime in December, it wasn't writable back then either though? Anyway it should work better now. It's still quite huge (123 MByte) so it might be good to clean some stuff or put data in separate databases to avoid problems like back then when the file was corrupted. |
Might it be possible for there to be a way to clean up databases where there is excess file size by result of previous data that has been deleted?
Something I've done before with 0 players online + staff only is temporarily set default database to a different name in server options, clean up main.db offline with SQlite browser software, reupload main.db and set it back to default in server options. |
Hmmm tried the "vacuum" command? (make a backup first) I've heard it should help but have never tried.
|
Quote:
Quote:
An example of an executed query happening in these instances: PHP Code:
|
Quote:
I'd like to see Stefan look into this and find the real problem, though. It's been around for years and affects big servers like Era and even small UC servers I've worked on with few scripts and one or two players online. |
| All times are GMT +2. The time now is 05:49 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.