Git Product home page Git Product logo

rhc's Introduction

OpenShift Command Line Tools (RHC) Build Status

The OpenShift command line tools allow you to manage your OpenShift applications from the command line. The Getting Started guide has additional info on installing the tool on each supported operating system.

Please stop by #openshift on irc.freenode.net if you have any questions or comments. For more information about OpenShift, visit https://openshift.redhat.com or the OpenShift support page https://openshift.redhat.com/support.

RHC from rubygems.org is built on Ruby 1.8.7. RHC does have conditional dependencies during build time, so it can be built on multiple versions of Ruby. If you are running into any dependency issues when using RHC, please try to build RHC locally using gem build rhc.gemspec to use the correct dependencies.

Using RHC to create an application

DEPENDENCIES:

  • git
  • openssh-clients
  • ruby (1.8.7 or later)
  • rubygems

Step 1: Run the setup command to configure your system:

$ rhc setup

Follow the instructions in setup to set your SSH keys and create a domain. The name you choose for your domain will form part of your application's public URL.

Step 2: Create an OpenShift application:

$ rhc app create -a appname -r /path/to/new/git/repo -t <framework Ex: php-5.3>

Once that's complete, follow the directions printed at the end of running rhc app create.

Making changes to your application

Once your site is created, updating it is as simple as making changes to your git repo. Commit them, then push. For example:

$ edit index.php
$ git commit -a -m "what I did"
$ git push

Then just reload your web page to see the changes.

OS X Notes:

git: OS X 10.6 comes w/ ssh and ruby, but not with git, unless you have Xcode 4.0.x installed.

If you do not have Xcode, you can obtain a pre-packaged version of git from:

http://code.google.com/p/git-osx-installer/

Installing git from MacPorts/HomeBrew/Fink/etc requires Xcode.

Now obtain the client code, either via 'git clone' as above or via the rhc gem.

Developing / Contributing

We expect code contributions to follow these standards:

  1. Ensure code matches the GitHub Ruby styleguide, except where the file establishes a different standard.
  2. We use RSpec for functional testing and Cucumber for our high level integration tests. Specs are in 'spec/' and can be run with bundle exec rake spec. Features are in 'features/' and can be run with bundle exec rake features (although these tests runs against the gem installed locally so you will need to gem install first). See README.md in the features dir for more info.
  3. We maintain 100% line coverage of all newly added code via spec testing. The build will fail if new code is added and it does not have full line coverage. Some old code is currently excluded until it can be refactored. Run bundle exec rake spec on Ruby 1.9+ to see your code coverage level.
  4. When writing a new Command please follow ADDING_COMMANDS.md

Once you've made your changes:

  1. Fork the code
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch
  5. That's it!

If you use vim, we've included a .vimrc in the root of this project. In order to use it, install https://github.com/MarcWeber/vim-addon-local-vimrc

rhc's People

Contributors

banzaiman avatar bdecoste avatar brenton avatar calfonso avatar caruccio avatar coreydaley avatar danmcp avatar detiber avatar dinhxuanvu avatar dobbymoodge avatar fabianofranz avatar filirom1 avatar jcantrill avatar jimjag avatar jwforres avatar jwhonce avatar kraman avatar liggitt avatar matthicksj avatar maxamillion avatar miciah avatar nhr avatar rmillner avatar sallyom avatar smarterclayton avatar tdawson avatar thefotios avatar thrasher-redhat avatar tiwillia avatar wshearn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rhc's Issues

Error Gem Install RHC

Following this Steps to install the "Client Tools", when execute this command:

gem install rhc

Give me error like this:

