OK, I upgraded tonight to the latest verion, 77.3, and connection is fine, no problems upgrading at all. I had been running 76.2, which probably would have caused me problems if running NR through hassio.
There must be a connection difference. I connect through http, and with hassio I have no idea how it is connecting.
BTW, for âkicksâ, I stopped NR on the pi, and reinstalled hassio NR and tried that. Started it, but it complained about passwords and certs. It did come up, and the HA nodes said connected, but they didnât act like they were connected, no response. And everything is much slower running like this. I tried to delete and make a HA node again, but it crashed my pi when I deployed this. I restarted the PI, HA and NR, but couldnât get NR to talk to HA even though I didnât get any connection error messages.
After about an hour of âfunâ, I gave up. Restarted HA and uninstalled NR from HA, then restarted NR in the other pi. Everything works again, back to normal.
With that, I will stop talking about using another pi for NR, the horse is dead.
I ran in to an issue with connecting and I cannot find anything on this issue. Sounds similar with NR 0.6.1 with Supervisor 130 and HA 0.77.3. Well two things. First, I can longer resolve the api.pwnedpasswords.com which isnât the end of the world but it seems strange. I have pihole running but it wouldnât block that site, I whitelisted it anyway and still exists. That is probably something I can figure out though but if have suggestions Iâd appreciate it.
Second, I canât get NR running at all. I have all of my user/passwords and even a different one for each in the configuration. The error really doesnât seem obvious like others Iâve seen. Hopefully someone else can see something familiar.
curl: (6) Could not resolve host: api.pwnedpasswords.com
DEBUG:
000
ERROR: Something went wrong contacting the HIBP API
WARNING: Could not check password, assuming it is safe.
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 11-warning.sh: executingâŚ
[cont-init.d] 11-warning.sh: exited 0.
[cont-init.d] 20-config.sh: executingâŚ
[cont-init.d] 20-config.sh: exited 0.
[cont-init.d] 30-auto-api-token.sh: executingâŚ
parse error: Unfinished string at EOF at line 1, column 24576
[cont-init.d] 30-auto-api-token.sh: exited 4.
[cont-finish.d] executing container finish scriptsâŚ
[cont-finish.d] 99-message.sh: executingâŚ
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
The first line is the reference to failing the pwned checks. At âOops!â I canât figure out what the error is at all. API Token related maybe? Thanks for any help or ideas.
Regarding the âCould not resolve host:â, thatâs a known âissueâ. Do you happen to have set that dns server on your router?
Other add-ons canât use the Pi-hole add-on as dns server. Youâll need to set a different dns server on your Hass.io install.
Info on how to do it can be found here: https://github.com/home-assistant/hassos/blob/master/Documentation/network.md
It could be fixed by going into the PiHole Settings - - > DNS tab and select "Listen on all interfaces, permit all origins. Not tested it myself so might not work.
That makes perfect sense now. That issue resolved. The 30-auto-api-token.sh parse error is the only issue. Is this the best place to post for assistance on this issue?
Guys, when you are getting this problem with âpassword redactedâ its properly because you are using the inbuild git projects that node-red haves, you need to disable that, because it breaks the API handling, so go to your Node-RED settings.js file and change the following settings, last in the file from:
For normal users the file is in /config/node-red/setting.json.
When using the Node-RED git/project features, the add-on wonât be able to update the API token.
So disabling that feature, will indeed allow the add-on to work.
So in short, if someone is having connection issues, ensure the following:
Node-RED must have 1 server connection configured.
Node-RED must use http://hassio/homeassistant as the url.
Node-RED must not use the projects/git feature.
If you did need to make any changes because of the list above, be sure to deploy your workflow and to restart the add-on after making those changes.
Hi. Some time ago my nodered addon is giving me api errors when I restart home assistant. It works ok when I restart addon. Is there any way to automate the process , so when nodered hangs on error homeassistant would restart addon??
First of all, @frenck thank you so much for this addon. This is great!
But, I have a problem that I need to restart Node-RED every time after Home Assistant have been restarted. The log under Node-RED only shows messages from previous restart. And yes, I have reloaded Chrome and I have also tried with Microsoft Edge. Cannot find anything in logfiles pointing to this problem. Any advice?
My system: HassOS 1.10, HA 0.78.3, Supervisor 131, Node-RED 0.6.1, RPi3, New Auth (with legacy_api_password support)
Confirmed. I have watch dog also implemented, but it doesnât work as itâs logic is based on HA going from working to unknown.
This works if for some reason node-red fails while HA is up, but when HA is rebooted, node red âstartsâ in HA as an unknown state (post HA restart).
I added a hassio.addon.restart automation that runs 1 minute after HA starts to work around this issue.
Upcoming releases of the Hassio Supervisor (more known as just Hass.io) will add a new role-based security layer. Add-ons will be required to have a requested access level in the add-on metadata. This change prepares the add-on for that change.
I set up the node-red watchdog automations described in this video. (Itâs been linked here before)
itâs helped me. Might try it out. but if youâre having to restart node-red every time, might be something else going on.
the only variation I added was to make the Home Assistant automation repeat every 5 minutes where the condition is that the node-red sensor is âunknownâ. I was having issues where node-red would be disconnected from Hass.io after a Hass.io update, requiring node-red restart or at least going in and republishing the flows. For some reason the automation as written from the video wouldnât catch it every time until I forced it to recheck the sensor.
- id: '1534662494492'
alias: Restart NodeRed Watchdog
trigger:
- entity_id: sensor.node_red
from: OK
platform: state
to: unknown
- minutes: /5
platform: time
seconds: 0
condition:
- condition: state
entity_id: sensor.node_red
state: unknown
action:
- data:
addon: a0d7b954_nodered
service: hassio.addon_restart