Hi All!
My HASSIO install and Node-Red environments have been working fine - no problems.
About 3 weeks ago, I added Pi-Hole and even then - aside from other networking issues everything worked fine with HASSIO/Node-Red, no issues.
Today I noticed that my Node-Red automations were’nt running. Upon digging in HASSIO and the Node-Red addon page, Node-Red was not running.
When I tried running it, the error lines below were in logs.
Log
[INFO] Disabling SSL
[INFO] Updating IDE Users
[INFO] Adding IDE User admin
[INFO] Updating HTTP Node User
[INFO] Adding HTTP Node User admin
[INFO] Disabling Projects
[INFO] Attempting to install/update nodes: node-red-contrib-home-assistant
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/node-red-contrib-home-assistant failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-07-22T22_02_15_575Z-debug.log
[ERROR] Can't install nodes!
So I jumped onto my HASSIO box via SSH. I’m running HASSIO on Ubuntu, so I double-checked DNS and made sure I could reach the address registry.npmjs.org and I can with no issues. I can ping it as well.
After doing some research, it appears that maybe HASSIO - the docker might not be using the same DNS as configured in my Ubuntu /etc/resolv.conf and that my testing is on the host/Ubuntu side, not the HASSIO side.
I ran into this page from another page here on the forums: https://docs.resin.io/reference/resinOS/network/2.x/
But when I tried accessing the docker image, I get the error that 27e642c6/amd64-addon-nodered is not running.
At this point, I’m not sure what the problem is and I’m not sure how to test or make the necessary changes to affect the HASSIO network aspects.
Help! How do I get Node-Red started and running again?
Edit: I can see the requests to the registry.npmjs.org are allowed with no issues. I didn’t have to whitelist anything.