Install auto en erreur Is a directory

bonjour impossible d’installer en auto voici le log



 Accueil 
 Analyse 
 Outils 
 Plugins 
 Réglages 
00:41:01
Jeedom-M
2
21.6 °C
65.8 %
23.2 W
 Gestion

Ajouter

Configuration

Santé

Page Html


Documentation
Rechercher
 Mes installations manuelles de Hard Disk Sentinel 
10 %
Aucun
jeedom-a
0
 informatique
jeedom
10 %
 informatique
jeedom-e
 Mes installations auto de Hard Disk Sentinel 
197 %
 informatique
FIXE
Configuration du plugin
Hard Disk Sentinel (hdsentinel) - stable
 Etat

StatutActifAction

CatégorieMonitoringSourcemarket
AuteurDomoFlo1Version v0.90 (2022-04-10 01:10:27)
LicenseAGPLPrérequis 4.0
 Logs et surveillance

Niveau logAucunDefautDebugInfoWarningError
Logs      
Heartbeat (min)
 Installation
Prérequis : Un appareil sous linux .
Le détail des commandes et leur fonctionnement sur la documentation du plugin: 
 Configuration
 Général
Branche : stable
Source : market
Version : v0.90 (2022-04-10 01:10:27)
Les dernières actualités du plugin .
Les dernières discussions autour du plugin .
Pensez à mettre le tag #plugin-hdsentinel et à fournir les log dans les balises préformatées.
 Distant
Version installée sur jeedom-aHard Disk Sentinel 0.18e Dernière communication (2022-05-27 00:38:02)
Version installée sur FIXEHard Disk Sentinel 6.01 (Mode Service ) Dernière communication (2022-05-26 23:59:51)
Version installée sur jeedomN/A Dernière communication (N/A)
Version installée sur jeedom-eHard Disk Sentinel 0.18e Dernière communication (2022-05-27 00:15:44)
    
 Fonctionnalités

interactNon
cronNon
cron5Non
cron10Non
cron15Non
cron30Non
cronHourlyOuiActiver
cronDailyNon
deadcmdNon
healthNon
 Panel

Afficher le panneau desktop
Log du plugin hdsentinel_jeedom
Log brut  
Rechercher
 

[sudo] Mot de passe de utilisateur : 10 Vérification du système
ARCH=x86_64; BITS=64; USER=root; PWD=/home/utilisateur; SCRIPT_VERSION=0.18
30 Suppression ancienne installation
rm: impossible de supprimer '/usr/local/bin/hdsentinel': est un dossier
50 Récupération URL
70 URL récupérée=https://www.hdsentinel.com/hdslin/hdsentinel-019c-x64.gz; uncompress=gzip; extension=gz
80 Téléchargement et installation
--2022-05-27 00:40:36--  https://www.hdsentinel.com/hdslin/hdsentinel-019c-x64.gz
Résolution de www.hdsentinel.com (www.hdsentinel.com)… 79.172.252.60
Connexion à www.hdsentinel.com (www.hdsentinel.com)|79.172.252.60|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 1589849 (1,5M) [application/x-gzip]
Sauvegarde en : « /home/utilisateur/hdsentinel.gz »
0K .......... .......... .......... .......... ..........  3%  747K 2s
50K .......... .......... .......... .......... ..........  6% 1,51M 1s
100K .......... .......... .......... .......... ..........  9% 33,7M 1s
150K .......... .......... .......... .......... .......... 12% 1,52M 1s
200K .......... .......... .......... .......... .......... 16% 28,7M 1s
250K .......... .......... .......... .......... .......... 19% 76,6M 1s
300K .......... .......... .......... .......... .......... 22%  114M 0s
350K .......... .......... .......... .......... .......... 25% 1,61M 0s
400K .......... .......... .......... .......... .......... 28% 82,2M 0s
450K .......... .......... .......... .......... .......... 32% 68,5M 0s
500K .......... .......... .......... .......... .......... 35% 71,1M 0s
550K .......... .......... .......... .......... .......... 38% 73,8M 0s
600K .......... .......... .......... .......... .......... 41% 65,0M 0s
650K .......... .......... .......... .......... .......... 45% 77,2M 0s
700K .......... .......... .......... .......... .......... 48% 1,71M 0s
750K .......... .......... .......... .......... .......... 51% 64,9M 0s
800K .......... .......... .......... .......... .......... 54% 73,4M 0s
850K .......... .......... .......... .......... .......... 57% 62,9M 0s
900K .......... .......... .......... .......... .......... 61% 74,5M 0s
950K .......... .......... .......... .......... .......... 64% 65,1M 0s
1000K .......... .......... .......... .......... .......... 67% 72,7M 0s
1050K .......... .......... .......... .......... .......... 70% 64,1M 0s
1100K .......... .......... .......... .......... .......... 74% 61,1M 0s
1150K .......... .......... .......... .......... .......... 77% 74,5M 0s
1200K .......... .......... .......... .......... .......... 80% 63,0M 0s
1250K .......... .......... .......... .......... .......... 83% 74,4M 0s
1300K .......... .......... .......... .......... .......... 86% 71,4M 0s
1350K .......... .......... .......... .......... .......... 90%  209M 0s
1400K .......... .......... .......... .......... .......... 93%  250M 0s
1450K .......... .......... .......... .......... .......... 96% 2,06M 0s
1500K .......... .......... .......... .......... .......... 99% 47,8M 0s
1550K ..                                                    100% 4934G=0,2s
2022-05-27 00:40:36 (6,53 MB/s) — « /home/utilisateur/hdsentinel.gz » sauvegardé [1589849/1589849]
gzip: /home/utilisateur/hdsentinel: Is a directory
100 Installation en erreur

