A248 / LibertyBans

The be-all, end-all of discipline.
https://ci.hahota.net:8443/job/LibertyBans/
GNU Affero General Public License v3.0
165 stars 40 forks source link

In certain environments, VIEWs not created with MySQL Percona #231

Closed ChefMC closed 8 months ago

ChefMC commented 1 year ago

LibertyBans Version

LibertyBans_Release-1.1.0-M3

I have confirmed that ...

Platform

Velocity

Description

I installed the plugin on Velocity and after joining server I getting this in console: https://pastebin.com/kCTntbvx

A248 commented 1 year ago

I can't reproduce this at all. I'll need further information to help you here.

You configured LibertyBans to use MariaDB, so please show me the tables in your database -- running SHOW TABLES will do. Please also send me your MariaDB version and the full server log since startup. And if you still have it, send the server log from when you first ran LibertyBans on MariaDB, since that is when tables are created.

ChefMC commented 1 year ago

I have in sql.yml configured MySQL, not MariaDB: rdms-vendor: 'MYSQL'

ChefMC commented 1 year ago

image

ChefMC commented 1 year ago

MySQL even in my error log from first message: image

ChefMC commented 1 year ago

SHOW TABLES: image

MySQL: 8.0.33-25 Percona Server (GPL), Release '25', Revision '60c9e2c5'

ChefMC commented 1 year ago

Full log: https://pastebin.com/F8CJqb0e

Log after deleting all tables: https://pastebin.com/ex1kiTDQ

ChefMC commented 1 year ago

Table still not created: image

A248 commented 1 year ago

Yes, you are using MySQL. I can see that libertybans_applicable_bans does not appear in your tables even after recreating them. Importantly, libertybans_applicable_bans is a VIEW, and not a TABLE.

This may be an issue related to MySQL Percona not allowing us to create VIEWs. We have automated tests which run and succeed on Oracle MySQL 8.0, including for table creation and query execution. I'm not sure why MySQL Percona would cause this issue, but I will work to perform additional testing until I can replicate it myself, including installing Percona.

Log after deleting all tables: https://pastebin.com/ex1kiTDQ

All of the table and view creation queries succeeded according to this log. However, as you've mentioned, the VIEWs still do not exist.

A248 commented 1 year ago

I also noticed you have LimboAPI installed. We've had compatibility issues with LimboAuth before related to the database driver. If you have LimboAuth installed, please try without it.

ChefMC commented 1 year ago

Seems like after database migration I wasn't migrate VIEWs. So thank you for tip about it's not a table

A248 commented 1 year ago

I have verified this is not a problem with Percona. The automated test suite ran successfully -- which tested every single feature in LibertyBans with the MySQL Percona database. Additionally, I performed manual testing in my local environment. In both cases I used Docker with Percona 8.0.33-25, Release 25, Revision ff45844b, a slightly different Revision than yours but the same release otherwise.

Evidence suggests an issue with your particular environment or configuration. I can suggest again that you try without LimboAuth installed, if you're using that plugin. Ultimately, I will need more information to debug this problem.

A248 commented 11 months ago

Hi, @ChefMC , have you obtained any more information on this issue? I'm completely unable to reproduce it when I create a Percona server on my computer and run LibertyBans on it. As mentioned, this suggests there may be something wrong with your environment or configuration. We try to make LibertyBans work in all supported environments, however, so if there's anything you've found out or can report, please mention it.

A248 commented 8 months ago

Closing due to insufficient information to reproduce.