• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Node RED login fails

Q&A Forum › Node RED login fails
-1 Vote Up Vote Down
David Panetta asked 3 years ago
I am working through the new Smart Home course and have run into a problem. In module 2 – I have gotten node red up and running, the browser bring the web page up like it is supposed to, but when I try to log in it fails. I have been writing things down in a notebook so I think I have the correct user and password.
Should I go back to the init step and redo the node red setup? or is there another way?
7 Answers
0 Vote Up Vote Down
David Panetta answered 3 years ago

Sorry, question in wrong place

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
 
No, it’s not in the wrong place.
 
I think you might be using a different username and password from the one you set up initially. It is better to try to set up everything from the start.
 
Regards.
Sara

0 Vote Up Vote Down
David Panetta answered 3 years ago

Thanks, I suspect I missed something while doing the init. I had to enlarge the text for the book AND the pi window then I saw that the script would remove any old version – so I just started over.
Thanks again

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Ok.
Great. Then, let us know if the issue is solved.
Regards,
Sara

0 Vote Up Vote Down
David Panetta answered 3 years ago

Well Sara, I tried 3 or 4 times doing the complete sequence and when I bring up the login screen on my browser the login still fails – I have been very careful with my user and password creation and input to the login screen.
Perplexed – I did a screen copy of my session with a log at the end. Hopefully you will see my error.
(remember that since this has been done multiple times, it doesn’t get any new downloads)

ALSO note that when starting node red, (after waiting 15 min) I get the

Starting as a systemd service. message, buy have to control C to do the log, but the web page does come up on my browser.

login as: pi
pi@raspberrypi’s password:
Linux raspberrypi 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Sep 24 12:22:04 2022
pi@raspberrypi:~ $ ~
-bash: /home/pi: Is a directory
pi@raspberrypi:~ $ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.233: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.
^C
pi@raspberrypi:~ $
pi@raspberrypi:~ $ node-red admin init
Node-RED Settings File initialisation
=====================================
This tool will help you create a Node-RED settings file.
✔ Settings file · /home/pi/.node-red/settings.js
✔ That file already exists. Are you sure you want to overwrite it? · Yes
User Security
=============
✔ Do you want to setup user security? · Yes
✔ Username · user
✔ Password · ********
✔ User permissions · full access
✔ Add another user? · No
Projects
========
The Projects feature allows you to version control your flow using a local git repository.
✔ Do you want to enable the Projects feature? · No
Flow File settings
==================
✔ Enter a name for your flows file · flows.json
✔ Provide a passphrase to encrypt your credentials file · ***************
Editor settings
===============
✔ Select a theme for the editor. To use any theme other than “default”, you will need to install @node-red-contrib-themes/theme-collection in your Node-RED user directory. · default

✔ Select the text editor component to use in the Node-RED Editor · monaco (default)

Node settings
=============
✔ Allow Function nodes to load external modules? (functionExternalModules) · Yes

Settings file written to /home/pi/.node-red/settings.js
pi@raspberrypi:~ $ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.233: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.
pi@raspberrypi:~ $ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.233: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.
^C
pi@raspberrypi:~ $
pi@raspberrypi:~ $ node-red admin init
Node-RED Settings File initialisation
=====================================
This tool will help you create a Node-RED settings file.
✔ Settings file · /home/pi/.node-red/settings.js
✔ That file already exists. Are you sure you want to overwrite it? · Yes
User Security
=============
✔ Do you want to setup user security? · Yes
✔ Username · user
✔ Password · ********
✔ User permissions · full access
✔ Add another user? · No
Projects
========
The Projects feature allows you to version control your flow using a local git repository.
✔ Do you want to enable the Projects feature? · No
Flow File settings
==================
✔ Enter a name for your flows file · flows.json
✔ Provide a passphrase to encrypt your credentials file · ***************
Editor settings
===============
✔ Select a theme for the editor. To use any theme other than “default”, you will need to install @node-red-contrib-themes/theme-collection in your Node-RED user directory. · default

✔ Select the text editor component to use in the Node-RED Editor · monaco (default)

Node settings
=============
✔ Allow Function nodes to load external modules? (functionExternalModules) · Yes

Settings file written to /home/pi/.node-red/settings.js
pi@raspberrypi:~ $ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.233: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.
^C
pi@raspberrypi:~ $ node-red-log

24 Sep 11:35:09 – [info] Server now running at http://127.0.0.1:1880/
Stopping Node-RED graphical event wiring tool…
24 Sep 12:12:26 – [info] Stopping flows
24 Sep 12:12:26 – [info] Stopped flows
nodered.service: Succeeded.
Stopped Node-RED graphical event wiring tool.
nodered.service: Consumed 6.034s CPU time.
Started Node-RED graphical event wiring tool.
24 Sep 12:22:03 – [info]
Welcome to Node-RED
===================
24 Sep 12:22:03 – [info] Node-RED version: v3.0.2
24 Sep 12:22:03 – [info] Node.js version: v16.17.1
24 Sep 12:22:03 – [info] Linux 5.15.61-v8+ arm64 LE
24 Sep 12:22:07 – [info] Loading palette nodes
24 Sep 12:22:10 – [info] Settings file : /home/pi/.node-red/settings.js
24 Sep 12:22:10 – [info] Context store : ‘default’ [module=memory]
24 Sep 12:22:10 – [info] User directory : /home/pi/.node-red
24 Sep 12:22:10 – [warn] Projects disabled : editorTheme.projects.enabled=false
24 Sep 12:22:10 – [info] Flows file : /home/pi/.node-red/flows.json
24 Sep 12:22:10 – [info] Creating new flow file
24 Sep 12:22:10 – [warn] Encrypted credentials not found
24 Sep 12:22:10 – [info] Starting flows
24 Sep 12:22:10 – [info] Started flows
24 Sep 12:22:10 – [info] Server now running at http://127.0.0.1:1880/

0 Vote Up Vote Down
David Panetta answered 3 years ago

Sara,
Thanks for your help! But after trying 6 times to reload node red and still having the same problem I decided to just go all the way back to the beginning.
I reloaded the OS from scratch just like I did the first time – from my notes and the module.
Then I re did the 2nd module just like I have been doing, except I added a 2nd user (should not make a difference) just in case I needed to try a second one.
The login proceeded correctly so now I am logged into the node red web page on my PC.
This case closed – onward to infinity
Dave

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Great!
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.