openshift-client-tools

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

感情迁移 提交于 2019-12-04 08:53:59
My quota on openshift has exceeded: Filesystem blocks quota limit grace files quota limit grace /dev/mapper/EBSStore01-user_home01 1048572 0 1048576 6890 0 80000 I found a different stackoverflow questions that the disk space can be cleaned by 'rhc app-tidy' But when i run this command i get the following error: Warning: Gear xxx is using 100.0% of disk quota Failed to execute: 'control start' for /var/lib/openshift/xxx/mysql When i run the following command do see which files are using the most space du -h * | sort -rh | head -50 I get the following ouput: 605M wildfly 320M git/mythings.git

Using openshift rhc tail command

岁酱吖の 提交于 2019-12-03 06:27:38
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? 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: https://www.openshift.com/faq/how-to-troubleshoot-application-issues-using-logs you can see by running:

Unable to login to Openshift

纵然是瞬间 提交于 2019-12-03 06:27:34
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 going via terminal and running sudo rhc setup (the reason why I am using sudo is because without it, it did not go to the next step) 2) I am then prompted to do the following: This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed. Using an existing token for myemail@gmail.com to login to openshift.redhat.com Saving

set-env PATH in Openshift

会有一股神秘感。 提交于 2019-12-02 06:54:13
问题 I'm using a pre_start action hook to add some new paths to the PATH and LD_LIBRARY_PATH environment. after git push I can see that variables are updated, however when I ssh to the server, added variables are not available, after some googling I found out this is happening because these variables are exported as a sub-shell. openshift documentations suggest to add variables using set-env command, but when run it I get following error rhc set-env PATH=$OPENSHIFT_DATA_DIR/bin:$PATH" -a srv

set-env PATH in Openshift

瘦欲@ 提交于 2019-12-02 02:37:50
I'm using a pre_start action hook to add some new paths to the PATH and LD_LIBRARY_PATH environment. after git push I can see that variables are updated, however when I ssh to the server, added variables are not available, after some googling I found out this is happening because these variables are exported as a sub-shell. openshift documentations suggest to add variables using set-env command, but when run it I get following error rhc set-env PATH=$OPENSHIFT_DATA_DIR/bin:$PATH" -a srv Setting environment variable(s) ... PATH cannot be overridden Does anybody know how we can overcome this? If

Environment variable not expanding in openshift

烂漫一生 提交于 2019-12-01 06:59:38
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 way to fix this? EDIT As noted by @timo.rieber in his answer, this is not going to work because the variable is resolved locally, where it has no value. In fact: $ rhc env set VARIABLE="$OPENSHIFT_DATA_DIR/file" Setting environment variable(s) ... done $ rhc env show VARIABLE VARIABLE=/file However, if I use single quotes to avoid immediate expansion: $ rhc env set VARIABLE='$OPENSHIFT_DATA_DIR/file'

Environment variable not expanding in openshift

雨燕双飞 提交于 2019-12-01 04:56:56
问题 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 way to fix this? EDIT As noted by @timo.rieber in his answer, this is not going to work because the variable is resolved locally, where it has no value. In fact: $ rhc env set VARIABLE="$OPENSHIFT_DATA_DIR/file" Setting environment variable(s) ... done $ rhc env show VARIABLE VARIABLE=/file However,

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

老子叫甜甜 提交于 2019-12-01 04:26:28
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 through facebook. I have authenticated my self, and we could still use the rhc commands. My partner has recently authenticated himself through facebook, and shortly after that (~1 week), we got this error thrown our way. Dont know if that is entirely relevant, but it couldn't hurt to include. Connection to openshift.redhat.com failed: A secure connection could not be established to the server (SSL

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

我的未来我决定 提交于 2019-12-01 01:53:20
问题 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 through facebook. I have authenticated my self, and we could still use the rhc commands. My partner has recently authenticated himself through facebook, and shortly after that (~1 week), we got this error thrown our way. Dont know if that is entirely relevant, but it couldn't hurt to include.

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

南楼画角 提交于 2019-12-01 01:26:34
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 ssl; not ssh. So I found on the internet this following configuration line to add to ~/.openshift/express