# NODE RED ERROR : The server wont start so I cant view the flow, I suspect a change I performed last night

**URL:** <https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [18 March 2022 08:01 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021 "2022-03-18T08:01:43Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [19 March 2022 07:21 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/21 "2022-03-19T07:21:01Z")

</div>

> [@Evan7](#):
>
> Should I try uninstalling and reinstalling node-red

No. That is not necessary & probably won't help.

- Rename `.node-red` to `.node-red-broken`
- Start node-red. - you should have a working, fresh/blank node-red
- install the nodes you need from palette
- Import your backup flow

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [19 March 2022 07:34 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/22 "2022-03-19T07:34:17Z")

</div>

Oh like that, so its a new installation

---

<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:** [19 March 2022 08:02 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/23 "2022-03-19T08:02:04Z")

</div>

Not really, you are not re-installing node red, just starting with a new empty flow and default settings. Same as opening a word document with a blank page.

You could try setting the logging level in settings.js to trace. That might give useful info.

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [19 March 2022 08:49 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/24 "2022-03-19T08:49:17Z")

</div>

That's a helpful explanation, thank you. I got my flow running again BUT my main issue, which was the cause of this problem : is the UI table component. I am looking for a control to show whats in my database, something like a data table. Any suggestions ?

---

<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:** [19 March 2022 09:03 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/25 "2022-03-19T09:03:03Z")

</div>

> [@Evan7](#):
>
> I got my flow running again

So that others can learn from your experience please tell us what you did to fix it.  
If you mean the ui-table is causing problems then please tell us exactly in what way. That component is well tried and tested and very much used, so if there are any problems then I am sure the author will want to address them.

> [@Evan7](#):
>
> I am looking for a control to show whats in my database, something like a data table

The ui-table widget is what you want for this.

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [19 March 2022 19:10 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/26 "2022-03-19T19:10:41Z")

</div>

So as per @Steve-Mcl advice I recovered my flow from the backup ".flow.JSON.backup" file after I started with a fresh instance of node-red, I simply imported it from the menu. So it was not a fix ,it was a role back to before I attempted the UI table that solved it.

Now on to the problem I was at when my node-red server got corrupted.

 ![UI Table not populating](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/14c8de90ef10293e1be5831b9d8a42abe3c48132.png)

I want to show the values which were successfully saved in the database using the object that is returned from the DB node. What you see is the edit node of UI table.

 ![UI](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/e/1e91b046d5250f1d66aa6d5387f0144f14e0cf56.png)

---

<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:** [19 March 2022 20:43 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/27 "2022-03-19T20:43:05Z")

</div>

You need to show us what you are sending to the table.

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [20 March 2022 07:31 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/28 "2022-03-20T07:31:38Z")

</div>

![UI Table not populating - 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b347279a2349d21b83be41516a439393601246f6.png)

The same thing going into the debug node is what will flow to the UI table. Is there a way to extract the values and populate the table from the returned object?

---

<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:** [20 March 2022 08:16 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/29 "2022-03-20T08:16:33Z")

</div>

Expand the debug output so we can see what is in there. Click on Object to do that.  
What does the help text for the ui-table say about what it needs to populate it?

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [20 March 2022 08:53 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/30 "2022-03-20T08:53:05Z")

</div>

when I click nothing comes up, it's just a text is shown in the debug window.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 March 2022 09:08 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/31 "2022-03-20T09:08:31Z")

</div>

Edit the debug node and click the `Output` msg tab and select `complete msg object`

---

<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:** [20 March 2022 09:21 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/32 "2022-03-20T09:21:24Z")

</div>

> [@Evan7](#):
>
> it's just a text is shown in the debug window

In that case I think that string is what is in the database. I think you had better look in the db to see what is there. Unless the db node passes the result in a different message property, which you will see following @zenofmud's suggestion.

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [20 March 2022 09:32 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/33 "2022-03-20T09:32:55Z")

</div>

![complete bug message](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/327ba0273b690cdb228af3540dff8c93cb76eefa.png)

He we go.

@Colin the values are saved to the database, no issue there.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [20 March 2022 10:26 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/34 "2022-03-20T10:26:10Z")

</div>

That debug is showing you are doing an `insert` Not a `select` to retrieve data

---

<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:** [20 March 2022 10:30 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/35 "2022-03-20T10:30:31Z")

</div>

What are you trying to show in the table? If you want to show all the data from the db then you will have to run an sql query to fetch it. If you are just trying to show the data that you are inserting then feed the ui-table with the data, not with the output of the db node.

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [20 March 2022 13:18 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/36 "2022-03-20T13:18:17Z")

</div>

My mistake, I assumed that when I saw the "object" it was confirming what was saved and that I could use the data to populate.

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [20 March 2022 13:31 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/37 "2022-03-20T13:31:36Z")

</div>

![extract data](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/2/b225baa0ac4bb3690c55b31003457fe62e46b486.png)

 ![extract data - 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/40a42c30312bc038d2572cc18bcb052c59584a88.png)

@Colin @zenofmud, looking at this flow can you show me how to populate the UI table with the object data shown in the debug window.

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [20 March 2022 15:15 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/38 "2022-03-20T15:15:42Z")

</div>

@Steve-Mcl@meeki007 can you guys help with this?

---

<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:** [20 March 2022 17:25 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/39 "2022-03-20T17:25:03Z")

</div>

the ui-table will just accept an array by default... but13434 entries is probably a bit larger than is useful to try and display - so maybe your sql select could be changed to only return the latest 10-20 ?

---

<div class="post-metadata">

**Author:** ![Evan7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/evan7/32/64141_2.png) [@Evan7](https://discourse.nodered.org/u/Evan7)\
**Post date:** [20 March 2022 17:37 UTC](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021/40 "2022-03-20T17:37:56Z")

</div>

Sure but, have you looked at my edit node, is the setup correct, is my style of referencing correctly to draw in the data. @dceejay

[Previous page](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021.md?page=1)

[Next page](https://discourse.nodered.org/t/node-red-error-the-server-wont-start-so-i-cant-view-the-flow-i-suspect-a-change-i-performed-last-night/60021.md?page=3)
