Daiyangcheng
[09:30:49 WARN]: [Craft Scheduler Thread - 98] WARN fr.xephi.authme.libs.com.zaxxer.hikari.pool.PoolBase - AuthMeMYSQLPool - Failed to valid
ate connection com.mysql.jdbc.JDBC4Connection@c4c3edd (No operations allowed after connection closed.). Possibly consider using a shorter ma
xLifetime value.

这是authme的报错
同时我自己写的一个插件也报了这样的错,然后mysql数据库操作就都用不了了




ecyber
用什么核心捏

凯旋KaiSenn
链接被关, 可能是默认8小时的timeout超了.
修改过吗.

Daiyangcheng

Paper Spigot 1.12.2 - 1620

Daiyangcheng
本帖最后由 Daiyangcheng 于 2022-8-12 10:55 编辑
凯旋KaiSenn 发表于 2022-8-12 10:10
链接被关, 可能是默认8小时的timeout超了.
修改过吗.

修改过了
服务器上mysql的超时时间设置为如下
  1. wait_timeout = 2000
  2. interactive_timeout = 2000
复制代码


authme中的配置文件设置为:

  1.     # Overrides the size of the DB Connection Pool, default = 10
  2.     poolSize: 10
  3.     # The maximum lifetime of a connection in the pool, default = 1800 seconds
  4.     # You should set this at least 30 seconds less than mysql server wait_timeout
  5.     maxLifetime: 1800
复制代码

凯旋KaiSenn
Daiyangcheng 发表于 2022-8-12 10:54
修改过了
服务器上mysql的超时时间设置为如下

尝试设置长一点
wait_timeout= 86400 (24小时)
https://www.mcbbs.net/forum.php?mod=viewthread&tid=868245
也可以参考一下这个