Cloudbees sendmail play! auth error

231 views
Skip to first unread message

Ash Downing

unread,
Feb 18, 2012, 3:02:57 PM2/18/12
to play-fr...@googlegroups.com

I have the following in my config file for my application at http://cb-test.pconfig.cloudbees.net/ :

%production.mail.smtp.host=smtp.sendgrid.net
%production.mail.smtp.port=587
%production.mail.smtp.user=cloudbees_pconfig
%production.mail.smtp.pass=[edited]
%production.mail.smtp.protocol=smtps
%production.mail.smtp.channel=starttls
%production.mail.debug=true

I have checked to make sure my login and password are correct but I still get the following authentication error:

 

Feb 18, 2012 7:53:35 PM com.staxnet.appserver.utils.AppServerConfiguration readAppServerConfig
INFO: loading app config: /var/staxapps/8767/appserver.xml
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine <init>
INFO: Add system property: SENDGRID_SMTP_HOST=smtp.sendgrid.net
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine <init>
INFO: Add system property: SENDGRID_USERNAME=cloudbees_pconfig
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine <init>
INFO: Add system property: SENDGRID_PASSWORD=spxq26kq
Feb 18, 2012 7:53:35 PM com.staxnet.appserver.TomcatServerBase initConfiguration
INFO: Creating Tomcat server configuration at /var/staxapps/8767/staxcat/work
Feb 18, 2012 7:53:35 PM net.stax.appserver.admin.AdminEngine createAdminHttpConnector
INFO: Initializing admin-http-connector protocol: org.apache.coyote.http11.Http11Protocol
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createWebContexts
INFO: loading app [] from /var/staxapps/8767/staxcat/install/webapp.war
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createWebContexts
WARNING: tools.jar is not in the classpath
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createWebContexts
INFO: application reloading is enabled
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine createMainHttpConnector
INFO: Initializing http-connector protocol: org.apache.coyote.http11.Http11Protocol
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied compressableMimeType=text/html,text/xml,text/javascript,text/css,application/json
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied maxThreads=11
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied server=Apache
Feb 18, 2012 7:53:35 PM net.stax.appserver.webapp.WebAppEngine applyParametersToObject
INFO: http-connector - applied compression=10
Feb 18, 2012 7:53:35 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Feb 18, 2012 7:53:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Feb 18, 2012 7:53:36 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Feb 18, 2012 7:53:36 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/mnt/var/staxapps/8767/staxcat/install/webapp.war/WEB-INF/lib/geronimo-servlet_2.5_spec-1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9767
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9767
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8767
Feb 18, 2012 7:53:41 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8767
DEBUG: setDebug: JavaMail version 1.4.3
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.sendgrid.net", port 587, isSSL false
220 mi12 ESMTP service ready
DEBUG SMTP: connected to host "smtp.sendgrid.net", port: 587

EHLO domU-12-31-39-09-D8-B1.compute-1.internal
250-mi12
250-8BITMIME
250-SIZE 20480000
250-AUTH=PLAIN LOGIN
250-AUTH PLAIN LOGIN
250 STARTTLS
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg "20480000"
DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
DEBUG SMTP: Found extension "STARTTLS", arg ""
STARTTLS
220 Begin TLS negotiation now
EHLO domU-12-31-39-09-D8-B1.compute-1.internal
250-mi12
250-8BITMIME
250-SIZE 20480000
250-AUTH=PLAIN LOGIN
250 AUTH PLAIN LOGIN
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg "20480000"
DEBUG SMTP: Found extension "AUTH=PLAIN", arg "LOGIN"
DEBUG SMTP: Found extension "AUTH", arg "PLAIN LOGIN"
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM 
AUTH LOGIN
334 VXNlcm5hbWU6
Y2xvdWRiZWVzX3Bjb25maWc=
334 UGFzc3dvcmQ6
c3VnYXJsaXBzNDI=
535 Authentication failed: Bad username / password

 

Any ideas as to why the error?

TYIA

Ivan Meredith

unread,
Feb 19, 2012, 3:17:33 AM2/19/12
to play-fr...@googlegroups.com
from http://wiki.cloudbees.com/bin/view/RUN/SendGrid

SMTP_HOST_NAME = System.getProperty("SENDGRID_SMTP_HOST");
SMTP_AUTH_USER = System.getProperty("SENDGRID_USERNAME");
SMTP_AUTH_PWD = System.getProperty("SENDGRID_PASSWORD");

Have you tried that?

> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/IKr1xS8UHQEJ.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.

Ivan Meredith

unread,
Feb 19, 2012, 3:18:12 AM2/19/12
to play-fr...@googlegroups.com
If you still can't get it working put a ticket into Cloudbees support.

Ash Downing

unread,
Feb 19, 2012, 3:45:06 AM2/19/12
to play-framework
Actually, the correct password is in those logs.... I didn't know they
changed it when you deployed or if I was supposed to know that ahead
of time its the "spxq26kq" as seen in line 9 instead of the one I
supplied in the config file.

Anyways, I now longer get an error, but I still don't receive an email
either. I get

.
250 Delivery in progress
QUIT
221 See you later


But again the email is never actually sent. I'm starting to think it
might be on my end ( I use the casino module for this), so I will
investigate further. If anyone has experience with casino and can
offer some feedback, it would be appreciated!

Thanks Ivan,
ash



On Feb 19, 2:18 am, Ivan Meredith <i...@ivan.net.nz> wrote:
> If you still can't get it working put a ticket into Cloudbees support.
>
> On 19 February 2012 21:17, Ivan Meredith <i...@ivan.net.nz> wrote:
>
>
>
>
>
>
>
> > fromhttp://wiki.cloudbees.com/bin/view/RUN/SendGrid
>
> >         SMTP_HOST_NAME = System.getProperty("SENDGRID_SMTP_HOST");
> >        SMTP_AUTH_USER = System.getProperty("SENDGRID_USERNAME");
> >        SMTP_AUTH_PWD = System.getProperty("SENDGRID_PASSWORD");
>
> > Have you tried that?
>

Ash Downing

unread,
Mar 5, 2012, 8:12:01 PM3/5/12
to play-framework
"Fixed"

Was trying to send from my email set in casino settings to my email to
test so gmail wasnt letting it go through. Shot it to another email
and everything is working as intended. Sometimes the computer is just
unplugged I guess.

Thanks for the responses.
-ash
Reply all
Reply to author
Forward
0 new messages