FAQ Database Discussion Community


Daily cron at specific time on Openshift

openshift
I'm trying to run this script at 08:28am everyday, but it didn't work.How do I configure a daily job with a specific time? #!/bin/bash time=$(date +%H%M) if [ $time -eq "0825" ]; then php /var/lib/openshift/55375281e0b8cdb702000011/app-root/runtime/repo/php/test.php fi ...

Compilation error - package com.google.gson not found in Redhat “Openshift” application

java,eclipse,git,gson,openshift
I am devleoping application in openshift using Eclipse Luna which make use of gson jars. I added gson jar files in the Web-inf/lib folder and it is not showing any error in eclipse. But when I Push and Commit the application to the GIT repository, it is showing error: I...

Flask Project root directory on openshift

python,flask,openshift
I'm getting started with flask and I'm deploying my app to openshift. My apps code: def get_users(): f = open('./users.txt') .... when I run: $ rhc tail flaskpq I see: [Sun Jun 21 09:05:20 2015] [error] [client 127.2.78.1] f = open('./user.txt') [Sun Jun 21 09:05:20 2015] [error] [client 127.2.78.1] IOError:...

How to deploy tornado on openshift

openshift,tornado
When I start tornado application through ssh I get this error: Traceback (most recent call last): File "/var/lib/openshift/54f9750d4382eca672000091/app-root/runtime/repo//app/ws_server.py", line 111, in <module> app.listen(8000) File "/var/lib/openshift/54f9750d4382eca672000091/python/virtenv/venv/lib64/python3.3/site-packages/tornado/web.py", line 1691, in listen server.listen(port, address) File "/var/lib/openshift/54f9750d4382eca672000091/python/virtenv/venv/lib64/python3.3/site-packages/tornado/tcpserver.py", line 125,...

Where is the OpenShift Web SSL Configuration Area?

ruby-on-rails,ssl,openshift,redhat
I upgraded to RedHat's OpenShift Online Bronze level to host a Ruby on Rails application. From this blog post which is a little over a year old I see that: The web console now allows you to configure your application’s hostname, and set up secure access to custom domains through...

How to redirect www to no-www on OpenShift properly?

.htaccess,redirect,openshift,wsgi,no-www
I have an OpenShift Python app running on 730ne.cz and www.730ne.cz and I want the www version to redirect to the non-www. I've added wsgi/.htaccess with the following content: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] But that ended in infinite redirect loop too http://www.730ne.cz/application/application/application/application......

How do I compile and install the source code on OpenShift?

compilation,installation,make,openshift,openshift-cartridge
I'm trying to install 'whois' on OpenShift online, I can't install with yum due to the permissions \> yum install whois error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed I don't know any alternative ways to install a package, so considering to compile source code. make...

Openshift RoR. Cant connect to db through mysql.sock

mysql,ruby-on-rails,ruby,openshift
I have Openshift RoR app. When I trying to run some rake task which uses DB, it gives me error: rake aborted! Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) When I pushed my app 1st time there was no socket value in database.yml, I added it later...

Openshift Scaling Tomcat7 with Stored Files and Images

tomcat7,openshift,openshift-client-tools,openshift-enterprise,openshift-cartridge
If I have a Gear which contains Files and Images uploaded by Users, will the directory be Shared across all Gears? or will it be synced after every User upload? If not, is there any workaround? Can I manually sync all Gears after every user upload/delete/change in the upload directory?...

What gets executed when running a python app on OpenShift?

python,flask,initialization,openshift,server
I'm confused as to what file gets initially run when running a Flask application on OpenShift. There is a wsgi.py file that creates a wsgiref.simple_server but the comment above it says it is only for testing. Can anyone explain how the application get executed? I'm having a hard time wrapping...

OpenShift Hub Creation vs Create New Application

openshift,redhat
I just created an OpenShift free account. When I logged in, I see there's a link called "Create new application". Also, there's an OpenShift Hub where you deploy. What's the difference between "Create new application" vs. creating it via OpenShift Hub? When do you use one way vs. the other?...

Efficient use of gears - OpenShift

openshift,openshift-gears
I have to deploy a Java EE app and am using Openshift for it. Since i am new to it so i wanted to ask - How I can efficiently use the OpenShift gears. - Whether the Load balancer be allotted a single gear alone or how? - Is scaling...

Openshift Port forwarding

ruby,ssh,gem,openshift
There already a lot of topics about it. But I'm stuck I configured ssh with succes! Now I like to configure the portforwarding for connection with TOAD. I used this tut: https://blog.openshift.com/getting-started-with-port-forwarding-on-openshift/ Now when I try rhc port-forward -a php I get this error Could not parse PKey: no start...

