Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55825

Team Foundation Server plugin error "the cache file is not valid and cannot be loaded"

      We upgrade Jenkins to 2.150.2 version (before we had 2.89.4 version) and then, all jobs start to fail

      // code placeholder
      FATAL: The cache file C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Team Foundation\4.0\Cache\VersionControl.config is not valid and cannot be loaded. Please correct or delete the file.
      org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Final de archivo prematuro.
      	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
      	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      	at com.microsoft.tfs.util.xml.DOMCreateUtils.parse(DOMCreateUtils.java:600)
      Caused: com.microsoft.tfs.util.xml.XMLException
      	at com.microsoft.tfs.util.xml.DOMCreateUtils.parse(DOMCreateUtils.java:602)
      	at com.microsoft.tfs.util.xml.DOMCreateUtils.parseStream(DOMCreateUtils.java:424)
      	at com.microsoft.tfs.util.xml.DOMCreateUtils.parseStream(DOMCreateUtils.java:357)
      	at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCacheLoader.readCacheAsDocument(InternalCacheLoader.java:252)
      Caused: com.microsoft.tfs.core.clients.versioncontrol.exceptions.VersionControlException: The cache file C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Team Foundation\4.0\Cache\VersionControl.config is not valid and cannot be loaded. Please correct or delete the file.
      	at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCacheLoader.readCacheAsDocument(InternalCacheLoader.java:264)
      	at com.microsoft.tfs.core.clients.versioncontrol.workspacecache.internal.InternalCacheLoader.loadConfig(InternalCacheLoader.java:99)
      	at com.microsoft.tfs.core.clients.versioncontrol.Workstation.<init>(Workstation.java:147)
      	at com.microsoft.tfs.core.clients.versioncontrol.Workstation.getCurrent(Workstation.java:194)
      	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.<init>(VersionControlClient.java:451)
      	at com.microsoft.tfs.core.clients.versioncontrol.VersionControlClient.<init>(VersionControlClient.java:515)
      	at com.microsoft.tfs.core.config.client.DefaultClientFactory$7.newClient(DefaultClientFactory.java:228)
      	at com.microsoft.tfs.core.config.client.DefaultClientFactory.newClient(DefaultClientFactory.java:92)
      	at com.microsoft.tfs.core.TFSConnection.getClient(TFSConnection.java:1459)
      	at com.microsoft.tfs.core.TFSTeamProjectCollection.getVersionControlClient(TFSTeamProjectCollection.java:376)
      	at hudson.plugins.tfs.model.Server.getVersionControlClient(Server.java:218)
      	at hudson.plugins.tfs.model.Project.getVCCHistory(Project.java:83)
      	at hudson.plugins.tfs.model.Project.getDetailedHistoryWithoutCloakedPaths(Project.java:225)
      	at hudson.plugins.tfs.actions.CheckoutAction.checkout(CheckoutAction.java:66)
      	at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:352)
      	at hudson.scm.SCM.checkout(SCM.java:504)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      	at hudson.model.Run.execute(Run.java:1810)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      [Office365connector] No webhooks to notify
      Finished: FAILURE
      

       

          [JENKINS-55825] Team Foundation Server plugin error "the cache file is not valid and cannot be loaded"

          Alberto Lopez added a comment -

          No exist file in path FATAL: The cache file C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Team Foundation\4.0\Cache

          Alberto Lopez added a comment - No exist file in path FATAL: The cache file C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Team Foundation\4.0\Cache

          Rajan Singh added a comment -

          Any workaround possible for this issue?

          Rajan Singh added a comment - Any workaround possible for this issue?

            marshall777 Lionel Cabasson
            alopezmoreno Alberto Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: