[JIRA] (JENKINS-38312) TFS plugin fails with TF400898: An Internal Error Occurred

238 views
Skip to first unread message

jaredljensen@hotmail.com (JIRA)

unread,
Sep 18, 2016, 6:22:03 AM9/18/16
to jenkinsc...@googlegroups.com
Jared Jensen created an issue
 
Jenkins / Bug JENKINS-38312
TFS plugin fails with TF400898: An Internal Error Occurred
Issue Type: Bug Bug
Assignee: redsolo
Components: tfs-plugin
Created: 2016/Sep/18 10:21 AM
Environment: Windows Server 2012 R2 Standard 64-bit
Priority: Blocker Blocker
Reporter: Jared Jensen

The build starts and appears to get all files from TFS, but then fails with the following:

Getting version 'C933' to 'C:\Program Files (x86)\Jenkins\workspace\Intranet Stage Build'...
FATAL: java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 1c415c37-e789-47bd-94e6-01dff83870b2.
java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 1c415c37-e789-47bd-94e6-01dff83870b2.
at hudson.plugins.tfs.model.Server.execute(Server.java:226)
at hudson.plugins.tfs.model.Project.getFiles(Project.java:256)
at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:60)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:318)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 1c415c37-e789-47bd-94e6-01dff83870b2.
at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2470)
at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2341)
at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2331)
at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2308)
at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:69)
at hudson.plugins.tfs.commands.GetFilesToWorkFolderCommand.call(GetFilesToWorkFolderCommand.java:17)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at hudson.plugins.tfs.model.Server.execute(Server.java:222)
... 11 more
Caused by: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 1c415c37-e789-47bd-94e6-01dff83870b2.
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.throwIfFatalError(GetEngine.java:2958)
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperationsInternal(GetEngine.java:1142)
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processOperations(GetEngine.java:957)
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.GetEngine.processGetOperations(GetEngine.java:808)
at com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace.get(Workspace.java:2459)
... 18 more
Caused by: com.microsoft.tfs.core.exceptions.TECoreException: TF400898: An Internal Error Occurred. Activity Id: 1c415c37-e789-47bd-94e6-01dff83870b2.
at com.microsoft.tfs.core.exceptions.mappers.TECoreExceptionMapper.map(TECoreExceptionMapper.java:92)
at com.microsoft.tfs.core.exceptions.mappers.VersionControlExceptionMapper.map(VersionControlExceptionMapper.java:43)
at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3081)
at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3114)
at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.sendToServer(UpdateLocalVersionQueue.java:769)
at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.flush(UpdateLocalVersionQueue.java:461)
at com.microsoft.tfs.core.clients.versioncontrol.UpdateLocalVersionQueue.queueUpdate(UpdateLocalVersionQueue.java:392)
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.AsyncGetOperation.queueLocalVersionUpdate(AsyncGetOperation.java:294)
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.completeGetOperation(GetDownloadWorker.java:629)
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.call(GetDownloadWorker.java:160)
at com.microsoft.tfs.core.clients.versioncontrol.engines.internal.workers.GetDownloadWorker.call(GetDownloadWorker.java:72)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at com.microsoft.tfs.core.clients.versioncontrol.internal.concurrent.BoundedExecutor$1.run(BoundedExecutor.java:85)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.microsoft.tfs.core.ws.runtime.exceptions.SOAPFault: TF400898: An Internal Error Occurred. Activity Id: 1c415c37-e789-47bd-94e6-01dff83870b2.
at com.microsoft.tfs.core.ws.runtime.client.SOAP12Service.examineResponseDOMForFault(SOAP12Service.java:117)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.examineBodyForFault(SOAPService.java:987)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequestInternal(SOAPService.java:665)
at com.microsoft.tfs.core.ws.runtime.client.SOAPService.executeSOAPRequest(SOAPService.java:444)
at ms.tfs.versioncontrol.clientservices._03._Repository5Soap12Service.updateLocalVersion(_Repository5Soap12Service.java:1170)
at com.microsoft.tfs.core.clients.versioncontrol.internal.WebServiceLayer.updateLocalVersion(WebServiceLayer.java:3067)
... 15 more

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

olivier.dagenais@gmail.com (JIRA)

unread,
Sep 26, 2016, 7:17:01 PM9/26/16
to jenkinsc...@googlegroups.com
Olivier Dagenais assigned an issue to Jared Jensen
 

Jared Jensen: can you check the Windows Event Log on the TFS server? I've seen something like this before, where the server threw an exception due to the path being too long and it wasn't properly reported back at the other end.

Also, what version of the TFS plugin are you using?

Please re-assign to me with your answers.

