• Blue Ocean - 1.1-beta-1, Blue Ocean - 1.1-beta2, Blue Ocean 1.1-beta4, Blue Ocean 1.1

      Observable in jenkinsci/workflow-demo:2017-04-05:

      ... io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckout
      SEVERE: Unexpected error when retrieving changeset
      hudson.plugins.git.GitException: Error launching git whatchanged
      	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:854)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:137)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:67)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:123)
      	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:108)
      	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:84)
      	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:150)
      	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:131)
      	at org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:114)
      	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1053)
      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
      	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
      	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
      	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
      	at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
      	at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
      	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:430)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:393)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:238)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:405)
      

          [JENKINS-43400] Autofavorite broken on remote agents

          manus added a comment -

          Hello again. jglick, jamesdumay, would a PR be welcome to at least change the logging level of this message? Thanks!

          manus added a comment - Hello again. jglick , jamesdumay , would a PR be welcome to at least change the logging level of this message? Thanks!

          Jesse Glick added a comment -

          Makes sense to me, so long as the error is not concealed.

          Jesse Glick added a comment - Makes sense to me, so long as the error is not concealed .

          manus added a comment -

          jglick, jamesdumay and anyone else interested, I've just (finally) opened a tiny PR to at least improve the logging situation, here:
          https://github.com/jenkinsci/blueocean-autofavorite-plugin/pull/20

          manus added a comment - jglick , jamesdumay and anyone else interested, I've just (finally) opened a tiny PR to at least improve the logging situation, here: https://github.com/jenkinsci/blueocean-autofavorite-plugin/pull/20

          I have a similar issue but there is a different stack trace.

          It starts with similar svere log and followed by something REMOTE CALL FAIL. copying the log from server:

          2020-09-11 12:52:29.384+0000 [id=5792910] SEVERE i.j.b.a.FavoritingScmListener#onCheckout: Unexpected error when retrieving changeset
          Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to MYAGENTNAME
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
          at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
          at hudson.remoting.Channel.call(Channel.java:998)
          at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
          at sun.reflect.GeneratedMethodAccessor548.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.$Proxy415.execute(Unknown Source)
          at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159)
          at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:150)
          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)
          hudson.plugins.git.GitException: Error: git whatchanged -no-abbrev -M "-format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(0,4,4)%B" -n 1 2697101451ffb585330c0db9f3ee3d669d8a6151 in d:\jenkins\experience_sw
          at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1214)
          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:211)
          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(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)

          Muhammad Faizan ul haq added a comment - I have a similar issue but there is a different stack trace. It starts with similar svere log and followed by something REMOTE CALL FAIL. copying the log from server: 2020-09-11 12:52:29.384+0000 [id=5792910] SEVERE i.j.b.a.FavoritingScmListener#onCheckout: Unexpected error when retrieving changeset Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to MYAGENTNAME at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) at hudson.remoting.Channel.call(Channel.java:998) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146) at sun.reflect.GeneratedMethodAccessor548.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.$Proxy415.execute(Unknown Source) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:150) 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) hudson.plugins.git.GitException: Error: git whatchanged - no-abbrev -M " -format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(0,4,4)%B" -n 1 2697101451ffb585330c0db9f3ee3d669d8a6151 in d:\jenkins\experience_sw at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1214) 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:211) 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(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)

          Pay Bas added a comment -

          Would still like a fix for this problem. Lowering the severity to "WARNING" doesn't mean we're not still getting spammed with stack-traces. Driving me nuts

          Pay Bas added a comment - Would still like a fix for this problem. Lowering the severity to "WARNING" doesn't mean we're not still getting spammed with stack-traces. Driving me nuts

          dor s added a comment -

          Getting the same error on a Pull request (Bitbucket) with shared libraries in k8s agent pod

           

          2021-08-22 08:08:05.955+0000 [id=25701] SEVERE i.j.b.a.FavoritingScmListener#onCheckout: Unexpected error when retrieving changeset
          hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev -M "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(0,4,4)%B" -n 1 ssda9327a7esadsadsadsadsadsdd in /var/jenkins_home/workspace/bitbucket-repos_api_PR-231@libs/pipeline-library 
          	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1272) 
          	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159) 
          	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84) 
          	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:155) 
          	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve$1(SCMSourceRetriever.java:190) 
          	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrySCMOperation(SCMSourceRetriever.java:140) 
          	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:189) 
          	at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:129) 
          	at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:196) 
          	at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:210) 
          	at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:155) 
          	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) 
          	at hudson.security.ACL.impersonate2(ACL.java:449) at hudson.security.ACL.impersonate(ACL.java:461) 
          	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) 
          	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 
          	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 
          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)
          

           

           

           

          dor s added a comment - Getting the same error on a Pull request  (Bitbucket) with shared libraries in k8s agent pod   2021-08-22 08:08:05.955+0000 [id=25701] SEVERE i.j.b.a.FavoritingScmListener#onCheckout: Unexpected error when retrieving changeset hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev -M "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(0,4,4)%B" -n 1 ssda9327a7esadsadsadsadsadsdd in / var /jenkins_home/workspace/bitbucket-repos_api_PR-231@libs/pipeline-library at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1272) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:155) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.lambda$doRetrieve$1(SCMSourceRetriever.java:190) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrySCMOperation(SCMSourceRetriever.java:140) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.doRetrieve(SCMSourceRetriever.java:189) at org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:129) at org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:196) at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:210) at org.jenkinsci.plugins.workflow.libs.LibraryStep$Execution.run(LibraryStep.java:155) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) at hudson.security.ACL.impersonate2(ACL.java:449) at hudson.security.ACL.impersonate(ACL.java:461) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:829)      

          Mark Waite added a comment -

          dordor the solution for this problem is to uninstall the blueocean autofavorite plugin. Update to the most recent version of blue ocean and the autofavorite plugin can be uninstalled. The autofavorite plugin did not provide me enough value to justify leaving it in my Jenkins installation

          Mark Waite added a comment - dordor the solution for this problem is to uninstall the blueocean autofavorite plugin. Update to the most recent version of blue ocean and the autofavorite plugin can be uninstalled. The autofavorite plugin did not provide me enough value to justify leaving it in my Jenkins installation

          dor s added a comment -

          Hi markewaite , thank you for your answer, it seems that I can't uninstall blueocean autofavorite plugin because it's used as a dependency for the Blue Ocean plugin (here)

          How can I remove it?

           

          dor s added a comment - Hi markewaite  , thank you for your answer, it seems that I can't uninstall blueocean autofavorite plugin because it's used as a dependency for the Blue Ocean plugin ( here ) How can I remove it?  

          Pay Bas added a comment - - edited

          As others have noted: adding the following line to my jenkins/init.groovy.d/startup.groovy worked:

          System.setProperty("BLUEOCEAN_FEATURE_AUTOFAVORITE_ENABLED", "false")

          Doesn't fix the underlying problem obviously, but does prevent a lot of errors.

          Pay Bas added a comment - - edited As others have noted: adding the following line to my jenkins/init.groovy.d/startup.groovy worked: System .setProperty( "BLUEOCEAN_FEATURE_AUTOFAVORITE_ENABLED" , " false " ) Doesn't fix the underlying problem obviously, but does prevent a lot of errors.

          Mark Waite added a comment -

          dordor In my installation I removed it by unchecking (disabling) the "Blue Ocean Aggregator" and then uninstalling the "Autofavorite for Blue Ocean" plugin. I've now switched to managing plugin versions with a plugins.txt file and the plugin installation manager tool.

          Mark Waite added a comment - dordor In my installation I removed it by unchecking (disabling) the "Blue Ocean Aggregator" and then uninstalling the "Autofavorite for Blue Ocean" plugin. I've now switched to managing plugin versions with a plugins.txt file and the plugin installation manager tool .

            Unassigned Unassigned
            jglick Jesse Glick
            Votes:
            8 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated: