Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

rhc setup hangs at password submission. #747

Open
zipzit opened this issue Feb 25, 2016 · 8 comments
Open

rhc setup hangs at password submission. #747

zipzit opened this issue Feb 25, 2016 · 8 comments

Comments

@zipzit
Copy link

zipzit commented Feb 25, 2016

Not sure what is going on here. I'm trying to use $ rhc setup but the thing hangs on my password.

Install seems fine (note: I'm using $ ruby -v --> ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]' and git bash command line tool in windows...$ git --version-->git version 2.7.2.windows.1` I'm using windows 10, 64 bit. Folks tell me this combo should work.

$ gem install rhc
===========================================================================
If this is your first time installing the RHC tools, please run 'rhc setup'
===========================================================================
Successfully installed rhc-1.38.4
Parsing documentation for rhc-1.38.4
Done installing documentation for rhc after 5 seconds
1 gem installed

Then its on to ...

$ rhc setup
DL is deprecated, please use Fiddle
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.

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.
Enter the server hostname: |openshift.redhat.com|
RSA 1024 bit CA certificates are loaded due to old openssl compatibility

You can add more servers later using 'rhc server'.

Login to openshift.redhat.com: (my login email address)@yahoo.com
Password: (my password... note this displays in clear text? )

At this point the program just hangs. No error message. no feedback. No nothing. Wait 20 minutes or so, hit control C and it responds back with $ (password in the clear) bash XYZ$ (i.e. the first three characters of my password): command not found.

This whole thing is baffling. I've never seen a command line editor function like this for password entry. Generally the password is pasted or typed in, but the display shows nothing. I've tried both paste and manual typing of the password, but it ALWAYS displays in clear text. Am I doing this wrong? One question. I'm not a ruby guy. Is there an IDE that I can step thru the rhc setup so I can see for myself what is going awry? Why would there ever be a program that just hangs without any feedback at all? (insert rant here...)

@zipzit
Copy link
Author

zipzit commented Feb 26, 2016

So from everything I've researched about using RHC with windows, apparently it works best when used with Ruby 1.9.3.pX (today that's 1.9.3.p551) I didn't realize there was a link on the Ruby download page to Archives>>. Remove other versions of Ruby (or just reset the windows environment variable path to point to c:/Ruby193/bin ) and RHC performs well.

So I can close this problem, but the real fix is to upgrade the RHC tool to accommodate a modern version of Ruby. In the interim, can I submit a pull request that defines this requirement for windows users on the readme.md?

@zipzit
Copy link
Author

zipzit commented Feb 26, 2016

Proposed addendum to the readme.md notes

Windows Notes:

For Windows users, the RHC tool works best when created using Ruby v1.9.3.x Recommend you download that from Ruby Archives>> download page. You will likely have to manually set your Path in the Windows System Environment variable to point to c:/Ruby193/bin, then reboot as required.

@catsuhikka
Copy link

Same problem here. I have ruby -v 2.1.8. Yesterday it was 2.0.0 and rhc worked well.

@rkazakov
Copy link

rkazakov commented Apr 4, 2016

Same problem with rhc 1.38.4:

  • Windows 8.1 + ruby 1.9.3p551 (2014-11-13) [i386-mingw32]
  • Windows 7 + ruby 1.9.3p551 (2014-11-13) [i386-mingw32]

@rkazakov
Copy link

Doesn't work on any version of Ruby with Windows 8.1. Tried it with:

  • ruby 1.9.3p327
  • ruby 2.0.0p648
  • ruby 2.2.3

@pfirpfel
Copy link

Solution: Run "rhc setup" in PowerShell instead of bash

Had the sam problems with ruby 1.9.3p551 with the bash from msys/git. Tried the same in the Power Shell, it worked like a charm. Even the password wasn't displayed as cleartext anymore!

@boly38
Copy link

boly38 commented Jun 23, 2016

(to rhc contributors) Since I updated my git bash to the latest version I noticed that git bash doesn't handle carriage return in the same way as before (for stdin). This update had break some of my shell scripts. I dont know but maybe this could be one cause of that rhc issue under git bash...

(to @pfirpfel) thanks for that workaround. On my side seems not working under Powershell too :(
as I'm behind proxy I was unable to make rhc undertake proxy settings under powershell... (connect exception after password)

I even tried under cygwin using ".bat" tips, and seems http(s)_proxy env vars are not undertaken anymore by "rhc.bat"...

Attempt with an older version of rhc (1.36.4, 1.37.1) - tip0 tip1 tip2 : same results

Finally I just succeed with rhc using "cmd.exe" or "git-cmd.exe" (instead of "git-bash.exe") with https_proxy env...

my conf: Windows 7 + ruby 1.9.3p551 (2014-11-13) [i386-mingw32] + rhc 1.38.4

@ishan123456789
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants