Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"nocanc mqtt" broken pipe #10

Open
mjbmikeb2 opened this issue Feb 12, 2021 · 2 comments
Open

"nocanc mqtt" broken pipe #10

mjbmikeb2 opened this issue Feb 12, 2021 · 2 comments

Comments

@mjbmikeb2
Copy link

mjbmikeb2 commented Feb 12, 2021

2021/02/12 21:01:22 WARNING Failed to send 23 byte message for NoCAN channel 'everything': Failed to write 50 bytes for value of encoded event 9, write tcp 127.0.0.1:41380->127.0.0.1:4242: write: broken pipe

The message repeats many times.

Possibly related to #5
Multiple topics are matched to a single channel.

The canzero is sending about 20 messages per second and receiving 1 per second from a Windows box.

I can trigger it by sending the following message 2 times in a row from the Rasp Pi.
mosquitto_pub -t 'node20/c_enable_light' -m "node20/c_enable_light=1" -h 127.0.0.1

(The payload looks strange because it contains a copy of the topic.)

@mjbmikeb2
Copy link
Author

I tried using a dedicated channel instead of a shared channel but inbound message handling seems to be very unreliable.
Using two sources of MQTT messages at the same time makes it fail faster. nocanc just goes into a state where it prints messages about a broken pipe.

@omzlo
Copy link
Owner

omzlo commented Feb 14, 2021

This is not really a bug. When nocanc finishes a job (for example uploading a firmware) it closes connection with nocand. But nocand doesn't know that yet and may try to send a message to the client, causing a broken pipe error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants