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

errors #23

Closed
out0fsync opened this issue Jun 28, 2024 · 5 comments
Closed

errors #23

out0fsync opened this issue Jun 28, 2024 · 5 comments

Comments

@out0fsync
Copy link

Not sure if any of this is useful to you. Great idea :) Running on orangepi zero, ubuntu:-

2024-06-28 21:57:42,307 - INFO - TC²-BBS is running on tcp interface...
Database schema initialized.
2024-06-28 21:58:19,573 - INFO - Received message from user 'd109' to c300: hello
2024-06-28 22:02:16,959 - INFO - Received message from user 'd109' to None: the bbs is running on my c300 node just direct message "hello" to it
2024-06-28 22:02:16,960 - INFO - Ignoring message sent to group chat or from unknown node
2024-06-28 22:04:25,114 - INFO - Received message from user 'd109' to c300: B
2024-06-28 22:05:05,097 - INFO - Received message from user 'd109' to c300: [b]
2024-06-28 22:05:05,098 - ERROR - Unexpected error in deferred execution <class 'ValueError'>
Traceback (most recent call last):
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py" , line 283, in _run o()
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/listener.py", line 237, in call
cb(**kwargs)
File "/root/TC2-BBS-mesh/server.py", line 49, in receive_packet on_receive(packet, interface)
File "/root/TC2-BBS-mesh/message_processing.py", line 92, in on_receive
process_message(sender_id, message_string, interface, is_sync_message=False)
File "/root/TC2-BBS-mesh/message_processing.py", line 60, in process_message
handle_bb_steps(sender_id, message, step, state, interface, bbs_nodes)
File "/root/TC2-BBS-mesh/command_handlers.py", line 159, in handle_bb_steps
board_name = boards.get(int(message))
ValueError: invalid literal for int() with base 10: '[b]'

