Questions tagged [openshift-client-tools]

The OpenShift Client tools, known as rhc, are built and packaged using Ruby. OpenShift integrates with the Git version control system to provide powerful, decentralized version control for your application source code.

Filter by
Sorted by
Tagged with
94 votes
7 answers
28k views

OpenShift rhc setup using multiple accounts

I have two accounts on Openshift platform. How can I setup my computer so that I can manage both of them with rhc? I cannot find any relevant option in the command line arguments.
lunr's user avatar
  • 5,229
13 votes
2 answers
7k views

Openshift rhc setup "The OpenShift server is not responding correctly."

I would like to setup access to my open shift application. I have rhc client installed and wanted to run rhc setup I'm asked about providing server hostname: Enter the server hostname: |openshift....
Jakub's user avatar
  • 3,129
9 votes
5 answers
14k views

Using openshift rhc tail command

How do you tail openshift log files? I issued the following command: rhc tail myapp It seems to show first error line and then stops, but doesn't exit. If I press ctrl+C it asks whether to stop ...
synergetic's user avatar
  • 7,946
9 votes
5 answers
7k views

How to make oc cluster up persistent?

I'm using "oc cluster up" to start my Openshift Origin environment. I can see, however, that once I shutdown the cluster my projects aren't persisted at restart. Is there a way to make them persistent ...
Carla's user avatar
  • 3,236
9 votes
9 answers
10k views

Unable to login to Openshift

I have been trying to connect to my application via Openshift for days and still have no luck. I am no certain of which forum to go at this point because I am not getting help anywhere. 1) I am ...
HGB's user avatar
  • 2,157
7 votes
3 answers
17k views

How to download a file/folder from remote (openshift) to local system

How to download or backup or to save a copy of a file from openshift remote folder into my local-system folder using rhc client tool? or is there any other way other than rhc client tool to make a ...
user avatar
7 votes
3 answers
9k views

Receiving "SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure" with openshift nodejs app

I have a nodejs app on openshift, and we use the rhc port-forward command to connect to our database when we develop locally. We have implemented passport to authenticate users through google and ...
user2796352's user avatar
7 votes
5 answers
8k views

Can't use rhc after installation , for openshift

I'm running into a weird issue after installing rhc and vmc. None of the below seems to be working. For Openshift: https://openshift.redhat.com/app/getting_started For Cloudfoundry: http://docs....
sbose's user avatar
  • 1,811
7 votes
7 answers
17k views

Cannot git-clone an OpenShift application

I just opened an OpenShift account, and went through this tutorial: https://www.openshift.com/blogs/any-version-of-nodejs-you-want-in-the-cloud-openshift-does-it-paas-style When I got to creating ...
Erel Segal-Halevi's user avatar
7 votes
3 answers
3k views

How to redeploy a Tomcat 7 application on Openshift

I know that a git push origin master will let Openshift redeploy the application to its new version. But my situation is that my Tomcat application depends on another sub-module maven project, and ...
Wenhao Ji's user avatar
  • 5,121
7 votes
1 answer
3k views

List pods that are servicing a service

I am trying to get the list of pods that are servicing a particular service There are 3 pods associated with my service. I tried to execute the below command oc describe svc my-svc-1 I am expecting to ...
lr-pal's user avatar
  • 359
6 votes
4 answers
13k views

OpenShift Deployment

Hi I am new to open shift . I don't know how to create repository and deploying our project to it. I have configured it through command prompt. After installing rhc successfully through command prompt ...
Ravi Dutt's user avatar
  • 135
6 votes
2 answers
12k views

Openshift - 'oc' commands fail with "Unable to connect to the server: x509: certificate signed by unknown authority"

After installing openshift locally, I can start minishift. on https://192.168.x.y:8443 When starting an 'oc' command, like 'oc project', then I get this error: Unable to connect to the server: x509:...
tm1701's user avatar
  • 7,287
6 votes
4 answers
6k views

How to ssh into openshift app using the 'rhc' command on windows?

I am trying to ssh (from windows) into my Openshift app using the 'rhc' command rhc app-ssh <app name> I have followed the Openshift instruction here: https://www.openshift.com/forums/...
fat fantasma's user avatar
  • 7,563
5 votes
4 answers
3k views

`rhc setup` error: `A secure connection could not be established to the server`

I cannot get past the following error: $ rhc setup OpenShift Client Tools (RHC) Setup Wizard This wizard will help you upload your SSH keys, set your application namespace, and check that other ...
Murray Rowan's user avatar
  • 3,647
5 votes
1 answer
659 views

RHC setup fail in OpenShift - UTF8 - SSH

I am using OpenShift for my studies and in my case the RHC setup does not work. When I try to execute it, it fails while generating an authorization token saying: Generating an authorization token ...
LP154's user avatar
  • 1,487
5 votes
2 answers
8k views

How to get rollback to use the older image instead of staying on the newest (externally built)?