je l’install sur mon jeedom local (x86 debian) ou sur mon PI 3 pareil
pour causse on pousse le dossier /home/pi/hdsentinel/ et le gzip hdsentinel.gz ducoup decompresser meme nom.
bonne journée
damien

Bonjour.

D’après ce que je vois, le dossier /home/utilisateur/hdsentinel existe déjà et empêche d’installer le paquet. Supprime-le par ssh : rm -rf /home/utilisateur/hdsentinel
Mais non, il ne devrait pas y avoir ce problème car l’installation se fait normalement dans /home/$user avec en $user celui mis dans le plugin. Donc à un moment tu as dû mettre utilisateur et donc envoyer les paquets sur cet utilisateur.

bonjour,
deja fait mais ca ne change pas le probleme,
en fait c’est que le fichier lors de la decompression il creer un dossier /home/user/hdsentinel et ensuite essaye de creer le dossier mais ducoup ce dossier existe deja. c’est systematique.
Capture d’écran 2022-05-30 184412
apres envoie le dossier hdsentinel est crée c’est la le probleme
Capture d’écran 2022-05-30 184525
a l’install le fichier hdsentinel.gz est créé
Capture d’écran 2022-05-30 184837
ducoup il peu pas decompresser vu que le dossier existe deja c’est lui meme


bonne soirée

J’ai poussé une mise à jour.
Me dire si ça passe.

ca fonctionne pour le jeedom en x86 en supprimant a la main le dossier /usr/local/bin/hdsentinel
par contre mon raspi il est en erreur
l’install ce passe bien


log vide
et log hdsentinel

si je lance a la main mais la je sais pas si c’est bon j’ai

Hard Disk Sentinel for LINUX console 0.18e.8675 (c) 2020 info@hdsentinel.com
Start with -r [reportfile] to save data to report, -h for help

Examining hard disk configuration ...
No hard disk devices found. Please run as "root".

Oui, c’est bon.
Comme il a une emmc et pas de disque sata, il l’affiche pas directement le disque.
Mais le plugin le prned en clmpte via une commande spéciale.

je m’en doutais ^^

c’est quoi la commande special ? car le le demon ce lance pas ^^

Si ca passe pas en auto, passe en manuel (zappe la partie installation vu que tu as deja intallé les paquets)

1 « J'aime »

en manuel
[2022-05-31 22:40:31]INFO : Sortie commande par SSH2 sur 192.168.0.63
[2022-05-31 22:40:32]INFO : Erreur XML

Depuis la console SSH sur ton rpi, tu peux taper : hdsentinel -dump -xml et m’envoyer le résultat ?

rien du tout il ce passe rien

C’est « normal » en manuel, en fait.
L’emmc n’est pas prise en compte actuellement.

Ca devrait marcher :