Accessing port 7000 from openshift server

openshift,firewall
I have set up a openshift server (free) with php cartridge. During the operation, I want to call a service hosted with port 7000. Ex. www.mydomain.com:7000/service When I try this with curl curl -v www.mydomain.com:7000/service I am getting "Failed to connect (IP)....Permission denied" message. Even I can't telnet as "telnet...

Remote debugging tomcat with OpenShift

eclipse,tomcat,openshift,remote-debugging
I am using openshift for my tomcat webapp. I am able to run the app but unable to debug it. As openshift starts tomcat in debug mode, I was expecting I'll be able to debug. Host: $OPENSHIFT_JBOSSEWS_IP Value of this is 127.5.20.129 for me which I got from command: rhc...

No such file or directory - Error Message When Uploading on Open Shift

php,git,laravel,openshift
I have created a project using Laravel, Its working fine on Localhost . I am using following URL in Localhost http://localhost/prg/public/, and its working fine. It opens my index page. I have uploaded the same working project on Open Shift. I rename the repo to old-repo and upload my project...

How do I figure out what dependency is missing in a Node.js project

node.js,openshift
I am trying to deploy my Node.js project to OpenShift and I get 503 when trying to view the site. I am aware from research that this indicates a problem with my webserver project. By checking the logs, I have determined that this appears to be an issue of a...

Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: “OPENSHIFT_MYSQL_DB_PORT”'

java,mysql,jersey,openshift
I am trying to deploy my Jersey project on openshift. I have implemented this apple class to test the error in the another class since I guess the problem is with the establishing the database connection. in the Tails log I found this error: Connecting to database… com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load...

openshift node.js save upload across gears

openshift
[openshift newb here] Using Openshift free tier though moving to silver soon if that helps. node / express 3.2.5 / multer to upload images as form-multipart. As Openshift free tier gives 3 gears using one gear for the 'public' web app, that is, the display surfers will see; and another...

RHC client tool for windows error while setup

ruby,openshift,openshift-client-tools
I followed all the steps as mentioned on the openshift page for guide on installing the client tool. after doing gem install rhc, when i give the command rhc setup following error is shown. C:\Users\me>rhc setup --debug C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file -- dl/import (LoadError) from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require' from...

Access-Control-Allow-Origin on OpenShift using Node.js, express, and socket.io

node.js,express,socket.io,openshift,access-control
As the title suggests, I'm having trouble remotely accessing my node.js instance hosted on OpenShift. The error I keep getting in my browser's console looks like this: XMLHttpRequest cannot load http://app-domain.rhcloud.com:8000/socket.io/?EIO=3&transport=polling&t=1430117973290-2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8383' is therefore not allowed access. The response had...

OpenShift Metrics Cartridge

openshift,metrics
OpenShift Metrics Cartridge - is it still available to install? When I try install it to working application it says that There are no cartridges that match 'metrics-0.1'. If so, what tool allow to measure application performance?...

Openshift context path

java,tomcat,openshift,war
I have deployed the war into tomcat 7 Openshift . Everything is fine and its running .Myappp Here is my mapped web application. I am storing images in the dir webapps->docs->images But When I upload the image (with UI) it doesnt appear on site and I cant even find where...

Openshift app with flask, sqlalchemy and sqlite - problems with database reverting

python-3.x,sqlite3,flask,openshift,flask-sqlalchemy
I have a problem pretty much exactly like this: How to preserve a SQLite database from being reverted after deploying to OpenShift? I don't understand his answer fully and clearly not enough to apply it to my own app and since I can't comment his answer (not enough rep) I...

Setting CORS for a Tomcat7 / Geoserer deployed on OpenShift

tomcat7,cors,openshift
I followed Steven's excellent tutorial to setup Geoserver on a Tomcat7 gear on Openshift. This works relatively well. The main issue being that the gear doesn't restart. I build the gear three times now. The first two times the gear did not come alive again. I waited a few good...

openshift with nodejs isn't respecting the path to my server file in package.json

