Gerrit gmail not working

817 views
Skip to first unread message

Tarun Tyagi

unread,
Sep 2, 2013, 3:10:17 PM9/2/13
to repo-d...@googlegroups.com
I have downloaded the gerrit war file of version 2.6.1 from : http://gerrit-releases.storage.googleapis.com/index.html and installed it on linux machine. It installed successfully and running fine.

I have configured to get logged into via OPENID so created using google account. I have logged into account successfully. Now I am try to register new email of administrator but getting error. Please look into image:

I have user various combination of gerrit gmail settings like:
1.
---------------------------------------------------------------------------------------------------------
[sendemail]
smtpServer = smtp.gmail.com
smtpEncryption = ssl
smtpUser = tarun******@gmail.com
smtpPass = *****
---------------------------------------------------------------------------------------------------------
2.
---------------------------------------------------------------------------------------------------------
[sendemail]
enable = true
sslVerify = false
smtpServer = smtp.gmail.com
smtpServerPort = 465
smtpEncryption = SSL
smtpUser = tarun*****@gmail.com
smtpPass = *****
from = *****@gmail.com
---------------------------------------------------------------------------------------------------------
3.
---------------------------------------------------------------------------------------------------------
[sendemail]
enable = true
sslVerify = true
smtpServer = smtp.gmail.com
smtpServerPort = 465
smtpEncryption = SSL
smtpUser = tarun*****@gmail.com
smtpPass = *****
from = *****@gmail.com
---------------------------------------------------------------------------------------------------------

The error showing in logs is:
---------------------------------------------------------------------------------------------------------
[2013-09-02 18:43:34,528] INFO  com.google.gerrit.pgm.Daemon : Gerrit Code Review 2.6.1 ready
[2013-09-02 18:44:10,523] ERROR com.google.gerrit.httpd.rpc.account.AccountSecurityImpl : Cannot send email verification message to tarun...@abccomp.com
com.google.gerrit.common.errors.EmailException: Mail Error: SMTP server rejected auth: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?plt=AKgnsbszVhe1aJTLecUPG6
534-5.7.14 uI6-tL-nPrd9UrbfzTd43oSbTj7rwbAj-oQiGY2g90JKFhauz70diV9pkK5qdwSaLclOqb
534-5.7.14 DOms__F9KtgBSQr4wwPr3oW1avaye1KiJfg2cbEL5ifL9vkQ3ozBXBbXehMayT4yG4bxpp
534-5.7.14 PN4FHXkycZKwhv27Is378qun41xAljbRggoJi-KwWbNIXHgrFXFy8NCtByAoclTw&sarp=
534-5.7.14 1&scc=1> Please log in via your web browser and then try again.
534 5.7.14 54 c26sm17511657yhm.13 - gsmtp

at com.google.gerrit.server.mail.SmtpEmailSender.open(SmtpEmailSender.java:263)
at com.google.gerrit.server.mail.SmtpEmailSender.send(SmtpEmailSender.java:162)
at com.google.gerrit.server.mail.OutgoingEmail.send(OutgoingEmail.java:123)
at com.google.gerrit.httpd.rpc.account.AccountSecurityImpl.registerEmail(AccountSecurityImpl.java:319)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.gwtjsonrpc.server.MethodHandle.invoke(MethodHandle.java:91)
at com.google.gwtjsonrpc.server.JsonServlet.doService(JsonServlet.java:379)
at com.google.gwtjsonrpc.server.JsonServlet.service(JsonServlet.java:265)
at com.google.gerrit.httpd.rpc.GerritJsonServlet.service(GerritJsonServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
at com.google.gerrit.pgm.http.jetty.GetUserFilter.doFilter(GetUserFilter.java:76)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:70)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:64)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:57)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:75)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:67)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:365)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:724)

---------------------------------------------------------------------------------------------------------

I am almost blocked on this. Help needed with high appreciation!!!

Thanks
Tarun

Tarun Tyagi

unread,
Sep 2, 2013, 4:03:17 PM9/2/13
to repo-d...@googlegroups.com
The issue is resolved!!!

The reason was the settings of gmail account itself. Account was set with high security which do no allow another client to connect to gmail smtp server. I changed the settings it works fine.

Thanks
Tarun

mohan Shinde

unread,
Jan 5, 2016, 7:35:11 AM1/5/16
to Repo and Gerrit Discussion
I'm facing same issue and can't send mail.

[sendemail]

        smtpServer = smtpout.secureserver.net
        smtpServerPort = 25
        smtpUser =++++++++@omni-bridge.net
        smtpEncryption = none
        smtpPass = ++++++++

even i used smtp.gmail.com
but not done.

mohan Shinde

unread,
Jan 6, 2016, 12:07:12 AM1/6/16
to repo-d...@googlegroups.com

Gm & Thanks for reply tarun,

 

I tried it but not done. Can you please suggest me What setting we need to do from Gmail so we can connect to app & what will be the [sendmail] table.


Thanks in Advance. J


On Wed, Jan 6, 2016 at 10:35 AM, mohan Shinde <mohan.s...@gmail.com> wrote:

Gm & Thanks for reply tarun,

 

I tried it but not done. Can you please suggest me What setting we need to do from Gmail so we can connect to app & what will be the [sendmail] table.

Thanks in Advance. J


On Wed, Jan 6, 2016 at 10:32 AM, Mohan Shinde <shin...@live.in> wrote:

Gm & Thanks for reply tarun,

 

I tried it but not done. Can you please suggest me What setting we need to do from Gmail so we can connect to app & what will be the [sendmail] table.

Thanks in Advance. J

 

From: repo-d...@googlegroups.com [mailto:repo-d...@googlegroups.com] On Behalf Of mohan Shinde
Sent: Tuesday, January 5, 2016 6:05 PM
To: Repo and Gerrit Discussion <repo-d...@googlegroups.com>
Subject: Re: Gerrit gmail not working

 

I'm facing same issue and can't send mail.

[sendemail]

        smtpServer = smtpout.secureserver.net
        smtpServerPort = 25

        smtpUser =++++...@omni-bridge.net


        smtpEncryption = none
        smtpPass = ++++++++

even i used smtp.gmail.com
but not done.



On Tuesday, September 3, 2013 at 1:33:17 AM UTC+5:30, Tarun Tyagi wrote:

The issue is resolved!!!

 

The reason was the settings of gmail account itself. Account was set with high security which do no allow another client to connect to gmail smtp server. I changed the settings it works fine.

 

Thanks

Tarun

On Tuesday, September 3, 2013 12:40:17 AM UTC+5:30, Tarun Tyagi wrote:

I have downloaded the gerrit war file of version 2.6.1 from : http://gerrit-releases.storage.googleapis.com/index.html and installed it on linux machine. It installed successfully and running fine.

 

I have configured to get logged into via OPENID so created using google account. I have logged into account successfully. Now I am try to register new email of administrator but getting error. Please look into image:

DavidL

unread,
Sep 26, 2016, 2:39:03 AM9/26/16
to Repo and Gerrit Discussion
same issue with you, have you solved it?

在 2013年9月3日星期二 UTC+8上午3:10:17,Tarun Tyagi写道:
Reply all
Reply to author
Forward
0 new messages