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

error: Server does not allow request for unadvertised object

XMLWordPrintable

      When I pull code from Gitea on Jenkins, I occasionally get the following error:

       
      The recommended git tool is: NONE
      using credential server-devops-git
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url http://172.16.10.8:8001/p102-server/game.git # timeout=10
      Cleaning workspace
      > git rev-parse --verify HEAD # timeout=10
      Resetting working tree
      > git reset --hard # timeout=10
      > git clean -ffdx # timeout=10
      > git submodule foreach --recursive git reset --hard # timeout=10
      > git submodule foreach --recursive git clean -fdx # timeout=10
      Fetching upstream changes from http://172.16.10.8:8001/p102-server/game.git > git --version # timeout=10
      > git --version # 'git version 2.26.2'
      using GIT_ASKPASS to set credentials 自动构建Git账户-http://172.16.10.8:8001 > git fetch --tags --force --progress – http://172.16.10.8:8001/p102-server/game.git +refs/heads/:refs/remotes/origin/ # timeout=10
      ERROR: Error fetching remote repo 'origin'
      hudson.plugins.git.GitException: Failed to fetch from http://172.16.10.8:8001/p102-server/game.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1240)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1300)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --force --progress – http://172.16.10.8:8001/p102-server/game.git +refs/heads/:refs/remotes/origin/" returned status code 1:
      stdout:
      stderr: remote: 枚举对象: 427, 完成.
      remote: 对象计数中: 0% (1/298)
      remote: 对象计数中: 1% (3/298)
      remote: 对象计数中: 2% (6/298)
      remote: 对象计数中: 3% (9/298)
      remote: 对象计数中: 4% (12/298)
      remote: 对象计数中: 5% (15/298)
      remote: 对象计数中: 6% (18/298)
      remote: 对象计数中: 7% (21/298)
      remote: 对象计数中: 8% (24/298)
      remote: 对象计数中: 9% (27/298)
      remote: 对象计数中: 10% (30/298)
      remote: 对象计数中: 11% (33/298)
      remote: 对象计数中: 12% (36/298)
      remote: 对象计数中: 13% (39/298)
      remote: 对象计数中: 14% (42/298)
      remote: 对象计数中: 15% (45/298)
      remote: 对象计数中: 16% (48/298)
      remote: 对象计数中: 17% (51/298)
      remote: 对象计数中: 18% (54/298)
      remote: 对象计数中: 19% (57/298)
      remote: 对象计数中: 20% (60/298)
      remote: 对象计数中: 21% (63/298)
      remote: 对象计数中: 22% (66/298)
      remote: 对象计数中: 23% (69/298)
      remote: 对象计数中: 24% (72/298)
      remote: 对象计数中: 25% (75/298)
      remote: 对象计数中: 26% (78/298)
      remote: 对象计数中: 27% (81/298)
      remote: 对象计数中: 28% (84/298)
      remote: 对象计数中: 29% (87/298)
      remote: 对象计数中: 30% (90/298)
      remote: 对象计数中: 31% (93/298)
      remote: 对象计数中: 32% (96/298)
      remote: 对象计数中: 33% (99/298)
      remote: 对象计数中: 34% (102/298)
      remote: 对象计数中: 35% (105/298)
      remote: 对象计数中: 36% (108/298)
      remote: 对象计数中: 37% (111/298)
      remote: 对象计数中: 38% (114/298)
      remote: 对象计数中: 39% (117/298)
      remote: 对象计数中: 40% (120/298)
      remote: 对象计数中: 41% (123/298)
      remote: 对象计数中: 42% (126/298)
      remote: 对象计数中: 43% (129/298)
      remote: 对象计数中: 44% (132/298)
      remote: 对象计数中: 45% (135/298)
      remote: 对象计数中: 46% (138/298)
      remote: 对象计数中: 47% (141/298)
      remote: 对象计数中: 48% (144/298)
      remote: 对象计数中: 49% (147/298)
      remote: 对象计数中: 50% (149/298)
      remote: 对象计数中: 51% (152/298)
      remote: 对象计数中: 52% (155/298)
      remote: 对象计数中: 53% (158/298)
      remote: 对象计数中: 54% (161/298)
      remote: 对象计数中: 55% (164/298)
      remote: 对象计数中: 56% (167/298)
      remote: 对象计数中: 57% (170/298)
      remote: 对象计数中: 58% (173/298)
      remote: 对象计数中: 59% (176/298)
      remote: 对象计数中: 60% (179/298)
      remote: 对象计数中: 61% (182/298)
      remote: 对象计数中: 62% (185/298)
      remote: 对象计数中: 63% (188/298)
      remote: 对象计数中: 64% (191/298)
      remote: 对象计数中: 65% (194/298)
      remote: 对象计数中: 66% (197/298)
      remote: 对象计数中: 67% (200/298)
      remote: 对象计数中: 68% (203/298)
      remote: 对象计数中: 69% (206/298)
      remote: 对象计数中: 70% (209/298)
      remote: 对象计数中: 71% (212/298)
      remote: 对象计数中: 72% (215/298)
      remote: 对象计数中: 73% (218/298)
      remote: 对象计数中: 74% (221/298)
      remote: 对象计数中: 75% (224/298)
      remote: 对象计数中: 76% (227/298)
      remote: 对象计数中: 77% (230/298)
      remote: 对象计数中: 78% (233/298)
      remote: 对象计数中: 79% (236/298)
      remote: 对象计数中: 80% (239/298)
      remote: 对象计数中: 81% (242/298)
      remote: 对象计数中: 82% (245/298)
      remote: 对象计数中: 83% (248/298)
      remote: 对象计数中: 84% (251/298)
      remote: 对象计数中: 85% (254/298)
      remote: 对象计数中: 86% (257/298)
      remote: 对象计数中: 87% (260/298)
      remote: 对象计数中: 88% (263/298)
      remote: 对象计数中: 89% (266/298)
      remote: 对象计数中: 90% (269/298)
      remote: 对象计数中: 91% (272/298)
      remote: 对象计数中: 92% (275/298)
      remote: 对象计数中: 93% (278/298)
      remote: 对象计数中: 94% (281/298)
      remote: 对象计数中: 95% (284/298)
      remote: 对象计数中: 96% (287/298)
      remote: 对象计数中: 97% (290/298)
      remote: 对象计数中: 98% (293/298)
      remote: 对象计数中: 99% (296/298)
      remote: 对象计数中: 100% (298/298)
      remote: 对象计数中: 100% (298/298), 完成.
      remote: 压缩对象中: 0% (1/174)
      remote: 压缩对象中: 1% (2/174)
      remote: 压缩对象中: 2% (4/174)
      remote: 压缩对象中: 3% (6/174)
      remote: 压缩对象中: 4% (7/174)
      remote: 压缩对象中: 5% (9/174)
      remote: 压缩对象中: 6% (11/174)
      remote: 压缩对象中: 7% (13/174)
      remote: 压缩对象中: 8% (14/174)
      remote: 压缩对象中: 9% (16/174)
      remote: 压缩对象中: 10% (18/174)
      remote: 压缩对象中: 11% (20/174)
      remote: 压缩对象中: 12% (21/174)
      remote: 压缩对象中: 13% (23/174)
      remote: 压缩对象中: 14% (25/174)
      remote: 压缩对象中: 15% (27/174)
      remote: 压缩对象中: 16% (28/174)
      remote: 压缩对象中: 17% (30/174)
      remote: 压缩对象中: 18% (32/174)
      remote: 压缩对象中: 19% (34/174)
      remote: 压缩对象中: 20% (35/174)
      remote: 压缩对象中: 21% (37/174)
      remote: 压缩对象中: 22% (39/174)
      remote: 压缩对象中: 23% (41/174)
      remote: 压缩对象中: 24% (42/174)
      remote: 压缩对象中: 25% (44/174)
      remote: 压缩对象中: 26% (46/174)
      remote: 压缩对象中: 27% (47/174)
      remote: 压缩对象中: 28% (49/174)
      remote: 压缩对象中: 29% (51/174)
      remote: 压缩对象中: 30% (53/174)
      remote: 压缩对象中: 31% (54/174)
      remote: 压缩对象中: 32% (56/174)
      remote: 压缩对象中: 33% (58/174)
      remote: 压缩对象中: 34% (60/174)
      remote: 压缩对象中: 35% (61/174)
      remote: 压缩对象中: 36% (63/174)
      remote: 压缩对象中: 37% (65/174)
      remote: 压缩对象中: 38% (67/174)
      remote: 压缩对象中: 39% (68/174)
      remote: 压缩对象中: 40% (70/174)
      remote: 压缩对象中: 41% (72/174)
      remote: 压缩对象中: 42% (74/174)
      remote: 压缩对象中: 43% (75/174)
      remote: 压缩对象中: 44% (77/174)
      remote: 压缩对象中: 45% (79/174)
      remote: 压缩对象中: 46% (81/174)
      remote: 压缩对象中: 47% (82/174)
      remote: 压缩对象中: 48% (84/174)
      remote: 压缩对象中: 49% (86/174)
      remote: 压缩对象中: 50% (87/174)
      remote: 压缩对象中: 51% (89/174)
      remote: 压缩对象中: 52% (91/174)
      remote: 压缩对象中: 53% (93/174)
      remote: 压缩对象中: 54% (94/174)
      remote: 压缩对象中: 55% (96/174)
      remote: 压缩对象中: 56% (98/174)
      remote: 压缩对象中: 57% (100/174)
      remote: 压缩对象中: 58% (101/174)
      remote: 压缩对象中: 59% (103/174)
      remote: 压缩对象中: 60% (105/174)
      remote: 压缩对象中: 61% (107/174)
      remote: 压缩对象中: 62% (108/174)
      remote: 压缩对象中: 63% (110/174)
      remote: 压缩对象中: 64% (112/174)
      remote: 压缩对象中: 65% (114/174)
      remote: 压缩对象中: 66% (115/174)
      remote: 压缩对象中: 67% (117/174)
      remote: 压缩对象中: 68% (119/174)
      remote: 压缩对象中: 69% (121/174)
      remote: 压缩对象中: 70% (122/174)
      remote: 压缩对象中: 71% (124/174)
      remote: 压缩对象中: 72% (126/174)
      remote: 压缩对象中: 73% (128/174)
      remote: 压缩对象中: 74% (129/174)
      remote: 压缩对象中: 75% (131/174)
      remote: 压缩对象中: 76% (133/174)
      remote: 压缩对象中: 77% (134/174)
      remote: 压缩对象中: 78% (136/174)
      remote: 压缩对象中: 79% (138/174)
      remote: 压缩对象中: 80% (140/174)
      remote: 压缩对象中: 81% (141/174)
      remote: 压缩对象中: 82% (143/174)
      remote: 压缩对象中: 83% (145/174)
      remote: 压缩对象中: 84% (147/174)
      remote: 压缩对象中: 85% (148/174)
      remote: 压缩对象中: 86% (150/174)
      remote: 压缩对象中: 87% (152/174)
      remote: 压缩对象中: 88% (154/174)
      remote: 压缩对象中: 89% (155/174)
      remote: 压缩对象中: 90% (157/174)
      remote: 压缩对象中: 91% (159/174)
      remote: 压缩对象中: 92% (161/174)
      remote: 压缩对象中: 93% (162/174)
      remote: 压缩对象中: 94% (164/174)
      remote: 压缩对象中: 95% (166/174)
      remote: 压缩对象中: 96% (168/174)
      remote: 压缩对象中: 97% (169/174)
      remote: 压缩对象中: 98% (171/174)
      remote: 压缩对象中: 99% (173/174)
      remote: 压缩对象中: 100% (174/174)
      remote: 压缩对象中: 100% (174/174), 完成.
      Receiving objects: 0% (1/181)
      Receiving objects: 1% (2/181)
      Receiving objects: 2% (4/181)
      Receiving objects: 3% (6/181)
      Receiving objects: 4% (8/181)
      Receiving objects: 5% (10/181)
      Receiving objects: 6% (11/181)
      Receiving objects: 7% (13/181)
      Receiving objects: 8% (15/181)
      Receiving objects: 9% (17/181)
      Receiving objects: 10% (19/181)
      Receiving objects: 11% (20/181)
      Receiving objects: 12% (22/181)
      Receiving objects: 13% (24/181)
      Receiving objects: 14% (26/181)
      Receiving objects: 15% (28/181)
      Receiving objects: 16% (29/181)
      Receiving objects: 17% (31/181)
      Receiving objects: 18% (33/181)
      Receiving objects: 19% (35/181)
      Receiving objects: 20% (37/181)
      Receiving objects: 21% (39/181)
      Receiving objects: 22% (40/181)
      Receiving objects: 23% (42/181)
      Receiving objects: 24% (44/181)
      Receiving objects: 25% (46/181)
      Receiving objects: 26% (48/181)
      Receiving objects: 27% (49/181)
      Receiving objects: 28% (51/181)
      Receiving objects: 29% (53/181)
      Receiving objects: 30% (55/181)
      Receiving objects: 31% (57/181)
      Receiving objects: 32% (58/181)
      Receiving objects: 33% (60/181)
      Receiving objects: 34% (62/181)
      Receiving objects: 35% (64/181)
      Receiving objects: 36% (66/181)
      Receiving objects: 37% (67/181)
      Receiving objects: 38% (69/181)
      Receiving objects: 39% (71/181)
      Receiving objects: 40% (73/181)
      Receiving objects: 41% (75/181)
      Receiving objects: 42% (77/181)
      Receiving objects: 43% (78/181)
      Receiving objects: 44% (80/181)
      Receiving objects: 45% (82/181)
      Receiving objects: 46% (84/181)
      Receiving objects: 47% (86/181)
      Receiving objects: 48% (87/181)
      Receiving objects: 49% (89/181)
      Receiving objects: 50% (91/181)
      Receiving objects: 51% (93/181)
      Receiving objects: 52% (95/181)
      Receiving objects: 53% (96/181)
      Receiving objects: 54% (98/181)
      Receiving objects: 55% (100/181)
      Receiving objects: 56% (102/181)
      Receiving objects: 57% (104/181)
      Receiving objects: 58% (105/181)
      Receiving objects: 59% (107/181)
      Receiving objects: 60% (109/181)
      Receiving objects: 61% (111/181)
      Receiving objects: 62% (113/181)
      Receiving objects: 63% (115/181)
      Receiving objects: 64% (116/181)
      Receiving objects: 65% (118/181)
      Receiving objects: 66% (120/181)
      Receiving objects: 67% (122/181)
      Receiving objects: 68% (124/181)
      Receiving objects: 69% (125/181)
      Receiving objects: 70% (127/181)
      Receiving objects: 71% (129/181)
      Receiving objects: 72% (131/181)
      Receiving objects: 73% (133/181)
      Receiving objects: 74% (134/181)
      Receiving objects: 75% (136/181)
      Receiving objects: 76% (138/181)
      Receiving objects: 77% (140/181)
      Receiving objects: 78% (142/181)
      Receiving objects: 79% (143/181)
      Receiving objects: 80% (145/181)
      Receiving objects: 81% (147/181)
      remote: 总共 181 (差异 130),复用 8 (差异 5)
      Receiving objects: 82% (149/181)
      Receiving objects: 83% (151/181)
      Receiving objects: 84% (153/181)
      Receiving objects: 85% (154/181)
      Receiving objects: 86% (156/181)
      Receiving objects: 87% (158/181)
      Receiving objects: 88% (160/181)
      Receiving objects: 89% (162/181)
      Receiving objects: 90% (163/181)
      Receiving objects: 91% (165/181)
      Receiving objects: 92% (167/181)
      Receiving objects: 93% (169/181)
      Receiving objects: 94% (171/181)
      Receiving objects: 95% (172/181)
      Receiving objects: 96% (174/181)
      Receiving objects: 97% (176/181)
      Receiving objects: 98% (178/181)
      Receiving objects: 99% (180/181)
      Receiving objects: 100% (181/181)
      Receiving objects: 100% (181/181), 2.10 MiB | 11.36 MiB/s, done.
      Resolving deltas: 0% (0/130)
      Resolving deltas: 1% (2/130)
      Resolving deltas: 2% (3/130)
      Resolving deltas: 3% (5/130)
      Resolving deltas: 25% (33/130)
      Resolving deltas: 42% (55/130)
      Resolving deltas: 47% (62/130)
      Resolving deltas: 61% (80/130)
      Resolving deltas: 62% (81/130)
      Resolving deltas: 66% (87/130)
      Resolving deltas: 67% (88/130)
      Resolving deltas: 68% (89/130)
      Resolving deltas: 69% (90/130)
      Resolving deltas: 70% (91/130)
      Resolving deltas: 71% (93/130)
      Resolving deltas: 76% (99/130)
      Resolving deltas: 77% (101/130)
      Resolving deltas: 80% (104/130)
      Resolving deltas: 81% (106/130)
      Resolving deltas: 82% (107/130)
      Resolving deltas: 83% (109/130)
      Resolving deltas: 84% (110/130)
      Resolving deltas: 85% (111/130)
      Resolving deltas: 86% (113/130)
      Resolving deltas: 88% (115/130)
      Resolving deltas: 89% (116/130)
      Resolving deltas: 90% (118/130)
      Resolving deltas: 92% (120/130)
      Resolving deltas: 93% (122/130)
      Resolving deltas: 94% (123/130)
      Resolving deltas: 95% (124/130)
      Resolving deltas: 96% (125/130)
      Resolving deltas: 97% (127/130)
      Resolving deltas: 99% (129/130)
      Resolving deltas: 100% (130/130)
      Resolving deltas: 100% (130/130), completed with 34 local objects.
      From http://172.16.10.8:8001/p102-server/game 5336a6df..a77ddfe8 clean_nest -> origin/clean_nest
      ce5e5857..eb5f49ac develop -> origin/develop
      Fetching submodule confs/protocol
      From http://172.16.10.8:8001/p102-server/protocol 7dcda58..3ee9948 develop -> origin/develop
      error: Server does not allow request for unadvertised object 3cb8cebbb36ff1b6333d6eb033fcc808f6e72310
      Errors during submodule fetch:
      confs/protocol

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2608)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2048)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:570)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:997)
      ... 11 more
       

       

      But when I built the pipline the second time, it worked

       

      Why does this happen?

       

      This is the configuration in my pipline:

      stage('Checkout') {
      steps {
      checkout([
      $class: 'GitSCM',
      branches: [[name: "${branch_and_tag}"]],
      doGenerateSubmoduleConfigurations: false,
      extensions: [[$class: 'SubmoduleOption',
      disableSubmodules: false,
      parentCredentials: true,
      recursiveSubmodules: true,
      reference: '',
      trackingSubmodules: false],
      [$class: 'CleanBeforeCheckout',deleteUntrackedNestedRepositories: true]],
      submoduleCfg: [],
      userRemoteConfigs: [[credentialsId: "$env.GIT_AUTH", url: "$env.GIT_URL"]]
      ])
      }
      }

       

            markewaite Mark Waite
            axu_666 he
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: