Bonjour, J’utilse le plugin RFLink, et ce matin, il ne fonctionne plus… Déjà hier il était parfois hésitant.
Ne demandez pas, la santé est bonne sur Bullseye, le plugin à jour et le dernier firmware opérationnel sur l’Arduino Mega.
J’ai donc lancé minicom sur ttyUSB1 à 57600Bds. Les trames en provenance de l’Arduino passent sans problème et sont correctement décodées:
20;3C;DEBUG;RTS P2;a3160489f950e684001d;
20;3D;RTS;ID=f950e6;SWITCH=01;CMD=STOP;
Par contre les logs (Mode debug activé) de RFLink restent muet.
0000|[2024-08-12 09:23:07] INFO : Arrêt du service rflink
0001|[2024-08-12 09:23:56] INFO : Arrêt du service rflink
0002|[2024-08-12 09:23:56] INFO : Lancement du démon rflink
0003|[2024-08-12 09:23:56] DEBUG : Lancement démon rflink : nice -n 19 node /var/www/html/plugins/rflink/resources/rflink.js http://127.0.0.1:80/plugins/rflink/core/api/rflink.php?apikey=bH8C6G8FKpICR94URWov3v0frGPV4X6KCtXD4hnyrkQgH4pnUdnLB0PZlPOaO94E /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 none debug
0004|[2024-08-12 09:23:56] INFO : Démon rflink lancé
0005|[2024-08-12 09:24:01] INFO : 10;STATUS;
RFLink node, pas mieux:
0000|Mon Aug 12 2024 09:23:56 GMT+0200 (Central European Summer Time) - Jeedom url : http://127.0.0.1:80/plugins/rflink/core/api/rflink.php?apikey=bH8C6G8FKpICR94URWov3v0frGPV4X6KCtXD4hnyrkQgH4pnUdnLB0PZlPOaO94E, gwAddress : /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
0001|Mon Aug 12 2024 09:23:56 GMT+0200 (Central European Summer Time) - server bound on 8020
0002|Port open
0003|Mon Aug 12 2024 09:24:01 GMT+0200 (Central European Summer Time) - Server connected
Et enfin RFLink package:
0000|+ echo '*******************Begin of package installation******************'
0001|*******************Begin of package installation******************
0002|+ touch /tmp/jeedom_install_in_progress_rflink
0003|+ echo 1
0004|+ echo 2
0005|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0006|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0007|Hit:1 http://deb.debian.org/debian bullseye InRelease
0008|Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
0009|Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
0010|Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
0011|Fetched 44.1 kB in 0s (118 kB/s)
0012|Reading package lists...
0013|Reading package lists...
0014|Building dependency tree...
0015|Reading state information...
0016|apt-utils is already the newest version (2.2.4).
0017|build-essential is already the newest version (12.9).
0018|git is already the newest version (1:2.30.2-1+deb11u2).
0019|lsb-release is already the newest version (11.1.0).
0020|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0021|[Check Version NodeJS actuelle : v18.20.4 : [ OK ]
0022|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0023|+ echo 3
0024|+ sudo chmod +x /var/www/html/core/class/../../resources/install_nodejs.sh
0025|+ sudo /var/www/html/core/class/../../resources/install_nodejs.sh
0026|Hit:1 http://deb.debian.org/debian bullseye InRelease
0027|Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
0028|Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
0029|Hit:4 https://deb.nodesource.com/node_18.x nodistro InRelease
0030|Reading package lists...
0031|Reading package lists...
0032|Building dependency tree...
0033|Reading state information...
0034|apt-utils is already the newest version (2.2.4).
0035|build-essential is already the newest version (12.9).
0036|git is already the newest version (1:2.30.2-1+deb11u2).
0037|lsb-release is already the newest version (11.1.0).
0038|0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0039|[Check Version NodeJS actuelle : v18.20.4 : [ OK ]
0040|[Check Prefix : /usr and sudo prefix : /usr and www-data prefix : /usr : [ OK ]
0041|+ echo 4
0042|+ sudo chmod +x /var/www/html/core/class/../../resources/install_composer.sh
0043|+ sudo /var/www/html/core/class/../../resources/install_composer.sh
0044|Begin installation of composer
0045|--2024-08-12 09:23:12-- https://getcomposer.org/installer
0046|Resolving getcomposer.org (getcomposer.org)... 2001:41d0:302:1100::8:104f, 54.36.53.46
0047|Connecting to getcomposer.org (getcomposer.org)|2001:41d0:302:1100::8:104f|:443... connected.
0048|HTTP request sent, awaiting response... 200 OK
0049|Length: 58444 (57K) [application/octet-stream]
0050|Saving to: 'composer-setup.php'
0051|0K .......... .......... .......... .......... .......... 87% 2.50M 0s
0052|50K ....... 100% 116M=0.02s
0053|2024-08-12 09:23:12 (2.84 MB/s) - 'composer-setup.php' saved [58444/58444]
0054|All settings correct for using Composer
0055|Downloading...
0056|Composer (version 2.7.7) successfully installed to: /var/www/html/core/ajax/composer.phar
0057|Use it: php composer.phar
0058|End installation of composer
0059|+ echo 5
0060|+ cd /var/www/html/core/class/../../plugins/rflink/resources
0061|+ rm -rf node_modules
0062|+ sudo NODE_OPTIONS=--dns-result-order=ipv4first npm install
0063|npm warn deprecated har-validator@5.1.5: this library is no longer supported
0064|npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
0065|npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
0066|added 101 packages, and audited 102 packages in 5s
0067|24 packages are looking for funding
0068|run `npm fund` for details
0069|2 moderate severity vulnerabilities
0070|Some issues need review, and may require choosing
0071|a different dependency.
0072|Run `npm audit` for details.
0073|+ sudo chown -R www-data:www-data node_modules package-lock.json package.json rflink rflink.js update_firmware.sh
0074|+ echo 6
0075|+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end rflink
0076|+ echo 7
0077|+ rm /tmp/jeedom_install_in_progress_rflink
0078|+ echo '*******************End of package installation******************'
0079|*******************End of package installation******************
J’avoue m’y perdre un peu avec le fonctionnement du plugin RFLink, un peu d’aide serait la bienvenue.
Merci.
