SVN auth error in diff view

After upgrading to #4244 we get this message in diff view:

ERROR:
org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for ' Subversion repositories' Building works fine (I suppose it uses the same credentials for checking out sources?) Is this a known issue? Thanks, Yann PS: build overview page: "successfull" should probably be "successfu]]>" ;)

5 comments

Could you please attach threaddump? It has to be available in
teamcity-vcs.log file on server side.

--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Yann Cebron" <no_reply@jetbrains.com> wrote in message
news:16424939.1181890722969.JavaMail.itn@is.intellij.net...

After upgrading to #4244 we get this message in diff view:

>

ERROR:
org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication
required for '<http://xx.xx.xx:80> Subversion repositories'

>

Building works fine (I suppose it uses the same credentials for checking
out sources?)

>

Is this a known issue?

>

Thanks,
Yann

>
>

PS: build overview page: "successfull" should probably be "successfu<l>"
;)



0

I found this in console-log..


ERROR - controllers.DiffViewController - Error getting BEFORE content for 'http://xx.xx.xx.xx:80/a/b/c/A.java' change 'jetbrains.buildServer.vcs.VcsChange@6d7c001'
jetbrains.buildServer.vcs.VcsException: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<http://xx.xx.xx.xx:80> Subversion repositories'
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getContent(SvnSupport.java:70)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.getContent(VcsManagerImpl.java:62)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.getContentBefore(VcsManagerImpl.java:142)
at jetbrains.buildServer.controllers.DiffViewController.doHandle(DiffViewController.java:7)
at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:10)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<http://xx.xx.xx.x:80> Subversion repositories'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.findStartingProperties(DAVUtil.java:124)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getBaselineProperties(DAVUtil.java:197)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getBaselineInfo(DAVUtil.java:160)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getFile(DAVRepository.java:236)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.loadContent(SvnConnection.java:355)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getContent(SvnConnection.java:47)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getContent(SvnSupport.java:29)
... 28 more
ERROR - controllers.DiffViewController - Error getting AFTER content for 'http://xx.xx.xx.xx:80/a/b/c/A.java' change 'jetbrains.buildServer.vcs.VcsChange@6d7c001'
jetbrains.buildServer.vcs.VcsException: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<http://xx.xx.xx.xx:80> Subversion repositories'
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getContent(SvnSupport.java:70)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.getContent(VcsManagerImpl.java:62)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.getContentAfter(VcsManagerImpl.java:139)
at jetbrains.buildServer.controllers.DiffViewController.doHandle(DiffViewController.java:27)
at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:10)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authentication required for '<http://10.32.34.40:80> Subversion repositories'
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:47)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.findStartingProperties(DAVUtil.java:124)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getBaselineProperties(DAVUtil.java:197)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getBaselineInfo(DAVUtil.java:160)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getFile(DAVRepository.java:236)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.loadContent(SvnConnection.java:355)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnConnection.getContent(SvnConnection.java:47)
at jetbrains.buildServer.buildTriggers.vcs.svn.SvnSupport.getContent(SvnSupport.java:29)
... 28 more

0

Yann,

Could you please turn on debug logging for svnkit library, reproduce the error and attach the logs (teamcity-svn.log) to the issue http://www.jetbrains.net/jira/browse/TW-2860 ?

How to turn debug logging for svnkit: see section SVN Debug Logging at
http://www.jetbrains.net/confluence/display/TCD/HowtoDebug+problems#HowtoDebugproblems-SVNDebugLogging

--
Best regards,

Yegor Yarko
Quality Assurance Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Hello,

I tried but I'm giving up.

First of all, there was no log4j XML config file present on our server. I copied the one from the agent over there and renamed it accordingly, restarted the server etc. but it doesn't seem to pick it up as no svn-logfile was even created.

I have teamcity.log-file but no more output from SVN there than the one I gave you.

Greetings,

Yann

0

Yann,

Do you use .war distribution? Otherwise it's strange you don't have ]]>\conf\teamcity-server-log4j.xml because it is included into .zip and .exe distributions.

To tell TeamCity what Log4J configuration to use please pass "-Dlog4j.configuration=file:../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/" parameters to the JVM running TeamCity. e.g. for Tomcat just set JAVA_OPTS environment variable to the value specified.

In the .zip/.exe distributions the parameters are set in runAll script.

--
Best regards,

Yegor Yarko
Quality Assurance Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Message was edited by:
Yegor Yarko (JetBrains)

0

Please sign in to leave a comment.