Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email connection timeout does not show up with email-check on admin dashboard #3638

Open
s-light opened this issue Nov 4, 2020 · 2 comments

Comments

@s-light
Copy link

s-light commented Nov 4, 2020

i have setup Phraseanet with docker on a old laptop to test it.
the basic web-app does work.
but i wanted to setup mail so i can also test the new user mail feature.

for this i put my mail config into the .env

# Phraseanet mail configuration
[email protected]
PHRASEANET_MAIL_OBJECT_PREFIX=
PHRASEANET_SMTP_ENABLED=true
PHRASEANET_SMTP_HOST=xxxxxx123456789.mailout.server-he.de
PHRASEANET_SMTP_PORT=465
PHRASEANET_SMTP_AUTH_ENABLED=true
PHRASEANET_SMTP_SECURE_MODE=tls
PHRASEANET_SMTP_USER=usernamething
PHRASEANET_SMTP_PASSWORD=mypassword

but if i go to the admin dashboard and use the test mail form i get som errors in the logfile and the site does get empty:

phraseanet_1     | [04-Nov-2020 01:19:20] WARNING: [pool www] child 57 said into stderr: 
"[2020-11-04 01:19:20] phraseanet.ERROR: Connection to tcp://xxxxxx123456789.mailout.server-he.de:465 Timed Out {"code":0,"trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"/var/alchemy/Phraseanet/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php","line":404,"args":[]},{"namespace":"","short_class":"Swift_Transport_AbstractSmtpTransport","class":"Swift_Transport_AbstractSmtpTransport","type":"->","function":"_getFullResponse","file":"/var/alchemy/Phraseanet/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php","line":289,"args":[["string","0"]]},{"namespace":"","short_class":"Swift_Transport_AbstractSmtpTransport","class":"Swift_Transport_AbstractSmtpTransport","type":"->","function":"_readGreeting","file":"/var/alchemy/Phraseanet/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php","line":117,"args":[]},{"name...

phraseanet_1     | [04-Nov-2020 01:19:20] WARNING: [pool www] child 57 said into stderr: 
"wift_Transport_AbstractSmtpTransport","type":"->","function":"start","file":"/var/alchemy/Phraseanet/vendor/swiftmailer/swiftmailer/lib/classes/Swift/MemorySpool.php","line":83,"args":[]},{"namespace":"","short_class":"Swift_MemorySpool","class":"Swift_MemorySpool","type":"->","function":"flushQueue","file":"/var/alchemy/Phraseanet/lib/Alchemy/Phrasea/Controller/Admin/DashboardController.php","line":99,"args":[["object","Swift_Transport_EsmtpTransport"]]},{"namespace":"Alchemy\\Phrasea\\Controller\\Admin","short_class":"DashboardController","class":"Alchemy\\Phrasea\\Controller\\Admin\\DashboardController","type":"->","function":"sendMail","file":null,"line":null,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"]]},{"namespace":"","short_class":"","class":"","type":"","function":"call_user_func_array","file":"/var/alchemy/Phraseanet/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php","line":144,"args":...

phraseanet_1     | [04-Nov-2020 01:19:20] WARNING: [pool www] child 57 said into stderr: 
"ller"],["string","sendMail"]]],["array",[["object","Symfony\\Component\\HttpFoundation\\Request"]]]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handleRaw","file":"/var/alchemy/Phraseanet/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php","line":64,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["string","1"]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"->","function":"handle","file":"/var/alchemy/Phraseanet/vendor/silex/silex/src/Silex/Application.php","line":586,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["string","1"],["boolean",true]]},{"namespace":"Silex","short_class":"Application","class":"Silex\\Application","type":"->","function":"handle","file":"/var/alchemy/Phraseanet/ve...

phraseanet_1     | [04-Nov-2020 01:19:20] WARNING: [pool www] child 57 said into stderr: 
"Symfony\\Component\\HttpFoundation\\Request"]]},{"namespace":"Silex","short_class":"Application","class":"Silex\\Application","type":"->","function":"run","file":"/var/alchemy/Phraseanet/www/index.php","line":23,"args":[]}]} {"url":"/admin/dashboard/send-mail-test/","ip":"10.63.19.100","http_method":"POST","server":"","referrer":"http://mylocaldomain.de:8082/admin/"}"

so likely that the connection is not working is a configuration error from me...
i think that the server does not handle this error crasefully and reports this problem back to the dashboard is a bug?! :-)

@s-light s-light changed the title email host not found email connection timeout does not show up with email-check on admin dashboard Nov 4, 2020
@moctardiouf
Copy link
Contributor

Hello,

It seems like you're facing a network dns resolution matter from the container side.
Can you make sure by entering into the phraseanet container that you can resolve any dns name.

Best regards

@s-light
Copy link
Author

s-light commented Nov 18, 2020

thanks @moctardiouf. i think i have tested for dns resolution - but will revisit at the weekend..
my main point was: if this kind of error happens it would be a good idea to show it to the user interface instead of a white nothing.... ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants