Skip to content

Getting MySQL Handshake timeout? #56

@fsck-mount

Description

@fsck-mount

I'm getting the following error when trying to connect to MySQL instance.

Error: Handshake inactivity timeout
  at Handshake.<anonymous> (/srv/vtap/node_modules/mysql/lib/protocol/Protocol.js:160:17)
  at emitNone (events.js:86:13)
  at Handshake.emit (events.js:188:7)
  at Handshake._onTimeout (/srv/vtap/node_modules/mysql/lib/protocol/sequences/Sequence.js:127:8)
  at ontimeout (timers.js:386:14)
  at tryOnTimeout (timers.js:250:5)
  at Timer.listOnTimeout (timers.js:214:5)
  --------------------
  at Protocol._enqueue (/srv/vtap/node_modules/mysql/lib/protocol/Protocol.js:141:48)
  at Protocol.handshake (/srv/vtap/node_modules/mysql/lib/protocol/Protocol.js:52:41)
  at PoolConnection.connect (/srv/vtap/node_modules/mysql/lib/Connection.js:130:18)
  at Pool.getConnection (/srv/vtap/node_modules/mysql/lib/Pool.js:48:16)
  at Pool.wrap_getConnection [as getConnection] (/srv/vtap/node_modules/newrelic/lib/instrumentation/mysql.js:208:34)
  at Pool.query (/srv/vtap/node_modules/mysql/lib/Pool.js:202:8)
  at Pool.wrapped (/srv/vtap/node_modules/newrelic/lib/transaction/tracer/index.js:184:28)
  at Pool.wrappedFunction [as query] (/srv/vtap/node_modules/newrelic/lib/transaction/tracer/index.js:391:55)
  at /srv/vtap/node_modules/promise-mysql/lib/helper.js:16:24
  at Promise.wrappedExecutorCaller [as _execute] (/srv/vtap/node_modules/newrelic/lib/instrumentation/promise.js:222:18)
  at Promise._resolveFromExecutor (/srv/vtap/node_modules/bluebird/js/release/promise.js:483:18)
  at new Promise (/srv/vtap/node_modules/bluebird/js/release/promise.js:79:10)
  at Pool.promiseCallback (/srv/vtap/node_modules/promise-mysql/lib/helper.js:6:10)
  at pool.query (/srv/vtap/node_modules/promise-mysql/lib/pool.js:23:28)
  at Object.getAllDetails (/srv/vtap/models/users.js:16:29)
  at Object.action (/srv/vtap/services/clickStream.js:14:17)
  at onMessage (/srv/vtap/processor.js:186:29)
  at /srv/vtap/utils/kafka-consumer.js:50:6
  at wrapped (/srv/vtap/node_modules/newrelic/lib/transaction/tracer/index.js:184:28)
  at createBackgroundSegment (/srv/vtap/node_modules/newrelic/api.js:703:54)
  at wrapped (/srv/vtap/node_modules/newrelic/lib/transaction/tracer/index.js:184:28)
  at wrapTransactionInvocation (/srv/vtap/node_modules/newrelic/lib/transaction/tracer/index.js:158:50)
code: 'PROTOCOL_SEQUENCE_TIMEOUT',
fatal: true,
timeout: 10000 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions