After upgrading node-red my dashboard is loading just a blank page. Interestingly, the UI-page loads and works fine. I have read other threads here and tried the following:
flushing the cache
using another browser
running it in incognito mode
hitting F12 during startup. Here it seems that all is loading well except for "comms" which stays on "pending" and does not load anything
@Colin, thanks for chiming in. I have node-red installed on a Raspberry Pi (Linux RaspiCNXHome 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l). The upgrade was done on the dashboard (palette) and node-red version 0.20.5 seems to be the latest which is being offered.
I upgraded yesterday the dashboard from dashboard 2.17.0 to .1 but the problem remains the same
How did you install node-red? To upgrade node-red you can use the script provided in the docs for running on a Pi.
That will not necessarily fix whatever the problem is, but will at least make sure you are up to date.
Thanks Colin. I installed it from some description I have found here, but it is half a year ago and do not remember the details. Will see in the docs now on how to upgrade with the script and report back
I have a backup of the entire SD-card in the Raspberry Pi and wondering if it will be easy enough to restore. Well, for right now I am running out of options and don´t know how to get the dashboard back
I had a look in the browser console and it is still the "comms" file which is not loading. This is suspicious, I would say but I don´t know what needs to be done so it will load correctly.
I’m by no means an expert, but had the same issue with latest dashboard on node-red 0.20, and had to update my nodejs and npm to get to update node-red itself (old npm wouldn’t work). So then I had to rebuild all the old node_modules too or else they wouldn’t all work. If you don’t have errors in the debug window in node-red it might not be it though.
Also I had to redo the configuration on several dashboard components after dashboard update.
Also check whether you upgraded node-red with the same user you previously ran node-red as.
Oct 16 04:56:28 RaspiCNXHome bash[468]: [+] 0.2.197 16-10-2019 04:56:28 AM [CMD-NAME] 94:65:2D:2C:43:EC OnePlus 3T Unknown
Oct 16 04:56:28 RaspiCNXHome bash[468]: [+] 0.2.197 16-10-2019 04:56:28 AM [CMD-MQTT] cnx/monitor/raspi_monitor/oneplus { ... confidence : 10
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: 16 Oct 04:56:34 - [red] Uncaught Exception:
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: 16 Oct 04:56:34 - TypeError: Cannot read property 'warn' of undefined
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at /home/pi/.node-red/node_modules/node-red-contrib-mdashboard/nodes/ui_base.js:93:29
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at /usr/lib/node_modules/node-red/node_modules/express/lib/response.js:434:22
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at SendStream.onerror (/usr/lib/node_modules/node-red/node_modules/express/lib/response.js:1044:5)
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at SendStream.emit (events.js:198:13)
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at SendStream.error (/usr/lib/node_modules/node-red/node_modules/send/index.js:270:17)
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at SendStream.onStatError (/usr/lib/node_modules/node-red/node_modules/send/index.js:421:12)
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at onstat (/usr/lib/node_modules/node-red/node_modules/send/index.js:726:26)
Oct 16 04:56:34 RaspiCNXHome Node-RED[373]: at FSReqWrap.oncomplete (fs.js:153:21)
Oct 16 04:56:40 RaspiCNXHome systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE
Oct 16 04:56:40 RaspiCNXHome systemd[1]: nodered.service: Unit entered failed state.
Oct 16 04:56:40 RaspiCNXHome systemd[1]: nodered.service: Failed with result 'exit-code'.
Oct 16 04:56:40 RaspiCNXHome systemd[1]: nodered.service: Service hold-off time over, scheduling restart.
Oct 16 04:56:40 RaspiCNXHome systemd[1]: Stopped Node-RED graphical event wiring tool.
Oct 16 04:56:40 RaspiCNXHome systemd[1]: Started Node-RED graphical event wiring tool.