502: Bad Gateway Node red Problems

Just installed Node_Red. Did not see a setting to disable HTTPS/SSL, getting bag gateway trying to open the UI. Where is this setting?

20-11-22 17:10:54 INFO (SyncWorker_5) [supervisor.docker.interface] Cleaning addon_a0d7b954_nodered application
20-11-22 17:10:55 INFO (SyncWorker_5) [supervisor.docker.addon] Starting Docker add-on hassioaddons/node-red-aarch64 with version 7.2.10
20-11-22 17:10:56 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_nodered
20-11-22 17:11:08 ERROR (MainThread) [supervisor.api.ingress] Ingress error: Cannot connect to host 172.30.32.1:63759 ssl:default [Connect call failed ('172.30.32.1', 63759)]
20-11-22 17:11:25 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with a0d7b954_nodered!
20-11-22 17:11:25 INFO (SyncWorker_6) [supervisor.docker.interface] Cleaning addon_a0d7b954_nodered application
20-11-22 17:11:27 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on hassioaddons/node-red-aarch64 with version 7.2.10```

Hello, Hello
I also had this problem and was looking for a solution without success. I was able to solve the problem.

Back up HAss
Uninstall Node-Red
I renamed the folder in the config / node-red directory at: config / node-red-old
I installed and configured Node-Red
Bad Gateway 502 … disappeared …
:laughing:
Delete directory… config/node-red-old

1 Like

I had the same issue. Looking at the logs, I needed to set:

credential_secret: secretkey

Maybe this will help someone.

1 Like

How did you delete that directory, I have same troubles but could not even delete that directory.

Try this

Click on the conf tab of the Node-red add-on and basically paste this in. This is my configuration and it just works.

credential_secret: redacted but something difficult to guess
dark_mode: false
http_node:
username: redacted but same as HA login
password: redacted but same as HA password
http_static:
username: redacted but same as HA login
password: redacted but same as HA password
ssl: false
certfile: fullchain.pem
keyfile: privkey.pem
require_ssl: false
system_packages: []
npm_packages: []
init_commands: []

Now obviously, if you want dark mode or SSL etc., you’ll need to update this as required, but for now let’s try and get straight into node-red. Also some of this may or may not be necessary, but as I mentioned before, this just works for me. If you want to go through the full configuration options, you can check here: https://github.com/hassio-addons/addon-node-red/blob/master/node-red/DOCS.md

In order to preserve the correct lay out, here’s an example of it on the page:

Configurations in Home Assistant OS 8.2 seem very different, many YT videos refer to earlier versions.

credential_secret: secretkey worked for me after trying just about every other suggestion in this thread, thank you for your suggestion.