ERROR: While executing gem ... (NoMethodError)
undefined method `include?' for nil:NilClass

I'm running on Linux Mint 13

gem install rhc failed. Gem::DependencyError

Hi
I'm using rhc command line in my deployment automation

Today I've found that there is an issue with dependecies in gem

I'm trying to execute:
$gem install rhc
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rhc requires highline (> 1.6.11); commander requires highline (> 1.7.1)

Please advise me who can help me with it.

Anton

RHC sometimes requires sudo to install

We should implement a wgettable/curlable script that would handle some of the mundane detection logic around download and install of rhc to make it easier for everyone. Being able to detect common Linux/Mac environments and do the right thing would help a lot for users having trouble.

Some rhc command has same measning options

Hi, this is a gentle proposal.

rhc command has some same meaning options.

(eg.1)
rhc app create
rhc app-create
rhc create-app

(eg.2)
rhc env set
rhc env-set
rhc set-env

It makes hard to grep/search in the document or command history. And maybe many users will check the difference between set-env and env-set in the future.

So I think it should be consistent in any one option.
I asked about this on openshift-dev, please refer the thread[1].

[1] http://lists.openshift.redhat.com/openshift-archives/dev/2014-June/msg00107.html

httpclient 2.4.0 incompatibility

httpclient 2.4.0 was released over the weekend, and it is not compatible with rhc 1.24.4.

REST client has a hard time logging in:

2.1.2 :001 > require 'rhc'
2.1.2 :002 > api=::RHC::Rest::Client.new(:user => ***, :password => ***, :server => 'openshift.redhat.com')
 => #<RHC::Rest::Client:0x007f8b856499f8 @end_point="https://openshift.redhat.com/broker/rest/api", @debug=false, @preferred_api_versions=[1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7], @auth=nil, @options={:user=>***, :password=>***}>
2.1.2 :003 > api.user
RHC::Rest::ConnectionException: An unexpected error occured: undefined method `[]' for nil:NilClass
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/httpclient.rb:138:in `challenge'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient/auth.rb:137:in `block (2 levels) in filter_response'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient/auth.rb:134:in `each'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient/auth.rb:134:in `block in filter_response'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient/auth.rb:133:in `each'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient/auth.rb:133:in `filter_response'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:1104:in `block in do_get_block'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:1103:in `collect'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:1103:in `do_get_block'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:891:in `block in do_request'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:985:in `protect_keep_alive_disconnected'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:890:in `do_request'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:963:in `follow_redirect'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/httpclient-2.4.0/lib/httpclient.rb:776:in `request'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/client.rb:388:in `block (2 levels) in request'
        from /Users/asari/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/client.rb:388:in `block in request'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/client.rb:375:in `block in attempt'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/client.rb:374:in `each'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/client.rb:374:in `attempt'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/client.rb:381:in `request'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/base.rb:28:in `rest_method'
        from /Users/asari/.rvm/gems/ruby-2.1.2/gems/rhc-1.24.4/lib/rhc/rest/client.rb:64:in `user'
        from (irb):3
        from /Users/asari/.rvm/rubies/ruby-2.1.2/bin/irb:11:in `<main>'

The problem does not occur in 2.3.4.1, so pinning to < 2.4 should be a work around for the time being.

[Error] No System SSH Available

No system SSH available. Please use the --ssh option to specify the path to your SSH executable, or install SSH. We recommend this free application: Git for Windows - a basic git command line and GUI client http://msysgit.github.io/.

I never had to specify a SSH path before and even trying to specify a path doesn't work.

I have Ruby 2.1.8 and Git 2.8.0

rhc ssh use to work before my recent reinstallation of Windows 10 now it won't work at all

Something got broken somewhere

Make pushing a local repository easier

I was playing with creating a django project template for openshift. Since --from-code doesn't accept a local git repo, I am following this workflow (as documented in the README):

# Create the django project
django-admin.py startproject -n application --template https://github.com/ekohl/django-project-openshift/archive/master.zip myproject

# Do the initial commit
cd myproject
mv openshift .openshift # because startproject ignores hidden files
git init
git add .
git commit -m "Initial commit"

# Create the application
rhc app create myproject python-2.7 --from-code empty --no-git

# Set the git remote & push
git remote add openshift `rhc show-app myproject | awk '/Git URL/ { print $3 }'`
git push --set-upstream openshift HEAD

