Flows stopped as the credentials could not be decrypted. The flow credential file is encrypted

3,472 views
Skip to first unread message

shykitten55

unread,
May 3, 2018, 6:56:16 PM5/3/18
to Node-RED
I'm looking on google too, but this is weird.....

Story:
I have updated two machines recently (both "remote" machines) and they worked.  Though one did lose all its flows.   But all the same, they worked.

Today I updated another machine.   It is a remote machine.
Before doing it, I backed up the *.j* files from the .node-red directory (Ras Pi)

It updated.   Good.

The flow seems to be working as I am getting telemetry from it.

I load the node red web page and get the error in the subject.
(Full error:   

Flows stopped as the credentials could not be decrypted.

The flow credential file is encrypted, but the project's encryption key is missing or invalid)

The files copied are plain text.    I can cat them with no problem.

When I click on the requester I get a credential set up window.
(See attached)
But what was shown to "set up credentials" and the screen given are .....  not the same.
The new screen is "project settings" and doesn't really mention credentials.


Extra:
After the update I ran the node-red-start and got this:
Start Node-RED
 
Once Node-RED has started, point a browser at http://192.168.0.93:1880
On Pi Node-RED works better with the Firefox or Chrome browser
 
Use   node-red-stop                          to stop Node-RED
Use   node-red-start                         to start Node-RED again
Use   node-red-log                           to view the recent log output
Use   sudo systemctl enable nodered.service  to autostart Node-RED at every boot
Use   sudo systemctl disable nodered.service to disable autostart on boot
 
To find more nodes and example flows - go to http://flows.nodered.org
 
Starting as a systemd service.
Started Node-RED graphical event wiring tool..
4 May 08:30:32 - [info]
Welcome to Node-RED
===================
4 May 08:30:32 - [info] Node-RED version: v0.18.4
4 May 08:30:32 - [info] Node.js  version: v8.11.1
4 May 08:30:32 - [info] Linux 4.9.52+ arm LE
4 May 08:30:40 - [info] Loading palette nodes
4 May 08:30:57 - [info] Dashboard version 2.5.0 started at /ui
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named neopixel
4 May 08:31:03 - [warn] ------------------------------------------------------
4 May 08:31:03 - [warn] [node-red-contrib-gpio/gpio] Error: The module '/home/pi/.node-red/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
4 May 08:31:03 - [warn] [node-red-node-serialport/serialport] Error: The module '/home/pi/.node-red/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
4 May 08:31:03 - [warn] [node-red-node-pi-neopixel/rpi-neopixels] Error: Command failed: python -c "import neopixel"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named neopixel
 (line:18)
4 May 08:31:03 - [warn] ------------------------------------------------------
4 May 08:31:03 - [info] Settings file  : /home/pi/.node-red/settings.js
4 May 08:31:03 - [info] User directory : /home/pi/.node-red
4 May 08:31:03 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
4 May 08:31:03 - [info] Flows file     : /home/pi/.node-red/flows_TelePi.json
4 May 08:31:03 - [info] Server now running at http://127.0.0.1:1880/
4 May 08:31:04 - [warn] Error loading credentials: SyntaxError: Unexpected token L in JSON at position 0
4 May 08:31:04 - [warn] Error loading flows: Error: Failed to decrypt credentials

^C


Where it says:
4 May 08:31:03 - [info] Settings file  : /home/pi/.node-red/settings.js
4 May 08:31:03 - [info] User directory : /home/pi/.node-red
4 May 08:31:03 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable

I went into settings.js and searched for "editorTheme.projects"
Not found.

Errr, ok.  I'm stuck.


BTW:
The original flow seems to be working.

I am still getting telemetry from the machine.

Screenshot from 2018-05-04 08-51-29.png

Nick O'Leary

unread,
May 3, 2018, 7:38:15 PM5/3/18
to node...@googlegroups.com
Hi,


Short answer, you need to delete your credentials file (flows_something_creds.json in /home/pi/.node-red), restart NR and re-enter any credentials you had configured in nodes.

The fact the editor UI talks about Projects is a bug we have fixed for the next release. Do not do anything to enable projects at this point in time.

Nick

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/0eeefb96-21d8-4409-9879-c0c94636df83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cat

unread,
May 3, 2018, 9:17:07 PM5/3/18
to node...@googlegroups.com
{{Thanks}}

It isn't that I like asking all these questions.

Just when I am "shaving one yak", I don't like another dozen or so come along also wanting to be shaved.


To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/0eeefb96-21d8-4409-9879-c0c94636df83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/pXRUbR2SMjE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
Reply all
Reply to author
Forward
0 new messages