Open JIBSIL opened 2 months ago
Hello, thank you for posting this issue. I apologise for the delay in responding.
Unfortunately, I don't have any information about your problem. The addon only acts as an interface between the Skript syntaxes and the official MongoDB driver. This problem may be caused by a temporary network problem between your MC server and your Mongo cluster, or by an interruption of some kind to the Mongo cluster service. It could also be a driver problem. Without a more thorough investigation, it will not be possible to determine the cause.
That said, it would be incorrect to say that the addon has no responsibility for this problem: a connection timeout should NOT crash the server and should be handled by the addon. This is one of the most problematic points of this version of MongoSK, which does not manage these specific cases.
There is a solution to this problem: execute Mongo operations using skript-reflect with the async section. At the same time, I'm thinking about developing a new major version to deal with all these problems (a new major version will be necessary, as the logic and syntax will have to be changed).
I am at your service if you have any questions and I hope to find the time to propose solutions directly implemented in the addon.
🔖 Versions
✒️ Description
Hi - first of all, great project you have here! I've used MongoSK for a while and it's always been quite stable, until I started doing more operations per second on it. Specifically, we migrated many variables like tokens and fishing, into MongoDB because of its superior scalability compared to Skript's inbuilt data storage. I've been having crashes every few hours, always with the same message. It looks like it's just timing out waiting on the database, but we are running a pretty stable database on the same machine, and our network (Hetzner) very rarely has issues with stability. I've set the
read
andconnect
timeouts to 60000ms just to try to prevent crashing, with no luck. I'm out of ideas for what's happening here.Code that we use to manipulate mongodb:
⚙️ Expected behavior
Stability was expected, as mongosk has typically been very stable with my server
🔎 Steps to reproduce
Code is posted in the description section, but I think it occurs when you are writing a lot to the database at the same time.
📸 Errors or screenshots
Logfile on mclo.gs
🤔 Other
No response