Now that works, but if you use rhc git-clone it will also set the application values in .git/config for rhc app *. It would be great if --from-code /path/to/myproject works and sets the needed values. Then --no-git should not be needed either.

This should also be helpful on existing projects that move to openshift, but are not publicly accessible (as most companies prefer).

rhc show warning everytime run a command.

Everytime I run a rhc command, it show this warning:

/usr/lib/ruby/gems/2.3.0/gems/commander-4.2.1/lib/commander/user_interaction.rb:328: warning: constant ::TimeoutError is deprecated

I'm using Arch Linux and install it with gem install rhc. My gem list is updated.

rhc port-forward not work

I have started WildFly 8 server( http://www.zinrad.com/ ):
rs-emetemunoy.rhcloud.com
server already started and still work... but I can't port forward on my local machine

ihor@ihor-M50Vc:$ rhc port-forward rs
Checking available ports ... none
There are no available ports to forward for this application. Your application may be stopped or idled.
ihor@ihor-M50Vc:$ rhc port-forward -a rs
Checking available ports ... none
There are no available ports to forward for this application. Your application may be stopped or idled.

in tail I have:

2015-06-04 07:33:47,439 INFO [javax.enterprise.resource.webcontainer.jsf.config](MSC service thread 1-8) Initializing Mojarra 2.2.8-jbossorg-1 20140822-1131 for context ''
2015-06-04 07:33:48,991 WARN org.hornetq.core.server HQ222082: error on connection failure check: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method) [rt.jar:1.8.0_45]
at java.lang.Thread.start(Thread.java:714) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1357) [rt.jar:1.8.0_45]
at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor.execute(OrderedExecutorFactory.java:133) [hornetq-core-client-2.4.5.Final.jar:]
at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$FailureCheckAndFlushThread.run(RemotingServiceImpl.java:739) [hornetq-server-2.4.5.Final.jar:]
2015-06-04 07:33:49,758 ERROR stderr Exception in thread "hornetq-expiry-reaper-thread" java.lang.OutOfMemoryError: unable to create new native thread
2015-06-04 07:33:49,759 ERROR stderr at java.lang.Thread.start0(Native Method)
2015-06-04 07:33:49,759 ERROR stderr at java.lang.Thread.start(Thread.java:714)
2015-06-04 07:33:49,760 ERROR stderr at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
2015-06-04 07:33:49,760 ERROR stderr at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1357)
2015-06-04 07:33:49,760 ERROR stderr at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor.execute(OrderedExecutorFactory.java:133)
2015-06-04 07:33:49,761 ERROR stderr at org.hornetq.core.server.impl.QueueImpl.expireReferences(QueueImpl.java:1540)
2015-06-04 07:33:49,761 ERROR stderr at org.hornetq.core.postoffice.impl.PostOfficeImpl$Reaper.run(PostOfficeImpl.java:1414)
2015-06-04 07:33:49,761 ERROR stderr at java.lang.Thread.run(Thread.java:745)
2015-06-04 07:34:02,363 INFO [org.wildfly.extension.undertow](MSC service thread 1-8) JBAS017534: Registered web context: /
2015-06-04 07:34:02,645 INFO [org.jboss.as.server](ServerService Thread Pool -- 32) JBAS018559: Deployed "ROOT.war" (runtime-name : "ROOT.war")
2015-06-04 07:34:02,843 INFO [org.jboss.as](Controller Boot Thread) JBAS015961: Http management interface listening on http://127.3.241.1:9990/management
2015-06-04 07:34:02,843 INFO [org.jboss.as](Controller Boot Thread) JBAS015951: Admin console listening on http://127.3.241.1:9990
2015-06-04 07:34:02,844 INFO [org.jboss.as](Controller Boot Thread) JBAS015874: WildFly 8.2.0.Final "Tweek" started in 90366ms - Started 648 of 777 services (178 services are lazy, passive or on-demand)

version of rhc:

Successfully installed rhc-1.35.3
Installing ri documentation for rhc-1.35.3
Installing darkfish documentation for rhc-1.35.3
Gems updated: rhc

