org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Clone build plan to PG3826-PATCHRSN failed.

JIRA | Richard Neale | 4 years ago
  1. 0

    Note: Declared this issue as *Critical* because we have just rolled out an Automation process to our 900 Devs. Issue: We have 1448 plans in total and when doing the clone, the debug/verbose output shows that it gets through 1000 plans and then bails stating that it cannot find the plan. It is at about 1166. I googled and found that it is a max-results issue so, I tried to move the plan to clone very early in the list. This moved the problem further down the process to the verification step of the cloned plan and it could not be found for the same reasoning. What are your suggestions to override the 1000 limit? This the same fail point in both tests: PG360X-RELEASEDN32 The following is the error stack from the second test (the source plan was moved before the 1000 limit) {code} Looking for plan PG3826-PATCHRSN: PG360X-RELEASEDN32 Failure response: {"status":"OK"} Remote error: Clone build plan to PG3826-PATCHRSN failed. org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Clone build plan to PG3826-PATCHRSN failed. at org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1752) at org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1679) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:400) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122) at org.swift.common.cli.CliClient.doWork(CliClient.java:315) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:104) {code}

    JIRA | 4 years ago | Richard Neale
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Clone build plan to PG3826-PATCHRSN failed.
  2. 0

    Note: Declared this issue as *Critical* because we have just rolled out an Automation process to our 900 Devs. Issue: We have 1448 plans in total and when doing the clone, the debug/verbose output shows that it gets through 1000 plans and then bails stating that it cannot find the plan. It is at about 1166. I googled and found that it is a max-results issue so, I tried to move the plan to clone very early in the list. This moved the problem further down the process to the verification step of the cloned plan and it could not be found for the same reasoning. What are your suggestions to override the 1000 limit? This the same fail point in both tests: PG360X-RELEASEDN32 The following is the error stack from the second test (the source plan was moved before the 1000 limit) {code} Looking for plan PG3826-PATCHRSN: PG360X-RELEASEDN32 Failure response: {"status":"OK"} Remote error: Clone build plan to PG3826-PATCHRSN failed. org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Clone build plan to PG3826-PATCHRSN failed. at org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1752) at org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1679) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:400) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122) at org.swift.common.cli.CliClient.doWork(CliClient.java:315) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:104) {code}

    JIRA | 4 years ago | Richard Neale
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: Clone build plan to PG3826-PATCHRSN failed.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    From Timothy: Can you please add an addRepository example with the repositoryKey GIT. The below command with repositoryKey of BITBUCKET works and it adds a repository to Bamboo. {noformat} java \ -jar /home/me/bamboo-cli-5.1.0/lib/bamboo-cli-5.1.0.jar \ -a addRepository \ --verbose \ --server http://bamboo.server.local:8085 \ --user root \ --password password \ --name git-example4 \ --repositoryKey BITBUCKET \ --field1 repository.bitbucket.repository --value1 project/git-example \ --field2 repository.bitbucket.username --value2 root \ --field3 repository.bitbucket.temporary.password --value3 'password' \ --field4 selectedWebRepositoryViewer --value4 bamboo.webrepositoryviewer.provided:noRepositoryViewer \ --field5 repository.git.repositoryUrl --value5 http://gitlab.server.local.local/project/repo1.git \ --field6 repository.bitbucket.password.change --value6 true \ --fields repository.bitbucket.scm:GIT,repository.bitbucket.branch:master,repository.bitbucket.commandTimeout:180 {noformat} The problem is with this is that the repository key is BITBUCKET and with BITBUCKET, Bamboo does not store the repositoryURL. If I change the repositoryKey to GIT, I get an error of “unknown” with the following output. {noformat} Server address: http://bamboo.server.local:8085/rest/api Response code: 200, message: OK, url: http://bamboo.server.local:8085/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? Request type: GET Content type: text/html Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? URL requested: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=project%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2Frepo1.git&repository.bitbucket.branch=master Request type: POST Content type: application/json Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=OMS%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2FwebappService-veo-one-dashboard.git&repository.bitbucket.branch=master Remote error: unknown org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:197) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:704) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:257) {noformat} I decompiled the class file with jad and looked at RepositoryHelper.java but it was not helpful. I need to know what is unknown but I cannot figure it out from the code. I have hundreds of build plans to import to Bamboo so I need to use the command line. Thank you.

    JIRA | 10 months ago | Bob Swift
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown
  5. 0

    From Timothy: Can you please add an addRepository example with the repositoryKey GIT. The below command with repositoryKey of BITBUCKET works and it adds a repository to Bamboo. {noformat} java \ -jar /home/me/bamboo-cli-5.1.0/lib/bamboo-cli-5.1.0.jar \ -a addRepository \ --verbose \ --server http://bamboo.server.local:8085 \ --user root \ --password password \ --name git-example4 \ --repositoryKey BITBUCKET \ --field1 repository.bitbucket.repository --value1 project/git-example \ --field2 repository.bitbucket.username --value2 root \ --field3 repository.bitbucket.temporary.password --value3 'password' \ --field4 selectedWebRepositoryViewer --value4 bamboo.webrepositoryviewer.provided:noRepositoryViewer \ --field5 repository.git.repositoryUrl --value5 http://gitlab.server.local.local/project/repo1.git \ --field6 repository.bitbucket.password.change --value6 true \ --fields repository.bitbucket.scm:GIT,repository.bitbucket.branch:master,repository.bitbucket.commandTimeout:180 {noformat} The problem is with this is that the repository key is BITBUCKET and with BITBUCKET, Bamboo does not store the repositoryURL. If I change the repositoryKey to GIT, I get an error of “unknown” with the following output. {noformat} Server address: http://bamboo.server.local:8085/rest/api Response code: 200, message: OK, url: http://bamboo.server.local:8085/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? Request type: GET Content type: text/html Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/configureGlobalRepositories!default.action? URL requested: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=project%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2Frepo1.git&repository.bitbucket.branch=master Request type: POST Content type: application/json Response code: 200, message: OK, url: http://bamboo.server.local:8085/admin/createGlobalRepository.action?&repository.bitbucket.temporary.password=password&repository.bitbucket.repository=OMS%2Fgit-example&bamboo.successReturnMode=json&repositoryName=git-example4&repository.bitbucket.commandTimeout=180&repository.bitbucket.username=root&selectedWebRepositoryViewer=bamboo.webrepositoryviewer.provided%3AnoRepositoryViewer&confirm=true&selectedRepository=com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git%3Agit&repositoryId=0&repository.bitbucket.password.change=true&repository.bitbucket.scm=GIT&repository.git.repositoryUrl=http%3A%2F%2Fgitlab.server.local%2Fproject%2FwebappService-veo-one-dashboard.git&repository.bitbucket.branch=master Remote error: unknown org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown at org.swift.bamboo.cli.helpers.RepositoryHelper.addOrUpdateRepository(RepositoryHelper.java:197) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:704) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:257) {noformat} I decompiled the class file with jad and looked at RepositoryHelper.java but it was not helpful. I need to know what is unknown but I cannot figure it out from the code. I have hundreds of build plans to import to Bamboo so I need to use the command line. Thank you.

    JIRA | 10 months ago | Bob Swift
    org.swift.common.cli.AbstractRemoteClient$RemoteRestException: unknown

    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. org.swift.common.cli.AbstractRemoteClient$RemoteRestException

      Clone build plan to PG3826-PATCHRSN failed.

      at org.swift.bamboo.cli.BambooClient.clonePlan()
    2. org.swift.bamboo
      BambooClient.handleRequest
      1. org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1752)
      2. org.swift.bamboo.cli.BambooClient.clonePlan(BambooClient.java:1679)
      3. org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:400)
      3 frames
    3. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:122)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:315)
      2 frames
    4. org.swift.bamboo
      BambooClient.main
      1. org.swift.bamboo.cli.BambooClient.main(BambooClient.java:104)
      1 frame