Mémoire qui baisse

Bonjour, depuis mon passage en debian 11, j ai comme bon nombre d entre vous des fuites de mémoire. Suivant les conseils de la communauté, j ai relancé les plugins un à un. Parmi ceux en cause, je pense qu’il y a RFPLAYER 2.
Voici ma page santé et mes plugin:



Je poste ce fil pour faire suite à cette demande :

Reproduisez vous?
Merci pour vos pistes

Salut,
Y a ton jeedom qui fond je crois :grin:


Beta à tester demain: j’ai juste pu valider qu’il n’y a pas d’erreur de syntax, le démon démarre, mais il se coupe aussitôt car je n’ai pas de rfplayer2 donc j’espère que ca ira; mais y a pas de raison.

Avant demain du coup: as-tu mis en place le script de monitoring comme expliqué sur l’autre post? histoire de bien pouvoir juger le « avant » vs « après »

Non, mais je vais le faire d ici la….
Je me souviens que l an dernier, certains s étaient plaints des flocons sur JC. Moi je les trouve amusants
Édit: script Ok

Top !
Je vais tester demain également.

Je confirme que le plugin est fonctionnel :+1: :grinning:

C’est déjà ça !

Et pour l’utilisation mémoire ? Je peux voir le graphe?

Par manque de temps hier, je n’ai pu gérer que broadlink et une fois de plus, bravo et merci!
ce matin, installation de la beta RFPLAYER… Demon nok…
Réinstallation de la version stable: demon NOK.
Une histoire de port.
La loose.
Je vais fouiner un peu avant de lancer un appel au secours.
En ce qui concerne le graphe, en plus, il n’était jusque là pas très significatif…

la 2eme beta de ce matin ajoute le support de deb12 (celle de hier c’était juste le patch mémoire) => il faut probablement relancer les dépendances même si marqué OK.

mais non, on est en train de tester une nouvelle beta, tu ne trouveras pas de post en lien je pense.
postes ici tous les logs, je suis là pour ça puisqu’on essaie de valider cette beta.

vu la conso très faible et en dent de scie, il indique que le démon n’était pas démarré déjà hier;
la conso mesurée est en fait la ligne « script » lancée (c’est la seul ligne qui contient « rfplayer »)

1 « J'aime »

Merci!
Je sais que je ne trouverai pas de post…
Je vais tenter de débrancher physiquement le RF PLAYER mais pour l’instant c est pas possible.
J’ai lancé les dépendances à plusieurs reprises.
J’ai tenté le port auto et le port du RFPLAYER


Les logs:

[2024-12-22 08:35:04][ERROR] : Attention je pense qu'il y a un soucis avec le démon que j'ai relancé plus de 3 fois consécutivement
[2024-12-22 08:35:06][INFO] : Lancement démon rfplayer2 : sudo python3 /var/www/html/plugins/rfplayer2/resources/rfplayer2/rfplayer2d.py --device=/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AQ0276Q0-if00-port0 --loglevel=debug --socketport=55020 --callback=http://127.0.0.1:80/plugins/rfplayer2/core/php/jeeRfplayer2.php --apikey=vHB44f7hrvM88BoncC2bMeLJLokkTtzwSHdxUTO1rb0imjqpV5EGoct2jGdm3GC0 --cycle 0.3 --pid /tmp/jeedom/rfplayer2/deamon.pid
[2024-12-22 08:35:08][INFO] : Start rfplayerd
[2024-12-22 08:35:08][DEBUG] : Log level : debug
[2024-12-22 08:35:08][DEBUG] : Socket port : 55020
[2024-12-22 08:35:08][DEBUG] : Socket host : localhost
[2024-12-22 08:35:08][DEBUG] : PID file : /tmp/jeedom/rfplayer2/deamon.pid
[2024-12-22 08:35:08][DEBUG] : Callback : http://127.0.0.1:80/plugins/rfplayer2/core/php/jeeRfplayer2.php
[2024-12-22 08:35:08][DEBUG] : Cycle : 0.3
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.blyss
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.chacon
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.domia
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.edisio
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.jamming
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.kd101
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.oregon
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.owl
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.parrot
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.rfplayer
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.rts
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.tic
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.types
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.visionic
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.visonic
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.x10
[2024-12-22 08:35:08][INFO] : LOADER------Import de la configuration rfplayer.devices.x2d
[2024-12-22 08:35:08][DEBUG] : Writing PID 3561220 to /tmp/jeedom/rfplayer2/deamon.pid
[2024-12-22 08:35:08][ERROR] : Fatal error : module 'serial' has no attribute 'VERSION'
[2024-12-22 08:35:08][DEBUG] : Shutdown
[2024-12-22 08:35:08][DEBUG] : Removing PID file /tmp/jeedom/rfplayer2/deamon.pid
[2024-12-22 08:35:08][DEBUG] : Exit 0
[2024-12-22 08:35:37][ERROR] : Impossible de lancer le démon rfplayer2, vérifiez le port

Je ne suis pas très calée mais je pense avoir compris que je n’ai pas de rfplayer connecté.
Tu sais lire le graphe et me dire qu’hier déja, ça n’allait pas.
Pourtant le demon était ok (Je sais, ça ne veut pas forcément dire que ça allait) et les infos de mes capteurs remontaient bien.
Vraiment merci pour l’aide…

non, sinon tu aurais eu un message genre « no device found »

y a plutot un problème de dépendances là, il me faudrait aussi le log rfplayer2_packages

je pense voir de quoi il s’agit mais ca va nécessité une nouvelle version,
pour gagner du temps (sinon on doit attendre une journée chaque fois) si tu es d’accord tu peux me créer un accès à ton jeedom que je teste en direct

