openshift

Python 2.7 on Openshift V3: update setuptools before build?

痴心易碎 提交于 2019-12-12 23:18:42
问题 When installing cryptography package I get the following error: Invalid environment marker: platform_python_implementation != 'PyPy' It seems upgrading setuptools would solve this. Is there a way I could edit Build Config YAML file so that pip install --upgrade setuptools runs before any package is built? 回答1: Run: oc set env bc/yourappname UPGRADE_PIP_TO_LATEST=true See: https://github.com/sclorg/s2i-python-container/tree/master/2.7 When you do this it should update pip , setuptools and

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

How to preserve a SQLite database from being reverted after deploying to OpenShift?

无人久伴 提交于 2019-12-12 20:27:24
问题 I ported a Python Twisted application to OpenShift, which stores its data to a SQLite database. After putting database file to the git repo data/ directory (during the first deploy) I had no issues, but the database was simply resetted at the second deploy. I searched for a proper solution to this weird behavior (considering that the database was under versioning) and then I found the answer in the OpenShift Knowledge Base: The short solution to this issue is to store your SQLite database one

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:

byte string too long error in Python using pypyodbc 1.3.4

被刻印的时光 ゝ 提交于 2019-12-12 15:34:39
问题 Getting byte string too long error while saving more than 127 characters in Unix environment while using pypyodbc 1.3.4 and Python Anaconda 3.5. Gone through this link Byte string too long PyPyOdbc and applied the fix as stated but still issue persists. I am trying to save more than 127 characters. Database is MS Sql Server. Column type is varchar MAX or nvarchar MAX (I tried with both). Saving 127 orless than 127 characters is fine and working. Thanks 回答1: I ran into the same issue with

Node.js app on openshift

允我心安 提交于 2019-12-12 15:18:14
问题 I have issues with an express application that works fine locally node server.js but has this error on openshift: ... Uninitialized option at server.js:104:9 events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EACCES at errnoException (net.js:901:11) at Server._listen2 (net.js:1020:19) ... I have understood that this would be an issue with my .createServer().listen implementation. My code is: var express = require('express'); var path = require('path'); ....//I cut code from

rails console on openshift

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 11:11:15
问题 I deployed my rails application to openshift it works well but I cannot run 'rails console' on production server. It gives me this error. How can I solve this? I tried to update rubygems but it also gives permission denied error and I couldn't make it too. rails c error: Warning: You're using Rubygems 1.8.24 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance. /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in

Openshift app redirecting to https://domain_name/app

不羁岁月 提交于 2019-12-12 09:31:36
问题 I have hosted an app on Redhat Open shift. I didn't change anything but it started redirecting to https://www.plovist.com/app and throwing 404 error. Can anyone help me in solving this? 回答1: Make sure that you have correctly added your alias to your application (www.plovist.com) 回答2: I logged into Godaddy(my DNS) account and found out that in Cnames(Alias) www wasn't pointing to mydjango-plovist.rhcloud.com (URL given by Openshift). Also I pinged mydjango-plovist.rhcloud.com and it gave a

Mysql connection Tomcat 7 on Openshift

*爱你&永不变心* 提交于 2019-12-12 09:19:58
问题 I deployed application on openshift server (tomcat, mysql) but I can't connect with my db (I use phpmyadmin to create db and tables). On my localhost everythings work well. Here is my persistence: <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="eshopPU" transaction-type=

Node.js Deployment in openshift

穿精又带淫゛_ 提交于 2019-12-12 08:49:15
问题 I was trying to deploy a Node.js application to the openshift as in this link here I understand this code var http = require('http'); var server = http.createServer(function(req, res) { res.writeHead(200); res.end('Hello Http'); }); server.listen(3000); and there is no issue running it locally $ node server.js // saved as server.js However, how does this work when I commit this application in openshift? This is very simple code. I have some downloaded code that is a chat application and