openshift-client-tools

restart python app on openshift doesn't reload environment variables

牧云@^-^@ 提交于 2019-12-24 05:10:10
问题 I'm trying reload my application on Openshift and having some problems. Don't matter if run rhc app restart or rhc app reload to restart/reload the application, my environment variables aren't reloaded. Then, to solve the problem, I'm forced to stop and start the application. PS: Cartridge: python-2.7 Framework: Django 回答1: You also have to do: $ rhc app stop -a appname $ rhc app start -a appname instead of restart or reload. See https://bugzilla.redhat.com/show_bug.cgi?id=1104955#c15 回答2:

rhc port forward - open shift issue

陌路散爱 提交于 2019-12-23 01:34:30
问题 I am trying to port forward a particular application that I am developing for. In open shift I have the following applications available; If i choose hotornot then i get the following when running this command in the terminal rhc port-forward -a jbossas if i run the same command but replace hotornot with the other application name (jbossas) - i get the following Does anyone know why i can't port forward the second application but i can the first? Thanks 回答1: turns out i had to first login

Can't use rhc after installation , for openshift

我与影子孤独终老i 提交于 2019-12-22 04:40:56
问题 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.cloudfoundry.com/tools/vmc/installing-vmc.html I'm using Ubuntu 10.04 root@bose-Vostro-1540:/home/bose# gem install rhc Successfully installed parseconfig-0.5.2 Successfully installed rhc-0.88.9 2 gems installed Installing ri documentation for parseconfig-0.5.2... Installing ri documentation for rhc-0

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

帅比萌擦擦* 提交于 2019-12-21 05:41:57
问题 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 which the steps to do it. 回答1: It's a two-step process: First, make sure that you have a DNS provider that offers support for naked CNAMES , then and add one or more CNAME entries that point to the URL that OpenShift provided for your application (APPNAME-NAMESPACE.rhcloud.com or similar). Next, use

Using openshift rhc tail command

為{幸葍}努か 提交于 2019-12-20 20:01:36
问题 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 batch or not. How can I display last few errors and may be browse page by page? Is there page down/ page up shortcuts? 回答1: The 'rhc tail' command reads the last few lines of each of your log files and continues to feed subsequent log messages to your console. To view the entire log file, please review

Openshift - rhc setup - in 'require': cannot load such file

帅比萌擦擦* 提交于 2019-12-13 02:37:31
问题 I am trying to install the Openshift client tools using the procedure available here. At the step requiring to perform rhc set-up , I get the following error message: I am on a Windows 10 64 bit laptop. Anyone knows how to solve this? 回答1: You are using ruby2.2.0. I had similar problems and I downgraded ruby to 1.9.3 as from the tutorial https://developers.openshift.com/en/getting-started-windows.html#client-tools and it worked at least on my windows 7 64 machine. 回答2: Somebody on SO even

Install RHC Client Tools (Openshift) on Windows 10

点点圈 提交于 2019-12-13 02:02:17
问题 Maybe I am missing something, but when trying to install RHC client tools under Windows 10 OS (brandly installed), I got a lot of errors (I never had on Windows 7 or Mac). To anyone who is facing the same issues, it only worked with the following configuration: Git: 1.9.5.msysgit.0 Ruby: 1.9.3p551 (2014-11-13) i386-mingw32 Both installers are for 32bit processor (installed on a Surface 3 64-bit with Windows 10). 64bit versions didn't work. No need to update net-ssh -v2.9.3.beta1package (as

OpenShift app - cannot see logs using rhc as admin collaborator

老子叫甜甜 提交于 2019-12-12 20:36:10
问题 I am a collaborator on an OpenShift Online app with administrator privileges, and when I do rhc apps I can see the application, but when I do rhc tail <appname> I get Application '<appname>' not found . Is there something I am missing? Using rhc on Ubuntu Server 12.04. 回答1: "rhc apps" shows me the app that I am authorized to administer as a collaborator, however "rhc app stop" says - "app not found" rhc -a app stop gave me the usage help - rhc app-stop <app> [--namespace NAME] which hinted

Can't start/stop openshift application

懵懂的女人 提交于 2019-12-12 17:27:41
问题 I have an application on openshift which has suddenly stopped running. The following cartridges are used : Mysql Cron Nodejs The only information about the crash of the app is the following from nodejs.log : DEBUG: Sending SIGTERM to child... Now, when I try to rhc start / stop / restart the app, I got the following messages : Failed to execute: 'control stop' for /var/lib/openshift/<username>/nodejs Failed to execute: 'control stop' for /var/lib/openshift/<username>/cron Failed to execute:

How to specify a different location for ssh keys loading during rhc setup?

£可爱£侵袭症+ 提交于 2019-12-12 07:24:13
问题 I am using rhc cli tool for OpenShift projects. I have encountered a problem with default rhc ssh key. On any ssh related action (setup, app-create, etc..) rhc creates ~/.ssh/id_rsa key if it does not exist. I do not like that behaviour, and I would like it to use something like ~/.ssh/OpenShift-SSH-Keys/my_id_rsa . Because during rhc setup, it did not ask me from which location I wanted to load the keys. Thus I also looked in ~/.openshift/express.conf and I only saw the configurations for