# Can't access Node-Red GUI after adding Sonoff devices to network

**URL:** <https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603>\
**Category:** General\
**Created:** [15 March 2023 18:45 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603 "2023-03-15T18:45:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [15 March 2023 18:45 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/1 "2023-03-15T18:45:43Z")

</div>

Ugh,  
Things were going great until I got my first Sonoff devices today. I quickly learned that they don't play nice with 5 GHz networks. I have a dual band router so I changed my SSID and password on the 5GHz network and left the 2.4 GHz network untouched. This way I wouldn't have to reconfigure all my ESP devices in my system.

Things went smooth and everything got back on the network as expected. I was able to log into my 2 Raspberry Pi and desktop computer, all good.

But when I go to the Node-Red GUI and dashboard it says the server refused the connection.

When I fire up Node-Red from the Raspberry Pi command line I get the following error.

```auto
15 Mar 15:01:49 - [error] Error: listen EACCES: permission denied 0.0.0.0:443
    at Server.setupListenHandle [as _listen2] (node:net:1446:21)
    at listenInCluster (node:net:1511:12)
    at Server.listen (node:net:1599:7)
    at Server.listen (/home/pi/.node-red/node_modules/nodejs-websocket/Server.js:119:14)
    at Object.module.exports.createServer (/home/pi/.node-red/node_modules/simple-sonoff-server/sonoff.server.module.js:263:8)
    at new SonoffServer (/home/pi/.node-red/node_modules/node-red-contrib-sonoff-server/config-server/config-server.js:33:61)
    at Object.createNode (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/util.js:90:27)
    at Flow.start (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:180:44)
    at Object.start [as startFlows] (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/index.js:394:33)

```

I didn't change anything on the router aside from the password...

Looks like I might need to open up port 443?

Anyone know what might be going on?  
Thanks  
Rich

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [15 March 2023 18:50 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/2 "2023-03-15T18:50:08Z")

</div>

I give my 5g wifi a different ssid, as they could still try to connect to the 5g devices if same ssid.

---

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [15 March 2023 18:51 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/3 "2023-03-15T18:51:35Z")

</div>

Yeah, they are different. And the Sonoff devices are showing up on the router.

Also, I'm running Apache on the same Pi as Node-Red and it's serving up web pages as usual.

---

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [15 March 2023 18:59 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/4 "2023-03-15T18:59:21Z")

</div>

One other detail.

The last thing I was doing in Node-red before the lockup was trying to configure a Sonoff Server. Note that one of the error messages mentions it specifically

```auto
 at Object.module.exports.createServer (/home/pi/.node-red/node_modules/simpl e-sonoff-server/sonoff.server.module.js:263:8)

```

Is there a way I can safely remove that module? Just navigate to that folder and clear it out?

Thanks  
Rich

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 March 2023 19:33 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/5 "2023-03-15T19:33:09Z")

</div>

Are you trying to connect via HTTPS?

---

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [15 March 2023 19:37 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/6 "2023-03-15T19:37:50Z")

</div>

No. But that error message seems to suggest that...

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [15 March 2023 20:11 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/7 "2023-03-15T20:11:28Z")

</div>

I seem to remember the sonoff nodejs server asks you to install fake certs.

---

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [15 March 2023 20:14 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/8 "2023-03-15T20:14:48Z")

</div>

OK, after looking at this a bit more I'm pretty sure it's the Sonoff server module causing problems. It was the last pallet I installed and the error message at NodeRed restart suggests it as well.

So since I can't get to it through the GUI I'll have to do it though a terminal.

Would it be safe to just navigate to where the folder is and delete everything? Or would this further trash things?

`/home/pi/.node-red/node_modules/simple-sonoff-server/`

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [15 March 2023 20:41 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/9 "2023-03-15T20:41:09Z")

</div>

If you installed by pallette, then start node-red in safe mode and uninstall the pallette item. Or or from command, in the node red folder run  
`npm remove simple-sonoff-server` then stop and restart node-red, or is it `node-red-contrib-simple-sonoff-server`

Just deleting it will not remove it, as it is in the package json, so npm will install it again.

---

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [15 March 2023 20:42 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/10 "2023-03-15T20:42:43Z")

</div>

OK, i removed the sonoff server directory and it works! I'm glad that happend before sundown 😉

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 March 2023 22:09 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/11 "2023-03-15T22:09:55Z")

</div>

> [@richiep](#):
>
> i removed the sonoff server directory

As @E1cid said, if you just deleted the folder then the next time you do anything with npm it will helpfully re-install it for you. You must uninstall it, either from within Manage Palette in node-red or via the command line.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 March 2023 22:10 UTC](https://discourse.nodered.org/t/cant-access-node-red-gui-after-adding-sonoff-devices-to-network/76603/12 "2023-03-29T22:10:25Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
