user5721897
user5721897

Reputation:

Openshift's rhc setup is waiting for a while

It's waiting for a while with doing nothing. Is it normal? When I go to the link on the last debug message with Chrome, a page is opened with login dialog. But my commandline is waiting without doing anything.

(I've installed with this tutorial)

Here is the output:

arjempagan@arjempagan-o-e-m:~$ rhc setup --debug
DEBUG: Using config file /home/arjempagan/.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 server_stage

If you have your own OpenShift server, you can specify it now. Just hit
enter to use the server for OpenShift Online: openshift.redhat.com.


You can add more servers later using 'rhc server'.
DEBUG: Running login_stage
DEBUG: Connecting to https://openshift.redhat.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG:    code 200  919 ms
DEBUG: Server supports API versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG:    Using API version 1.7
DEBUG: Client API version 1.7 is not current. Refetching API
DEBUG: Request GET https://openshift.redhat.com/broker/rest/api
DEBUG:    code 200  207 ms
DEBUG: Getting user info
DEBUG: Request GET https://openshift.redhat.com/broker/rest/user

An interesting output:

$ rhc --version
rhc 0.0.0

Upvotes: 5

Views: 630

Answers (2)

Angel M.
Angel M.

Reputation: 2732

I had the same issue on Ubuntu 16.04, and I couldn't make it work with the @Interesting Knox's solution

Here are the steps taken, that worked for me and I hope will help to someone.

// removing debian package
sudo apt-get remove rhc

// installing rhc with gems
sudo gem install rhc

// version installed is rhc-1.38.4
// navigate to /var/lib/gems/2.3.0/gems/rhc-1.38.4

cd /var/lib/gems/2.3.0/gems/rhc-1.38.4

// run setup
rhc setup

Upvotes: 1

user5721897
user5721897

Reputation:

I've found some reported bugs about it.

You can see here and here:

A quote for solution:

With Ubuntu 15.10 and rhc 1.35.4-3, rhc --version gives 0.0.0 and the setup hangs after GET (...) /broker/rest/user. Uninstalling the package (sudo apt-get remove rhc), installing the gem (sudo gem install rhc), and clearing bash's paths cache (hash -d rhc) did work.

Upvotes: 3

Related Questions