Probleme d'authentification Mail (MFA) avec le plugin Arlo

De nouveau j’ai un problème avec le plugin Arlo. Suis à un redémarrage de ma Jeedom box, je recoit en boucle des email d’authentification d’Arlo. Le plugin semble fonctionné mais cela me pourrit ma boite de réception avec tous ces messages (qui reste étrangement non-lu).
Depuis le reboot j’ai enfin les logs du Arlo-daemon que voici:

[2022-04-21 22:54:55]DEBUG : ConnectionThread : mail login OK : [b'LOGIN completed']
[2022-04-21 22:54:55]INFO : ConnectionThread : Processing inbox...
[2022-04-21 22:55:01]DEBUG : ConnectionThread : mail login OK : [b'LOGIN completed']
[2022-04-21 22:55:01]INFO : ConnectionThread : Processing inbox...
[2022-04-21 22:55:06]DEBUG : ConnectionThread : mail login OK : [b'LOGIN completed']
[2022-04-21 22:55:06]INFO : ConnectionThread : Processing inbox...
[2022-04-21 22:55:12]DEBUG : ConnectionThread : mail login OK : [b'LOGIN completed']
[2022-04-21 22:55:12]INFO : ConnectionThread : Processing inbox...
[2022-04-21 22:55:17]DEBUG : ConnectionThread : mail login OK : [b'LOGIN completed']
[2022-04-21 22:55:17]INFO : ConnectionThread : Processing inbox...

étrangement, il y a 2 heures de décalage entre ces lignes du log et l’heure réel. Pourtant le Jeedom est à la bonne heure.

Bonjour,

Stoppez le démon quelques minutes (5min), pendant ce temps nettoyez les mails et videz le log et ensuite relancez le démon.

Le log donné n’est pas complet, il faudrait la suite.

C’est connu sur la smart, c’est un problème du fuseau horaire mal défini, cela n’impacte pas le fonctionnement du démon.

voici le log complet après l’avoir vidé:

