Content
Not able to create user when click on notify or send random password, give some internal error.
Added by vinay pandey over 9 years ago
Not able to create user when click on notify or send random password, give some internal error.
When I tire to run the test it fails on SMTP. Please help.
sending test email using SMTP…
/opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/protocol.rb:158:in `rescue in rbuf_fill’: Net::ReadTimeout (Net::ReadTimeout)
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/protocol.rb:152:in `rbuf_fill’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/protocol.rb:134:in `readuntil’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/protocol.rb:144:in `readline’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:938:in `recv_response’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:555:in `block in do_start’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:948:in `critical’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:555:in `do_start’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:520:in `start’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:457:in `start’
from /opt/openproject-ce/packaging/scripts/send-test-email:34:in `
’
[ko] unable to send test email to *****@gmail.com
Replies (3)
Hello vinay!
This is an error coming from the standard lib - there is an SMTP timeout in there.
Could you have a look at
./config/configuration.yml
and tell me the configuration you are using for sending emails in the environment you are using (are you in development or production?) - please skip any credentials you might be using.If you have your SMTP configuration: Is the server reachable? Timeouts can occur when either the configuration is wrong or the server is unreachable.
Best regards,
Florian
Thanks for your replay Florian.
Made some changes not I got below error message. Also attached my configuration.
sending test email using SMTP…
/opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:969:in `check_auth_response’: 530 Must issue a STARTTLS command first (Net::SMTPAuthenticationError)
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:740:in `auth_plain’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:732:in `authenticate’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:567:in `do_start’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:520:in `start’
from /opt/openproject-ce/vendor/ruby-2.1.5/lib/ruby/2.1.0/net/smtp.rb:457:in `start’
from /opt/openproject-ce/packaging/scripts/send-test-email:34:in `
’
[ko] unable to send test email to ****@gmail.com
export EMAIL_DELIVERY_METHOD=“smtp”
export SMTP_ADDRESS=“smtp.gmail.com”
export SMTP_PORT=“25” ——-> tried 465/587
export SMTP_HOST=“smtp.gmail.com”
export SMTP_DOMAIN=“*.com”
export SMTP_AUTHENTICATION=“plain” ——> tried login
export SMTP_USER_NAME=“contact@.com”
export SMTP_PASSWORD=“****”
Thanks in advance :-)
Vinay
Dear Vinay,
due to the error message in the first line
530 Must issue a STARTTLS command first
you should try this in your
configuration.yml
:…
smtp_authentication: plain
smtp_enable_starttls_auto: true
…
honikos