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

Jenkins could not read from remote repository

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Not A Defect
    • Component/s: git-plugin
    • Environment:
    • Similar Issues:

      Description

      Jenkins fails sometimes with the error: Could not read from remote repository.

      Jenkins runs on a local Win10 machine with access rights to our local server. On the server there is the GIT repository stored. The WIN10 user account jenkins runs the jenkins-service with has access rights to the server. Communication to the server is stable.

      This happend after a update from jenkins 2.176.3 to 2.190.2 (and update of all plugins).

      The error occurs very often, if more than one build-processor is used (parallel builds). If only one build-processor is used, the error occurs less, but it still occurs.

       

      The following console output is generated:

      Build wurde zeitgesteuert ausgelöst.
      Running as SYSTEM
      Baue auf Master in Arbeitsbereich C:\jenkins\workspace\xxxxx
      No credentials specified
      > git.exe rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git.exe config remote.origin.url //xxxx/xxxxx/xxxx/xxxx/xxxx/xxxx.git # timeout=10
      Cleaning workspace
      > git.exe rev-parse --verify HEAD # timeout=10
      Resetting working tree
      > git.exe reset --hard # timeout=10
      > git.exe clean -fdx # timeout=10
      > git.exe submodule foreach --recursive git reset --hard # timeout=10
      > git.exe submodule foreach --recursive git clean -fdx # timeout=10
      Fetching upstream changes from //xxxx/xxxx/xxxx/xxxx/xxxx/xxxx.git
      > git.exe --version # timeout=10
      > git.exe fetch --tags --force --progress – //xxxx/xxxx/xxxx/xxxx/xxxx/xxxx.git +refs/heads/:refs/remotes/origin/ # timeout=10
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from //xxxx/xxxx/xxxx/xxxx/xxxx/xxxx.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:899)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1114)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1145)
      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:1815)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: hudson.plugins.git.GitException: Command "git.exe fetch --tags --force --progress – //xxxx/xxxx/xxxx/xxxx/xxxx/xxxx.git +refs/heads/:refs/remotes/origin/" returned status code 128:
      stdout:
      stderr: fatal: '//xxxx/xxxx/xxxx/xxxx/xxxx/xxxx.git' does not appear to be a git repository
      fatal: Could not read from remote repository.

      Please make sure you have the correct access rights
      and the repository exists.

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2372)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1985)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:80)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:563)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:897)
      ... 11 more
      ERROR: Error fetching remote repo 'origin'
      [WARNINGS] Skipping publisher since build result is FAILURE
      Archiviere Artefakte
      Sending e-mails to: xxxxr@xxxx.com xxxx@xxxx.com
      Finished: FAILURE

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            benjaminloeffler Benjamin Loeffler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: