Magic

Magic

190k Downloads

Error on join

bobhenl opened this issue ยท 10 comments

commented

Hi, sometimes I get this error on player's join.
https://pastebin.com/CY6vzy8E

commented

That can happen if your server crashed at some point in the past while that player was offline. I'll just make that an info-level message.

commented

It also may just mean your sql server wasn't responding at the time. Are you using MySQL or SQLite?

commented

But yes as long as the player's data loads properly (they would lose all their spells if not) it is a benign warning and I will remove it in the next build.

commented

Mysql. Maybe I can improve something in mysql conf? Ifyou tell me what

commented

Ok- well that message really just implies that the server was unavailable, which would be kind of bad. I'll also add some additional checks in my code to make sure we can re-establish the connection if it goes down.

Do you know if you have players losing their magic progress?

commented

No, any reports about losing progress. But isn't it bad when server is unavailable? Shouldn't I change something too?

commented

Yeah it is probably bad if your MySQL server goes away and comes back. That wouldn't really be a config thing or anything I could help with though. If you have service logs or something else you can correlate to know when mysql restarts, that'd be good to look at- otherwise it may be just something specific to Magic, if nothing else is having this problem.

commented

https://pastebin.com/CMRvzgc7 @NathanWolf Can you look into my log? I don't know exactly what to find. But I see it's aborting sometimes?

commented

All I can really see from that is something is timing out trying to connect to your mysql server. Debugging mysql is definitely out of the bounds of what I can support here for this plugin, unfortunately. If you are using a hosting provider it may be worth asking them for help!

commented

Ok closing it for now, until something new appear.