Bonjour,
J’utilise depuis très longtemps le plugin googlecast sans problème.
Jeedom version : 4.3.15
Debian GNU/Linux 10 (buster) sur ESXi
Je me suis rendu compte que le plugin n’était plus fonctionnel. Je viens de constater que le démon était en statut NOK.
J’ai tenté pas mal de chose sans réussir à corriger le problème.
Jeedom a été redémarré. J’ai réinstallé les dépendances. J’ai effectué les différentes corrections disponible dans la partie Administration\OS-DB (Vérification des droits, Vérification et correction des packages) sans amélioration
J’ai passé le logs en debug.
Voici un extrait de ce qui se répète en grande partie :
[2023-03-21 21:00:11][DEBUG] : Request response content : Array ( [bssid] => [build_version] => 145853 [cast_build_revision] => 1.36.145853 [closed_caption] => Array ( ) [connected] => 1 [detail] => Array ( [icon_list] => Array ( [0] => Array ( [depth] => 32 [height] => 55 [mimetype] => image/png [url] => /setup/icon.png [width] => 98 ) ) [locale] => Array ( [display_string] => français ) [manufacturer] => LG Electronics [model_name] => C4A [timezone] => Array ( [display_string] => heure normale d’Europe centrale (Paris) [offset] => 60 ) ) [ethernet_connected] => [has_update] => [hotspot_bssid] => FA:8F:CA:6C:46:1B [ip_address] => 192.168.0.66 [locale] => fr [location] => Array ( [country_code] => US [latitude] => 255 [longitude] => 255 ) [mac_address] => 98:93:CC:C3:40:85 [name] => Salon LG [opt_in] => Array ( [crash] => 1 [opencast] => [stats] => 1 ) [public_key] => MIIBCgKCAQEAyHIUxjIQ3WvzvWDtRtUX2s0c/lRxjqipioUuWlb1MWz0nagvqPWTc4PWOvS8A5bP9eYsq2tVWfxAxZrsGDK/bvb5k6BHcP84ESIhiX1VVuOCuhKpV9Z+TrgI6Kp5/MT2w+vBQUxEawJ9yLtGQDqImSXIU5cqge0KfeZAduNSCOAw3Lg4EUo5ALjj+8J109PIqCjSqpgNrjVnRV0lpN7XdOyRReCF5g1+vjOFAXDIl/TPCZ/KHAsWQiJ6uTy8UFAlKfa2y+R3TIuhOvCyigaBB4FrWVyvehBn904zSrM1P8iK28GEAkpv2uvE+sh7LwFNBXawRlo1fOqScxMIgtQwEwIDAQAB [release_track] => stable-channel [setup_state] => 60 [setup_stats] => Array ( [historically_succeeded] => 1 [num_check_connectivity] => 0 [num_connect_wifi] => 0 [num_connected_wifi_not_saved] => 0 [num_initial_eureka_info] => 0 [num_obtain_ip] => 0 ) [ssdp_udn] => ae4bbd37-e4db-fbc6-472a-b8b5ef47ca46 [ssid] => [time_format] => 1 [timezone] => Europe/Paris [tos_accepted] => 1 [uma_client_id] => ed948648-6155-4911-abb4-43b9f207c09e [uptime] => 266873.726283 [version] => 8 [wpa_configured] => [wpa_state] => 0 )
[2023-03-21 21:00:11][DEBUG] : getInfoHttp : Result success : 1.36.145853 => 1.36.145853
[2023-03-21 21:00:11][DEBUG] : getInfoHttp : cmd=getconfig|data=opencast_pin_code
[2023-03-21 21:00:11][DEBUG] : Request response content : Array ( [bssid] => [build_version] => 145853 [cast_build_revision] => 1.36.145853 [closed_caption] => Array ( ) [connected] => 1 [detail] => Array ( [icon_list] => Array ( [0] => Array ( [depth] => 32 [height] => 55 [mimetype] => image/png [url] => /setup/icon.png [width] => 98 ) ) [locale] => Array ( [display_string] => français ) [manufacturer] => LG Electronics [model_name] => C4A [timezone] => Array ( [display_string] => heure normale d’Europe centrale (Paris) [offset] => 60 ) ) [ethernet_connected] => [has_update] => [hotspot_bssid] => FA:8F:CA:6C:46:1B [ip_address] => 192.168.0.66 [locale] => fr [location] => Array ( [country_code] => US [latitude] => 255 [longitude] => 255 ) [mac_address] => 98:93:CC:C3:40:85 [name] => Salon LG [opt_in] => Array ( [crash] => 1 [opencast] => [stats] => 1 ) [public_key] => MIIBCgKCAQEAyHIUxjIQ3WvzvWDtRtUX2s0c/lRxjqipioUuWlb1MWz0nagvqPWTc4PWOvS8A5bP9eYsq2tVWfxAxZrsGDK/bvb5k6BHcP84ESIhiX1VVuOCuhKpV9Z+TrgI6Kp5/MT2w+vBQUxEawJ9yLtGQDqImSXIU5cqge0KfeZAduNSCOAw3Lg4EUo5ALjj+8J109PIqCjSqpgNrjVnRV0lpN7XdOyRReCF5g1+vjOFAXDIl/TPCZ/KHAsWQiJ6uTy8UFAlKfa2y+R3TIuhOvCyigaBB4FrWVyvehBn904zSrM1P8iK28GEAkpv2uvE+sh7LwFNBXawRlo1fOqScxMIgtQwEwIDAQAB [release_track] => stable-channel [setup_state] => 60 [setup_stats] => Array ( [historically_succeeded] => 1 [num_check_connectivity] => 0 [num_connect_wifi] => 0 [num_connected_wifi_not_saved] => 0 [num_initial_eureka_info] => 0 [num_obtain_ip] => 0 ) [ssdp_udn] => ae4bbd37-e4db-fbc6-472a-b8b5ef47ca46 [ssid] => [time_format] => 1 [timezone] => Europe/Paris [tos_accepted] => 1 [uma_client_id] => ed948648-6155-4911-abb4-43b9f207c09e [uptime] => 266873.74539 [version] => 8 [wpa_configured] => [wpa_state] => 0 )
[2023-03-21 21:00:11][DEBUG] : getInfoHttp : Result success : unknown => unknown
[2023-03-21 21:00:11][DEBUG] : getInfoHttp : cmd=getconfig|data=cast_build_revision
[2023-03-21 21:00:11][DEBUG] : Request response content : Array ( [bssid] => f4:05:95:44:f9:36 [build_version] => 272222 [cast_build_revision] => 1.52.272222 [closed_caption] => Array ( ) [connected] => 1 [ethernet_connected] => [has_update] => [hotspot_bssid] => FA:8F:CA:5E:76:7A [ip_address] => 192.168.0.68 [locale] => fr [location] => Array ( [country_code] => FR [latitude] => 255 [longitude] => 255 ) [mac_address] => 9C:9D:7E:35:28:F6 [name] => Salle à manger [opt_in] => Array ( [crash] => 1 [opencast] => [stats] => 1 ) [public_key] => MIIBCgKCAQEAyhX2tCTUgb18MkE5ah+lrp+qI/dSX46j9sCLpL1++dxeRgIR+wm9r+lhKkHeuKaKn+E27Ggfq1DA7vy0S7c47aRIx4Tn/KuZs4X+0Z5HAF8zh3B6tq5qEkZ8aDxCrvxndeg3fBXPTSioy80sjXQpIR6ReAQgSXOFt4hQJkKuAKC8ILeD4vIPrwKNUVbQxrU+KGi1NGDYi6smCr2z86ECqwpuawoiNhigw4GEgXF3jOn8lPB2a52SnnMNn5+eb4mOZS0rTHJBBzjDWHSKLcPXRTus9nuNIGkRJx18j0bWAS+OF8nIJq95K5ly0F8kqx0tCOyh/JccqoQJe8Iq2NY1uQIDAQAB [release_track] => stable-channel [setup_state] => 60 [setup_stats] => Array ( [historically_succeeded] => 1 [num_check_connectivity] => 0 [num_connect_wifi] => 0 [num_connected_wifi_not_saved] => 0 [num_initial_eureka_info] => 0 [num_obtain_ip] => 0 ) [ssdp_udn] => adb28fe9-073f-51cc-368a-3996c2757e51 [ssid] => biere59 [time_format] => 2 [timezone] => Europe/Paris [tos_accepted] => 1 [uma_client_id] => deb8ea0e-1df6-496f-8ed3-110c436e3dfb [uptime] => 7718083.106727 [version] => 12 [wpa_configured] => 1 [wpa_id] => 0 [wpa_state] => 10 )
[2023-03-21 21:00:11][DEBUG] : getInfoHttp : Result success : 1.52.272222 => 1.52.272222
[2023-03-21 21:00:11][DEBUG] : getInfoHttp : cmd=getconfig|data=cast_build_revision
[2023-03-21 21:00:11][DEBUG] : Request response content : Array ( [bssid] => [build_version] => 329909 [cast_build_revision] => 1.61.329909 [connected] => 1 [ethernet_connected] => [has_update] => [hotspot_bssid] => FA:8F:1D:24:94:52 [ip_address] => 192.168.0.194 [locale] => en-US [location] => Array ( [country_code] => US [latitude] => 255 [longitude] => 255 ) [mac_address] => 00:00:00:00:00:00 [name] => MIBOX3 [opt_in] => Array ( [crash] => 1 [opencast] => [stats] => 1 ) [public_key] => MIIBCgKCAQEAruBsmst/aExI22aQUG+/dIEinQPu0D6xaERAh98+Z2JCarIyZNDDjDAHI2SiofcgoCYY9xF8vCRhOhRv+pVxxM/bcoUn/8/S/rg7KJghQNbP82f37p5uH6bzQyPXvzUh/uumyAwlnBfk1Nqmq5OZor8yKfKnkocLMC6PlbxewmGu75y07f0t7YE32xFEH1WdYUhccFFhvKTiblHLKCyj5vRa20NACyJVbBXEkGoQOhS0zgMaHINIQhhME7YnQW2lRAw04baQKTL4cGujDrr5f3duGpBiqFDWWQ9DIzZ/sjD+7wN/MRVPMwreWXnZkyakC4W9QRTjTIiDZvIo4n9yWQIDAQAB [release_track] => [setup_state] => 60 [setup_stats] => Array ( [historically_succeeded] => 1 [num_check_connectivity] => 0 [num_connect_wifi] => 0 [num_connected_wifi_not_saved] => 0 [num_initial_eureka_info] => 0 [num_obtain_ip] => 0 ) [ssdp_udn] => 9ecb8973-f5e9-73fb-c994-274970f5fcd0 [ssid] => [time_format] => 1 [tos_accepted] => 1 [uma_client_id] => fe30eefd-e3f1-47d4-8abd-8e5432879c4b [uptime] => 515957.190924 [version] => 12 [wpa_configured] => [wpa_state] => 0 )
[2023-03-21 21:00:11][DEBUG] : getInfoHttp : Result success : 1.61.329909 => 1.61.329909
[2023-03-21 21:00:12][INFO] : Lancement démon googlecast : /usr/bin/python3 /var/www/html/plugins/googlecast/resources/googlecast.py --loglevel debug --socketport 55012 --sockethost 127.0.0.1 --callback http://192.168.0.26/plugins/googlecast/core/php/googlecast.api.php --apikey /apikey/ --ttsweb http://192.168.0.26 --ttslang fr-FR --ttsengine gtts --ttsspeed 1.2 --ttscache 1 --ttsgapikey /ttsgapikey/ --gcttsvoice fr-FR-Standard-A --ttsdefaultrestoretime 1300 --ttsdefaultsilenceduration 300 --daemonname local --cyclefactor 1 --defaultstatus ' '
[2023-03-21 21:05:05][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2023-03-21 21:05:06][INFO] : Lancement démon googlecast : /usr/bin/python3 /var/www/html/plugins/googlecast/resources/googlecast.py --loglevel debug --socketport 55012 --sockethost 127.0.0.1 --callback http://192.168.0.26/plugins/googlecast/core/php/googlecast.api.php --apikey /apikey/ --ttsweb http://192.168.0.26 --ttslang fr-FR --ttsengine gtts --ttsspeed 1.2 --ttscache 1 --ttsgapikey /ttsgapikey/ --gcttsvoice fr-FR-Standard-A --ttsdefaultrestoretime 1300 --ttsdefaultsilenceduration 300 --daemonname local --cyclefactor 1 --defaultstatus ' '
[2023-03-21 21:10:06][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2023-03-21 21:10:07][INFO] : Lancement démon googlecast : /usr/bin/python3 /var/www/html/plugins/googlecast/resources/googlecast.py --loglevel debug --socketport 55012 --sockethost 127.0.0.1 --callback http://192.168.0.26/plugins/googlecast/core/php/googlecast.api.php --apikey /apikey/ --ttsweb http://192.168.0.26 --ttslang fr-FR --ttsengine gtts --ttsspeed 1.2 --ttscache 1 --ttsgapikey /ttsgapikey/ --gcttsvoice fr-FR-Standard-A --ttsdefaultrestoretime 1300 --ttsdefaultsilenceduration 300 --daemonname local --cyclefactor 1 --defaultstatus ' '
Je n’ai rien trouvé de probant.
Voici les logs de reinstallation des dépendances :
Launch install of googlecast dependancies
-- Current OS version :
Description: Debian GNU/Linux 10 (buster)
-- Updating repo...
Hit:1 http://debian.polytech-lille.fr/debian buster InRelease
Hit:2 http://debian.polytech-lille.fr/debian buster-updates InRelease
Hit:3 https://download.docker.com/linux/debian buster InRelease
Hit:4 https://deb.nodesource.com/node_16.x buster InRelease
Hit:5 http://security.debian.org/debian-security buster/updates InRelease
Reading package lists...
-- Installation of python3 and dependancies
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
python-dev is already the newest version (2.7.16-1).
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
-- Installed version of Python :
Python 3.7.3
Your version of python is compatible with this plugin.
-- Installation of pip for python3 and necessary libraries
Reading package lists...
Building dependency tree...
Reading state information...
python3-pip is already the newest version (18.1-5).
python3-dev is already the newest version (3.7.3-1).
python-requests is already the newest version (2.21.0-1).
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
-- Installation of audio sox library
Reading package lists...
Building dependency tree...
Reading state information...
sox is already the newest version (14.4.2+git20190427-1+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
-- Installation of TTS libraries
Reading package lists...
Building dependency tree...
Reading state information...
libttspico-utils is already the newest version (1.0+git20130326-9).
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
-- Installation of libav/ffmpeg libraries
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:4.1.10-0+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
-- Upgrade setuptools with command pip3.9 if not up to date
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: setuptools>=42.0.0 in /usr/local/lib/python3.9/site-packages (49.2.1)
-- Installed version of pip :
pip 23.0.1 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
-- Installation of python library 'requests' with command pip3.9
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: requests>=2.21.0 in /usr/local/lib/python3.9/site-packages (2.28.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/site-packages (from requests>=2.21.0) (3.1.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests>=2.21.0) (3.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests>=2.21.0) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests>=2.21.0) (1.26.15)
-- Installation of python library 'protobuf' with command pip3.9
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: protobuf>=3.11.0 in /usr/local/lib/python3.9/site-packages (3.19.0)
-- Installation of python library 'zeroconf' with command pip3.9
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: zeroconf>=0.25.1 in /usr/local/lib/python3.9/site-packages (0.47.4)
Requirement already satisfied: async-timeout>=3.0.0 in /usr/local/lib/python3.9/site-packages (from zeroconf>=0.25.1) (4.0.2)
Requirement already satisfied: ifaddr>=0.1.7 in /usr/local/lib/python3.9/site-packages (from zeroconf>=0.25.1) (0.2.0)
-- Installation of python library 'click, bs4 and six' for TTS with command pip3.9
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: click in /usr/local/lib/python3.9/site-packages (8.1.3)
Requirement already satisfied: bs4 in /usr/local/lib/python3.9/site-packages (0.0.1)
Requirement already satisfied: six in /usr/local/lib/python3.9/site-packages (1.16.0)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.9/site-packages (from bs4) (4.12.0)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.9/site-packages (from beautifulsoup4->bs4) (2.4)
-- Installation of python library 'tqdm, websocket-client, casttube' for plex/youtube with command pip3.9
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: tqdm in /usr/local/lib/python3.9/site-packages (4.65.0)
Requirement already satisfied: websocket-client in /usr/local/lib/python3.9/site-packages (1.5.1)
Requirement already satisfied: casttube in /usr/local/lib/python3.9/site-packages (0.2.1)
Requirement already satisfied: requests in /usr/local/lib/python3.9/site-packages (from casttube) (2.28.2)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.9/site-packages (from requests->casttube) (3.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests->casttube) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests->casttube) (1.26.15)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests->casttube) (3.4)
-- Installation of dependencies is done !
En parcourant la doc du plugin, j’ai constaté qu’il était recommandé en cas de problème de démarrage du démon, j’ai appliqué la correction mais sans résultat.
sudo pip3 uninstall -y requests zeroconf click bs4 six tqdm websocket-client
puis réinstallation des dépendances => pas d’amélioration
Enfin j’ai trouvé plusieurs posts qui recommandés de downgradé Protobuf :
sudo pip3 uninstall protobuf
sudo pip3 install 'protobuf==3.19.0'
Encore une fois pas d’amélioration.
Voici la configuration du plugin :
Auriez vous une idée pour m’aider à résoudre ce problème ?
Merci de votre aide,