En auto, ça fonctionne sur mon PI.
Si tu peux repasser en auto et afficher la page d’état du cron (Gestion distante) et m’envoyer les logs qui sont alors apparues, je pourrais regarder ce qu’il se passe.

Date: Wed, 01 Jun 2022 18:22:02 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=UTF-8
curl error code 0: Trying insecure http
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2302    0     0  100  2302      0  20017 --:--:-- --:--:-- --:--:-- 20371
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Wed, 01 Jun 2022 18:22:02 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=UTF-8
result: disk not found
disk found: mmcblk0
Hard Disk Sentinel for LINUX console 0.18e.8675 (c) 2020 info@hdsentinel.com
Start with -r [reportfile] to save data to report, -h for help
Examining hard disk configuration ...
HDD Device  0: /dev/mmcblk0
HDD Model ID : ?
HDD Serial No: ?
HDD Revision : ?
HDD Size     : 0 MB
Interface    : SCSI
Temperature  : Unknown °C
Highest Temp.: Unknown °C
Health       : Unknown %
Performance  : Unknown %
Power on time:
Est. lifetime:
Report file saved as: /tmp/hdsentinel.xml
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2302    0     0  100  2302      0  27082 --:--:-- --:--:-- --:--:-- 27082
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Wed, 01 Jun 2022 18:23:02 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=UTF-8
curl error code 0: Trying insecure http
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2302    0     0  100  2302      0  25296 --:--:-- --:--:-- --:--:-- 25577
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Wed, 01 Jun 2022 18:23:02 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=UTF-8
result: disk not found
disk found: mmcblk0
Hard Disk Sentinel for LINUX console 0.18e.8675 (c) 2020 info@hdsentinel.com
Start with -r [reportfile] to save data to report, -h for help
Examining hard disk configuration ...
HDD Device  0: /dev/mmcblk0
HDD Model ID : ?
HDD Serial No: ?
HDD Revision : ?
HDD Size     : 0 MB
Interface    : SCSI
Temperature  : Unknown °C
Highest Temp.: Unknown °C
Health       : Unknown %
Performance  : Unknown %
Power on time:
Est. lifetime:
Report file saved as: /tmp/hdsentinel.xml
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2302    0     0  100  2302      0  27404 --:--:-- --:--:-- --:--:-- 27734
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Wed, 01 Jun 2022 18:24:02 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=UTF-8
curl error code 0: Trying insecure http
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  2302    0     0  100  2302      0  21923 --:--:-- --:--:-- --:--:-- 22134
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Wed, 01 Jun 2022 18:24:02 GMT
Server: Apache
Content-Length: 0
Content-Type: text/html; charset=UTF-8

mon df

Sys. de fichiers blocs de 1K Utilisé Disponible Uti% Monté sur
/dev/root           15023184 3664912   10716140  26% /
devtmpfs              341736       0     341736   0% /dev
tmpfs                 473320       0     473320   0% /dev/shm
tmpfs                 473320   48384     424936  11% /run
tmpfs                   5120       4       5116   1% /run/lock
tmpfs                 473320       0     473320   0% /sys/fs/cgroup
tmpfs                 262144     444     261700   1% /tmp/jeedom
/dev/mmcblk0p1        258095   55169     202926  22% /boot
tmpfs                  94664      12      94652   1% /run/user/1000

J’ai poussé une modif pour manuel uniquement. Me dire si il y a toujours « Erreur XML ».

Ensuite :

uncknow error quand je tente la mise a jour
on dirait qu’il ce passe quelquechose lors de la derniere phase