We are moving our build process outside our OpenShift 3.11 cluster and have noticed that when wanting to rollback to an older deployment the docker image used is not the old one but the newest one ...
Thorbjørn Ravn Andersen's user avatar
5 votes
2 answers
6k views

Openshift CLI - update Application with template and oc new-app

I am currently building and deploying an Application with a template using oc new-app -f ./openshift/template.yaml I am using a template and not separate Deployment-, Build-, etc. configs because I ...
relief.melone's user avatar
5 votes
3 answers
6k views

How to cleanup disk space on openshift when 'rhc tidy' has not enough disk space?

My quota on openshift has exceeded: Filesystem blocks quota limit grace files quota limit grace /dev/mapper/EBSStore01-user_home01 1048572 0 1048576 6890 ...
cremersstijn's user avatar
  • 2,395
4 votes
2 answers
4k views

How to connect to Openshift Mongodb from local client (ports are being forwarded)?

I created a scaled nodejs application and added mongodb, everything is running fine (Connecting to mongodb from within nodejs using the environment variables). Now I want to connect to the db from my ...
Alter's user avatar
  • 41
4 votes
2 answers
783 views

rhc setup undefined method `[]' for nil:NilClass

I am trying to setup the OpenShift Client tool rhc on my Mac but I keep getting the following error: An unexpected error occured: undefined method `[]' for nil:NilClass I have tried updating Ruby to ...
Nikkunaku's user avatar
4 votes
3 answers
3k views

Environment variable not expanding in openshift

It seems that if I use a command like: rhc env set VARIABLE="$OPENSHIFT_DATA_DIR/file" the referenced directory variable is never expanded and as a result I can not use it for my app. Is there any ...
giallu's user avatar
  • 152
4 votes
3 answers
3k views

How can I restart my openshift postgres cartridge?

My app has fallen over as it can't connect to the postgres DB and when I try to connect to the DB via ssh and psql I get the following message: psql: could not connect to server: Connection refused ...
pmckeown's user avatar
  • 3,809
4 votes
1 answer
5k views

OpenShift Code Ready Containers You need to enable virtualization in BIOS

Running windows 10 (version 1809) ThinkPad P52, snd Installed Ubuntu subsystem. Installed and tested three versions of crc (1.3, 1.4, 1.5) and when I run "crc setup" I receive the failure that BIOS ...
Michael Mirt's user avatar
4 votes
3 answers
678 views

Openshift - API to get ARTIFACT_URL parameter of a pod or the version of its deployed app

What I want to do is to make a web app that lists in one single view the version of every application deployed in our Openshift (a fast view of versions). At this moment, the only way I have seen to ...
Drumnbass's user avatar
  • 906
4 votes
2 answers
3k views

Openshift oc rsh Increase Timeout

If I oc rsh <pod>, the shell will timeout in a matter of seconds unless the shell is actively printing output. How can I increase or eliminate the timeout of oc rsh ?
Matthew Moisen's user avatar
4 votes
0 answers
480 views

Openshift Origin rhc setup on localhost fails

I am trying to setup a new openshift origin environment locally on a virtualbox deployment. The tutorial that I followed for this operation is found here and it worked fine. I am now trying to ...
nerdyoutdoorsman's user avatar
3 votes
1 answer
5k views

issue with rhc setup and openshift

This is my first time trying out openshift or similar services and I have been running into problems with rhc setup. I have installed Ruby, Git and rhc according to the documentation here, but when I ...
Richie378's user avatar
  • 115
3 votes
1 answer
3k views

Openshift redhat for Windows: rhc command error

I installed ruby and git for Windows as described in the OpenShift Windows client tools installation guide. When I run an rhc command, I get this error: C:/Ruby23/lib/ruby/gems/2.3.0/gems/commander-...
macha devendher's user avatar
3 votes
2 answers
1k views

OpenShift 4.2 Rest API documentation

Is there any link to find OpenShift 4.2 Rest API documentation? I could see latest that we have is for 3.11 https://docs.openshift.com/container-platform/3.11/rest_api/index.html.
Amit's user avatar
  • 69
3 votes
3 answers
7k views

How to open a Web Console for open shift?

guys I am using OpenShift to conatinerize and run application on kubernetes, I have started the open shift cluster using oc cluster up now how do I open in the web console. For the mini shift I have ...
Sri's user avatar
  • 73
3 votes
1 answer
2k views

Create Openshift app using branch from existing repository (with `rhc create`)

The OpenShift web console allows to create a new app using a branch/tag from an existing remote repository which I do not know how to use through rhc create. The relevant command line option --from-...
timo.rieber's user avatar
  • 3,822
3 votes
2 answers
3k views

How do I add an alias for a naked domain with OpenShift?

How can I make my naked domain to point to my Openshift application? Can it be done in the Openshift online dashboard or it can only be configured through the rhc utility? However I am not sure ...
quarks's user avatar
  • 34.4k
3 votes
2 answers
9k views