getting the current app name

Because I pushed my pre-existing git repo, I often get the You must specify an application with -a, or run this command from within Git directory cloned from OpenShift. message, which got me thinking that it's possible to guess the app name in a number of ways. Here are a few possibilities:

  1. from the dir name (whether current or nearest) -- the dir containing the app is usually named, I suppose, either exactly the same or else appname.tld / appname.domain.tld
  2. an "openshift" remote of the nearest git repo
  3. a matching project name coming from a file such as package.json

If there is nothing that can be matched by convention, then one could set the app name via configuration, a .rhc-rc or whatever you prefer. A configuration file would of-course take precedence over guessing, and an explicit app name via the cli would probably take precedence over the nearest config.

Any of this would make rhc so much more joy to use.

Password prompt shows password in plaintext

When i run rhc setup, it prompts me for my openshift username and password.. but when I type the password, it is displayed in the prompt

Can you hide the password in the password prompt?

rhc setup ssh key selection

Running the rhc setup command, as instructed by the openshift website the option to add an SSH key automatically is presented to the user:

Your public SSH key must be uploaded to the OpenShift server to access code.  Upload now? (yes|no) yes

  default (type: ssh-rsa)
  -----------------------
    Fingerprint: XX:XX:XX...
    Available: true/false

While this is obviously convenient and helpful, I wonder if it might be possible to offer the user a way to specify which SSH key will be used/uploaded? The default now is, well, I'm not sure what the default is. Did the script upload all of my ssh keys to the server? I'm not aware of a way to check that at the moment.

"There is no disk in the drive" error on windows

Hello, I followed the guide from Step 5 on how to setup rhc on windows (already had ruby + git installed). I seem to have finally succeeded in doing the setup although there was a minor though strange problem on the last step, as shown in Screen 1: I get a popup with the following text:
"Ruby.exe - No disk"
"There is no disk in the drive. Please insert disk into drive \Device\Harddisks3\DR3"

Any button (Cancel/Try again/Continue) will just open a new prompt with the same text. However, finally I clicked on Cancel furiously (like 20 times?) and suddenly it went away (see Screen 2).

This is probably related to some File.exists call in ruby for windows? but this is just a guess.

OS: Windows 7 Pro x64 (v6.1 b7601)
Ruby: 1.9.3p194

Let me know if more info is needed.

Screen 1:
image

Screen 2:
image

Problem while installing rhc on windows 10 pro x64 machine. Here is log.

C:\Users\ะะดะผะธะฝ>rhc setup
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/commander-4.2.1/lib/commander/user_interaction.rb:328: warning: constant ::TimeoutError is deprecated
C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- dl/import (LoadError) from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in <top (required)>' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in<top (required)>'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent.rb:22:in <top (required)>' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/key_manager.rb:4:in<top (required)>'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/session.rb:4:in <top (required)>' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:11:in<top (required)>'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/ssh_helpers.rb:18:in <top (required)>' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:77:inclass:Wizard'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:7:in <module:RHC>' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:6:in<top (required)>'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/base.rb:4:in <top (required)>' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/account.rb:2:inmodule:Commands'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/account.rb:1:in <top (required)>' from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from C:/Ruby23-x64/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:189:inblock in load'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:in each' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:inload'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/cli.rb:36:in start' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/bin/rhc:20:in<top (required)>'
from C:/Ruby23-x64/bin/rhc:23:in load' from C:/Ruby23-x64/bin/rhc:23:in

'

Cannot add a custom cartridge

rhc version:

rhc --version
rhc 0.0.0

I guess this is the packaged version in debian

expected result:

add a custom cartridge from the cartridge manifests url

actual result:

adding a custom cartridge is not possible due to an error in a regular expression

steps to reproduce:

add a custom cartridge such as http://rqbuilder-edoput.rhcloud.com/ to a existing application.

The error is

