Node-Red Connection Lost

I tried to use the xiaomi-mqtt.
Is installed but not used in NR

Uninstall it. It may be doing something.

Right.

I'll do this as soon as I get home.

Even removing xiaomi and removing several nodes that were not in use, the error still continues.

What other nodes have you got installed and deployed in your flow that do things on the network? One of them has not got proper error handling in place.

I apologize for the inconvenience caused by the posts made in different places and that the goal was the same.
I apologize for this.

Currently the components that I have configured outside the default nodes are:
Home Assistant
Broadlink
Redchat

Have you tried singling out which of those modules is at fault? Have you checked each of their github pages to see if there are any known issues reported against them?

In gitbub I have not found anything that clearly shows the error I am facing.
It has specific functionality errors and is not stopping the NR.

And the log is also confusing to me because it does not make clear something that is clear of the problem and which component.

What part of the log can you assume that something network might be causing the problem?

Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data
at Socket.onListenError (dgram.js:362:22)

The error is related to something failing to send data over a socket.

Nothing in the error tells us which node created that socket or tried to write to it. All it tells us is that an asynchronous error has occurred and whoever created that socket has not added an error handler to cope with these sorts of errors.

So pull out one of the nodes and see if the error still occurs, if it does, pull another and repeat. If the error goes away, put the node back in and see if the error re-occurs. That way you should be able to isolate the culprit

Right @zenofmud

I just could not identify which component is generating the error because the log does not clarify this issue.
The way it is I will have to remove each component and go testing as the error occurs randomly.

Ah okay!

Now it's clear @knolleary

Then you can think of something.

The Telegram component I believe is not the problem because it is more recent and before it presented the problem.

When you deploy are you getting a message about unused configuration nodes? If so then follow the link and delete them. Otherwise you have not fully removed nodes from your flow.

Open your .node-red/flow_???.json file in an editor and search for 9898
If there are several matches, then it could be you are trying to open the port in several nodes.
Port 9898 is used in connection with xiaomi (udp node or contrib-nodes)

If you don't start xiaomi-mqtt, the port 9898 isn't used!
Just check it:

sudo lsof -i UDP:9898

I removed the Broadlink node and the error stopped happening.

I'm still following but since 11PM yesterday the failure has not occurred.

1 Like

Time ago I wrote a similar post related to this,most probably...

Rm broadlink node works great, however if you try to capture the temperature from a RM broadlink pro sometimes does not answer and causes crashes on node red.

I simply removed tho flow related to this and actually I'm using a RM pro & a mini with this node and works fine.

Maybe you have same problem....

Regards

i can't deploy a module,when i type node-red in the command prompt i get getting

Welcome to Node-RED
===================

17 Jun 10:55:09 - [info] Node-RED version: v0.20.5
17 Jun 10:55:09 - [info] Node.js  version: v10.16.0
17 Jun 10:55:09 - [info] Windows_NT 10.0.18362 x64 LE
17 Jun 10:55:10 - [info] Loading palette nodes
17 Jun 10:55:11 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
17 Jun 10:55:11 - [info] Settings file  : \Users\taran\.node-red\settings.js
17 Jun 10:55:11 - [info] Context store  : 'default' [module=memory]
17 Jun 10:55:11 - [info] User directory : \Users\taran\.node-red
17 Jun 10:55:11 - [warn] Projects disabled : editorTheme.projects.enabled=false
17 Jun 10:55:11 - [info] Flows file     : \Users\taran\.node-red\flows_DESKTOP-RQP2C5K.json
17 Jun 10:55:11 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

17 Jun 10:55:11 - [info] Starting flows
17 Jun 10:55:11 - [error] [e-mail in:c300172.26f78e8] No e-mail userid set
17 Jun 10:55:11 - [error] [e-mail in:c300172.26f78e8] No e-mail password set
17 Jun 10:55:11 - [info] Started flows
17 Jun 10:55:11 - [info] Server now running at http://127.0.0.1:1880/
17 Jun 10:55:12 - [info] [e-mail in:c300172.26f78e8] Error: No supported authentication method(s) available. Unable to login.

I am facing the same issue for the last few weeks even though I did not install new nodes, and made very little change to my flows.
I have just upgraded to 1.0 hoping that it will resolve the issue, but did not.
My flows are running, UI works, I can make changes and even deploy changes, but this message is showing constantly in the editor.

8 Nov 07:59:39 - [info] Node-RED version: v1.0.2
8 Nov 07:59:39 - [info] Node.js version: v10.15.3
8 Nov 07:59:39 - [info] Linux 4.9.35-v7+ arm LE

I see the following in the log:
(node:11584) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 open listeners added. Use emitter.setMaxListeners() to increase limit

How can I tell which is node 11584?

Regards,
Csongor

Could you open a new topic with your issue ?