LuckPerms

LuckPerms

41.4k Downloads

Connection.setNetworkTimeout cannot be called on a closed connection

Jackk999 opened this issue ยท 5 comments

commented

Good evening, I have been experiencing the underlying problem for some time now where the server crashes completely without even restarting with the loop.
Reading some online guides and from the same error message I tried to lower the MaxLifeTime over and over again the connection-timeout but nothing, how can I do to solve?

Pastebin with log here:
https://pastebin.com/kUPXkHpp

commented

Can you try switching to mysql storage instead of mariadb to see if that resolves the issue. Let me know if it helps :)

commented

Yes, I try to let you know by tomorrow because it usually crashes after a few hours

Thanks ๐Ÿ‘

commented

Goodmorning how are you?
Unfortunately apparently the problem was not that, now it gives me this error:

https://pastebin.com/3j5mLfYt

Thanks so much for your help

PS: but this time the server hasn't crashed and if I run in game / lp it seems to work ... mhh

Could it be a database problem? what could be causing it?

Some screenshots of these commands:
SHOW VARIABLES LIKE '%timeout%'; // https://prnt.sc/wenxjv
SHOW VARIABLES LIKE '%max_connections%'; // https://prnt.sc/wenxpf
SHOW STATUS LIKE '%connection%'; // https://prnt.sc/wenxua

commented

Okay I think I understand the problem but I don't know how to solve it, that is after 8 hours of inactivity I think that mysql disconnects some connections like that of LuckPerms and also LiteBans, in fact from the logs putting the connection in MySQL instead of MariaDB now this "The last packet successfully received from the server was 54,318,428 milliseconds ago. The last packet sent successfully to the server was 54,318,448 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and / or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector / J connection property 'autoReconnect = true' to avoid this problem. "

I leave you the complete logs if you want to help me
2021-01-02-1.log

commented