TFS checkout is failing in Jenkins. It is giving below error. Previously It worked fine,but from past 4 days I am getting this error. Few file are checking out and getting this error:
FATAL: java.lang.RuntimeException:
com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException:
com.microsoft.tfs.core.exceptions.TECoreException: Server was unable
to process request. ---> Object reference not set to an instance of an
object. com.microsoft.tfs.core.ws.runtime.exceptions.SOAPFault: Server
was unable to process request. ---> Object reference not set to an
instance of an object.
I have tried with different versions of TFS plugins. Currently I have installed TFS 5.142 version and Jenkins version 2.176.2
Related
I have jenkins job which is checking out the code from SVN repository and run the build but I am getting the multiple or different errors before its checking out the complete code.Please help me.
Error:
ERROR 1: svn: E155021: The path 'D:\Jenkins\workspace\Project1\branch-1.1' appears to be part of a Subversion 1.7 or greater
working copy. Please upgrade your Subversion client to use this
working copy.
org.tmatesoft.svn.core.SVNException: svn: E155021: The path 'D:\Jenkins\workspace\Project\branch-1.1' appears to be part of a Subversion 1.7 or greater
working copy. Please upgrade your Subversion client to use this
working copy.
Error 2:
D:\jenkins\workspace\project\branch.svn\wc.db: The process cannot access the file because it is being used by another process.
Please install Tortoise SVN (It has the cli interface) and add to Windows %PATH%.
While running a build with Sonar Scanner for MSBuild, we are getting the following error
ERROR: Unable to TFS annotate the following file which is not in a mapped TFS workspace:
We are using TFVC as repository and tried the arguments /d:sonar.scm.enabled=true /d:sonar.scm.provider=tfvc with no success.
We have also checked the stackoverflow question TFS Annotation Error but I am not sure how to do that in a build server where the source code is always getting cleaned.
When I tried to use Jenkins as our CI environment to build ASP.NET project, I set up to use MSBuild.exe to build project. But when the cmd run into restore nuget packages, it stuck. The error message is as below:
Unable to find version '2.5.48' of package 'SlowCheetah'.
https://api.nuget.org/v3/index.json:
Unable to load the service index for source
https://api.nuget.org/v3/index.json.
An error occurred while sending the request. Unable to connect to the remote server.
A socket operation was attempted to an unreachable network
[2606:2800:133:206e:1315:22a5:2006:24fd]:443
But if I use windows command line to run the msbuild, it is working and could download the pkg from nuget.org. Error only happened when try to build in Jenkins
NB : jenkins is running like a windows service and he is used by an administrator account
First of all, we are using TFS 2013 update 3, and the whole system worked well before today's issue.
Today, both of our 2 TFS build agents failed to do successful TFS builds anymore.
I checked the build log, and found the build process failed at the very first step, CoreGet, like below
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(895,5,895,5): error : One or more errors occurred while performing a Get operation
What’s interesting is, it’s not failed to get every file, but just failed to get some files;
What’s more interesting is, the fail-to-get-file-list is not fixed.
In my project, there are more than 10,000 files, and every time, 12 of them is failed to be got, but the files in the 12 are randomly picked (at least I did not find any pattern).The error message for any file is like this:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(895,5,895,5): error : C:\Builds\6\NameOfMyFile: Server was unable to process request. ---> Object reference not set to an instance of an object
I checked the local path of build agent, and actually all these files are successfully fetched from TFS server and saved to build agent.
Any ideas what happens?
Could you check the free disk space available on the TFS Server? I got a similar error trying to retrieve files from TFS and it turns out that the disk was full. Clearing up some space fixed it.
This is the full error I got from Visual Studio, for reference:
---------------------------
Microsoft Visual Studio
---------------------------
Error Server was unable to process request. ---> Object reference not set to an instance of an object.
I've browsed every post about TFS and Hudson I could find but nothing useful has popped up.
In Hudson when I attempt a build, the console output provides:
Started by user jlowder
[workspace] $ tf workspaces -format:brief -server:http://ashpteam01.hq.hanger.com:8080 **
TF30063: You are not authorized to access http://ashpteam01.hq.hanger.com:8080/.
FATAL: Executable returned an unexpected result code [100]
ERROR: null
[DEBUG] Skipping watched dependency update for build: NextGen Automation #25 due to result: FAILURE
Finished: FAILURE
If I manually run the tf command above from a command prompt, it works. I access TF from Visual Studio 2010 just fine.
I receive this error regardless if an attempt to access TFS comes from Hudson or Team City. My login to TFS is my domain user name and password, which I have checked and re-checked.
What am I missing here?
If you go to Control Panel > Network Passwords, are there any saved passwords there for your server? TFS will always try and authenticate using these first. If one is saved, and it is incorrect - you will get this error.
Also, what URL do you connect to in Visual Studio? Does it have a /tfs/ on the end?
It appears that the domain the server was running on would not send back to the domain I was requesting from. Moving hudson and tfs to same domain