javascript - Sequelize connection error - Stack Overflow

I'm trying to transfer my application to a new machine. It works on the old machine perfectly, and

I'm trying to transfer my application to a new machine. It works on the old machine perfectly, and I have been trying to copy the settings as closely as possible, but there is something missing. This is the error I'm getting:

Unhandled rejection SequelizeConnectionError: Handshake inactivity timeout
    at Handshake._callback (/Applications/MAMP/htdocs/dashboard-server/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:63:20)
    at Handshake.Sequence.end (/Applications/MAMP/htdocs/dashboard-server/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
    at /Applications/MAMP/htdocs/dashboard-server/node_modules/mysql/lib/protocol/Protocol.js:393:18
    at Array.forEach (native)
    at /Applications/MAMP/htdocs/dashboard-server/node_modules/mysql/lib/protocol/Protocol.js:392:13
    at doNTCallback0 (node.js:417:9)
    at process._tickCallback (node.js:346:13)

Thoughts?

I'm trying to transfer my application to a new machine. It works on the old machine perfectly, and I have been trying to copy the settings as closely as possible, but there is something missing. This is the error I'm getting:

Unhandled rejection SequelizeConnectionError: Handshake inactivity timeout
    at Handshake._callback (/Applications/MAMP/htdocs/dashboard-server/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:63:20)
    at Handshake.Sequence.end (/Applications/MAMP/htdocs/dashboard-server/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
    at /Applications/MAMP/htdocs/dashboard-server/node_modules/mysql/lib/protocol/Protocol.js:393:18
    at Array.forEach (native)
    at /Applications/MAMP/htdocs/dashboard-server/node_modules/mysql/lib/protocol/Protocol.js:392:13
    at doNTCallback0 (node.js:417:9)
    at process._tickCallback (node.js:346:13)

Thoughts?

Share Improve this question asked Oct 13, 2015 at 2:30 JonathanJonathan 7101 gold badge10 silver badges24 bronze badges 4
  • It seems to be a problem with the node-mysql package, did you try re-downloading the packages? – Jonathan Solorzano Commented Oct 13, 2015 at 2:39
  • Why don't you try to increment the value of acquireTimeout of the connection? – Jonathan Solorzano Commented Oct 13, 2015 at 2:40
  • Im still trying to find a definitive cause, but as a side-note node 4.2.0 was released under 12 hours ago, very possible that may be the culprit. – Aren Commented Oct 13, 2015 at 4:00
  • @JonathanS. - Thanks for that suggestion - I tried updating the associated packages, to no avail :( As for the acquireTimeout, I thought about doing that, but the only reason I haven't is because I'm not using pooling, and it's working as is on the other machine. @Aren - that's a good point, maybe I'll try rolling back to a previous version of NodeJS to see if it resolves the issue - I'll post my results soon. – Jonathan Commented Oct 13, 2015 at 11:13
Add a ment  | 

1 Answer 1

Reset to default 9

Just confirmed the problem is either Sequelize / mysql in conjunction with Node 4.2.0 after manually re-installing 4.1.1 my problems went away.

Downgrade to Node 4.1.x or wait for a patch/fix/etc to solve your issues.

Additional Information

The bug has been reported here on the node-mysql repository issue tracker. Seems someone regressed something in Node 4.2.0 and it wasn't caught. Here's the pull request to fix it which was merged in and is in the candidate for 4.2.1.

Update Oct 13th, 2015

Node 4.2.1 was just released (Changelog) containing the aforementioned fix. Upgrading to 4.2.1 should also fix your problems.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744133941a4559967.html

相关推荐

  • javascript - Sequelize connection error - Stack Overflow

    I'm trying to transfer my application to a new machine. It works on the old machine perfectly, and

    8天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信