# Node-red-dashboard upgrade - Lost my nodes

**URL:** https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649
**Category:** Dashboard
**Created:** [10 December 2018 18:28 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649 "2018-12-10T18:28:27Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 18:28 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/1 "2018-12-10T18:28:28Z")

</div>

I'm running Node-red on a Ubuntu laptop.

Upgrade toda to Node-red 0.19.5 and to Node-red-dashboard 2.12.2 -\> result I lost my dashboards nodes so my /ui is completely unusable.

This is the message when I open Node-red  
Flows stopped due to missing node types.

- ui\_base
- ui\_chart
- ui\_audio
- ui\_gauge
- ui\_switch
- ui\_numeric
- ui\_text  
And I have lost the structure of the UI in the dashboard tab.

I tried to disinstall Node-red-Dashoard and install previous version, but same result !

Any clue ?  
tks  
Marcello

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 December 2018 18:36 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/2 "2018-12-10T18:36:35Z")

</div>

Hi

What steps did you take to upgrade?

Does the Node-RED log show any other errors relating to dashboard when it starts up?

Have you got any other dashboard-related modules installed such as `node-red-contrib-mdashboard` or `node-red-contrib-ui`?

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 19:49 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/3 "2018-12-10T19:49:33Z")

</div>

tks or the answer,

I have very few add on ... I have contrib\_ui\_list, that could be related.

First step I upgraded node-red-dashboard from the Palette and went up to 2.12.2. I had to restart Node-red and when I reopen the interface I got the error and all my nodes were gray-out.

At that point I upgraded the Node-Red to 0.19.5, but the situation didn't change.

At that point I tried to get back with previous version of Node-red-Dashboard, but the situation is the same.

I don't see a log file of Node-red. Where is it ?  
tks  
Marcello

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 December 2018 19:53 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/4 "2018-12-10T19:53:54Z")

</div>

> [@marci144](#):
>
> I don't see a log file of Node-red. Where is it ?

That will depend on how you are running Node-RED. If you are running on a Pi having used our update script, you ought to have a `node-red-log` command.

Otherwise, it will be wherever the output of node-red is being captured by whatever you are using to run node-red.

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 20:04 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/5 "2018-12-10T20:04:14Z")

</div>

I run on an Ubuntu Linux. In the .node-red directory I don't see any log file...

I reboot the Linux bos to restart Node-red ... Yes a bit brutal, but it is the only reliable option I found.

I have a recent backup of the Node-red configuration. Does it make sense to reinstall Node-red from scratch a reinstall the configuration ?

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [10 December 2018 20:34 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/6 "2018-12-10T20:34:03Z")

</div>

> [@marci144](#):
>
> I run on an Ubuntu Linux. In the .node-red directory I don't see any log file...

No, you won't.  
SSH into your installation and try typing `node-red-log`, and the log will be printed to your SSH client.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 December 2018 20:40 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/7 "2018-12-10T20:40:04Z")

</div>

But _how_ do you run Node-RED? What do you do to get Node-RED started? Is it running a service? Do you manually run 'node-red' in a terminal?

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 20:56 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/8 "2018-12-10T20:56:02Z")

</div>

Yes Node-red in run as a service on the UBUNTU  
and NO node-red-log is not installed. I believe is only installed on PI

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 21:00 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/9 "2018-12-10T21:00:20Z")

</div>

UPDATE

i tried to launch node-red knowing that it would have failed because the program was already running .... But i received some interesting info on the terminal:

10 Dec 21:56:37 - [warn] [node-red-dashboard/ui\_audio] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mod e  
10 Dec 21:56:37 - [warn] [node-red-dashboard/ui\_base] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode  
10 Dec 21:56:37 - [warn] [node-red-dashboard/ui\_button] SyntaxError: Block-scope d declarations (let, const, function, class) not yet supported outside strict mo de  
10 Dec 21:56:37 - [warn] [node-red-dashboard/ui\_chart] SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mod e  
10 Dec 21:56:37 - [warn] [node-red-dashboard/ui\_colour\_picker] SyntaxError: Bloc k-scoped declarations (let, const, function, class) not yet supported outside st rict mode

.... All errors related to the Dashboard nodes !!  
Does it help?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 December 2018 21:01 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/10 "2018-12-10T21:01:42Z")

</div>