OpenShift :: How do we enable traffic into pod on a custom port (non-web / non-http)

How do we enable traffic into pod on a custom port (non-web / non-http). For example consider the port 12121. I tried exposing the port through route. But could not reach this pod from another pod ...
snmaddula's user avatar
  • 1,121
3 votes
1 answer
401 views

How to setup RHC for openshift? I encountered: `can't satisfy 'highline (~> 1.6.11)', already activated 'highline-1.7.1' (Gem::LoadError)

I need to use openshift to deploy a web application and modify files for database connection and I install the RHC. But it cannot be setup. I installed rbenv, but don't really know how to use. My mac ...
michaelsgx's user avatar
3 votes
3 answers
3k views

How can I deploy my nodejs app into openshift without using github?

I have built a nodejs app and now I want to deploy it into openshift. I don't want to use github because I should create private repository which I cannot. Also I cannot use 'rhc' since I am new user. ...
Joseph's user avatar
  • 1,796
3 votes
2 answers
2k views

Adding docker container to running OpenShift pod

I can add a container to a pod by editing the pod template, but I'm looking for something simpler. Is there any way to add a container to a deployed OpenShift pod without editing the pod template? CLI ...
Citronen's user avatar
  • 4,210
3 votes
1 answer
4k views

How to get consumed storage percentage for any persistent volume in openshift?

I am looking for a simple method to get the storage used and storage allocated for a persistent volume dynamically claimed by PVC for any pod. Is there any rest API or oc command for the same? I am ...
Himanshu Jindal's user avatar
3 votes
1 answer
975 views

How to find out to which 'user' I should add 'scc'?

I'm trying to run elasticsearch container in my openshift project. I got errors: Privileged containers are not allowed capabilities.add: Invalid value: "IPC_LOCK": capability may not be added ...
9ilsdx 9rvj 0lo's user avatar
3 votes
2 answers
477 views

How to get an earlier commit to display on openshift?

So I have my local repository, and I have an earlier commit which I want to revert my production site to. I can check it out and make it a branch and push it to openshift. The branch then shows in ...
Joff's user avatar
  • 11.8k
3 votes
1 answer
1k views

What's the purpose of setting NODE_ENV on Openshift

After installing ghost on Openshift why is it required to type these commands ? rhc set-env NODE_ENV=production --app $appname rhc app restart $appname
user310291's user avatar
  • 37.6k
3 votes
2 answers
1k views

Openshift - rhc tail command

When I try directly run rhc tail from app dir it allways tell: C:\Documents and Settings\user\git\service>rhc tail You must specify an application with -a, or run this command from within Git ...
andy007's user avatar
  • 917
3 votes
1 answer
3k views

Openshift- git clone gives Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I have created a new account with openshift online and have created my first app. I have rhc installed on my local machine. I setup ssh keys for the first time using rhc setup -l loginname i used git ...
user3585660's user avatar
3 votes
1 answer
729 views

OpenShift: Unable to log in using rhc on Windows 7

I am using Git Bash on Windows 7 to log into OpenShift using rhc. When I enter "rhc setup" in the console I get the following message: OpenShift Client Tools (RHC) Setup Wizard This wizard ...
Shan's user avatar
  • 31
3 votes
3 answers
1k views

Client Tools installation issues (OpenShift Online)

I was trying to install the openshift client tools on my windows system . I have already installed ruby and git as the prerequisites for it. I also installed rhc package on my system using gem install ...
Gaurav Parashar's user avatar
3 votes
2 answers
1k views

Unable to create OpenShift application using --from-code option

I am trying to create an OpenShift application using the --from-code option to grab the application code from GitHub. I've created two different OpenShift QuickStarts -- with one, the --from-code ...
Schof's user avatar
  • 6,409
3 votes
1 answer
3k views

openshift 3.11 oc command : error: Error loading config file ".kube/config": yaml: line 11: could not find expected ':'

In a okd cluster installed using https://github.com/openshift/origin/tree/release-3.11 After the okd installation the oc command was working fine but after somedays, I'm facing a weird issue with oc ...
Rakesh Kotian's user avatar
3 votes
2 answers
4k views

How to delete files/directories using oc cli in Openshift

I've used oc cp to copy files and directories onto a persistent volume attached to a pod in my openshift project. Is there any way to delete?
bzo's user avatar
  • 1,574
3 votes
0 answers
417 views

OKD Build process cannot resolve host

I cannot build pods in OKD as Github cannot be resolved and the build fails. The error: Cloning "https://github.com/MeMyselfI/okd-hello-world " ... error: fatal: unable to access 'https://github.com/...
TechFanDan's user avatar
  • 3,481
2 votes
2 answers
12k views

Unable to login to openshift with CLI

I'm trying to login to starter openshift server. Then getting error: C:\Users\Admin>oc login https://console-openshift-console.apps.us-west-1.online-starter.openshift.com error: invalid character '...
Daiven's user avatar
  • 23

1
2 3 4 5
7