Login failed to Node-RED

Hi all

I’m also encountering this issue.

I’ve uninstalled, deleted the config/node-red and config/.storage folders completely, restarted hassio, reinstalled Node-Red addon, but I keep getting Login Failed.

{
  "log_level": "info",
  "credential_secret": "xxxxxxxxxxxxxxx",
  "http_node": {
    "username": "user",
    "password": "pass"
  },
  "http_static": {
    "username": "user",
    "password": "pass"
  },
  "port": 1880,
  "ssl": false,
  "certfile": "fullchain.pem",
  "keyfile": "privkey.pem",
  "require_ssl": false,
  "system_packages": [],
  "npm_packages": [],
  "init_commands": [
    "echo 'This is a test'",
    "echo 'So is this...'"
  ]
} 

This is what I get from log after trying to login three times:

Welcome to Node-RED
===================
17 Jan 09:22:11 - [info] Node-RED version: v0.19.5
17 Jan 09:22:11 - [info] Node.js  version: v8.14.0
17 Jan 09:22:11 - [info] Linux 4.14.81-v7 arm LE
17 Jan 09:22:12 - [info] Loading palette nodes
17 Jan 09:22:22 - [info] Settings file  : /etc/node-red/config.js
17 Jan 09:22:22 - [info] Context store  : 'default' [module=memory]
17 Jan 09:22:22 - [info] User directory : /config/node-red/
17 Jan 09:22:22 - [warn] Projects disabled : editorTheme.projects.enabled=false
17 Jan 09:22:22 - [info] Flows file     : /config/node-red/flows.json
17 Jan 09:22:22 - [info] Starting flows
17 Jan 09:22:22 - [info] Started flows
17 Jan 09:22:22 - [info] Server now running at http://127.0.0.1:1880/
17 Jan 09:22:23 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant
17 Jan 09:22:42 - HA Auth - Failed to authenticate: vittorio
17 Jan 09:23:12 - HA Auth - Failed to authenticate: vittorio
17 Jan 09:23:24 - HA Auth - Failed to authenticate: vittorio

Any suggestion?

Thanks

PS:
Solved
Now I have to use the Hassio credentials rather than the one defined in the Addon config.
It’s confusing the fact that there are still user/pass definition that is not going to be used…

1 Like

Hi,

I am unsure about my solution and I fail to login.

I have read the notes to the update and my node red config is:

 {
   "log_level": "info",
   "credential_secret": "redacted",
   "http_node": {
     "username": "",
     "password": ""
   },
   "http_static": {
     "username": "",
     "password": ""
   },
   "port": 1880,
   "ssl": true,
   "certfile": "fullchain.pem",
   "keyfile": "privkey.pem",
   "require_ssl": true,
   "system_packages": [],
   "npm_packages": [],
   "init_commands": []
 }

I restart node red.

I have reset my login after deleting the files auth, auth_provider.homeassistant and onboarding. Thereafter I restart

I reset by entering a new user name and password.

I try to login to node red using this user name and password.

The result is login failed.

What is my mistake?

How did you solve this? I am still stuck. See my post.

The login credentials are the HA credentials, not the one you can write in the Node-RED config.

Have you tried like this?

Yes - I tried with the same login that I have as a user, i.e. my HA username and password.

Try to remove the addon, remove the config/nodered and comfig/.storage folders, restart ha and try to reinstall the addon.

Will do. I have also read tajt there can be problems accessions over https which I do rather than http.

Now my problem is that I do not know how to access Node red using http.

For those who still struggle with “login failed” problems:

There is an issue with the Node RED login, when special characters are used in the HA password.
See: https://github.com/hassio-addons/addon-node-red/issues/80

This problem hit me today (I’m new to Node Red) and all I had to do was change my HA password and avoid any special characters that would get URL-encoded.

If any of the topmost posters in this thread can confirm that her problem also stems from this issue, it would really help others if you would edit your posting and place a hint. So others will read the solution early in this thread, before they start a deletion and reinstallation odyssey.

1 Like

I’m in that situation, were you able to fix your issue?

SOLVED - THANKS TO THE LONG LIVED ACCESS TOKEN =)

i am unable to see the dashboard, how do you solved it?

In Node Red at the top of the right side panel there are different icons: Info, Debug, Bargraph,… The bargraph icon is for the dashboards. Click it. In the row below you will find will a second set of tabs. Just right to this set there is a kind of expand icon. THIS will open the dashboards for you.

1 Like

Thank you i thought you just used the same address as when you use only node-red, but turns out it is different.