openshift

What does Openshift mean when it says it's “Evicted” my pods - and why does it keep doing so?

為{幸葍}努か 提交于 2019-12-23 17:04:42
问题 I am using OpenShift 3 Starter on OpenShift Online to run a small web project. It had been running fine for the last two months and suddenly stopped running yesterday. I found the deployment had simply gotten stuck at "Creating Container..." When I tried to rebuild and restart the project, I ran into this problem. After fixing that, the application now builds. However, when I try to deploy, the deployment fails. There are no logs. The pod listing says "Evicted." Why would this be happening?

Configuring DataSource.groovy for Openshift for Grails

核能气质少年 提交于 2019-12-23 16:19:47
问题 I'm trying to deploy a Grails application on Openshift. I'm deploying the app using a locally built war file. Right now, I am using the url given by the rhc-app-show command in the DataSource.groovy file for my Database configurations. Whenever I try with the environment variables of Openshift (eg. $OPENSHIFT_MYSQL_DB_HOST), it crashes. Any idea or pointers on how to use those in the config file? Thanks. 回答1: I haven't used OpenShift but Google led me to the FAQ which shows these environment

How to detect the Remote/Client IP Address of a WebSocket connection on OpenShift

天涯浪子 提交于 2019-12-23 15:34:17
问题 In the OpenShift cloud, the usual Apache proxy will send the HTTP headers x-client-ip and x-forwarded-for , which I can use to determine the client IP. But for the newer proxy, which is the only option for WebSocket users, these are the only sent headers: connection upgrade sec-websocket-version sec-websocket-key origin host None of these headers can help me to detect the remote address and socket.remoteAddress 's NodeJS property is useless, as it will detect the proxy IP. Any solution I can

OpenShift Tomcat Processing Annotations Error Deploying War

做~自己de王妃 提交于 2019-12-23 14:21:27
问题 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 app runs out of heap space: May 22, 2015 12:04:16 AM org.apache.catalina.startup.ContextConfig processAnnotationsJar SEVERE: Unable to process Jar entry [javassist/ByteArrayClassPath.class] from Jar [jar:jndi:/localhost/cope/WEB-INF/lib

SSH to Openshift server fails

旧城冷巷雨未停 提交于 2019-12-23 10:18:27
问题 I am working with jboss catridge on a openshift server. I am looking to share this instance with another person and added the other user' s public key(id_rsa.pub). When the other person tries to access the instance he is getting the error below. I tried them same with his instance and I am seeing the same error. What is the best way to share code with the openshift instance and synching the code between developers. Al this point we dont have a private Github repo. Please advise. 2013-02-09 14

OpenShif jenkins: java.net.BindException: Permission denied

断了今生、忘了曾经 提交于 2019-12-23 09:37:03
问题 I have setup Jenkins on openshift, made a hello world project and trying to package it by the Jenkins in openshift. But I got the next error: Commencing build of Revision 2062de71e567e2f62a57dd3a1f9d660950b6482d (origin/master) Checking out Revision 2062de71e567e2f62a57dd3a1f9d660950b6482d (origin/master) Parsing POMs ERROR: Failed to parse POMs java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind

I can't start tomcat 7 server on linux openshift - Failed to start end point associated with ProtocolHandler [“http-nio-12345”]

。_饼干妹妹 提交于 2019-12-23 06:08:49
问题 I've checked out this question which is very similar to mine, however the difference is I'm using a port > 1024 (i.e. I'm using port 12345) which is what the answerer said to do. I'm trying to run a Tomcat instance on an Openshift server.. Any help is appreciated! Thanks! My execution script is as follows: nohup java -Xms384m -Xmx412m -jar target/*.war --server.port=12345 Note the "-jar" is this right? I am deploying a .war file not a .jar? I think.. Sorry, a little new to this. The important

Nodejs openshift app deployed code not working

时光毁灭记忆、已成空白 提交于 2019-12-23 05:47:23
问题 I am working on nodejs app,i wrote server listening code,then i deployed code into openshift hosting,there i am getting 503 response,in local if i run this code it is properly working. code: var http = require('http'); var express = require('express'); var fs = require('fs'); var app = express(); app.set('port', process.env.OPENSHIFT_NODEJS_PORT || 8080); app.set('ip', process.env.OPENSHIFT_NODEJS_IP || '127.0.0.1'); http.createServer(app).listen(app.get('port'), app.get('ip'), function(){

OpenShift, Log4j2 & Maven - Could not resolve dependencies for project

风格不统一 提交于 2019-12-23 04:57:11
问题 I have created and run a stand-alone Java program that logs via Log4j2 using Slf4j . The logging worked as expected. I then added this functionality to an existing (and working) OpenShift Java web application that I am developing in an Eclipse IDE . I added the following dependencies to pom.xml <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.7.21</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core<

Populate environment variables from OpenShift secret with Docker build strategy

北慕城南 提交于 2019-12-23 04:29:13
问题 I would like to use on opaque OpenShift secret inside a build pod as environment variable. The secret contains three key-value pairs, so they should become available as three environment variables. (This is for OpenShift 3.9). I have found a documented example for OpenShift's Source build strategy ( sourceStrategy ), but need this in the context of a build configuration with Docker build strategy ( dockerStrategy ). oc explain suggests that extraction of secrets into environment variables