Argonne-National-Laboratory / node-red-contrib-ocpp

Open Charge Point Protocol Node-Red Nodes
Other
35 stars 29 forks source link

Setting up a server node to bind on port 80 crashes node-red (due to EADDRINUSE) #73

Open nagisa opened 2 months ago

nagisa commented 2 months ago

When creating an OCPP server node, specifying the same port as the node-red itself will lead to node-red itself crashing. In principle this issue could be viewed as two distinct problems:

  1. The fact that node-red crashes instead of the faulty node reporting an error (this happens when a catch:all node is present in the flow too);
  2. The fact that the node attempts to bind a new server to the port, rather than adding a route on the same server that node-red already has up (similarly to how e.g. @flowfuse/node-red-dashboard does.)

It would be lovely if at least the first issue was fixed however, as starting node-red in safe mode can be not straightforward to figure out.