0000|[2022-06-02 19:01:45]ALERT : [START UPDATE]
0001|[2022-06-02 19:01:45]ALERT : Début de la mise à jour de : hdsentinel
0002|[2022-06-02 19:01:45]ALERT : Action de pré-update...
0003|[2022-06-02 19:01:46]ALERT : OK
0004|[2022-06-02 19:01:46]ALERT : Téléchargement du plugin (source : market)...
0005|[2022-06-02 19:01:46]ALERT : Téléchargement de hdsentinel...
0006|[2022-06-02 19:01:46]ALERT : URL https://market.jeedom.com/core/php/downloadFile.php?id=4247&version=stable&jeedomversion=4.2.18&hwkey=becce7cb2f8dc72d93d15605b77a7d3002bfec24&username=sheep300&password=02726d40f378e716981c4321d60ba3a325ed6a4c&password_type=sha1
0007|--2022-06-02 19:01:46--  https://market.jeedom.com/core/php/downloadFile.php?id=4247&version=stable&jeedomversion=4.2.18&hwkey=becce7cb2f8dc72d93d15605b77a7d3002bfec24&username=sheep300&password=02726d40f378e716981c4321d60ba3a325ed6a4c&password_type=sha1
0008|Resolving market.jeedom.com (market.jeedom.com)... 51.178.69.128, 51.210.253.116
0009|Connecting to market.jeedom.com (market.jeedom.com)|51.178.69.128|:443... connected.
0010|HTTP request sent, awaiting response... 200 OK
0011|Length: unspecified [application/octet-stream]
0012|Saving to: '/tmp/jeedom/market/hdsentinel.zip'
0013|0K .......... .......... .......... .......... .......... 1.71M
0014|50K .......... .......... .......... .......... .......... 3.43M
0015|100K .......... .......... .......... .......... .......... 40.4M
0016|150K .......... .......... .......... .......... .......... 3.85M
0017|200K .......... .......... .......... .......... .......... 35.9M
0018|250K .......... .......... .......... .......... .......... 39.8M
0019|300K .......... .......... .......... .......... .......... 43.8M
0020|350K .......... .......... .......... .......... .......... 46.1M
0021|400K .......... .......... .......... .......... .......... 5.00M
0022|450K .......... .......... .......... .......... .......... 28.0M
0023|500K .......... .......... .......... .......... .......... 61.2M
0024|550K .......... .......... .......... .......... .......... 82.8M
0025|600K .......... .......... .......... .......... .          74.1M=0.07s
0026|2022-06-02 19:01:46 (8.37 MB/s) - '/tmp/jeedom/market/hdsentinel.zip' saved [657351]
0027|[2022-06-02 19:01:46]ALERT : OK
0028|[2022-06-02 19:01:46]ALERT : Décompression du zip...
0029|[2022-06-02 19:01:46]ALERT : OK
0030|[2022-06-02 19:01:46]ALERT : Post-installation de hdsentinel...
0031|[2022-06-02 19:01:46]ALERT : Suppression des fichiers inutiles...

Reproduit également, j’ai poussé un correctif.

c’est bon pour la maj,

en manuel toujours,

[2022-06-02 20:04:33]INFO : Statut du cron distant
[2022-06-02 20:04:34]INFO : Commande par SSH2 ([ -f "/opt/bin/crontab" ] && (echo "PASSWORD" | sudo -S /opt/bin/crontab -u root -l | grep hdsentinel_to_jeedom_pub | wc -l)) || ([ -f "/usr/bin/crontab" ] && (echo "PASSWORD" | sudo -S /usr/bin/crontab -u root -l | grep hdsentinel_to_jeedom_pub | wc -l)) sur 192.168.0.63
[2022-06-02 20:04:34]INFO : Sortie commande par SSH2 1  sur 192.168.0.63
[2022-06-02 20:04:38]DEBUG : TYPE action refresh avec option : {"user_login":"admin","user_id":"1"}
[2022-06-02 20:04:38]INFO : Refresh commande
[2022-06-02 20:04:39]INFO : Commande par SSH2 HDSENTINEL=$(which hdsentinel);         if [ -f '/usr/local/bin/hdsentinel' ];           then HDSENTINEL='/usr/local/bin/hdsentinel';         elif [ -f '/usr/bin/hdsentinel' ]; then           HDSENTINEL='/usr/bin/hdsentinel';         elif [ -f '/bin/hdsentinel' ]; then           HDSENTINEL='/bin/hdsentinel';         elif [ -f '/sbin/hdsentinel' ]; then           HDSENTINEL='/sbin/hdsentinel';         fi; DISK='';         if [ -f '/dev/mmcblk0p1' ];           then DISK='-dev /dev/mmcblk0p1';         fi; echo "PASSWORD" | sudo -S $HDSENTINEL -dump -xml $DISK sur 192.168.0.63
[2022-06-02 20:04:39]INFO : Sortie commande par SSH2  sur 192.168.0.63
[2022-06-02 20:04:40]INFO : Erreur XML

J’ai reproduit sur mon Pi et corrigé.
Une petite broutille au final, merci.