Cannot access to UI due to influxdb misconfiguration

#1

Hello,
I had to reinstall influxdb but unfortunately I forgot to update node-red-contrib-influxdb nodes so now I am not able to access to nodered UI.
Looking at logs it tells:

at new RequestError (/data/node_modules/influx/lib/src/pool.js:52:28)
at IncomingMessage.<anonymous> (/data/node_modules/influx/lib/src/pool.js:62:53)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1047:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)
12 Feb 14:56:02 - [error] [influxdb out:3de57654.f35602] Error: A 401 Unauthorized error occurred: {"error":"authorization failed"}

So I tried to remove node-red-contrib-influxdb but now the logs tells:

12 Feb 14:56:17 - [info]

Welcome to Node-RED
===================

    12 Feb 14:56:17 - [info] Node-RED version: v0.19.5
    12 Feb 14:56:17 - [info] Node.js  version: v8.1.3
    12 Feb 14:56:17 - [info] Linux 4.14.94-v7+ arm LE
    12 Feb 14:56:18 - [info] Loading palette nodes
    12 Feb 14:56:33 - [info] Dashboard version 2.13.2 started at /ui
    12 Feb 14:56:34 - [warn] Missing node modules:
    12 Feb 14:56:34 - [warn]  - node-red-contrib-influxdb (0.2.2): influxdb, influxdb out, influxdb batch, influxdb in
    12 Feb 14:56:34 - [info] Removing modules from config
    12 Feb 14:56:34 - [info] Settings file  : /data/settings.js
    12 Feb 14:56:34 - [info] Context store  : 'default' [module=memory]
    12 Feb 14:56:34 - [info] User directory : /data
    12 Feb 14:56:34 - [info] Server now running at http://127.0.0.1:1880/
    12 Feb 14:56:35 - [info] Active project : node-RED
    12 Feb 14:56:35 - [info] Flows file     : /data/projects/node-RED/flows.json
    12 Feb 14:56:35 - [info] Waiting for missing types to be registered:
    12 Feb 14:56:35 - [info]  - influxdb
    12 Feb 14:56:35 - [info]  - influxdb out

and in the same way the UI is unaccessible:

Is there any way to fix this?

0 Likes

#2

Missing nodes should not stop the ui from running. Have you tried refreshing the browser?

0 Likes

#3

You should be able to reinstall them from the command line
cd .node-red
npm install

0 Likes

#4

I was using firefox under Windows and I got the blank UI.
Then I am using safari and all looks right... I had to better investigate the issue

0 Likes

#5

Yes I did it!

0 Likes