com.atlassian.bamboo.repository.RepositoryException: Could not retrieve changelogs from perforce

Atlassian JIRA | Ulrich Kuhnhardt [Atlassian] | 8 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    If bamboo is unable to connect to perforce due to a session timeout it leaves a unix process running on the machine. {code}com.atlassian.bamboo.repository.RepositoryException: Could not retrieve changelogs from perforce at com.atlassian.bamboo.repository.perforce.PerforceManager.getChangeNumbersFromRevision(PerforceManager.java:467) at com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(PerforceRepository.java:123) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:55) at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process(ChangeDetectionListenerAction.java:63) at com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(DefaultBuildExecutionManager.java:86) at com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(ChangeDetectionListener.java:41) at com.atlassian.event.DefaultEventManager$2.run(DefaultEventManager.java:202) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 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(Thread.java:595) Caused by: com.tek42.perforce.PerforceException: Unable to parse output for change numbers. Output: Your session was logged out, please login again. at com.tek42.perforce.parse.Changes.getChangeNumbersFrom(Changes.java:157) at com.atlassian.bamboo.repository.perforce.PerforceManager.getChangeNumbersFromRevision(PerforceManager.java:453) ... 11 more {code} running {{jstack <bamboo-pid>}} returns the following stack frame{code}Thread t@161: (state = IN_NATIVE) - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=-1503802984 (Interpreted frame) - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=0 (Interpreted frame) - java.lang.UNIXProcess.<init>(byte[], byte[], int, byte[], int, byte[], boolean) @bci=62, line=53 (Interpreted frame) - java.lang.ProcessImpl.start(java.lang.String[], java.util.Map, java.lang.String, boolean) @bci=182, line=65 (Compiled frame) - java.lang.ProcessBuilder.start() @bci=112, line=451 (Compiled frame) - com.tek42.perforce.process.CmdLineExecutor.exec(java.lang.String, java.lang.String[]) @bci=205, line=98 (Interpreted frame) - com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(java.lang.String[], boolean) @bci=50, line=210 (Compiled frame) - com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(java.lang.String[]) @bci=3, line=184 (Interpreted frame) - com.tek42.perforce.parse.Changes.getChangeNumbersFrom(java.lang.String, int) @bci=72, line=145 (Interpreted frame) - com.atlassian.bamboo.repository.perforce.PerforceManager.getChangeNumbersFromRevision(com.tek42.perforce.Depot, java.lang.String, int) @bci=18, line=453 (Interpreted frame) - com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(java.lang.String, java.lang.String) @bci=79, line=123 (Interpreted frame) - com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(java.lang.String, com.atlassian.bamboo.v2.build.repository.RepositoryV2, java.lang.String) @bci=68, line=55 (Interpreted frame) - com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process() @bci=73, line=63 (Compiled frame) - com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(java.lang.String, com.atlassian.bamboo.build.BuildExecutionManager$BuildDetectionAction, boolean) @bci=54, line=86 (Interpreted frame) - com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(com.atlassian.event.Event) @bci=52, line=41 (Interpreted frame) - com.atlassian.event.DefaultEventManager$2.run() @bci=8, line=202 (Interpreted frame) - edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(java.lang.Runnable) @bci=44, line=650 (Compiled frame) - com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run() @bci=15, line=32 (Interpreted frame) - edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run() @bci=4, line=34 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame) {code} https://support.atlassian.com/browse/BSP-1469

    Atlassian JIRA | 8 years ago | Ulrich Kuhnhardt [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: Could not retrieve changelogs from perforce
  2. 0

    If bamboo is unable to connect to perforce due to a session timeout it leaves a unix process running on the machine. {code}com.atlassian.bamboo.repository.RepositoryException: Could not retrieve changelogs from perforce at com.atlassian.bamboo.repository.perforce.PerforceManager.getChangeNumbersFromRevision(PerforceManager.java:467) at com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(PerforceRepository.java:123) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:55) at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process(ChangeDetectionListenerAction.java:63) at com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(DefaultBuildExecutionManager.java:86) at com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(ChangeDetectionListener.java:41) at com.atlassian.event.DefaultEventManager$2.run(DefaultEventManager.java:202) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 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(Thread.java:595) Caused by: com.tek42.perforce.PerforceException: Unable to parse output for change numbers. Output: Your session was logged out, please login again. at com.tek42.perforce.parse.Changes.getChangeNumbersFrom(Changes.java:157) at com.atlassian.bamboo.repository.perforce.PerforceManager.getChangeNumbersFromRevision(PerforceManager.java:453) ... 11 more {code} running {{jstack <bamboo-pid>}} returns the following stack frame{code}Thread t@161: (state = IN_NATIVE) - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=-1503802984 (Interpreted frame) - java.lang.UNIXProcess.forkAndExec(byte[], byte[], int, byte[], int, byte[], boolean, java.io.FileDescriptor, java.io.FileDescriptor, java.io.FileDescriptor) @bci=0 (Interpreted frame) - java.lang.UNIXProcess.<init>(byte[], byte[], int, byte[], int, byte[], boolean) @bci=62, line=53 (Interpreted frame) - java.lang.ProcessImpl.start(java.lang.String[], java.util.Map, java.lang.String, boolean) @bci=182, line=65 (Compiled frame) - java.lang.ProcessBuilder.start() @bci=112, line=451 (Compiled frame) - com.tek42.perforce.process.CmdLineExecutor.exec(java.lang.String, java.lang.String[]) @bci=205, line=98 (Interpreted frame) - com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(java.lang.String[], boolean) @bci=50, line=210 (Compiled frame) - com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(java.lang.String[]) @bci=3, line=184 (Interpreted frame) - com.tek42.perforce.parse.Changes.getChangeNumbersFrom(java.lang.String, int) @bci=72, line=145 (Interpreted frame) - com.atlassian.bamboo.repository.perforce.PerforceManager.getChangeNumbersFromRevision(com.tek42.perforce.Depot, java.lang.String, int) @bci=18, line=453 (Interpreted frame) - com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(java.lang.String, java.lang.String) @bci=79, line=123 (Interpreted frame) - com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(java.lang.String, com.atlassian.bamboo.v2.build.repository.RepositoryV2, java.lang.String) @bci=68, line=55 (Interpreted frame) - com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process() @bci=73, line=63 (Compiled frame) - com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(java.lang.String, com.atlassian.bamboo.build.BuildExecutionManager$BuildDetectionAction, boolean) @bci=54, line=86 (Interpreted frame) - com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(com.atlassian.event.Event) @bci=52, line=41 (Interpreted frame) - com.atlassian.event.DefaultEventManager$2.run() @bci=8, line=202 (Interpreted frame) - edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(java.lang.Runnable) @bci=44, line=650 (Compiled frame) - com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run() @bci=15, line=32 (Interpreted frame) - edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run() @bci=4, line=34 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame) {code} https://support.atlassian.com/browse/BSP-1469

    Atlassian JIRA | 8 years ago | Ulrich Kuhnhardt [Atlassian]
    com.atlassian.bamboo.repository.RepositoryException: Could not retrieve changelogs from perforce
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.tek42.perforce.PerforceException

      Unable to parse output for change numbers. Output: Your session was logged out, please login again.

      at com.tek42.perforce.parse.Changes.getChangeNumbersFrom()
    2. com.tek42.perforce
      Changes.getChangeNumbersFrom
      1. com.tek42.perforce.parse.Changes.getChangeNumbersFrom(Changes.java:157)
      1 frame
    3. com.atlassian.bamboo
      ChangeDetectionListener.handleEvent
      1. com.atlassian.bamboo.repository.perforce.PerforceManager.getChangeNumbersFromRevision(PerforceManager.java:453)
      2. com.atlassian.bamboo.repository.perforce.PerforceRepository.collectChangesSinceLastBuild(PerforceRepository.java:123)
      3. com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuild(DefaultChangeDetectionManager.java:55)
      4. com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.process(ChangeDetectionListenerAction.java:63)
      5. com.atlassian.bamboo.build.DefaultBuildExecutionManager.tryToDetectAndBuild(DefaultBuildExecutionManager.java:86)
      6. com.atlassian.bamboo.v2.trigger.ChangeDetectionListener.handleEvent(ChangeDetectionListener.java:41)
      6 frames
    4. com.atlassian.event
      DefaultEventManager$2.run
      1. com.atlassian.event.DefaultEventManager$2.run(DefaultEventManager.java:202)
      1 frame
    5. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      2 frames
    6. com.atlassian.bamboo
      NamedThreadFactory$1.run
      1. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$1.run(NamedThreadFactory.java:32)
      1 frame
    7. Backport of JSR 166
      ThreadHelpers$1.run
      1. edu.emory.mathcs.backport.java.util.concurrent.helpers.ThreadHelpers$1.run(ThreadHelpers.java:34)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame