FXServer Linux Error Overnight

Good morning,

I’m running into a problem where FXServer seems to stop working overnight. Everything runs fine during the day, however, it seems at some point during the night things go wrong:

Error running system event handling function for resource essentialmode: citizen:/scripting/lua/scheduler.lua:39: Failed to execute thread: citizen:/scripting/lua/json.lua:397: bad argument #1 to 'strfind' (string expected, got nil)
stack traceback:
        [C]: in function 'string.find'
        citizen:/scripting/lua/json.lua:397: in upvalue 'scanwhite'
        citizen:/scripting/lua/json.lua:553: in function <citizen:/scripting/lua/json.lua:551>
        (...tail calls...)
        server/db.lua:194: in upvalue 'callback'
        server/db.lua:73: in field '?'
        citizen:/scripting/lua/scheduler.lua:219: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:124: in function <citizen:/scripting/lua/scheduler.lua:123>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:39: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:123: in function <citizen:/scripting/lua/scheduler.lua:92>
Sending heartbeat to live-internal.fivem.net:30110
Stopping resource essentialmode
GlobalError: Failed to create environment, hresult 80070002
Failed to create environment, hresult 80070002Stacktrace:

no /proc/self/maps, not on linux?


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

[root@openvpn cfx-server-data-master]#

This is the database update (every 1min) :
db.lua:73 – Is where the update is retrieving the user.
db.lua:194 – Is where it’s decoding the json return value : local doc = json.decode(rText).docs[1]

The line where it says Stopping resource essentialmode is where I wake up in the morning, see all of the errors and try to restart essentialmode, and fxserver crashes.

If I restart the server, everything works fine. The database is not down. All of the code works through out the day, leaving me to believe that the custom lua code isn’t the problem. This is happening on the last few fxserver versions. I’m not sure, beyond this, how to debug. Next time this happens I will try to see how much memory fxserver is using, possibly a memory leak? Or perhaps an error with the proot sandbox?

If anyone has run into this and fixed it, please let me know! Thanks,

Edit: Additional info
Memory Usage (Almost 7x more memory than when first initialized)

CURL Error Code 52

I am also getting this problem.
Although this time i got a different error when it crashed.

i get this same error, /self/proc/maps, and /dev/urandom

anyone find a solution to this?

This has hopefully been resolved in the latest update (315 or higher).

Hi,

no not resolved, i get same error (linux) overnight with the lasted version (2 days ago)

Hi,
This is not resolved

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.