2024-06-28 22:05:48,360 - INFO - Received message from user 'd109' to c300: B
2024-06-28 22:30:20,373 - ERROR - Unexpected error in deferred execution <class 'pubsub.core.topicargspec.SenderUnknownMsgDataError'>
Traceback (most recent call last):
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 433, in publish
self._getListenerSpec().check(msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicargspec.py", line 229, in check
raise SenderUnknownMsgDataError(self.topicNameTuple,
pubsub.core.topicargspec.SenderUnknownMsgDataError: Some optional args unknown in call to sendMessage('('meshtastic', 'receive')', packet,interface): interface

2024-06-28 22:40:22,223 - INFO - Received message from user 'd109' to c300: [1]
2024-06-28 22:40:22,224 - ERROR - Unexpected error in deferred execution <class 'ValueError'>
Traceback (most recent call last):
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/listener.py", line 237, in call
cb(**kwargs)
File "/root/TC2-BBS-mesh/server.py", line 49, in receive_packet
on_receive(packet, interface)
File "/root/TC2-BBS-mesh/message_processing.py", line 92, in on_receive
process_message(sender_id, message_string, interface, is_sync_message=False)
File "/root/TC2-BBS-mesh/message_processing.py", line 60, in process_message
handle_bb_steps(sender_id, message, step, state, interface, bbs_nodes)
File "/root/TC2-BBS-mesh/command_handlers.py", line 159, in handle_bb_steps
board_name = boards.get(int(message))
ValueError: invalid literal for int() with base 10: '[1]'

2024-06-28 22:49:16,629 - ERROR - Unexpected error in deferred execution <class 'pubsub.core.topicargspec.SenderUnknownMsgDataError'>
Traceback (most recent call last):
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 433, in publish
self._getListenerSpec().check(msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicargspec.py", line 229, in check
raise SenderUnknownMsgDataError(self.topicNameTuple,
pubsub.core.topicargspec.SenderUnknownMsgDataError: Some optional args unknown in call to sendMessage('('meshtastic', 'receive')', packet,interface): interface

2024-06-28 23:00:37,258 - ERROR - Unexpected error in deferred execution <class 'pubsub.core.topicargspec.SenderUnknownMsgDataError'>
Traceback (most recent call last):
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 433, in publish
self._getListenerSpec().check(msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicargspec.py", line 229, in check
raise SenderUnknownMsgDataError(self.topicNameTuple,
pubsub.core.topicargspec.SenderUnknownMsgDataError: Some optional args unknown in call to sendMessage('('meshtastic', 'receive')', packet,interface): interface

2024-06-28 23:04:19,660 - INFO - Received message from user 'd109' to c300: [2]
2024-06-28 23:04:19,661 - ERROR - Unexpected error in deferred execution <class 'ValueError'>
Traceback (most recent call last):
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/listener.py", line 237, in call
cb(**kwargs)
File "/root/TC2-BBS-mesh/server.py", line 49, in receive_packet
on_receive(packet, interface)
File "/root/TC2-BBS-mesh/message_processing.py", line 92, in on_receive
process_message(sender_id, message_string, interface, is_sync_message=False)
File "/root/TC2-BBS-mesh/message_processing.py", line 60, in process_message
handle_bb_steps(sender_id, message, step, state, interface, bbs_nodes)
File "/root/TC2-BBS-mesh/command_handlers.py", line 159, in handle_bb_steps
board_name = boards.get(int(message))
ValueError: invalid literal for int() with base 10: '[2]'

2024-06-28 23:04:47,126 - INFO - Received message from user 'd109' to c300: 2
2024-06-28 23:05:01,458 - INFO - Received message from user 'd109' to c300: 0
2024-06-28 23:05:22,809 - INFO - Received message from user 'd109' to c300: hello
2024-06-28 23:33:36,974 - INFO - Received message from user 'd109' to None: hello
2024-06-28 23:33:36,975 - INFO - Ignoring message sent to group chat or from unknown node
2024-06-28 23:34:37,176 - INFO - Received message from user 'd109' to c300: 2
2024-06-28 23:34:49,965 - INFO - Received message from user 'd109' to c300: 4
2024-06-28 23:35:03,267 - INFO - Received message from user 'd109' to c300: f
2024-06-29 00:04:26,331 - ERROR - Unexpected error in deferred execution <class 'pubsub.core.topicargspec.SenderUnknownMsgDataError'>
Traceback (most recent call last):
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 433, in publish
self._getListenerSpec().check(msgData)
File "/root/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicargspec.py", line 229, in check
raise SenderUnknownMsgDataError(self.topicNameTuple,
pubsub.core.topicargspec.SenderUnknownMsgDataError: Some optional args unknown in call to sendMessage('('meshtastic', 'receive')', packet,interface): interface

@thebigshed
Copy link

getting similar on RPI on serial connection:

2024-06-29 16:30:36,769 - ERROR - Unexpected error in deferred execution <class 'pubsub.core.topicargspec.SenderUnknownMsgDataError'>
Traceback (most recent call last):
File "/home/david/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/home/david/TC2-BBS-mesh/venv/lib/python3.10/site-packages/meshtastic/mesh_interface.py", line 1176, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
File "/home/david/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/david/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicobj.py", line 433, in publish
self._getListenerSpec().check(msgData)
File "/home/david/TC2-BBS-mesh/venv/lib/python3.10/site-packages/pubsub/core/topicargspec.py", line 229, in check
raise SenderUnknownMsgDataError(self.topicNameTuple,
pubsub.core.topicargspec.SenderUnknownMsgDataError: Some optional args unknown in call to sendMessage('('meshtastic', 'receive')', packet,interface): interface

using Docker to run the image.

ERROR - Unexpected error in deferred execution <class 'pubsub.core.topicargspec.SenderUnknownMsgDataError'>

@out0fsync
Copy link
Author

now getting this error whenever I try and run BBS

2024-06-30 23:13:14,059 - INFO - TC²-BBS is running on tcp interface...
Database schema initialized.
2024-06-30 23:13:14,115 - ERROR - Unexpected OSError, terminating meshtastic reader... [Errno 104] Connection reset by peer

@ianmcorvidae
Copy link

Just linking identical issues together: The SenderUnknownMsgDataError here is the same reported in #4 and which is fixed by the change in comment: #24 (comment)

ValueError and OSError issues probably separate.

@TheCommsChannel
Copy link
Owner

The errors from the original post have been fixed in the latest update so I'll go ahead and close this. If you're still receiving the errors with ValueError and OSError, please open up a new issue.

@out0fsync
Copy link
Author

out0fsync commented Jul 2, 2024 via email

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

4 participants