Open techno-blogger opened 1 year ago
Bonjour, En fait la vraie question est la suivante : Quel défaut constatez vous ? Car effectivement je suis d'accord avec vous il y a bien un message d'erreur. Mais mise à part ce message erreur dans les logs : Y'a t-il un impact sur le fonctionnement du plugin?
Bonjour, Mon problème c'est que je n'ai plus de notification de détection de mouvement après le log de l'erreur. Par exemple aujourd'hui j'ai relancé le daemon ce matin à 9h22 et j'ai eu des détections de mouvement jusqu’à 12h40 car ensuite à 12h49 le daemon c'est relancé et a généré l'erreur de credentials. A partir de ce moment plus aucune détection de mouvement malgré mes passages devant la caméra, j'ai donc relancé manuellement le plugin et c'est de nouveau fonctionnel pour un certain temps (moins de 24h).
0334|[2022-11-01 12:40:44]DEBUG : Incoming XML camera event on webhook from IP=192.168.XXX.XXX
0335|[2022-11-01 12:40:44]DEBUG : Send to jeedom : {'message': 'motion', 'ip': '192.168.XXX.XXX', 'motionstate': 0}
0336|INFO: 192.168.XXX.XXX:54956 - "POST /inbound_events HTTP/1.1" 200 OK
0337|[2022-11-01 12:40:44]DEBUG : Starting new HTTP connection (1): 127.0.0.1:80
0338|[2022-11-01 12:40:44]DEBUG : Incoming XML camera event on webhook from IP=192.168.XXX.XXX
0339|INFO: 192.168.XXX.XXX:54958 - "POST /inbound_events HTTP/1.1" 200 OK
0340|[2022-11-01 12:40:44]DEBUG : http://127.0.0.1:80 "POST /plugins/reolink/core/php/jeeReolink.php?apikey=je vais pas la mettre quand même HTTP/1.1" 200 0
0341|[2022-11-01 12:49:27]DEBUG : Init request module v2.21.0
0342|[2022-11-01 12:49:27]INFO : Start demond
0343|[2022-11-01 12:49:27]INFO : Log level : debug
0344|[2022-11-01 12:49:27]INFO : Socket port : 44009
0345|[2022-11-01 12:49:27]INFO : Socket host : localhost
0346|[2022-11-01 12:49:27]INFO : PID file : /tmp/jeedom/reolink/deamon.pid
0347|[2022-11-01 12:49:27]INFO : Apikey : je vais pas la mettre quand même
0348|[2022-11-01 12:49:27]INFO : Device : auto
0349|[2022-11-01 12:49:27]INFO : Webhook IP : 192.168.XXX.XXX
0350|[2022-11-01 12:49:27]INFO : Webhook port : 44010
0351|[2022-11-01 12:49:27]INFO : Write creds file for camhook
0352|[2022-11-01 12:49:27]DEBUG : Unable to write creds file : [Errno 13] Permission denied: 'jeedomcreds'
0353|[2022-11-01 12:49:27]DEBUG : Writing PID 2008 to /tmp/jeedom/reolink/deamon.pid
0354|[2022-11-01 12:49:27]INFO : Starting webhook...
0355|[2022-11-01 12:49:27]DEBUG : Socket interface started
0356|[2022-11-01 12:49:27]DEBUG : LoopNetServer Thread started
0357|[2022-11-01 12:49:27]DEBUG : Listening on: [localhost:44009]
0358|[2022-11-01 12:49:27]DEBUG : Using selector: EpollSelector
0359|[2022-11-01 12:49:29]ERROR : Unable to read credentials jeedom file, retry...
0360|[2022-11-01 12:50:05]DEBUG : Client connected to [127.0.0.1:47186]
0361|[2022-11-01 12:50:05]DEBUG : Client disconnected from [127.0.0.1:47186]
0362|[2022-11-01 12:50:05]DEBUG : Message received in socket JEEDOM_SOCKET_MESSAGE
0363|[2022-11-01 12:50:05]DEBUG : Requested to set the webhook inside CAM IP=192.168.XXX.XXX
0364|[2022-11-01 12:50:06]DEBUG : Using selector: EpollSelector
0365|[2022-11-01 12:50:06]DEBUG : Request subscription_manager to set webhook on camera = 192.168.XXX.XXX:8000
0366|[2022-11-01 12:50:06]DEBUG : SMAN : Reolink host 192.168.XXX.XXX (Subscription) request
0367|[2022-11-01 12:50:06]DEBUG : SMAN : Reolink host 192.168.XXX.XXX (Subscription) got response status: 200.
0368|[2022-11-01 12:50:06]DEBUG : SMAN : Local time: 2022-11-01 11:50, camera time: 2022-11-01 11:50 (difference: 0.941925048828125), termination time: 2022-11-01 12:05
0369|[2022-11-01 12:50:06]DEBUG : Starting local hook on : http://192.168.XXX.XXX:44010/inbound_events
0370|[2022-11-01 12:50:06]DEBUG : Subscribe OK
0371|[2022-11-01 12:50:06]DEBUG : Send to jeedom : {'message': 'subscription', 'ip': '192.168.XXX.XXX', 'state': 1}
0372|[2022-11-01 12:50:06]DEBUG : Starting new HTTP connection (1): 127.0.0.1:80
0373|[2022-11-01 12:50:06]DEBUG : http://127.0.0.1:80 "POST /plugins/reolink/core/php/jeeReolink.php?apikey=je vais pas la mettre quand même HTTP/1.1" 200 0
0374|[2022-11-01 13:00:06]DEBUG : Client connected to [127.0.0.1:48890]
0375|[2022-11-01 13:00:06]DEBUG : Client disconnected from [127.0.0.1:48890]
0376|[2022-11-01 13:00:06]DEBUG : Message received in socket JEEDOM_SOCKET_MESSAGE
0377|[2022-11-01 13:00:06]DEBUG : Requested to set the webhook inside CAM IP=192.168.XXX.XX
0378|[2022-11-01 13:00:06]DEBUG : Using selector: EpollSelector
0379|[2022-11-01 13:00:06]DEBUG : Request subscription_manager to set webhook on camera = 192.168.XXX.XXX:8000
0380|[2022-11-01 13:00:06]DEBUG : SMAN : Reolink host 192.168.XXX.XXX (Subscription) request
0381|[2022-11-01 13:00:07]DEBUG : SMAN : Reolink host 192.168.XXX.XXX (Subscription) got response status: 200.
0382|[2022-11-01 13:00:07]DEBUG : SMAN : Local time: 2022-11-01 12:00, camera time: 2022-11-01 12:00 (difference: 1.0036580562591553), termination time: 2022-11-01 12:15
0383|[2022-11-01 13:00:07]DEBUG : Starting local hook on : http://192.168.XXX.XXX:44010/inbound_events
0384|[2022-11-01 13:00:07]DEBUG : Subscribe OK
0385|[2022-11-01 13:00:07]DEBUG : Send to jeedom : {'message': 'subscription', 'ip': '192.168.XXX.XXX', 'state': 1}
0386|[2022-11-01 13:00:07]DEBUG : Starting new HTTP connection (1): 127.0.0.1:80
0387|[2022-11-01 13:00:07]DEBUG : http://127.0.0.1:80 "POST /plugins/reolink/core/php/jeeReolink.php?apikey=je vais pas la mettre quand même HTTP/1.1" 200 0
D'accord en précisant le défaut constaté c'est plus clair. Savez-vous pourquoi le démon à redémarrer à 12:49 ? Manuellement ? Plantage ? Redémarrage complet de Jeedom ? Il faudrait plus de détails sur ce point là
je n'ai fait aucune action sur jeedom (j’étais pas chez moi ;) ) et il n'y a pas eu de coupure de courant ou de redémarrage de la journée. hier soir j'ai stoppé la gestion automatique du daemon par jeedom mais ca n'a rien changé j'ai toujours le problème ce matin
OK merci pour ce retour. Je vais investiguer cette histoire de permission dès que j'aurais un peu de temps
Bonjour, Je pense avoir trouvé le problème, dans la partie authentification j'avais login et mot de passe à la place de token. Depuis le changement j'ai plus de problème.
Bonjour, Login/Mot de passe ou Token est la methode d'appel de l'API de la caméra. Le problème que tu me relève ici c'est un problème entre le démon et jeedom. Et plus précisement de droit d'ecriture d'un fichier. Donc ca n'a pas de lien
tu as raison car j'ai eu de nouveau le message aujourd'hui. je pensais le type d'authentification était entre le daemon et jeedom.
voici les log que j'ai eu
0193|[2022-11-08 15:43:17]INFO : Start demond
0194|[2022-11-08 15:43:17]INFO : Log level : debug
0195|[2022-11-08 15:43:17]INFO : Socket port : 44009
0196|[2022-11-08 15:43:17]INFO : Socket host : localhost
0197|[2022-11-08 15:43:17]INFO : PID file : /tmp/jeedom/reolink/deamon.pid
0198|[2022-11-08 15:43:17]INFO : Apikey : XXX
0199|[2022-11-08 15:43:17]INFO : Device : auto
0200|[2022-11-08 15:43:17]INFO : Webhook IP : 192.168.XXX.XXX
0201|[2022-11-08 15:43:17]INFO : Webhook port : 44010
0202|[2022-11-08 15:43:17]INFO : Write creds file for camhook
0203|[2022-11-08 15:43:17]DEBUG : Unable to write creds file : [Errno 13] Permission denied: 'jeedomcreds'
0204|[2022-11-08 15:43:17]DEBUG : Writing PID 1400 to /tmp/jeedom/reolink/deamon.pid
0205|[2022-11-08 15:43:17]INFO : Starting webhook...
0206|[2022-11-08 15:43:17]DEBUG : Socket interface started
0207|[2022-11-08 15:43:17]DEBUG : LoopNetServer Thread started
0208|[2022-11-08 15:43:17]DEBUG : Listening on: [localhost:44009]
0209|[2022-11-08 15:43:17]DEBUG : Using selector: EpollSelector
0210|[2022-11-08 15:43:18]ERROR : Unable to read credentials jeedom file, retry...
Bonjour, J'ai souvent des erreurs sur le demon reolink lors de la lecture du fichier credentials. Voici les logs:
La seule solution que j'ai trouvé c'est d’arrêter le daemon puis le relancer.
Ce qui fait que généralement je dois relancer le daemon toute les 24h. Et si je fais un script qui lance le daemon toute les jours ca ne fonctionne pas mis si je le fait à la main le lancement du daemon fonctionne
Avez vous connaissance de ce problème ?