Reconnect broken?
Sir-Will opened this issue ยท 1 comments
Not exactly sure what the issue is here but I noticed these errors to show up on multiple instances on the same server. It looks like that BM lost the connection to the database and fails to reconnect correctly.
When using /bminfo BM tries to kill the server while returning the correct information which seems weird.
[18:05:37] [pool-3-thread-245/WARN]: [me.confuser.banmanager.common.hikari.pool.PoolBase]: bm-local - Failed to validate connection org.mariadb.jdbc.MariaDbConnection@2cd7b9d3 ((conn=9632541) Connection.setNetworkTimeout cannot be called on a closed connection). Possibly consider using a shorter maxLifetime value.
2020-09-04 18:30:23 | [nucleus]: Server ran the command: /bminfo SirWill
2020-09-04 18:30:23 | [WARN] [FML]: =============================================================
2020-09-04 18:30:23 | [WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML!
2020-09-04 18:30:23 | [WARN] [FML]: Offender: me/confuser/banmanager/common/cli/Args.parseOrExit(Ljava/lang/Object;[Ljava/lang/String;)Ljava/util/List;
2020-09-04 18:30:23 | [WARN] [FML]: Use FMLCommonHandler.exitJava instead
2020-09-04 18:30:23 | [WARN] [FML]: =============================================================
2020-09-04 18:30:24 | Player: SirWill
2020-09-04 18:30:24 | [RAW] Banned 4 times
2020-09-04 18:30:24 | [RAW] Muted 0 times
2020-09-04 18:30:24 | [RAW] Kicked 0 times
2020-09-04 18:30:24 | [RAW] Warned 0 times
2020-09-04 18:30:24 | Their last connection was with -- on 04-09-2020 00:34:10
2020-09-04 18:30:24 | Possible alts found:
2020-09-04 18:30:24 | This ip has been banned 0 times
BanManagerSponge 7.2.0
spongeforge-1.12.2-2838-7.2.4-RC4059
First issue appears to be due to a configuration issue either with MariaDB or within the plugin brettwooldridge/HikariCP#1131 Looks like I may need to expose a config option to specify the maxLifetime
.
Second issue regarding trying to kill the server, the CLI library the plugin is using does have a parseOrExit
method but it's never used or ever executed and given the bminfo command does run, it appears to just be a warning of some sort.