com.atlassian.bamboo.repository.RepositoryException: Could not retrieve latest change number for //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow

Atlassian JIRA | Ajay Sridhar [Atlassian] | 8 years ago
  1. 0

    Raised from http://forums.atlassian.com/thread.jspa?threadID=27870&tstart=0 - {code} com.atlassian.bamboo.repository.RepositoryException: Could not retrieve latest change number for //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow at com.atlassian.bamboo.repository.perforce.PerforceManager.getLatestChangeNumber(PerforceManager.java:333) at com.atlassian.bamboo.repository.perforce.PerforceRepository.retrieveSourceCode(PerforceRepository.java:199) at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.call(CheckoutUpdateForBuild.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy38.call(Unknown Source) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:86) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:101) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Unknown Source) Caused by: com.tek42.perforce.PerforceException: No output for: p4 changes -m 1 //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:247) at com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:119) at com.atlassian.bamboo.repository.perforce.PerforceManager.getLatestChangeNumber(PerforceManager.java:319) ... 19 more {code}

    Atlassian JIRA | 8 years ago | Ajay Sridhar [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: Could not retrieve latest change number for //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow
  2. 0

    Raised from http://forums.atlassian.com/thread.jspa?threadID=27870&tstart=0 - {code} com.atlassian.bamboo.repository.RepositoryException: Could not retrieve latest change number for //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow at com.atlassian.bamboo.repository.perforce.PerforceManager.getLatestChangeNumber(PerforceManager.java:333) at com.atlassian.bamboo.repository.perforce.PerforceRepository.retrieveSourceCode(PerforceRepository.java:199) at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.call(CheckoutUpdateForBuild.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy38.call(Unknown Source) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:86) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:101) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32) at edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34) at java.lang.Thread.run(Unknown Source) Caused by: com.tek42.perforce.PerforceException: No output for: p4 changes -m 1 //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:247) at com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:119) at com.atlassian.bamboo.repository.perforce.PerforceManager.getLatestChangeNumber(PerforceManager.java:319) ... 19 more {code}

    Atlassian JIRA | 8 years ago | Ajay Sridhar [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: Could not retrieve latest change number for //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow
  3. 0

    Perforce Plugin - hudson - Hudson Wiki

    hudson-ci.org | 4 months ago
    com.tek42.perforce.PerforceException: No output for: p4 workspace -o SE_SCM_TEST_USER_1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After migrating from hudson 1.346 with perforce plugin 1.1.8 to hudson 1.379 with perforce plugin 1.1.9 I get error messages stating "PerforceException: No output for: ..." from approximately one of 4 builds. Only slave machines are affected, builds on the master work fine. Retriggering the build manually often heals the problem but is not really an option for me with about one build a minute for most of the day. I get the "No output for:" message for several commands: p4 counter change, p4 workspace -o, p4 describe, etc. Looks quite the same as issue JENKINS-7664, but I could not comment on that issue, so I had to post a separate one. Please feel free to mark this as a duplicate. {noformat} Started by upstream project "anaconda-dbtest-hamburg-limbo" build number 380 Building remotely on oehhp73k Using remote perforce client: cbuild_QS_anaconda-conversiontest-hamburg-trunk_OEHHP73L--1596120843 [anaconda-conversiontest-hamburg-limbo] $ /opt/perforce/bin/p4 workspace -o cbuild_QS_anaconda-conversiontest-hamburg-trunk_OEHHP73L--1596120843 Saving modified client cbuild_QS_anaconda-conversiontest-hamburg-trunk_OEHHP73L--1596120843 [anaconda-conversiontest-hamburg-limbo] $ /opt/perforce/bin/p4 -s client -i Last sync'd change: 306855 [anaconda-conversiontest-hamburg-limbo] $ /opt/perforce/bin/p4 counter change [anaconda-conversiontest-hamburg-limbo] $ /opt/perforce/bin/p4 -s changes //cbuild_QS_anaconda-conversiontest-hamburg-trunk_OEHHP73L--1596120843/...@306856,@307025 [anaconda-conversiontest-hamburg-limbo] $ /opt/perforce/bin/p4 describe -s 307021 Caught exception communicating with perforce. No output for: /opt/perforce/bin/p4 describe -s 307021 com.tek42.perforce.PerforceException: No output for: /opt/perforce/bin/p4 describe -s 307021 at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:341) at com.tek42.perforce.parse.Changes.getChangelist(Changes.java:63) at com.tek42.perforce.parse.Changes.getChangelistsFromNumbers(Changes.java:381) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:552) at hudson.model.AbstractProject.checkout(AbstractProject.java:1082) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1280) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:137) Recording test results Email was triggered for: Failure Sending email for trigger: Failure Sending email to: ...some guys... Finished: FAILURE {noformat}

    Jenkins JIRA | 6 years ago | swoyde
    com.tek42.perforce.PerforceException: No output for: /opt/perforce/bin/p4 describe -s 307021
  6. 0

    When there is an error in the global configuration that injects broken environment variables (blank name for the variable) the Perforce-plugin fails with: Started by user testuser [EnvInject] - Loading node environment variables. Building remotely on testslave in workspace E:\build_e\workspace\Test_Component Using remote perforce client: testclient-12345678 [Test_Component] $ C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 Caught exception communicating with perforce. No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 com.tek42.perforce.PerforceException: No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:384) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1528) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1489) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:795) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468) at hudson.model.Run.run(Run.java:1408) at hudson.model.Build.run(Build.java:110) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) ERROR: Unable to communicate with perforce. No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678 Finished: FAILURE The correct error would be something like, can't "run the command". Because the actual error is something like: Caused by: java.io.IOException: Cannot run program "cmd.exe" (in directory "E:\build_e\workspace\Test_Component"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244)

    Jenkins JIRA | 4 years ago | Markus Strand
    com.tek42.perforce.PerforceException: No output for: C:\apps\perforce\p4.exe workspace -o -S //test/test_stream testclient-12345678

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.tek42.perforce.PerforceException

      No output for: p4 changes -m 1 //apps/cts/project_workflow/... //RFord_TDITS3892_ws/cts/project_workflow

      at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse()
    2. com.tek42.perforce
      Changes.getChangeNumbers
      1. com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:247)
      2. com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:119)
      2 frames
    3. com.atlassian.bamboo
      CheckoutUpdateForBuild.call
      1. com.atlassian.bamboo.repository.perforce.PerforceManager.getLatestChangeNumber(PerforceManager.java:319)
      2. com.atlassian.bamboo.repository.perforce.PerforceRepository.retrieveSourceCode(PerforceRepository.java:199)
      3. com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.call(CheckoutUpdateForBuild.java:86)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    6. Hibernate
      HibernateInterceptor.invoke
      1. org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
      1 frame
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    8. Unknown
      $Proxy38.call
      1. $Proxy38.call(Unknown Source)
      1 frame
    9. com.atlassian.bamboo
      NamedThreadFactory$1.run
      1. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)
      2. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:86)
      3. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:101)
      4. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      4 frames
    10. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      1 frame
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame