# Node red automatic reboot if that suddenly shutdown

**URL:** <https://discourse.nodered.org/t/node-red-automatic-reboot-if-that-suddenly-shutdown/42229>\
**Category:** General\
**Created:** [7 March 2021 22:32 UTC](https://discourse.nodered.org/t/node-red-automatic-reboot-if-that-suddenly-shutdown/42229 "2021-03-07T22:32:36Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![mac5562](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mac5562/32/34943_2.png) [@mac5562](https://discourse.nodered.org/u/mac5562)\
**Post date:** [8 March 2021 21:06 UTC](https://discourse.nodered.org/t/node-red-automatic-reboot-if-that-suddenly-shutdown/42229/10 "2021-03-08T21:06:54Z")

</div>

I already wrote about that here:

> [@Uncaught exception from mysql nodes](https://discourse.nodered.org/t/uncaught-exception-from-mysql-nodes/41732):
>
> Hi ! Is there anyone, who has some experience with the mysql node? My problem the whole node-red randomly shutting down thanks to a uncaught exception, which caused by the mysql node. Here it is a screenshoot, about what exactly happend. Someone know how the fix that ? Because it's very anoing problem, and thanks for that the whole system is unstable.

And i opened a issue thread on node red's github page.

> <https://github.com/node-red/node-red-nodes/issues/763>
>
> Hi !
> 
> Randomly i got a unhandled exception form mysql node. Here is what i got… from console:
> 
> 27 Feb 16:31:45 - \[red\] Uncaught Exception: 
> 27 Feb 16:31:45 - Error: Connection lost: The server closed the connection. 
> at Protocol.end (C:\\Users\\tamas\\.node-red\\node modules\\mysql\\lib\\protocol\\Protocol.js:112:13) 
> at Socket.tanonymoust (C:\\Users\\tamas\\.node-red\\node modules\\mysql\\lib\\Connection.js:94:20 
> at Socket.\<anonymous\> (C:\\Users\\tamas\\.node-red\\node modules\\mysql\\lib\\Connection.js:526:10) 
> at Socket.emit (events.js:326:22) 
> at endReadableNT (\_stream\_readable.js:1223:12) 
> at processTicksAndRejections (internal/process/task queues.js:84:21) 
> 
> Can you help me?
> 
> \- \[\] Node-RED version: 1.2.7
> \- \[\] node.js version: v12.19.0
> \- \[\] npm version: 6.14.8
> \- \[\] Platform/OS: Windows\_NT 10.0.19042 x64 LE
> \- \[\] Browser: chrome 88.0.4324.190 64 bit

---

_[View the full topic](https://discourse.nodered.org/t/node-red-automatic-reboot-if-that-suddenly-shutdown/42229)._