edoput@bender:~/repo/rqbuilder (vendor_problem)$rhc cartridge add http://builder-edoput.rhcloud.com/manifest/f0a527d4ecfbaaa0ca007e4c167c82694709b465 -a python
The cartridge
'http://rqbuilder-edoput.rhcloud.com/manifest/f0a527d4ecfbaaa0ca007e4c167c82694709b465'
will be downloaded and installed
Adding
http://rqbuilder-edoput.rhcloud.com/manifest/f0a527d4ecfbaaa0ca007e4c167c82694709b465
to application 'python' ...
The provided downloadable cartridge
'http://rqbuilder-edoput.rhcloud.com/manifest/f0a527d4ecfbaaa0ca007e4c167c82694709b465'
cannot be loaded: Cartridge-Vendor 'EdoPut' does not match pattern
/\A[a-z0-9](?:[a-z0-9_]*[a-z0-9]|)\z/.

the field vendor-name cannot be unset but keeps popping this stange error and its regex pattern

Error recognizing git on windows

I have installed rhc in windows 8.1, when I try to execute "rhc git-clone application" it's say that git client is not installed, but I have git installed on my machine has you can see in this screenshot
erro_rhc_git_client

RFE: ability to easily download logs from child gears

Right now there is not an easy way to download logs from child gears without long scripting lines... See

http://stackoverflow.com/questions/23571308/how-to-download-logs-from-child-gears/23572936#23572936

It would be nice to be able to do this as a single variation on the "rhc scp" command. One option would be to implement the --gears option like it is for the "rhc ssh ''" command. The result would be multiple files (taking care identical filenames are not overriden) with or without parent directories, or a single zip file that contains the relevant files. An easy command to get them all to a single place would really help with log post-processing and analysis.

RHC git-clone doesn't work on latest 2.9.0.windows.1 git version (Windows 10)

Hello, I'm using the latest version of Git for Windows 2.9.0.windows.1

The program is installed in directory: C:\Users%USERNAME%\AppData\Local\Programs\Git

It seems that RHC is unable to find it, though Git's bin folder is added to %PATH% variable and can be accessed from any cmd client.

Message from RHC:

You do not have git installed. In order to fully interact with OpenShift you
will need to install and configure a git client. We recommend this free
application: Git for Windows - a basic git command line and GUI client
http://msysgit.github.io/.

It looks like the problem is in https://github.com/openshift/rhc/blob/master/lib/rhc/git_helpers.rb#L24-L33

Deprecation Warning: get_value()

During the initial setup, running under ruby 1.9.3p194 on Mac OS X Lion, I saw the following warning several times:

ParseConfig Deprecation Warning: get_value() is deprecated. Use config['param'] or config['group']['param'] instead.

This is with the rhc 0.93.19 gem.

Missing child process when using ssh's ControlMaster/ControlPersist

Hi, i'm using ths following config:

$ cat ~/.ssh/config
Host *.getup.io    # my openshift domain
    ControlMaster auto
    ControlPath ~/.ssh/.connection-%r-%h
    ControlPersist yes

Control* options are meant to reuse an already openned ssh connection, to avoid unnecessary tcp/ssh handshake in order to improve push/pull commands.

From ssh_config man page:

When used in conjunction with ControlMaster, specifies that the master
connection should remain open in the background (waiting for future client
connections) after the initial client connection has been closed.

However, when I create an app, after the clone process is finished, the /bin/sh process is not being wait4()ed after exit()ing, which hangs rhc. The cloned repository is ok and the app is properly created.

I'm running rhc 1.14.13 on Ubuntu 12.04.