node.js,openshift
I have been working on a Node.js server and am now uploading it to OpenShift. I am not using the default ./server.js file, but rather, my insertion point is ./bin/www. I have set this as the insertion file in package.json like so: { "name": "NekoList", "version": "0.0.0", "private": true, "scripts":...

Openshift ssh incorrect ruby version on bundle install?

ruby-on-rails,ruby,openshift
I have a Ruby 2.0 rails 4 app on openshift. When I ssh into my application and run bundle install I get a message saying: 'Your Ruby version is 1.8.7, but your Gemfile specified 2.0.0'. When running ruby -v, I get : "ruby 2.0.0p353..." Running gem environment it also says...

Travis + Openshift Not deploying to openshift

node.js,continuous-integration,openshift,travis-ci
We are having issues with being able to deploy to openshift. The deployment process runs but then doesn't actually deploy any new code to our gears. Here is my travis file: language: node_js node_js: - '0.10' before_script: - npm install -g bower grunt-cli - gem install sass - bower install...

Where is the MySQL configuration file (my.cnf) located in a scalable application on OpenShift Online?

mysql,openshift
I have a scalable app on Openshift Online and I need to make few edits to my.cnf. Where is this file is located? If in child gear, how do I connect to it?

How to import the *.rhcloud.com into Chrome(ium)?

google-chrome,ssl,openshift
I would like to import the *.rhcloud.com certificate into my Chromium installation in order to prevent Chromium from informing me about the insecure connection each time I am accessing my Openshift installation through https. I exported the certificate using Firefox. Then I tried to import the certificate in Chromium. It...

How to use PostgreSQL on a Pyramid App in OpenShift?

python,postgresql,openshift,pyramid
How can I use a PostgreSQL database on a Pyramid application? I'm using OpenShift as my "PaaS". I added the PostgreSQL cartridge and it gave me a sql connection url that looked like this: postgresql://$OPENSHIFT_POSTGRESQL_DB_HOST:$OPENSHIFT_POSTGRESQL_DB_PORT But I don't know how and where to use it....

Openshift django should i add setup.py install generated files to gitignore?

python,django,openshift
Hi i'm trying to deploy a simple django app with openshift, i followed this tutorial: https://github.com/rancavil/django-openshift-quickstart/wiki/Tutorial-How-create-an-application-with-Django-1.6-on-Openshift except for the first part where i used openshift's django cartridge instead. after running the setup.py install it created 3 directories: dist, build and AppName.egg-info so now the relevant part of my directory stucture...

SCP not working for OpenShift

node.js,openshift,scp
I am connected to OpenShift via rhc ssh <myApp>. <myApp> in this case is fela. [fela-basickarl.rhcloud.com 553a...]\> scp nodejs.log 553a...@fela-basickarl.rhcloud.com:~/app-root/logs/ The authenticity of host 'fela-basickarl.rhcloud.com (10.167....)' can't be established. RSA key fingerprint is cf:ee:...:88:a7. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to...

Openshift Discourse liquidautumn not working

github,openshift
I had tried deploying discourse on openshift through serveral ways but all failed and i got this thread trustable Installing Docker with sudo But this one too is giving me this error while creating app I had also tried deploying discourse using liquidautumn through commandline, i had changed the vestalversions...

Openshift rails application no such file error on rake:db:load

ruby-on-rails,ruby,openshift
I created RoR application in Openshift. Cloned it to local machine, there all was fine. But when I tried to move things I've done to server, including DataBase, on loading my DB scheme (rake db:scheme:load) from app-root/repo, I get an error: rake aborted! Cannot load `Rails.application.database_configuration`: Could not load database...

configure DocumentRoot for cakephp 3 in openshift

openshift,cakephp-3.0
good I am new user in OpenShift, today I read the documentation, but it was not clear yet, how could I configure DocumentRoot. in my case I use cakephp 3 and for take my application into production I need to configure the DocumentRoot, this should be webroot for production, I...

Say 'Hello World!' in Openshift with Node.js

node.js,openshift
I created an app in Openshift and created a local git repo on my computer. I want to change the default welcome page here: http://nodejs-j4nos.rhcloud.com:3000 and just tell Hello world as this tutorial say. So I removed from local repo the index.html, and modified server.js, pasted in this code below....

Openshift redirect to https using flask-base example

python,.htaccess,flask,openshift
I'm trying to run my flask based app on free gear on Openshift only on https. Following this - I have added the .htaccess file to the root of my repo but it seems to be ignored, as it is not redirecting. The article talks about a wsgi directory but...

Openshift trustwave intermediate ssl cert issue

ssl,https,ssl-certificate,openshift
So I have got an application on openshift and I am trying to enable SSL on there. I already have an SSL cert from my previous host which is with Trustwave and seemed to work fine. So I have setup an alias for my-domain.com and have put a CNAME redirect...

How can i store image in my project hosted in openshift?

jsp,openshift,jfreechart
i am trying to create chart and save chart in image folder. it works fine locally but when i hosted it in openshift online it doesn't work. String root = getServletContext().getRealPath("/"); File savedFile = new File(root+"\\images\\piechart.jpg"); ChartUtilities.saveChartAsJPEG(savedFile, piechart, 700, 400); root gives null so saving is not working ... please...

Where is jenkins config.xml? And why is this error appearing?

jenkins,openshift,config,startup
These two parts are together because I think they're related to each other. I'm running Jenkins' latest LTS war file (v1.596.2) directly from the command line. I'm using an Openshift DIY cartridge to do this. I have set my "JENKINS_HOME" environment variable to "$OPENSHIFT_DATA_DIR/jenkins". export JENKINS_HOME=$OPENSHIFT_DATA_DIR/jenkins Part 1: where is...

OpenShift + Diet.js

javascript,node.js,openshift
Trying to get a simple Diet.js server running on OpenShift (free plan) but the server never starts (runs fine locally). The domain itself (http://twilio-levelout.rhcloud.com/) returns a 503 and the logs throw: events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EACCES Here's the code: var server = require('diet'), app...

OpenShift repo not included in path

openshift,django-1.7,paas
I started a Django 1.7 OpenShift instance. When I have python print all of the paths from sys.path I do not see OPENSHIFT_REPO_DIR (/var/lib/openshift/xxxxx/app-root/runtime/repo). When I use https://github.com/jfmatth/openshift-django17 to create a project I do see OPENSHIFT_REPO_DIR in the path. Looking through the example app above I don't see anywhere that...

java play 2.3 on openshift never updates

java,deployment,playframework,openshift
i have created a java play 2.3 (activator) application and pushed my code to an openshift server by following those steps : https://github.com/JamesSullivan/play2-openshift-quickstart however my application has never updated and i tried to restart it many times and re push my code again and again with no use as if...

How to deploy a Java web application with Travis CI to an OpenShift WildFly server?

continuous-integration,openshift,travis-ci,java-ee-7,wildfly-8
I want to deploy my web app from GitHub with Travis CI to my WildFly application server on OpenShift. I followed the How to Build and Deploy OpenShift Java Projects using Travis CI tutorial but my index.html page from my Java EE 7 web app does not show up. Instead...

Servlet dispatcher threw exception , Spring 4.1.5 on Tomcat 7 (JBoss EWS 2.0) (Openshift)

java,spring,tomcat,servlets,openshift
I'm developping a small spring web-mvc application for practice. I've deployed it on Tomcat 7 (at Openshift.com) . I use a MySql 5.5 database too and work in IntelliJ. The problem begins when the DAO class should be loaded. Servlet.init() for servlet dispatcher throws a following exeption: javax.servlet.ServletException: Servlet.init() for...

importing python modules in openshift

python,flask,openshift
I have flask application running on openshift and I am trying to import requests module in program. I have added dependencies in requirements.txt as stated here. My requirements.txt contains following entries. Flask==0.10.1 Requests=2.6.0 I got 500 : Internal Server Error and upon rhc tail i am getting ImportError: No module...

node multer AWS single file multiple upload

node.js,amazon-web-services,openshift,multer
Issue trying to upload images Openshift node/express/multer to AWS. The console tells me that there are multiple uploads of the same image and the resulting file on AWS is truncated and broken. I took all the client side ajax out and am just using a standard form upload. Express 3.2.5....

What is the limits of OpenShift database usage?

openshift
I recently start trying OpenShot, coming from Heroku where they give a very limited free database storage, I'm wondering what is the limit of OpenShot's database storage, does it just has to fit within the gear's quota?

what is the environment variable for 'app alias' on OpenShift?

environment-variables,openshift,openshift-client-tools
I have checked all the variables listed on the official link, For a deployed app on openshift, How do i get the alias of the app? I've added subdomain.example.com as the alias, but the variable OPENSHIFT_APP_DNS is just showing the *.rhcloud.com address but not the alias added, how do I...

js-bson error - Mosca (MQTT Broker) on OpenShift

node.js,openshift,bson
I've been doing some work with NodeJS on OpenShift and am facing a problem when I'm trying to run a Mosca server in a Node instance. The error I'm getting is as follows: [Error: /var/lib/openshift/5547bd284382ec394a000088/app-root/runtime/repo/node_modules/mosca/node_modules/mongodb/node_modules/mongodb-core/node_modules/bson/node_modules/bson-ext/build/Release/bson.node: invalid ELF header] js-bson: Failed to load c++ bson extension, using pure JS version I...

For running Java applications we used Tomcat7 and JBoss in Openshift, Is WebSockets enabled for this ? please help me

openshift,openshift-client-tools,openshift-origin
var serviceLocation = "ws://kghgk.rhcloud.com:8000/chat?name=frank"; I am getting the response in Browser while hitting that link Request URL:ws://kghgk.rhcloud.com:8000/chat?name=hlhj Request Method:GET Status Code:101 Switching Protocols Request Headersview source Connection:Upgrade Host:kghjk.rhcloud.com:8000 Origin:http://kghjk.rhcloud.com Sec-WebSocket-Key:EX0+ZalV4q8q+DihpEQSdA== Sec-WebSocket-Version:13 Upgrade:websocket (Key3):00:00:00:00:00:00:00:00 Query String Parametersview URL encoded name:hlhj Response Headersview source...

Deployment of a Pyramid App to Openshift with openshift-quickstarter

python,openshift,pyramid
I'm having some troubles deploying my Pyramid app to Openshift. This is my aplication In the "Openshift Pyramid deployment" page they recommend using "openshift-quickstarter", but I don't know where to clone it! My app is ready and running, and I just have this issue. I've cloned it in /g8test and...

OpenShift not working with certain Nodejs dependencies (Koa)

node.js,openshift,koa
I've checked out How to setup KoaJS in Openshift and it's still not working. Here is a part of my package.json file: "engines": { "node": ">= 0.12.0", "npm": ">= 1.0.0" }, "dependencies": { "co-busboy": "^1.3.0", "forever": "^0.14.1", "fs": "0.0.2", "koa": "^0.18.1", "koa-logger": "^1.2.2", "koa-router": "^4.2.0", "koa-static": "^1.4.9", "path": "^0.11.14" },...

Openshift how to create a table on ruby on rails application? via console

ruby,ruby-on-rails-3,ruby-on-rails-4,openshift
Openshift how to create a table on ruby on rails application? via console I'have a gem installed called 'rhc', but how can I create a table for a ruby on rails application via rhc command? https://www.openshift.com...

Spring Data MongoDB Credentials

java,spring,mongodb,openshift,spring-data
With Spring Data, I am trying to get a Mongo object that has username and password credentials. I need to set this programmatically, rather than with XML All of the examples that I have found use the deprecated system. I am looking for the current way to do this. Here...

Pushing changes to OpenShift

git,openshift
I'm following the tutorial below to push a change to my OpenShift application. $ git clone <git_url> <directory_to_create> # Within your project directory # Commit your changes and push to OpenShift $ git commit -a -m 'Some commit message' $ git push Instead of pushing changes to OpenShift, Git pushes...

OpenShift - Can I Add Multiple Cartridges for Multi-language Apps

python,ruby-on-rails,openshift
I have an app that's built on rails but also uses Python for certain tasks. I can't find any documentation or figure out how to add multiple cartridges (Rails and Python) to a single app. Is this possible on OpenShift without creating my own cart? I'd think there are downloadable...

Error running quickstart-camelservlet in OpenShift V3 with Fabric8 and Docker

docker,openshift,fabric8
I'm following the Getting started guide to run Fabric8 on OpenShift V3, and I'm getting this error when running mvn fabric8:run in this example: http://fabric8.io/v2/example.html. The project builds correctly and gets pushed into Docker as well, but I'm stuck in this last step. It seems that there is something missing...

Stuck OpenShift Application

tomcat7,openshift
My application hang up. Because of that I wanted to delete the application but it's not possible. OpenShift just shows me: "Unable to perform action on app object. Another operation is already running" when I want to delete the application from the web interface. Unable to perform action on app...

openshift python pip install cffi fails

python-2.7,pip,openshift,python-cffi
When the application is deployed after git push to openshift repo I get an error when requirements.txt is start to installing. The thing is, in my local machine there is not issue when I execute pip install cffi remote: Requirement already satisfied (use --upgrade to upgrade): aniso8601==0.92 in /var/lib/openshift/myuser/app-root/runtime/dependencies/python/virtenv/lib/python2.7/site-packages (from...

WildFly could not fork new process for connection

java,postgresql,persistence,jboss7.x,openshift
I'm running simple OpenShift instance with WildFly app and PostgreSQL and constantly getting Caused by: org.postgresql.util.PSQLException: Connection rejected: could not fork new process for connection: Resource temporarily unavailable which I'm observing in my server.log How can I fix this? app trying to connect Postgre and get out of threads my...

Action hook for OpenShift Node.js app does not execute, despite setting execute permission

node.js,git,shell,openshift
I created a new Node.js app on OpenShift. I added a post_deploy shell script action hook and ran git update-index --chmod=+x post_deploy.sh to add execute permissions to the script. Then I committed and pushed the change to my OpenShift repository. During deployment, the action hook is not run. I ssh'ed...

How do I update Django on Openshift?

django,python-2.7,deployment,openshift,updates
I'm learning to deploy Django on Openshift. Right now I have a python-2.7 cartridge up and running with Django 1.6 The git repo cloned in the cartridge is, git://github.com/rancavil/django-openshift-quickstart.git (Github) How can I update the Django version of a running webapp? I've looked at this question that just explain about...

Error when starting Yesod app on openshift - command line args?

openshift,yesod
I am getting the following error when (re)starting my Yesod app on openshift: server: InvalidYaml (Just (YamlException "Yaml file not found: xxx.xxx.xxx.xxx")) Where xxx.xxx.xxx.xxx is an IP address. I did find a link to a Heroku+Yesod issue saying something about "removing an argument" but it didn't say from where, and...

Unable to run keystone node.js application on Openshift

node.js,openshift,keystone.js
Edit 2 - Final Notes Solution below worked for me, however you still need to manually specify the mongo connection credentials as shown above for the application to run correctly, otherwise you will get a mongo auth error. Edit 1 - Added full keystone.js keystone.js // Simulate config options from...

Cannot read property 'ObjectID' of undefined

node.js,mongodb,openshift,mongodb-rest
I am forking / try to understand mongodb-rest project. When I am running only the rest.js script I get this error: TypeError: Cannot read property 'ObjectID' of undefined at app.post.connection.connect.res.status.json.message (/var/lib/openshift/5556b4c4fcf9336abf0000de/app-root/runtime/repo/server.js:99:32) at this line, when I try to handle PUT message: var spec = {'_id': new BSON.ObjectID(req.params.id)}; I have the...

Openshift Installing an environment such as Gurobi

openshift,linear-programming,gurobi
I am currently working on a project which involves linear programming to optimise a solution to a problem (The linear programming model involves binary variables). As such i have been refered to used Gurobi to tackle this issue. Gurobi works fine on my computer, however i require to deploy the...

Determining whether an existing OpenShift app is scalable

openshift
When creating an OpenShift application, one can specify whether or not it is scalable. Application scalability immutable. How do I determine whether or not an existing application is scalable? I cannot see any information concerning this in the application details online or in the documentation, and I cannot find an...

OpenShift: Tomcat 7: Cron suddenly stopped working three days ago [duplicate]

cron,openshift
This question is an exact duplicate of: OPENSHIFT Cron job just stop working 2 answers I had one script running under the .openshift/cron/daily like a clockwork, but suddenly, three days ago, it stopped working, without my intervention. I created a simple script with a "echo Hello" under the .openshift/cron/minutely,...

How to create folder and upload file inside openshift?

upload,openshift,server,openshift-client-tools
I'm using rhc client tools for openshift. and i want to upload it PhantomJS. So, I've Executable file and now i want to upload into my openshift server, So please let me know. How can i create folder? and how to upload it? I googled but fully confused with ${OPENSHIFT_DATA_DIR}....

Openshift MySQL database contents resets at build

mysql,openshift,persistence.xml
I am using Openshift to build an EJB database using MySQL. My application is working as expected. However, when I rebuild it, the database contents is removed and the database starts from empty. Here is my persistence unit from my persistence.xml <persistence-unit name="production"> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> <jta-data-source>java:jboss/datasources/MySQLDS</jta-data-source> <class>net.applicationName.model.Customer</class> <properties> <property...

Can't get socket.io and nodejs running with OpenShift

javascript,node.js,websocket,socket.io,openshift
I can't get socket.io running on OpenShift. I googled for some hours now but nothing really helped me. Locally it works fine (with different ports and localhost as host of course). This is my server.js file: var port = process.env.OPENSHIFT_NODEJS_PORT || 8080; var ipadr = process.env.OPENSHIFT_NODEJS_IP || "127.0.0.1"; var http...

RHC setup gives mkdir error

ruby,openshift
I am trying to add an openshift origin server for the first time. using : rhc setup --server my.server.adr but I get this error when it comes to Generate the token. Generating an authorization token for this client ... C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir': No such file or directory @dir_s_mkdr - U: (Errno::ENOENT)...

Why does OpenShift Tomcat 7 (JBoss EWS 2.0) does not support tags of spring MVC in jsps?

java,jsp,spring-mvc,tomcat,openshift
In My Spring mvc login.jsp's snippet is: <form:form method="post" action="authenticate" modelAttribute="userInfo"> <div class="form-group"> <label for="exampleInputEmail1">User Name</label> <i class="fa fa-user"></i> <form:input path="loginID" id="username" placeholder="" /> </div> <div class="form-group"> <label for="exampleInputPassword1">Password</label> <i class="fa fa-lock"></i> <form:password class="form-control" path="password" id="password"...

Openshift check what contains every gear

openshift
How can I check what contains every gear. Now I'm using haproxy, mysql and a python web service. I like to know how check where is every cartridge. ...

Move Node.js TCP server from localhost to VPS (Openshift)

node.js,sockets,tcp,port,openshift
I have a working node.js server when it runs on localhost, i can send and receive data from my client (written in java). However, when i move the server.js to the VPS application at Openshift (free) the client can no longer connect to the server.js. I've uploaded the files as...

openshift. Do not deploy WAR

java,hibernate,tomcat,openshift
i created app on the openshift. Tomcat 7 + maven + spring + hibernate + postgresql. When i deploy war, i get a blank page without info. ---------- <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans...

Openshift - trigger Jenkins build on git push

jenkins,openshift
I work with Openshift now and I have a problem. I created an application server with Jenkins and when I push to the master branch of the git repository the Jenkins build is triggered automatically. The point is that the build isn't triggered when I push to another branch (not...

Does Openshift allow self-signed certificates?

certificate,openshift,cloudflare,self-signed
Say you implement an application on Openshift and put it behind Cloudflare. Since Cloudflare offers universal certificates and allows self-signed certificate, can I use self-signed certificate on OpenShift for my application?...

Mongoose Validation Error occurs on OpenShift but not local version

node.js,mongodb,mongoose,openshift
I am migrating my Node.js server with Mongoose to OpenShift and an error occurs on the live server that I cannot reproduce on my local WebStorm built-in server. I get the error message: undefined: { properties: { message: "Cannot read property 'options' of undefined" type: "cast" }- message: "Cannot read...

Can the OpenShift laravel cartridge be updated using composer selfupdate?

laravel,composer-php,openshift
I'm testing an OpenShift cartridge with laravel 4.2. When I try to execute the command composer selfupdate I get this error: [Composer\Downloader\FilesystemException] Filesystem exception: Composer update failed: the "/var/lib/openshift/.cartridge_repository/redhat-php/0.0.24/usr/bin/composer.phar" file could not be written ...

Akka cluster and OpenShift

scala,akka,openshift
I'm new to Akka Clusters, however as I am understanding its documentation, I need to know at least one "seed node" to join an existing cluster. So when using clusters with OpenShift I would need to know if the current gear is the first node - then I would create...

Why is my OpenShift repo not copied to new gears during scaling?

php,openshift,scaling
I can see my app's code in the OPENSHIFT_REPO_DIR, but not in the "/app-deployments" directory. I think each cartridge (on the different gears) should have its own copy of runtime data. (I've modified the scaling settings via the web console, from 1-3 to 3-3. Now my app shows the OpenShift...

Mongoose OpenShift Connection

node.js,mongodb,mongoose,openshift
I'm building an application on openShift using nodejs and mongodb. I'm also using mongoose and try to connect with this code var url = process.env.OPENSHIFT_MONGODB_DB_URL; var db = mongoose.connect( url, function(err) { console.log("Error loading the db..."); }); Checking on the openshift logs I can see that it gives me the...

Openshift redis cartridge with strange exceptions ETIMEDOUT on socket.io script

node.js,redis,socket.io,openshift,openshift-cartridge
I have a socket.io node script running that acts as a chat server. I had it running on a local server ok, and have since tried moving it over to openshift. I used the following cartridge to get it working - https://github.com/smarterclayton/openshift-redis-cart/issues While running the local version of the server,...

rhc setup gives error `no such file dl/import`

ruby,openshift
I'm installing openshift client tools as described: https://developers.openshift.com/en/getting-started-windows.html#client-tools. On step 'Setting up Your Machine' I got error: rhc setup C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' : cannot load such file -- dl/import (LoadError) Full stack trace: C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dl/import (LoadError) from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in...

set timezone for tomcat

timezone,tomcat7,openshift
I've got issue with this file .openshift/action_hooks/pre_start, the text is export JAVA_OPTS_EXT="-Duser.timezone=Europe/Stockholm" but new timezone does't work. It's not changing. Any help, with this? Thanks...

Accessing file system from Tomcat webapp deployed in OpenShift

tomcat,grails,openshift
I've deployed a Grails webapp into OpenShift's Tomcat 7 gear. That app needs to read and write some files. I can't find where is the Tomcat working folder to create some initial files, so I can see them from my app in Tomcat....

OpenShift - can't install RHC

openshift,redhat,openshift-client-tools
I'm trying to install RedHat Client tools to use with OpenShift. I've following installation instructions from here: https://developers.openshift.com/en/getting-started-windows.html#client-tools I've downloaded all the latest tools: Ruby ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32] Git git version 1.9.5.msysgit.1 When I try to run rhc setup I get the following errors in the command...

running node.js sails app on openshift

node.js,deployment,sails.js,openshift
I'm trying to deploy my node.js sails app on openshift. I followed procedure outlined in https://gist.github.com/mdunisch/4a56bdf972c2f708ccc6 but still doesn't work. also try this: Node.js app on openshift no matter what i'm getting "Service Temporarily Unavailable" The server is temporarily unable to service your request due to maintenance downtime or capacity...

Test performance in Openshift and prevent get banned IP

openshift,newrelic,openshift-cartridge,datadog
I have an application hosted in openshift. Now I want figure out how many request can handle in order to check the speed and availability. So my first attempt will be generate a multiple HTTP GET requests to my Rest Service(made in python and hosted in openshift). My fear is...

Cartridge Python2.7 on OPenshift

python,django,openshift
I try to install Django 1.5 on host Openshift. I use cartridge Python 2.7. I read https://developers.openshift.com/en/python-getting-started.html. I did not understand where this code should be. virtenv = os.environ['OPENSHIFT_PYTHON_DIR'] + '/virtenv/' virtualenv = os.path.join(virtenv, 'bin/activate_this.py') try: # See: http://stackoverflow.com/questions/23418735/using-python-3-3-in-openshifts-book-example?noredirect=1#comment35908657_23418735 #execfile(virtualenv, dict(__file__=virtualenv)) # for Python v2.7...

How do I make Openshift to use Express 4, instead of its installed Express 3?

node.js,express,openshift
I developed my Nodejs Express app locally using Express 4 and it works as expected on my computer. I then git the whole app up to Openshift. When I try to run it Openshift returns"503 Service Unavailable". If I ssh into my base Node cartridge and do "express -V" it...

OpenShift Tomcat Processing Annotations Error Deploying War

java,tomcat,openshift
I updated a java war on open shift and after the update the app won't start. When I looked at the jbossews log file I found the issue but I can't duplicate it outside OpenShift. It's woking fine on tomcat locally. I get a series of processing errors until the...

Openshift tomcat's logs: catalina.out and localhost.out contents

java,tomcat,logging,openshift
I have deployed my WAR application under openshift tomcat7 cartridge. In my application I use log4j. My log4j.properties looks like: log4j.rootCategory=info, A1, A2 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A2=org.apache.log4j.FileAppender log4j.appender.A2.File=myapp.log log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d %p (%t) [%c] - %m%n log4j.appender.A1.encoding=UTF-8 log4j.appender.A2.layout=org.apache.log4j.PatternLayout...

Openshift access to context.xml

java,openshift
I have deployed a java app on openshift using Eclipse. I did nothing on the command line at all to access the server. Now it seems I have do slight change in my DB-configuration in the server's context.xml file, to prevent the DB from shutting down after one day without...

Openshift port-forwarding [on hold]

java,git,netbeans,ssh,openshift
After many hours and many attempts, remains now your help. Im trying to do port-forwarding to access my DB in Openshift on Neatbeans. I've already done lots of tutorials, upgrade and downgrade versions of net-ssh, uninstall rhc and so on. I have read a lot git solutions (ssh_options[]...) and doesn't...

OpenJDK on OpenShift: “NoSuchAlgorithmException: EC AlgorithmParameters not available”

java,openshift,openjdk
I'm running into java.security.NoSuchAlgorithmException: EC AlgorithmParameters not available with Wildfly 8.2 (OpenJDK 1.8.0_31) on OpenShift (the exception is thrown by AmazonHttpClient). It looks like there is a bug with OpenJDK 1.8 and ECC: https://bugzilla.redhat.com/show_bug.cgi?id=1167153 On of the suggested workarounds requires editing jre/lib/security/java.security to disable jdk.tls.disabledAlgorithms=EC,ECDHE,ECDH. Or removing jre/lib/ext/sunec.jar Unfortunately I'm...

Openshift does not react on INTERVAL of MySQL

openshift
I have tested the table test on the locanhost and Openshift and I am facing problem that on openshift I am not getting anything back when I query the data like this WHERE arrivaltime BETWEEN curtime() - INTERVAL 2 MINUTE AND curtime() + INTERVAL 2 MINUTE although on the localhost...