Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database will become read-only and break everything #4

Closed
ethaniccc opened this issue Jul 5, 2020 · 2 comments
Closed

Database will become read-only and break everything #4

ethaniccc opened this issue Jul 5, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@ethaniccc
Copy link
Owner

When testing the Anti-Cheat on the test server, for some reason, the Async task crashed with the backtrace:

[13:36:32] [Asynchronous Worker #1 thread/DEBUG]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[89] SQLite3Stmt::execute(): Unable to execute statement: attempt to write a readonly, string[105] phar:///home/gs-40647/plugins/Mockingbird_dev-51.phar/src/ethaniccc/Mockingbird/, integer 26, array[3])

[13:36:32] [Asynchronous Worker #1 thread/DEBUG]: #1 plugins/Mockingbird_dev-51.phar/src/ethaniccc/Mockingbird/task/NewViolationTask(26): SQLite3Stmt->execute()

[13:36:32] [Asynchronous Worker #1 thread/DEBUG]: #2 src/pocketmine/scheduler/AsyncTask(82): ethaniccc\Mockingbird\task\NewViolationTask->onRun()

[13:36:32] [Asynchronous Worker #1 thread/DEBUG]: #3 (): pocketmine\scheduler\AsyncTask->run()

Have no idea why or when the database suddenly decided to become read-only.

From there, everything breaks from the commands to adding new violations:

[13:36:32] [Server thread/CRITICAL]: ErrorException: "SQLite3::query(): Unable to execute statement: no such table: cheatData" (EXCEPTION) in "plugins/Mockingbird_dev-51.phar/src/ethaniccc/Mockingbird/cheat/Cheat" at line 67

Gotta make a new hack for this too ig :d

@ethaniccc ethaniccc added the bug Something isn't working label Jul 5, 2020
@ethaniccc
Copy link
Owner Author

If a player is violated too fast, the Async task will crash, but nothing will break and cause the server to crash.

@ethaniccc
Copy link
Owner Author

I am now planning on removing the database overall since it's pretty unnecessary, and violations could be stored in a global variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant