Operations Center Credentials lookup is failing after upgrading to version between 2.401.1.3 and 2.414.1.4 included

1 minute readKnowledge base

Issue

  • After upgrading CloudBees CI Controller to a version between 2.401.1.3 and 2.414.1.4 included, the controller cannot lookup credentials defined in Operations Center when disconnected or when the Operations Center is down.

  • Operations Center Credentials lookup and cache is not working after upgrading Controller to a version between 2.401.1.3 and 2.414.1.4 included

  • When the Operations Center is down, Controller shows:

          WARNING com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction invokeServerAction
          Failed to call from $CJOC_URL/operations-center-server/credentials/lookup
          java.net.ConnectException: Connection refused

    When the Operations Center is reachable from the controller via HTTP/S but the controller is disconnected, the problem is less obvious. A FINE logger on com.cloudbees.opscenter.client.plugin.OperationsCenterCredentialsProvider and com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction would show an empty response to credentials lookup requests:

          FINE com.cloudbees.opscenter.client.plugin.OperationsCenterCredentialsProvider getCredentials
          Trying HTTP transport instead of Remoting
          FINE com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction invokeServerAction
          posting to $CJOC_URL/operations-center-server/credentials/lookup: $REQUEST
          FINE com.cloudbees.opscenter.client.plugin.OperationsCenterRootAction invokeServerAction
          received response: []
  • BEE-39869: OC Credentials cache lookup is broken since 2.401.x

Resolution

This is a bug introduced in version 2.401.1.x of CloudBees CI that has been fixed in version 2.414.2.2.

The solution is to upgrade CloudBees CI to version 2.414.2.2 or later.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.