> [@marci144](#):
>
> I believe is only installed on PI

It would depend how you set it up to run as a service. If you had used the Pi install script, that works on Ubuntu, then you would have the `node-red-log` command.

So, if it is installed as a service, you can probably use:

```auto
sudo journalctl -f -u nodered -o cat

```

but you may need to change `nodered` for whatever you have the service named as.

Seeing your updated message with `Block-scoped declarations` messages... that means you are running too old a version of node.js. You should upgrade to Node 8.

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 21:08 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/11 "2018-12-10T21:08:13Z")

</div>

Node.js version v4.2.6

output from Journalctl

## marcello@mqtt:~$ sudo journalctl -f -u node-red.service -o cat file using your chosen key the next time you deploy a change.

10 Dec 19:08:32 - [info] Waiting for missing types to be registered:  
10 Dec 19:08:32 - [info] - ui\_base  
10 Dec 19:08:32 - [info] - ui\_chart  
10 Dec 19:08:32 - [info] - ui\_audio  
10 Dec 19:08:32 - [info] - ui\_gauge  
10 Dec 19:08:32 - [info] - ui\_switch  
10 Dec 19:08:32 - [info] - ui\_numeric  
10 Dec 19:08:32 - [info] - ui\_text

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 December 2018 21:09 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/12 "2018-12-10T21:09:20Z")

</div>

> [@marci144](#):
>
> Node.js version v4.2.6

Yup, 4.2.6 is too old. Node 4 is no longer maintained or receiving security fixes. You need to upgrade.

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 21:14 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/13 "2018-12-10T21:14:15Z")

</div>

remove the old-one first ??? sudo apt-get remove nodejs

and then install the new one : sudo apt-get -y install nodejs

Or could I leave the old one there ?

And why node.js has not been installed when I do the regular update of the Linux box ?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 December 2018 21:26 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/14 "2018-12-10T21:26:58Z")

</div>

It depends where you're getting node.js from. The version in the ubuntu repos is probably stuck back on that old version. You will need to add a more up to date source for it to get node 8 - [https://github.com/nodesource/distributions/blob/master/README.md#deb](https://github.com/nodesource/distributions/blob/master/README.md#deb)

---

<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: [10 December 2018 21:27 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/15 "2018-12-10T21:27:30Z")

</div>

> [@marci144](#):
>
> why node.js has not been installed when I do the regular update of the Linux box ?

Because the version of node.js installed with Ubuntu is old.  
The easiest way of making sure you have a consistent set of tools on a Debian based system such as Ubuntu is to use the install/upgrade script for the Pi.  
[https://nodered.org/docs/hardware/raspberrypi](https://nodered.org/docs/hardware/raspberrypi)

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 21:38 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/16 "2018-12-10T21:38:07Z")

</div>

Upgraded to 6.15.1!!

And voila ! Problem solved !!  
So, I learnt that I have to keep node.js update manually

Many tks,  
My Node-red is monitoring and managing my heating system ... Let me say that in this period is quite critical.

Tks a lot  
Marcello

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [10 December 2018 21:59 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/17 "2018-12-10T21:59:07Z")

</div>

You do realise that Node.js v6 is close to being at the end of support as well?

> **[nodejs/Release](https://github.com/nodejs/Release#release-schedule)**
>
> Node.js Foundation Release Working Group. Contribute to nodejs/Release development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [10 December 2018 22:01 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/18 "2018-12-10T22:01:30Z")

</div>

Better plan for a V8 migration !

---

<div class="post-metadata">

### Author: ![fritserasmus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fritserasmus/32/274_2.png) [@fritserasmus](https://discourse.nodered.org/u/fritserasmus)
#### Post date: [6 May 2020 09:40 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/19 "2020-05-06T09:40:01Z")

</div>

Marc,

Did you run the RPi istall as Colin suggested?  
If not can you perhaps post the link / command , I am in the same boat here.

---

<div class="post-metadata">

### Author: ![marci144](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marci144/32/21344_2.png) [@marci144](https://discourse.nodered.org/u/marci144)
#### Post date: [6 May 2020 09:55 UTC](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649/20 "2020-05-06T09:55:32Z")

</div>

I was running NodeRed directly on an Ubuntu PC.

Now I have it integrated in HassIO, so a lot of manintenance problems are gone.

[Next page](https://discourse.nodered.org/t/node-red-dashboard-upgrade-lost-my-nodes/5649.md?page=2)
