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

Received data would make the buffer exceed the maximum limit, buffer dropped #14

Open
lowgoz opened this issue Jun 18, 2020 · 2 comments

Comments

@lowgoz
Copy link

lowgoz commented Jun 18, 2020

I've gotten around this by having a script restart the docker container every hour, but was wondering if you had any ideas about the below?

Standard docker install from your repo with the suggested run arguments. Only difference is im running a CNI so using the broker command..

`2020-06-18 14:29:42,583 Transport security disabled!
2020-06-18 14:29:42,586 Connected to MQTT broker
2020-06-18 23:00:03,669 Fatal error: protocol.data_received() call failed.

protocol: <cbus.daemon.cmqttd.CBusHandler object at 0x154182706fd0>
transport: <_SelectorSocketTransport fd=6 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.8/asyncio/selector_events.py", line 860, in _read_ready__data_received
self._protocol.data_received(data)
File "/usr/lib/python3.8/site-packages/cbus/protocol/buffered_protocol.py", line 79, in data_received
raise ValueError(
ValueError: Received data would make the buffer exceed the maximum limit, buffer dropped!`

@micolous
Copy link
Owner

micolous commented Oct 13, 2020

It sounds like that part of the code got itself wedged.

Can you make a packet capture of the communications on the Raspberry Pi leading up to that point? You should be able to do this with:

sudo tcpdump -i eth0 -p -w capture.pcap 'host 192.0.2.1'

Replace eth0 with the appropriate network device, and 192.0.2.1 with your CNI's IP address.

@redging-very-well
Copy link

@micolous I see you had a branch to change these exceptions to warnings; any chance this could get merged?
master...buffer-size

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

3 participants