Jump to content
RAGE Multiplayer Community

Crash server


Jaden_Adams
 Share

Recommended Posts

10 minutes ago, Jaden_Adams said:

Start the server, runs about a minute and the server crashes with the error:

events.js:5838: Uncaught Error: Connection Lost: The server closed the connection.

But I have no file events.js. Not in the server files, not client files, it is not! What could be the problem?

There's a problem in your script. Try without server-side scripts.

Link to comment
Share on other sites

The server stopped falling, but the console spam errors:

db error { Error: Connection lost: The server closed the connection.
    at Protocol.end (E:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Protocol.js:113:13)
    at Socket.<anonymous> (E:\RAGEMP\server-files\node_modules\mysql\lib\Connection.js:109:28)
    at emitNone (events.js:110:20)
    at Socket.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1059:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9) fatal: true, code: 'PROTOCOL_CONNECTION_LOST' }

 

Link to comment
Share on other sites

53 минуты назад, Jaden_Adams сказал:

The server stopped falling, but the console spam errors:

db error { Error: Connection lost: The server closed the connection.
    at Protocol.end (E:\RAGEMP\server-files\node_modules\mysql\lib\protocol\Protocol.js:113:13)
    at Socket.<anonymous> (E:\RAGEMP\server-files\node_modules\mysql\lib\Connection.js:109:28)
    at emitNone (events.js:110:20)
    at Socket.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1059:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9) fatal: true, code: 'PROTOCOL_CONNECTION_LOST' }

 

Found the solution! It is necessary to prescribe:

connection.query("SET SESSION wait_timeout = 604800"); // 7 days timeout

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...