fivem-mysql-async: Error On startup Linux

Hello,

I am running my FiveM server on a Linux VPS with Ubuntu 18.04. On startup I get a whole line of errors, which has to do with mysql-async. Here are they:

    at PoolConnection.Connection._handleConnectTimeout (mysql-async.js:1004:13)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:106:13)
    at Socket.emit (events.js:208:7)
    at Socket._onTimeout (net.js:422:8)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5161:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
Error: (node:7888) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 5)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5161:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 6)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 7)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 8)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 9)
Error: (node:7888) UnhandledPromiseRejectionWarning: Error: Handshake inactivity timeout
    at Handshake.<anonymous> (mysql-async.js:6183:17)
    at emitNone (events.js:106:13)
    at Handshake.emit (events.js:208:7)
    at Handshake._onTimeout (mysql-async.js:316:8)
    at Timer._onTimeout (mysql-async.js:13221:23)
    at ontimeout (timers.js:498:11)
    at tryOnTimeout (timers.js:323:5)
    at Timer.listOnTimeout (timers.js:290:5)
    --------------------
    at Protocol._enqueue (mysql-async.js:6167:48)
    at Protocol.handshake (mysql-async.js:6074:23)
    at PoolConnection.connect (mysql-async.js:711:18)
    at Pool.getConnection (mysql-async.js:4753:16)
    at Pool.query (mysql-async.js:4907:8)
    at Promise (mysql-async.js:5146:12)
    at new Promise (<anonymous>)
    at execute (mysql-async.js:5143:26)
    at Object.global.exports [as callback] (mysql-async.js:5169:5)
    at citizen:/scripting/v8/main.js:96:41
Error: (node:7888) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 10)```

Hopefully anyone can help me with this.

Thanks,
Jorrit

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24

Most upvoted comments

@LySoon I fixed all mine. Contact me on discord Jorrit#0001 it has nothing todo with MySQL async