[2022-04-22 08:39:43]INFO : MainThread : Start daemon 
[2022-04-22 08:39:43]INFO : MainThread : Log level : debug 
[2022-04-22 08:39:43]DEBUG : MainThread : Socket port : 55064 
[2022-04-22 08:39:43]DEBUG : MainThread : Socket host : localhost 
[2022-04-22 08:39:43]DEBUG : MainThread : PID file : /tmp/jeedom/arlo/deamon.pid 
[2022-04-22 08:39:43]DEBUG : MainThread : Writing PID 6347 to /tmp/jeedom/arlo/deamon.pid 
[2022-04-22 08:39:43]DEBUG : MainThread : Init request module v2.25.1 
[2022-04-22 08:39:43]DEBUG : MainThread : Starting new HTTP connection (1): 127.0.0.1:80 
[2022-04-22 08:39:43]DEBUG : MainThread : http://127.0.0.1:80 "GET /plugins/arlo/core/php/jeeArlo.php?test=1&apikey=irTD2Xm2GUmI5f0CX6PO44WXikG3Jvk1DMq2gLm38lJ5C17hUGnjLfFgW8VgZwiV HTTP/1.1" 200 2 
[2022-04-22 08:39:43]INFO : MainThread : ffmpeg loglevel: debug->debug 
[2022-04-22 08:39:43]INFO : ConnectionThread : Init connection... 
[2022-04-22 08:39:43]INFO : MainThread : Start listening 
[2022-04-22 08:39:43]INFO : ConnectionThread : cloudscraper version:1.2.58 
[2022-04-22 08:39:43]DEBUG : MainThread : Socket interface started 
[2022-04-22 08:39:43]DEBUG : Thread-1 : LoopNetServer Thread started 
[2022-04-22 08:39:43]DEBUG : Thread-1 : Listening on: [localhost:55064] 
[2022-04-22 08:39:43]DEBUG : ConnectionThread : Starting new HTTPS connection (1): ocapi-app.arlo.com:443 
[2022-04-22 08:39:43]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "OPTIONS /api/auth HTTP/1.1" 204 0 
[2022-04-22 08:39:43]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "POST /api/auth HTTP/1.1" 200 None 
[2022-04-22 08:39:43]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "OPTIONS /api/getFactors?data%20=%201650616782 HTTP/1.1" 204 0 
[2022-04-22 08:39:43]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "GET /api/getFactors?data%20=%201650616782 HTTP/1.1" 200 None 
[2022-04-22 08:39:43]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "OPTIONS /api/startAuth HTTP/1.1" 204 0 
[2022-04-22 08:39:44]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "POST /api/startAuth HTTP/1.1" 200 None 
[2022-04-22 08:39:44]DEBUG : ConnectionThread : pivot date:2022-04-22 08:38:44.637689 
[2022-04-22 08:39:44]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] 
[2022-04-22 08:39:44]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:39:51]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:39:51]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:39:56]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:39:56]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:40:02]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:40:02]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:40:07]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:40:07]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:40:13]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:40:13]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:40:18]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:40:18]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:40:23]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:40:23]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:40:29]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:40:29]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:06]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] 
[2022-04-22 08:41:06]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:11]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:11]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:16]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:17]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:22]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] 
[2022-04-22 08:41:22]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:27]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:27]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:33]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:33]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:38]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:38]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:44]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:44]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:49]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:49]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:41:55]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:41:55]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:00]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:00]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:05]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:06]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:11]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:11]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:16]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:16]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:22]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:22]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:27]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] 
[2022-04-22 08:42:27]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:40]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:40]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:45]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:45]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:51]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:51]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:42:56]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:42:56]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:43:01]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:43:01]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:43:06]WARNING : ConnectionThread : An exception of type (Exception) occured, reconnecting: OTP cannot be retrieved 
[2022-04-22 08:43:12]INFO : ConnectionThread : Init connection... 
[2022-04-22 08:43:12]INFO : ConnectionThread : cloudscraper version:1.2.58 
[2022-04-22 08:43:13]DEBUG : ConnectionThread : Starting new HTTPS connection (1): ocapi-app.arlo.com:443 
[2022-04-22 08:43:13]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "OPTIONS /api/auth HTTP/1.1" 204 0 
[2022-04-22 08:43:13]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "POST /api/auth HTTP/1.1" 200 None 
[2022-04-22 08:43:13]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "OPTIONS /api/getFactors?data%20=%201650616992 HTTP/1.1" 204 0 
[2022-04-22 08:43:13]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "GET /api/getFactors?data%20=%201650616992 HTTP/1.1" 200 None 
[2022-04-22 08:43:13]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "OPTIONS /api/startAuth HTTP/1.1" 204 0 
[2022-04-22 08:43:14]DEBUG : ConnectionThread : https://ocapi-app.arlo.com:443 "POST /api/startAuth HTTP/1.1" 200 None 
[2022-04-22 08:43:14]DEBUG : ConnectionThread : pivot date:2022-04-22 08:42:14.363795 
[2022-04-22 08:43:14]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] 
[2022-04-22 08:43:14]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:43:20]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:43:20]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:43:25]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:43:25]INFO : ConnectionThread : Processing inbox... 
[2022-04-22 08:43:30]DEBUG : ConnectionThread : mail login **OK** : [b'LOGIN completed'] [2022-04-22 08:43:30]INFO : ConnectionThread : Processing inbox...

C’est quoi comme mail? yahoo?
il y a déjà eu d’autres cas où yahoo posait problème.

GMX un fournisseur allemand classique de mailbox IMAP/POP/SMTP. Ça marchait bien l’authentification Email avant.

Bon, j’ai tenté de créer un compte chez eux pour tester mais ca plante:
image

du coup je vous propose que vous testiez avec un autre compte de messagerie, par exemple gmail.

J’ai essayé avec un compte Gmail mais la c’est Google qui bloque car l’application n’est pas assez sécure. Pour un test ca va mais pas pour du long terme.


J’ai accepter de reconnaitre l’activité comme de confiance et ignoré ce message. Mais ca ne semble pas fonctionné mais si j’ai double checké mon password. Voici le log:

[2022-04-22 16:05:35]ERROR : ConnectionThread : Login to mailbox failed. Please check email user, password and server
[2022-04-22 16:05:35]ERROR : ConnectionThread : b'[AUTHENTICATIONFAILED] Invalid credentials (Failure)'

J’ai autorisé les applications moins sécurisées dans mon compte Gmail, maintenant ca fonctionne par contre je ne vais pas laisser cela.
Il semble que cela vienne de mon compte email mais comment le faire fonctionné ou sécurisé l’appli pour l’utilisé avec un compte Gmail?

Il faut créer un mot de passe applicatif comme indiqué dans la documentation.
Il y a d’autres posts sur community qui explique la même chose (pas forcément pour arlo), par exemple: Plugin mail avec Gmail. SMTP Error. Could not authenticate - #21 par Mips

ou ici avec le lien vers la documentation google: Je ne vois pas les cameras - #9 par Mips

Ok c’est parfait comme ca. Je n’étais pas revu sur la doc pour vérifier cela… ma faute.
Merci

Pas très grave, si c’est résolu c’est le principal :wink:

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.