You are not logged in.
Hi,
I connect to my gmail bay Oauth IMAP applicaion Plugin.
I suceess to create an authorization and created receiver.
but i can't receive the ticket and error occur.
sorry, i don;t know how can i upload the image.
plz visit my github wiki. i uploaded the glpi status and error log image.
github.com/jjomi/glpibug.wiki.git
>> Oauth IMAP status
Oauth Provider : Google
-> authentication is seccuss
>> my receiver
ID@gmail.com
Connection option : Oauth IMAP / SSL
Incomin mail folder : INBOX
Login : ID@gmail.com
>> try 'get mail ticket now' : false
error mwssage :
An error occurred trying to connect to the collector.
cannot connect to host; error = stream_socket_client(): unable to connect to ssl://mail.google.com:993 (Connection timed out) (errno = 0 )
>>php error log
[2022-08-12 16:59:52] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Protocol\Exception\RuntimeException: cannot connect to host; error = stream_socket_client(): unable to connect to ssl://mail.google.com:993 (Connection timed out) (errno = 0 ) in /var/www/glpi/vendor/laminas/laminas-mail/src/Protocol/ProtocolTrait.php at line 100
Backtrace :
...thimap/inc/imap/imapoauthprotocol.class.php:120 Laminas\Mail\Protocol\Imap->setupSocket()
...authimap/inc/imap/imapoauthstorage.class.php:74 GlpiPlugin\Oauthimap\Imap\ImapOauthProtocol->connect()
...authimap/inc/mailcollectorfeature.class.php:101 GlpiPlugin\Oauthimap\Imap\ImapOauthStorage->__construct()
src/Toolbox.php:2104 GlpiPlugin\Oauthimap\MailCollectorFeature::GlpiPlugin\Oauthimap\{closure}()
src/MailCollector.php:1369 Toolbox::getMailServerStorageInstance()
src/MailCollector.php:692 MailCollector->connect()
front/mailcollector.form.php:103 MailCollector->collect()
I think gmail authorization was connected.
why this error occured?
Glpi version : 10.0.2
os verion : ubuntu 20.0 (aws ec2)
php 7.4
mariaDB : 10.3.34
in security group, imap, imaps and smtp port is opend.
Last edited by sesasoning (2022-08-16 02:49:19)
Offline
Bonjour,
Même problème, le Diagnostic de la connexion dans le plugin Oauth fonctionne et me retourne bien "The Microsoft Exchange IMAP4 service is ready" mais lors de l'exécution du collecteur utilisant Oauth {xxx@xxx.onmicrosoft.com/imap-oauth-2/ssl/novalidate-cert/debug}INBOX j'ai cette aussi cette erreur :
Uncaught Exception Laminas\Mail\Protocol\Exception\RuntimeException: cannot connect to host; error = stream_socket_client(): unable to connect to ssl://xxx@xxx.onmicrosoft.com:993 (php_network_getaddresses: getaddrinfo failed: Une erreur irrcuprable sest produite lors dune recherche sur la base de donnes. ) (errno = 0 ) in C:\soft\wamp64\www\glpi\vendor\laminas\laminas-mail\src\Protocol\ProtocolTrait.php at line 100
Backtrace :
...thimap\inc\imap\imapoauthprotocol.class.php:120 Laminas\Mail\Protocol\Imap->setupSocket()
...authimap\inc\imap\imapoauthstorage.class.php:74 GlpiPlugin\Oauthimap\Imap\ImapOauthProtocol->connect()
...authimap\inc\mailcollectorfeature.class.php:101 GlpiPlugin\Oauthimap\Imap\ImapOauthStorage->__construct()
src\Toolbox.php:2194 GlpiPlugin\Oauthimap\MailCollectorFeature::GlpiPlugin\Oauthimap\{closure}()
src\MailCollector.php:1375 Toolbox::getMailServerStorageInstance()
src\MailCollector.php:698 MailCollector->connect()
front\mailcollector.form.php:103 MailCollector->collect()
J'ai parcouru tout les sujets du forum lié à cette erreur, aucune n'a fonctionné (désactivation de l'ipv6, désactivation par feu..)
Aves vous trouvé une solution ? ou cibler la source du probleme ?
Offline
hi @cmariette, could you solve your problem?
Offline