Unable to login through rhc

Solution Verified - Updated -

Environment

  • Openshift Enterprise
    • 2.x
    • 1.x
  • Openshift Online

Issue

  • When trying to run rhc setup command below output is seen:
rhc setup -d
DEBUG: Using config file /root/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard

This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed.
DEBUG: Running login_stage

Using xyz to login to example.com
DEBUG: Connecting to https://example.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
DEBUG: Created new httpclient
DEBUG: Request GET https://example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG:    code 200   41 ms
DEBUG: Server supports API versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
DEBUG:    Using API version 1.6
DEBUG: Client API version 1.6 is not current. Refetching API
DEBUG: Request GET https://example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG:    code 200   28 ms
DEBUG: Getting user info
DEBUG: Request GET https://example.com/broker/rest/user
DEBUG: SSL Verification failed -- Using self signed cert
Password: *****
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG:    code 401 4849 ms
Username or password is not correct
Password:
  • Why can one login to Openshift web console but not through rhc with the same password?

Resolution

  • Check for OPENSHIFT_CONFIG file. express.conf located at /root/.openshift/ is used as default OPENSHIFT_CONFIG.
  • The file must contain the correct default_rhlogin which is the username and libra_server which is the server name one is trying to access.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.