# Node red not starting due to Uncaught Exception

**URL:** https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571
**Category:** General
**Created:** [31 May 2020 14:20 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571 "2020-05-31T14:20:18Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![eddy23](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@eddy23](https://discourse.nodered.org/u/eddy23)
#### Post date: [31 May 2020 14:20 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/1 "2020-05-31T14:20:18Z")

</div>

I was exploring the sqlite node that I installed. I did not do much with it except to create a test database. after sometime i wasn't able to connect to my node-red server. See attached:

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/74ae00553fe76d3557030b48451f5b714d22cceb.jpeg)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [31 May 2020 14:24 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/2 "2020-05-31T14:24:15Z")

</div>

So this can happen when a contrib node doesn't handle errors correctly.

You can start node-red in safe mode by entering `node-red --safe`

This will allow it to start-up (but not running) and permit you to fixup or remove the node causing the error. Your flows will run once you deploy changes.

It would be in the interest of everyone if you report this error on the GitHub repositorys' issues page - will you do that?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [31 May 2020 14:36 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/3 "2020-05-31T14:36:12Z")

</div>

There should be more than that in the log. I don't think it is the sqlite node crashing, it is whatever is trying to use port 8080.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [31 May 2020 14:49 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/4 "2020-05-31T14:49:50Z")

</div>

I went on the fact there was an uncaught exception immediately after opening sqlite. It'd be the first place I'd look.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [31 May 2020 14:54 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/5 "2020-05-31T14:54:41Z")

</div>

That would not be using that port would it? Sqlite is direct file access I think.  
Normally there is a full stack trace from node-red which often shows the node, though I don't use Windows so don't know if that is the case in Windows.

---

<div class="post-metadata">

### Author: ![eddy23](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@eddy23](https://discourse.nodered.org/u/eddy23)
#### Post date: [31 May 2020 15:06 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/6 "2020-05-31T15:06:05Z")

</div>

Thank you for the quick response. I have tried running node-red --safe and was able to login to my node-red program.  
However, after removing the sqlite node I am still unable to run node-red.

 ![Capture1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dc60fa46d49595be7bfd53c09b23fa8163768cef.jpeg)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [31 May 2020 15:09 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/7 "2020-05-31T15:09:49Z")

</div>

What are you using that tries to connect to port 8080 of something?  
Is there really nothing after the connect error message and the first line of the trace?

Edit - If you don't know, you could try using Search in node-red to search for 8080 and see if it finds anything.

---

<div class="post-metadata">

### Author: ![eddy23](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@eddy23](https://discourse.nodered.org/u/eddy23)
#### Post date: [31 May 2020 15:12 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/8 "2020-05-31T15:12:22Z")

</div>

I have checked via TCPView if anything is trying to connect to port 8080 but there is nothing.

There is nothing after the connect error message.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [31 May 2020 15:13 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/9 "2020-05-31T15:13:46Z")

</div>

> [@eddy23](#):
>
> if anything is trying to connect to port 8080 but there is nothing.

Yes there is, something in your flow is trying to connect to 8080 on the local machine and is failing.

Did you try the Search?

---

<div class="post-metadata">

### Author: ![eddy23](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@eddy23](https://discourse.nodered.org/u/eddy23)
#### Post date: [31 May 2020 15:17 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/10 "2020-05-31T15:17:35Z")

</div>

May I know how i can use this search?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [31 May 2020 15:22 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/11 "2020-05-31T15:22:25Z")

</div>

Ctrl+F or Hamburger menu \> Search Flows

---

<div class="post-metadata">

### Author: ![eddy23](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@eddy23](https://discourse.nodered.org/u/eddy23)
#### Post date: [31 May 2020 15:30 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/12 "2020-05-31T15:30:11Z")

</div>

You got it right on the dot. Thanks Colin.

 ![sa](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/2/22e77f895db2333b793dad74da08293e64d42cb6.jpeg)

I tried to use a motion node and i did not realise that it was trying to connect to port 8080. As requested, i searched for 8080 in Ctrl+F or Hamburger menu \> Search Flows, and realised that the motion node was trying to connect to port 8080. I have removed the node. But i am still receiving the error message as shown in the screenschot.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [31 May 2020 15:36 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/13 "2020-05-31T15:36:35Z")

</div>

go to the (hamburger) menu - Configuration Nodes - then find the unused motion node one - and delete that as well - and re-deploy, then it should be ok.

---

<div class="post-metadata">

### Author: ![eddy23](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@eddy23](https://discourse.nodered.org/u/eddy23)
#### Post date: [31 May 2020 15:42 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/14 "2020-05-31T15:42:01Z")

</div>

Perfect. Thank you so much everyone. As requested, I shall post this on Github too.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [30 July 2020 15:42 UTC](https://discourse.nodered.org/t/node-red-not-starting-due-to-uncaught-exception/27571/15 "2020-07-30T15:42:06Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