`rhc setup` fail on osx

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- rest_client (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/rhc-1.2.7/lib/rhc.rb:5
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/rhc-1.2.7/lib/rhc-common.rb:11
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/rhc-1.2.7/bin/rhc:5
    from /usr/bin/rhc:19:in `load'
    from /usr/bin/rhc:19

rhc uses PATCH method not supported by current OpenShift Origin VM

I just started using the OpenShift Origin VM available on the "Download an image" link at http://openshift.github.io/. I get an error when I use "rhc set-env" to update the environment variables of an app:

# rhc -d set-env BAR=baz -a foo
DEBUG: Using config file /home/brad/.openshift/express.conf
DEBUG: Git config 'git config --get rhc.app-id' returned ''
DEBUG: Git config 'git config --get rhc.app-name' returned ''
DEBUG: Git config 'git config --get rhc.domain-name' returned ''
DEBUG: Authenticating with RHC::Auth::Token
DEBUG: Connecting to https://broker-XXXXXX.openshift.local/broker/rest/api
DEBUG: Getting all domains
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
DEBUG: Using token authentication
DEBUG: Created new httpclient
DEBUG: Request GET https://broker-XXXXXX.openshift.local/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG:    code 200  120 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: Using token authentication
DEBUG: Request GET https://broker-XXXXXX.openshift.local/broker/rest/api
DEBUG:    code 200   12 ms
DEBUG: Using token authentication
DEBUG: Request GET https://broker-XXXXXX.openshift.local/broker/rest/domains
DEBUG:    code 200   20 ms
DEBUG: Using token authentication
DEBUG: Request GET https://broker-XXXXXX.openshift.local/broker/rest/domains/local/applications/foo
DEBUG:    code 200   28 ms
Setting environment variable(s) ... DEBUG: Adding environment variable(s) [#<RHC::Rest::EnvironmentVariable:0x007XXXXXXXXf38 @attributes={"name"=>"BAR", "value"=>"baz", "messages"=>[]}, @client=nil>] for foo
DEBUG: Using token authentication
DEBUG: Request PATCH https://broker-XXXXXX.openshift.local/broker/rest/application/53XXXXXXXXXXXXXXXXXXXX20/environment-variables
DEBUG:    code 500    4 ms
DEBUG: Response did not include a message from server: invalid character at "<!DOCTYPE "

When I change "lib/rhc/rest/client.rb" to output the body of the failing request, I see:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 root@localhost to inform them of the time this error occurred,
  and the actions you performed just before this error.</p>
  <p>More information about this error may be available
  in the server error log.</p>
  <hr>
  <address>Apache/2.4.6 (Fedora) Server at broker-36c842.openshift.local Port 80</address>
  </body></html>

The "PATCH" method is apparently the problem. If I change "lib/rhc/rest/client.rb" to convert all "PATCH" requests into "POST" requests, it appears to work properly. I get this error using the current version of the gem pushed to rubygems.org (1.20.3), as well as a fresh checkout of the master branch.

LoadError when running rhc setup command on Windows

Currently receiving the following load error message when running the rhc setup command:

C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/commander-4.2.1/lib/commander/user_interaction.rb:328: warning: constant ::TimeoutError is deprecated
C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- dl/import (LoadError)
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent.rb:22:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/key_manager.rb:4:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/session.rb:4:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:11:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/ssh_helpers.rb:18:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:77:in `<class:Wizard>'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:7:in `<module:RHC>'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:6:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/base.rb:4:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/account.rb:2:in `<module:Commands>'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands/account.rb:1:in `<top (required)>'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:189:in `block in load'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:in `each'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:in `load'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/lib/rhc/cli.rb:36:in `start'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rhc-1.38.4/bin/rhc:20:in `<top (required)>'
        from C:/Ruby23-x64/bin/rhc:23:in `load'
        from C:/Ruby23-x64/bin/rhc:23:in `<main>'

Problem with remove server and SSH session

I can't connect with rhc ssh because a server is "bugging" my connection.

This server broker.getupcloud.com is overwriting openshift.redhat.com, but I removed broker.getupcloud.com server of the server-list.

I tried remove the path ~/.openshift and re-run rhc setup, but was not effective.

I uninstalled GIT and all versions of RubyGems (for windows) and re-install the apps again. But also was not effective. The broker.getupcloud.com is blocking me to try connect with openshift server.

Without erros, nothing. I just can't connect in ssh because of this problem.

See the image.

untitled

autocompletion for zsh

Hey, I'm currently using autocompletion in zsh using bashcompinit, but it errors out with _rhc:14: unrecognized modifier 'C' when I put in more than 1 command.

Are there any plans to improve completion in zsh?

Thanks!

Handle ENV['NO_PROXY']

If HTTP_PROXY is set and OpenShift Origin in installed on private servers, NO_PROXY should be checked.

If LIBRA_SERVER is present in NO_PROXY, http_proxy should not be set in rhc.

block in activate_dependencies error

I got this error when trying to setup rhc:

MacBook-Pro:~ Hatem$ rhc setup
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1206:in block in activate_dependencies': can't satisfy 'highline (~> 1.6.11)', already activated 'highline-1.7.1' (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:ineach'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:in activate_dependencies' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1180:inactivate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:in gem' from /usr/bin/rhc:22:in

'

What is the problem ?

port-forward: Expose ports as variables.

Hello,

This is a feature request. I don't know any ruby else would have created a pull request. :/

It would be nice for the rhc-port forward to 'export' a variable for every port using a standard format (i.e: OPENSHIFT_APPNAME_CARTRDIGE_SERVICENAME) this will make it a lot easier to setup Development/Testing Env. using remote services, alternatively, this information can be saved in a text file or exposed through a key-value store of some sort.

Hope it makes sense.

Thanks.

ERROR: Could not find a valid gem 'rhc'

C:\>gem install rhc
ERROR:  Could not find a valid gem 'rhc' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect retur
ned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (
https://api.rubygems.org/latest_specs.4.8.gz)

When bundled, the rhc gem breaks ActiveModel validations in Rails 4

I have manually installed all the dependencies, one by one, to verify. Once rhc itself is installed all validations fail with: "You need to supply at least one validation".

Remove rhc and they work again.

NOTE:

validates_presence_of style validations still work, only validates :something, presence: true style fails.

Password prompt should timeout

When asked for password, rhc should timeout and fail with a specific exit code if no password is provided in a reasonable period (60 sec?).

This allows for detecting expired auth tokens when using rhc snapshot from scripts like backup routines.

Even better if a new flag like --fail-if-expired-token was added to snapshot command.

Error while installing rhc tools on Windows with ruby 2.1 5p723

I have installed rhc tools on my windows 10 with admin privileges but when I tried to install rhc tools with in git bash I have seen error with acrchive-tar-minitar

Is there any thing wrong overwrite the executable ? in future or to my system files ?

C:\WINDOWS\system32>gem install rhc
archive-tar-minitar's executable "minitar" conflicts with minitar
Overwrite the executable? [yN]  y
Successfully installed archive-tar-minitar-0.5.2
Fetching: highline-1.6.21.gem (100%)
Successfully installed highline-1.6.21
Fetching: commander-4.2.1.gem (100%)
Successfully installed commander-4.2.1
Fetching: httpclient-2.7.1.gem (100%)
Successfully installed httpclient-2.7.1
Fetching: open4-1.3.4.gem (100%)
Successfully installed open4-1.3.4
Fetching: rhc-1.38.4.gem (100%)

rhc setup hangs at password submission.

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...)

rhc app snapshot needs support for scaled apps

Hi,

Using rhc app snapshot save with a scaled app creates a snapshot of the HAProxy gear, not the framework gear. The latter would be more useful, in particular in conjunction with web frameworks that might produce CRUD artefacts on the framework gear (e.g. update Joomla in place, install Wordpress plugins). These artefacts are not part of the current snapshot. Thus the current snapshots can be considered incomplete or even flawed as they don't deliver what users might expect.

Cheers

rhc ssh looks in wrong place for ssh executable

From @otbster at openshift-cs/devcenter#376

On my windows git installation (version 2.6.2), "ssh.exe" is located at "C:\Program Files\Git\usr\bin". However the rhc ssh command only checks "C:\Program Files\Git\ssh.exe" and "C:\Program Files\Git\bin\ssh.exe", so does not find it.

Adding "#{base}\Git\usr\bin\ssh.exe" to the array in 441-452 of ssh_helpers.rb fixes the problem, on rhc version 1.37.1. (this is where rhc ssh creates the paths to check for ssh)

rhc setup error: `block in activate_dependencies': can't satisfy 'highline (~> 1.6.11)', already activated 'highline-1.7.1' (Gem::LoadError)

The error message is as follows:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1206:in block in activate_dependencies': can't satisfy 'highline (~> 1.6.11)', already activated 'highline-1.7.1' (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:ineach'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1198:in activate_dependencies' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/specification.rb:1180:inactivate'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:48:in gem' from /usr/bin/rhc:22:in

'

I installed rbenv from git and it seems that rhc setup use the system ruby. How to fix this error? I tried the method: gem install rubygems-update; rbenv rehash; update_rubygems; but it does not work for me. For rbenv rehash, the terminal shows "no such command"; for update_rubygems, it also shows "no such command". I don't know how to install shim or what shim is. As a new user of OSX, can anyone help me or give me some instructions?

JRuby compatability issue

When using 'rhc' to clone the repo using the JRuby VM, calling 'git' using fork fails.

ose]$ rhc git-clone firstphp
Password: ****
NotImplementedError: fork is not available on this platform
fork at org/jruby/RubyKernel.java:1766
do_popen at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/open4-1.3.0/lib/open4.rb:58
popen4 at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/open4-1.3.0/lib/open4.rb:30
spawn at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/open4-1.3.0/lib/open4.rb:331
timeout at org/jruby/ext/timeout/Timeout.java:105
spawn at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/open4-1.3.0/lib/open4.rb:330
call at org/jruby/RubyProc.java:249
chdir at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/open4-1.3.0/lib/open4.rb:369
spawn at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/open4-1.3.0/lib/open4.rb:329
run_with_tee at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/helpers.rb:493
git_clone_repo at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/git_helpers.rb:65
git_clone_application at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/git_helpers.rb:23
run at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/commands/git_clone.rb:22
send at org/jruby/RubyBasicObject.java:1683
send at org/jruby/RubyKernel.java:2107
execute at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/commands.rb:201
to_commander at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/commands.rb:192
call at org/jruby/RubyProc.java:249
call at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/commander-4.1.3/lib/commander/command.rb:180
run at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/commander-4.1.3/lib/commander/command.rb:155
run_active_command at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/commander-4.1.3/lib/commander/runner.rb:402
run! at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/command_runner.rb:61
run! at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/commander-4.1.3/lib/commander/delegates.rb:11
start at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/lib/rhc/cli.rb:42
(root) at /home/ctusa/dev/jruby-1.7.3/lib/ruby/gems/shared/gems/rhc-1.4.8/bin/rhc:18
load at org/jruby/RubyKernel.java:1046
(root) at /home/ctusa/dev/jruby-1.7.3/bin/rhc:23

ssh authentication

Wouldn't it be cool to use ssh public key authentication instead of the password?

allow using net-ssh 3.0.x

We want to use net-ssh 3.0 in debian but rhc still specifies net-ssh <= 2.9.2. Can you update the dependecy?

error while installing on windows 7

I am facing problem while installing rhc on windows 7 machine. Here is log.

C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- dl/impo rt (LoadError) from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in <top (required )>' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in<top (req
uired)>'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent.rb:22:in `<top (required)

'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/key_manager.rb:4:in <top (requ ired)>' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/session.rb:4:in<top (required
)>'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:11:in <top (required)>' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/ssh_helpers.rb:18:in<top (required)>'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:77:in <class:Wizard>' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:7:inmodule:RHC'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:6:in <top (required)>' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/base.rb:4:in<top (required)>'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/account.rb:2:in <module:Commands>' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/account.rb:1:in<top (required)>'
from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:189:in block in load' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:188:ineach'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:188:in load' from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/cli.rb:36:instart'
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/bin/rhc:20:in <top (required)>' from C:/Ruby22/bin/rhc:23:inload'
from C:/Ruby22/bin/rhc:23:in `

'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.