<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Access Violation - Perguntas recentes com a tag git</title>
<link>https://desenv.benner.com.br/accessviolation/?qa=tag/git</link>
<description>Powered by Question2Answer</description>
<item>
<title>stderr: error: cannot lock ref 'refs/remotes/origin/&lt;nomeDaBranch&gt;': is at &lt;commitSHA&gt; but expected &lt;outroCommitSHA&gt;</title>
<link>https://desenv.benner.com.br/accessviolation/?qa=1227/remotes-nomedabranch-commitsha-expected-outrocommitsha</link>
<description>&lt;p&gt;Do nada, depois de fazer fetch no repositório começa a ocorrer erro de &quot;cannot lock ref&quot; no clone.&lt;/p&gt;

&lt;p&gt;Exemplo:&lt;/p&gt;

&lt;pre class=&quot;console-output&quot;&gt;
git fetch --tags --progress -- &lt;a rel=&quot;nofollow&quot; href=&quot;http://gitlab.benner.com.br/corporativo/produto.git&quot; style=&quot;box-sizing: border-box; overflow-wrap: break-word; color: rgb(92, 53, 102);&quot;&gt;http://gitlab.benner.com.br/corporativo/produto.git&lt;/a&gt; +refs/heads/*:refs/remotes/origin/* # timeout=10
 ERROR: Error fetching remote repo 'origin'
 hudson.plugins.git.GitException: Failed to fetch from &lt;a rel=&quot;nofollow&quot; href=&quot;http://gitlab.benner.com.br/corporativo/produto.git&quot; style=&quot;box-sizing: border-box; overflow-wrap: break-word; color: rgb(92, 53, 102);&quot;&gt;http://gitlab.benner.com.br/corporativo/produto.git&lt;/a&gt;
 	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 org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124)
 	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 &quot;git fetch --tags --progress -- &lt;a rel=&quot;nofollow&quot; href=&quot;http://gitlab.benner.com.br/corporativo/produto.git&quot; style=&quot;box-sizing: border-box; overflow-wrap: break-word; color: rgb(92, 53, 102);&quot;&gt;http://gitlab.benner.com.br/corporativo/produto.git&lt;/a&gt; +refs/heads/*:refs/remotes/origin/*&quot; returned status code 1:
 stdout: 
&lt;span style=&quot;color:white&quot;&gt;[2019-12-03T16:18:21.446Z] stderr: error: cannot lock ref 'refs/remotes/origin/05.20.OSESP.Merge': is at 6290df7f723ecac2f902ea6fc78e61773f71385c but expected 459a0ee9bedc13e11d95787872ae73464539095b
&lt;/span&gt; From &lt;a rel=&quot;nofollow&quot; href=&quot;http://gitlab.benner.com.br/corporativo/produto&quot; style=&quot;box-sizing: border-box; overflow-wrap: break-word; color: rgb(92, 53, 102);&quot;&gt;http://gitlab.benner.com.br/corporativo/produto&lt;/a&gt;
  ! 459a0ee9be...00a67849ae 05.20.OSESP.Merge -&amp;gt; origin/05.20.OSESP.Merge  (unable to update local ref)
 
 	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 org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
 	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
 	at hudson.remoting.Request$2.run(Request.java:369)
 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
 	at java.util.concurrent.FutureTask.run(Unknown Source)
 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
 	at java.lang.Thread.run(Unknown Source)
 	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from bnu-slave002.benner.com.br/192.168.5.183:63021
 		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
 		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
 		at hudson.remoting.Channel.call(Channel.java:957)
 		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
 		at sun.reflect.GeneratedMethodAccessor641.invoke(Unknown Source)
 		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 		at java.lang.reflect.Method.invoke(Method.java:498)
 		at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)
 		at com.sun.proxy.$Proxy146.execute(Unknown Source)
 		at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:897)
 		at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1114)
 		at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1145)
 		at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124)
 		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)&lt;/pre&gt;</description>
<guid isPermaLink="true">https://desenv.benner.com.br/accessviolation/?qa=1227/remotes-nomedabranch-commitsha-expected-outrocommitsha</guid>
<pubDate>Thu, 05 Dec 2019 11:41:12 +0000</pubDate>
</item>
</channel>
</rss>