[Errno 32] Broken pipe

Bonjour, :wave:

Jeedom: 4.4.20 Debian 11 (image communautaire LXC sur Proxmox)

Triste nouvelle le dongle a cassé sa pipe d’après les logs…

J’ai acheté cette clé pour éviter le grand bug de la 2G.

Dans la configuration de Proxmox, il y avait déjà des « mount », mais j’ai rajouté toutes les dev

lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB2       dev/ttyUSB2       none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB3       dev/ttyUSB3       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file

Dans le container Jeedom, j’ai bien la clé qui apparait:

root@jeedom:~# lsusb
Bus 001 Device 005: ID 2c7c:0296 Quectel Wireless Solutions Co., Ltd. BG96 CAT-M1/NB-IoT modem

A l’installation des dépendances, il y a des erreurs:

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_sms
+ echo 1
+ echo 2
+ sudo killall apt apt-get unattended-upgr
apt: no process found
apt-get: no process found
unattended-upgr: no process found
+ sudo rm /var/lib/apt/lists/lock
+ sudo rm /var/cache/apt/archives/lock
+ sudo rm /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend
+ sudo sudo dpkg --configure -a --force-confdef
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:5 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
Reading package lists...
Building dependency tree...
Reading state information...
1 package can be upgraded. Run 'apt list --upgradable' to see it.
+ echo 3
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-dev
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-dev is already the newest version (3.9.2-3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ echo 4
+ sudo apt install -o Dpkg::Options::=--force-confdef -y python3-serial
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
python3-serial is already the newest version (3.5~b0-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
+ echo 5
++ find /usr/local/lib/python3.9/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ awk '$1 <= 4'
++ cut -f 2-
+ RESULTTODELETE=
++ echo ''
++ sed 's, ,\ ,g'
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 6
+ sudo pip3 cache purge
Files removed: 328 (18.4 MB)
+ echo 7
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (25.1.1)
Collecting pip
Downloading pip-25.2-py3-none-any.whl.metadata (4.7 kB)
Downloading pip-25.2-py3-none-any.whl (1.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 22.7 MB/s eta 0:00:00
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 25.1.1
Uninstalling pip-25.1.1:
Successfully uninstalled pip-25.1.1
Successfully installed pip-25.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 8
+ sudo python3 -m pip install --force-reinstall --upgrade requests
Collecting requests
Downloading requests-2.32.5-py3-none-any.whl.metadata (4.9 kB)
Collecting charset_normalizer<4,>=2 (from requests)
Downloading charset_normalizer-3.4.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (36 kB)
Collecting idna<4,>=2.5 (from requests)
Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests)
Downloading urllib3-2.5.0-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests)
Downloading certifi-2025.8.3-py3-none-any.whl.metadata (2.4 kB)
Downloading requests-2.32.5-py3-none-any.whl (64 kB)
Downloading charset_normalizer-3.4.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (152 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading urllib3-2.5.0-py3-none-any.whl (129 kB)
Downloading certifi-2025.8.3-py3-none-any.whl (161 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: urllib3, idna, charset_normalizer, certifi, requests
Attempting uninstall: urllib3
Found existing installation: urllib3 2.4.0
Uninstalling urllib3-2.4.0:
Successfully uninstalled urllib3-2.4.0
Attempting uninstall: idna
Found existing installation: idna 3.10
Uninstalling idna-3.10:
Successfully uninstalled idna-3.10
Attempting uninstall: charset_normalizer
Found existing installation: charset-normalizer 2.0.12
Uninstalling charset-normalizer-2.0.12:
Successfully uninstalled charset-normalizer-2.0.12
Attempting uninstall: certifi
Found existing installation: certifi 2025.4.26
Uninstalling certifi-2025.4.26:
Successfully uninstalled certifi-2025.4.26
Attempting uninstall: requests
Found existing installation: requests 2.32.3
Uninstalling requests-2.32.3:
Successfully uninstalled requests-2.32.3
Successfully installed certifi-2025.8.3 charset_normalizer-3.4.3 idna-3.10 requests-2.32.5 urllib3-2.5.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 9
+ sudo python3 -m pip install --force-reinstall --upgrade pyserial
Collecting pyserial
Downloading pyserial-3.5-py2.py3-none-any.whl.metadata (1.6 kB)
Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pyserial
Attempting uninstall: pyserial
Found existing installation: pyserial 3.5
Uninstalling pyserial-3.5:
Successfully uninstalled pyserial-3.5
Successfully installed pyserial-3.5
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 10
+ sudo python3 -m pip install --force-reinstall --upgrade pyudev
Collecting pyudev
Downloading pyudev-0.24.3-py3-none-any.whl.metadata (4.6 kB)
Downloading pyudev-0.24.3-py3-none-any.whl (62 kB)
WARNING: Error parsing dependencies of gpg: Invalid version: '1.14.0-unknown'
Installing collected packages: pyudev
Attempting uninstall: pyudev
Found existing installation: pyudev 0.24.3
Uninstalling pyudev-0.24.3:
Successfully uninstalled pyudev-0.24.3
Successfully installed pyudev-0.24.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
+ echo 11
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end sms
+ echo 12
+ rm /tmp/jeedom_install_in_progress_sms
+ echo '*******************End of package installation******************'
*******************End of package installation******************

J’ai testé toutes les USB. Ca ne fonctionne pas:

[2025-10-03 10:15:04] INFO  : SMSC : +33660003000
[2025-10-03 10:15:04] DEBUG  : Writing PID 3235 to /tmp/jeedom/sms/deamon.pid
[2025-10-03 10:15:04] DEBUG  : Init request module v2.32.5
[2025-10-03 10:15:04] DEBUG  : Starting new HTTP connection (1): 127.0.0.1:80
[2025-10-03 10:15:04] DEBUG  : http://127.0.0.1:80 "GET /plugins/sms/core/php/jeeSMS.php?apikey=gGGR8iXiWd38nsG8UjLUtuK1b7kD7ddM HTTP/1.1" 200 0
[2025-10-03 10:15:04] DEBUG  : Socket interface started
[2025-10-03 10:15:04] DEBUG  : LoopNetServer Thread started
[2025-10-03 10:15:04] DEBUG  : Start listening...
[2025-10-03 10:15:04] DEBUG  : Listening on: [127.0.0.1:55002]
[2025-10-03 10:15:04] DEBUG  : Connecting to GSM Modem...
[2025-10-03 10:15:04] DEBUG  : Text mode false
[2025-10-03 10:15:04] INFO  : Connecting to modem on port /dev/ttyUSB0 at 115200bps
[2025-10-03 10:15:04] ERROR  : Global listen exception of type BrokenPipeError occurred: [Errno 32] Broken pipe
[2025-10-03 10:15:04] DEBUG  : Send to jeedom :  {'number': 'none', 'message': '[Errno 32] Broken pipe'}
[2025-10-03 10:15:04] ERROR  : Exit 1 because this exeption is fatal
[2025-10-03 10:15:04] DEBUG  : Starting new HTTP connection (1): 127.0.0.1:80
[2025-10-03 10:15:04] DEBUG  : Shutdown
[2025-10-03 10:15:04] DEBUG  : Removing PID file /tmp/jeedom/sms/deamon.pid
[2025-10-03 10:15:04] DEBUG  : http://127.0.0.1:80 "POST /plugins/sms/core/php/jeeSMS.php?apikey=gGGR8iXiWd38nsG8UjLUtuK1b7kD7ddM HTTP/1.1" 200 0
[2025-10-03 10:15:04] DEBUG  : LoopNetServer Thread stopped
[2025-10-03 10:15:04] DEBUG  : Exit 0
[2025-10-03 10:15:34] ERROR  : Impossible de lancer le démon sms, vérifiez le port

Est-ce qu’il y a un petit soucis entre Debian 11 et les dépendances?!
Je n’ose pas aller beaucoup plus loin dans les tentatives d’installation de modules de ce que je vois des tutos sur le net.

Merci.

As-tu vu ce sujet ?

Oui j’ai vu. Je te remercie. Mais j’ai fait déjà quelques redémarrages. Que ce soit le démon, la réinstallation des dépendances etc.

1 « J'aime »

le problème n’est pas sur le plugin ou sur jeedom donc réinstaller les dépendances ne changera rien;
le problème c’est le mode de la clé qui est incorrecte ou le fait qu’elle soit incorrectement configurée sur votre lxc

ls -l /dev/ttyUSB_SMS
lrwxrwxrwx 1 root root 7  9 sept. 15:26 /dev/ttyUSB_SMS -> ttyUSB2

ls -l /dev/serial/by-id
lrwxrwxrwx 1 root root 13  9 sept. 15:26 usb-Quectel__Incorporated_Quectel_4c49e743-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13  9 sept. 15:26 usb-Quectel__Incorporated_Quectel_4c49e743-if01-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13  9 sept. 15:26 usb-Quectel__Incorporated_Quectel_4c49e743-if02-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root 13  9 sept. 15:26 usb-Quectel__Incorporated_Quectel_4c49e743-if03-port0 -> ../../ttyUSB3

Bonsoir,
Merci des réponses, mais malheureusement pas mieux…

J’ai créé un lien symbolique comme @Jeandhom a fait. J’ai rajouté le lxc.mount.entry, ça apparait bien dans le container. Mais j’ai toujours la même erreur.

J’ai aussi essayé avec une device passtrough. Pas mieux.

Je vais aller poser la question sur le forum de Proxmox.

Merci

1 « J'aime »

Bonjour,

J’ai essayé sur une VM, sur un container et même sur une Jeedom Smart. Même erreur, en 115200 et en 9600 pour la vitesse de communication.

J’ai mis la carte sim dans un petit téléphone. Ca fonctionne, il n’y a pas de code pin, j’ai pu envoyer un SMS avec.

Donc, je ne sais pas…
Désolé…