Broken Pipe is not an error; it's a feature
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- python
- Domaine
- cli, networking
Piste de recherche
The failure appears when the meshtastic CLI is run with --tcp against a node, using --get security.public_key and --nodes, and the BrokenPipeError [Errno 32] is printed before the next line reads Connected to Radio. Start by reproducing that loop against a TCP node and tracing where the broken pipe is raised and caught in the Python CLI and TCP interface code. The issue asks for a decision on whether this should be renamed or hidden, and it also leaves the remaining 0.5% of failures unexplained, so there is no clear finish line yet.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Programming embedded systems is no easy feat. Getting an MCU to do the right thing is easy. Making sure that it can gracefully recover from every anomoly is the art. When we hang a solar node on a tower, we expect it to recover from cloudy days and heavy traffic. The Meshtastic development team has done a good job supporting a wide variety of devices.
I have been putting my stable of Heltec devices through its paces, working them hard and putting them up wet.
Here's a snippet of what I asked a node to do 2000 times.
for ((i=0; i<loops; i++))
do
echo " "
echo "Series $i of $loops"
meshtastic --tcp $DUTIP --get security.public_key
meshtastic --tcp $DUTIP --nodes --show-fields user.shortName,user.publicKey,since
done
./test.nodes.analysis.sh
That generated 32 MB of terminal output, mostly error messages, dominated by BrokenPipeError: [Errno 32] Broken pipe. It wasn't an error at all. The next line was Connected to Radio. Then my request was fulfilled correctly.
Sure, somethig went wrong, but the system recovered and did what it was asked to do. Broken Pipe isn't an error. It's a condition that occurred 93% of the time in the course of doing what the user asked.
Test series planned: 2000
Series completed: 2000
Meshtastic commands executed: 4000
All Broken pipes: 3737
Unexpected OS Error, Errno 104: 5
--reset No route: 0
PKI_UNKNOWN_PUBKEY: 0
PKI_SEND_FAIL_PUBLIC_KEY: 0
NO_CHANNEL: 0
security.public_key gotten okay: 1997
nodelist gotten okay: 1996
Ninety-three percent (93.4%) of these two simple meshtastic commands generate [Errno 32]. There is no significant difference between responses to the two commands.
Yes, there are still 0.5% of these two commands failing. That will require some more sleuthing.
In the mean time, since Broken Pipe isn't a showstopper, let's rename it and bury the messages. It is, apparentlty, part of normal operation.
- Langage dominant
- Python
- Étoiles
- 855
- Forks
- 355
- Merge moyen
- 3 j 3 h
- PR mergées (30 j)
- 12
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de meshtastic/python
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
meshtastic/python#972 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: Can't run on TermuxPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
meshtastic/python#969 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
meshtastic/python#506 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
meshtastic/python#985 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Undocumented `--set` choicesPeut-être pris @Cryptoteep l’a pris il y a 54 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
meshtastic/python#978 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de meshtastic/python
Issues similaires
-
[Bug]: test_remote_realpath_uses_argument_vector fails on Windows with Python 3.13+ (ntpath.isabs)Peut-être pris @gouyu-hou l’a pris aujourd’hui. Ouvertetriage/confirmed
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
agentscope-ai/agentscope#4397 ·
Les mainteneurs répondent en général sous 2 jours
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
NousResearch/hermes-agent#161712 ·
Les mainteneurs répondent en général sous 1 jour
-
[New Check]: postgresql_flexible_server_public_network_access_disabledPeut-être pris @pouria-l l’a pris aujourd’hui. Ouvertefeature-request status/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
prowler-cloud/prowler#13615 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
SACGF/variantgrid#2941 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
linkedin/Liger-Kernel#1730 ·
Les mainteneurs répondent en général sous 3 jours