Skip to content

I have a "Connection lost: The server closed the connection." error, please help! #897

@DmitriySheludko

Description

@DmitriySheludko

Hello!

I have an application that use ActionHeroJS + ah-sequelize-plugin + Sequelize ORM + node-mysql.

Sometimes, in realy random times, i see this error:

{"level":"error","message":"! uncaught error from task: Cannot read property 'class' of null on queue default","timestamp":"2014-08-28T00:29:28.572Z"}
{"level":"error","message":"! Error: Connection lost: The server closed the connection.","timestamp":"2014-08-28T00:29:28.572Z"}
{"level":"error","message":"!     at Protocol.end (/var/soft/kidguard-api/node_modules/mysql/lib/protocol/Protocol.js:103:13)","timestamp":"2014-08-28T00:29:28.572Z"}
{"level":"error","message":"!     at Socket.<anonymous> (/var/soft/kidguard-api/node_modules/mysql/lib/Connection.js:88:28)","timestamp":"2014-08-28T00:29:28.572Z"}
{"level":"error","message":"!     at Socket.emit (events.js:117:20)","timestamp":"2014-08-28T00:29:28.572Z"}
{"level":"error","message":"!     at _stream_readable.js:929:16","timestamp":"2014-08-28T00:29:28.572Z"}
{"level":"error","message":"!     at process._tickDomainCallback (node.js:463:13)","timestamp":"2014-08-28T00:29:28.572Z"}
{"level":"error","message":"*","timestamp":"2014-08-28T00:29:28.572Z"}

And after this error my system stops sending requests to mysql at all. If i request any method that uses mysql - request freezes.

Please help to fix this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions