openshift

OpenShift Next Gen fails to mount persistent volume

别说谁变了你拦得住时间么 提交于 2020-01-04 06:23:10
问题 I'm trying to set up an app on OpenShift Online Next Gen and I need to store a small file at runtime and read it again during startup. The content of the file changes, so I cannot simply add it to my source code. My project is already up and running, all I need is persistent storage. So, I open the Web Console, click Browse->Storage and it says there are no volumes available. Same things if I go to Browse->Deployments and try to attach a volume. So, I logged in via cli and issued the

openshift: can't install lxml for python app

烈酒焚心 提交于 2020-01-04 06:17:28
问题 I am trying Openshift but I can't deploy a python app with lxml . Below are my steps, I'm only adding a lxml requirement. The error happens when I push. I am able to ssh so I don't think it's a problem of connectivity. If I don't add the lxml requirement but add some other libraries, it works. The problem is with lxml only. I think it's because it has some system dependencies (I have to run this on a ubuntu machine before: sudo apt-get install -y libxml2-dev libxslt-dev python-dev ) However I

Openshift MYSQL environment variables not set

蓝咒 提交于 2020-01-03 17:30:19
问题 all my MySQL environment variables result in an empty string such as echo getenv('OPENSHIFT_MYSQL_DB_URL'); echo getenv('OPENSHIFT_MYSQL_DB_HOST'); however the others such as echo getenv('OPENSHIFT_APP_NAME'); echo getenv('OPENSHIFT_REPO_DIR'); work perfectlly fine. Any ideas what i am doing wrong? 回答1: I had the same issue, and tried creating and recreating Applications multiple times without success The solution was to use Git to push the code to Openshift (at least one time), if you only

openshift node.js Cannot Get /

让人想犯罪 __ 提交于 2020-01-03 05:06:31
问题 I have this simple node.js static file server: var express = require('express'); var app = express(); app.use(express.cookieParser()); app.use(express.bodyParser()); app.use(express.methodOverride()); app.use(express.session({ secret: "secret" })); app.use(express.static(process.env.OPENSHIFT_REPO_DIR + '/public' )); var ipaddress = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1"; var port = process.env.OPENSHIFT_NODEJS_PORT || 8080; app.listen(port, ipaddress); When I publish to OpenShift (no

Set authentication on Apache server with openshift

与世无争的帅哥 提交于 2020-01-03 04:43:07
问题 I read this http://www.apacheweek.com/features/userauth and I try to accomplish the same in Openshift but i don't know how. Im using rhc and I tried to connect across ssh to my app, but I don't have permissions to use sudo su so I can't continue. For example when I try to create the file nano /usr/local/etc/httpd I can't because I don't have root privileges. > ls -la /usr/local/etc total 20 drwxr-xr-x. 2 root root 4096 jun 5 20:58 . drwxr-xr-x. 14 root root 4096 dic 11 2013 .. -rw-r--r--. 1

Openshift: how to install python modules from private repository?

烂漫一生 提交于 2020-01-03 04:38:08
问题 I would like to be able to install python packages to openshift, but those packages live in my private repositories, on bitbucket. How can I create a SSH key for Openshift, and how do I make Openshift use it when installing packages? (after adding the corresponding public key to bitbucket as a Deploy Key) What I've tried: I used ssh-keygen to create a key on ~/.openshift_ssh/ . It was created, but I'm not sure it is being used. I also tried adding the publick key on <jenkins_dir>/app-root

How to change or override openshift.conf in Python 3.3 cartridge

落花浮王杯 提交于 2020-01-03 04:38:06
问题 I want to deploy an open source project on OpenShift, I did not write the application. Openshift seems hard coded to look for the wsgi script here: WSGIScriptAlias / "/var/lib/openshift/5320e280e0b8cd9e9a000362/app-root/runtime/repo/wsgi/application" any attempt to change openshift.conf gets wiped out when the cartridge reloads or restarts. I need this directive to be WSGIScriptAlias / "/var/lib/openshift/5320e280e0b8cd9e9a000362/app-root/runtime/repo/myapp/wsgi.py" I prefer not to have to

OpenShift app can't connect to MySQL : JDBCConnectionException: Could not open connection

最后都变了- 提交于 2020-01-03 04:34:49
问题 I generated a .war file for my SpringMVC + Maven + Hibernate + MySQL app which was working perfectly fine on localhost and local MySQL database. The way I configure the database is through a WebAppConfig.java file which looks at an application.properties file and retrieves the appropriate information. Then I created an OpenShift account and deployed that .war file. I added MySQL and PHPMyAdmin cartridges so I can maintain a database. When I try to retrieve information or push to the database

ffmpeg Python Subprocess Error returned non-zero exit status 1

梦想与她 提交于 2020-01-02 05:21:13
问题 So I have a line here that is meant to dump frames from a movie via python and ffmpeg. subprocess.check_output([ffmpeg, "-i", self.moviefile, "-ss 00:01:00.000 -t 00:00:05 -vf scale=" + str(resolution) + ":-1 -r", str(framerate), "-qscale:v 6", self.processpath + "/" + self.filetitles + "-output%03d.jpg"]) And currently it's giving me the error: 'CalledProcessError: Command ... returned non-zero exit status 1' The command python SAYS it's running is: '['/var/lib/openshift/id/app-root/data

Cannot git-clone an OpenShift application

空扰寡人 提交于 2020-01-02 03:53:27
问题 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 the app, I got the following error: erelsgl@erelsgl-H61MLC:~/mynode$ sudo rhc create-app mynode nodejs-0.6 Application Options ------------------- Namespace: erel Cartridges: nodejs-0.6 Gear Size: default Scaling: no Creating application 'mynode' ... done Waiting for your DNS name to be available ...