Closed TheLaoming closed 3 years ago
Hello @TheLaoming ! 👋🏻
If my understanding is correct, you've switched to SQLite and your issue no longer occurs?
H2 locks the database file when performing database operations. If the server crashes unexpectedly or if your replace the plugin JAR when the server is running, this can cause it to fail to release the lock. You then need to go into the Advanced Achievements folder and manually delete the lock file.
:information_source: Basic information
:beetle: Description
So, basically sometimes the ach plugin get disabled due to database error. I don't actually know what's it, but it happens at least once or twice per week. Maybe the db reached the limit of size or something? I had no issues like this for almost a half year of using.
:page_facing_up: Server logs
:wrench: Configuration
I have setup the h2 database settings and using them all the time, since I tried this plugin (maybe 4 months). I'm using 2 servers with two different versions of ach and also two different mc versions. Both has this issue with h2. I tried to switch on sql and it has been a week and it looks like it works.
How to fix it? Just easily restart the server, or you can use /plugman reload advancedachievements (yeah probably not supported, but it actually works).