Request to connect as client of JOC_A but already client of JOC_B

Issue

When you try to reconnect masters with JOC but fails with the error:

java.lang.Exception: Request to connect as client of https://JOC_A/ but already client of https://JOC_B/
at org.kohsuke.stapler.HttpResponses.error(HttpResponses.java:83)

The master is locked out pointing to the licensing page. Neither the push from the JOC or connection details on the master license screen work at this point.

Note: Related to “How do I reconnect a master to JOC after changing JOC to HTTPS”

Environment

CloudBees Jenkins Operations Center 1.7

CloudBees Jenkins Enterprise 15.05

Resolution

Basically, you are facing this issues because you are not running the latest operations-center- plugins on both CJOC and client master.

So, now to unlock you need:

In case you can access to client master dashboard

  1. Go to https:///configure and disable the Operations Center connection details. 
    image-3.png
  2. Then, delete the Client master from CJOC and totally re-create the client master from scratch in CJOC. You will be now able to attach the client master.

In case you don’t have access to client master dashboard

  1. Stop the Jenkins service on client master
  2. Delete in client master $JENKINS_HOME/operations-center-client.xml and $JENKINS_HOME/com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction.xml
  3. Start the jenkins service on client master
  4. Delete the Client master from CJOC
  5. Totally re-create the client master from scratch in CJOC
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.