Thanks!
- Oli

Change By: Olivier Dagenais
Assignee: redsolo Jared Jensen

jaredljensen@hotmail.com (JIRA)

unread,
Sep 27, 2016, 11:10:03 AM9/27/16
to jenkinsc...@googlegroups.com
Jared Jensen commented on Bug JENKINS-38312
 
Re: TFS plugin fails with TF400898: An Internal Error Occurred

Olivier Dagenais: I don't see any related Jenkins errors in the Event Log, just a handful of "Child process ... finished with 0" warnings and no additional detail. I'm using version 5.2.1 of the TFS plugin. Thanks!

jaredljensen@hotmail.com (JIRA)

unread,
Sep 27, 2016, 11:11:04 AM9/27/16
to jenkinsc...@googlegroups.com
Jared Jensen assigned an issue to Olivier Dagenais
 
Change By: Jared Jensen
Assignee: Jared Jensen Olivier Dagenais

olivier.dagenais@gmail.com (JIRA)

unread,
Sep 28, 2016, 8:42:01 PM9/28/16
to jenkinsc...@googlegroups.com
Olivier Dagenais assigned an issue to Jared Jensen
 

I expected the Windows Event Log on the TFS application tier to contain events occurring around the same time that the exception was raised on the Jenkins side. The event log entries would contain TF400898 and I think the corresponding Activity Id.

Have you tried searching for that GUID or others you might have encountered with stack traces like the one you pasted?

Thanks!
- Oli

Change By: Olivier Dagenais
Assignee: Olivier Dagenais Jared Jensen

jaredljensen@hotmail.com (JIRA)

unread,
Sep 28, 2016, 11:36:01 PM9/28/16
to jenkinsc...@googlegroups.com
 
Re: TFS plugin fails with TF400898: An Internal Error Occurred

I searched the application log for both the error code and Activity Id with no matches. Then I filtered to a source of "Jenkins" and saw mostly informational events, with the last one on 9/18 showing the service starting. Both builds that occurred since 9/18 failed with the same stack trace.

jaredljensen@hotmail.com (JIRA)

unread,
Sep 28, 2016, 11:36:02 PM9/28/16
to jenkinsc...@googlegroups.com
Jared Jensen assigned an issue to Olivier Dagenais
Change By: Jared Jensen
Assignee: Jared Jensen Olivier Dagenais

jonathan.duggan@rightbrainnetworks.com (JIRA)

unread,
Jan 16, 2017, 10:02:03 AM1/16/17
to jenkinsc...@googlegroups.com
Jonathan Duggan commented on Bug JENKINS-38312
 
Re: TFS plugin fails with TF400898: An Internal Error Occurred

I had this error as well, running 2.32.1 on WinSrv2012R2. You can find the error output here: https://gist.githubusercontent.com/jonathansd1/47c6fffb3555309a84fac7d52108675c/raw/e290a94206a874e4818464a2b5ed6ed7d09b1c5d/output.log

After attempting to work around it via PowerShell, I discovered that I had items which were over the 260 character limit for file paths. I created a permanent workspace directly on the `C:\` drive, and now the build works properly.

All I can hope for is a more descriptive error.

madhuchilipi@gmail.com (JIRA)

unread,
Feb 6, 2017, 5:21:03 PM2/6/17
to jenkinsc...@googlegroups.com

we also find same kind of issues in linux

FATAL: java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint http://tfs2.dell.com:8080/tfs/eDell/VersionControl/v5.0/repository.asmx could not be contacted. HTTP status: 400
java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint http://tfs2.dell.com:8080/tfs/eDell/VersionControl/v5.0/repository.asmx could not be contacted. HTTP status: 400
at hudson.plugins.tfs.model.Server.execute(Server.java:226)
at hudson.plugins.tfs.model.Project.getFiles(Project.java:259)


at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:60)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:318)

at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)


at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)

at hudson.model.Run.execute(Run.java:1728)


at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)

at hudson.model.Executor.run(Executor.java:404)
Caused by: java.lang.RuntimeException: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: com.microsoft.tfs.core.exceptions.TECoreException: The SOAP endpoint http://tfs2.dell.com:8080/tfs/eDell/VersionControl/v5.0/repository.asmx could not be contacted. HTTP status: 400

olivier.dagenais@gmail.com (JIRA)

unread,
Feb 20, 2017, 3:46:23 PM2/20/17
to jenkinsc...@googlegroups.com
Olivier Dagenais assigned an issue to David Staheli
 
Change By: Olivier Dagenais
Assignee: Olivier Dagenais David Staheli
Reply all
Reply to author
Forward
0 new messages