Logs:

 echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_rfplayer2
+ echo 1
+ echo 2
++ find /usr/local/lib/python2.7/dist-packages/ /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 3
+ sudo pip3 cache purge
Files removed: 62
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (24.3.1)
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 5
+ sudo python3 -m pip install --force-reinstall --upgrade requests
Collecting requests
  Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting charset-normalizer<4,>=2 (from requests)
  Downloading charset_normalizer-3.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (34 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.2.3-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests)
  Downloading certifi-2024.12.14-py3-none-any.whl.metadata (2.3 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading certifi-2024.12.14-py3-none-any.whl (164 kB)
Downloading charset_normalizer-3.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (140 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading urllib3-2.2.3-py3-none-any.whl (126 kB)
Installing collected packages: urllib3, idna, charset-normalizer, certifi, requests
  Attempting uninstall: urllib3
    Found existing installation: urllib3 2.2.3
    Uninstalling urllib3-2.2.3:
      Successfully uninstalled urllib3-2.2.3
  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 3.4.0
    Uninstalling charset-normalizer-3.4.0:
      Successfully uninstalled charset-normalizer-3.4.0
  Attempting uninstall: certifi
    Found existing installation: certifi 2024.12.14
    Uninstalling certifi-2024.12.14:
      Successfully uninstalled certifi-2024.12.14
  Attempting uninstall: requests
    Found existing installation: requests 2.32.3
    Uninstalling requests-2.32.3:
      Successfully uninstalled requests-2.32.3
Successfully installed certifi-2024.12.14 charset-normalizer-3.4.0 idna-3.10 requests-2.32.3 urllib3-2.2.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 6
+ sudo python3 -m pip install --force-reinstall --upgrade serial
Collecting serial
  Downloading serial-0.0.97-py2.py3-none-any.whl.metadata (889 bytes)
Collecting future>=0.17.1 (from serial)
  Downloading future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
Collecting pyyaml>=3.13 (from serial)
  Downloading PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (2.1 kB)
Collecting iso8601>=0.1.12 (from serial)
  Downloading iso8601-2.1.0-py3-none-any.whl.metadata (3.7 kB)
Downloading serial-0.0.97-py2.py3-none-any.whl (40 kB)
Downloading future-1.0.0-py3-none-any.whl (491 kB)
Downloading iso8601-2.1.0-py3-none-any.whl (7.5 kB)
Downloading PyYAML-6.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (720 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 720.9/720.9 kB 6.6 MB/s eta 0:00:00
Installing collected packages: pyyaml, iso8601, future, serial
  Attempting uninstall: pyyaml
    Found existing installation: PyYAML 6.0.2
    Uninstalling PyYAML-6.0.2:
      Successfully uninstalled PyYAML-6.0.2
  Attempting uninstall: iso8601
    Found existing installation: iso8601 2.1.0
    Uninstalling iso8601-2.1.0:
      Successfully uninstalled iso8601-2.1.0
  Attempting uninstall: future
    Found existing installation: future 1.0.0
    Uninstalling future-1.0.0:
      Successfully uninstalled future-1.0.0
  Attempting uninstall: serial
    Found existing installation: serial 0.0.97
    Uninstalling serial-0.0.97:
      Successfully uninstalled serial-0.0.97
Successfully installed future-1.0.0 iso8601-2.1.0 pyyaml-6.0.2 serial-0.0.97
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 7
+ 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)
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 8
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end rfplayer2
+ echo 9
+ rm /tmp/jeedom_install_in_progress_rfplayer2
+ echo '*******************End of package installation******************'
*******************End of package installation******************

Personnelement, je ne suis pas pressée, par contre je suis contente de pouvoir aider.
Donc ok pour l’accès. C’est une première pour moi…
La suite en MP…

Pour le suivi: une nouvelle version sera dispo demain pour résoudre ce problème (déjà en place chez @Socrate13)

N’installez pas la beta de ce jour si vous ne voulez pas être bloqué.

J’ai juste relancé les dépendances de mon côté quand j’ai vu le démon non lancé (j’ai pas essayer de le lancer).
Le daemon est ensuite passer en vert en le lançant manuellement une fois les dépendances terminées.
J’ai une smart en Debian 11.

edit: après je n’ai pas installé la toute dernière beta mais celle d’hier

c’est bien celle-là qui pose problème, pas grand chose: pyserial à installer à la place de serial
mais la version demain corrigera ce problème et quelques autres moins important, dont certains spécifiques à deb12.

2 « J'aime »

Pour la mémoire pour l’instant ça ne bouge pas du tout depuis la maj :

Mais je te dirais dans 5 jours pour être certain.

image

On peut voir ci-dessus sur le graph global du swap qu’après le redémarrage des démons le swap reste stable environ 3 jours avant de chuter.

Je confirme que la beta du 23/12 s’installe sans soucis chez moi.
Relancement des dépendances OK puis démarrage du démon OK.

1 « J'aime »

Bonjour à tous et (tardivement) Joyeux Noël.
À l issue de quelques jours d observation je vous confirme que la quasi totalité de la fuite de mémoire a disparue. Mes scripts n ont pas fonctionné donc je ne peux pas vous le montrer. Les bêta de RFplayer 2 et broadlink sont parfaitement fonctionnelles et ont réglé le problème.
Un grand bravo et 1000 merci à Mips!

3 « J'aime »

J’ai demandé le passage en stable pour plugin-rfplayer2 & plugin-broadlink

Bonjour. Est-il temps pour moi de cliquer sur solution ?

1 « J'aime »

stable validé, ca sera dispo demain

je pense oui :wink: