openshift

Spring boot application wont start in openshift

不打扰是莪最后的温柔 提交于 2020-01-13 19:30:10
问题 I created openshift project with DIY cartridge, added postresql for DB.. now I pushed sources to cloud, but I'm getting error like the guy here (but he was not using springboot): I can't start tomcat 7 server on linux openshift - Failed to start end point associated with ProtocolHandler ["http-nio-12345"] Failed to start end point associated with ProtocolHandler It's obvious that if I run the app twice the error message 'Failed to start end point associated with ProtocolHandler' appears. I

How to install Nginx on OpenShift

有些话、适合烂在心里 提交于 2020-01-13 18:10:33
问题 Though I followed https://blog.openshift.com/lightweight-http-serving-using-nginx-on-openshift/ step by step, I ended up getting the error 503, telling me service is unavailable. There are questions on various websites, including stackoverflow, but all of them are about issues after a successful installation of nginx, a point I haven't arrived at yet. I don't want to use already available cartridges - in part because most of them are out-of-date. Also, an answer to my question might be of

NPM install on OpenShift Jenkins gear

前提是你 提交于 2020-01-13 11:27:29
问题 I (like a number of others) are struggling to get Jenkins cartridges on Openshift to play nicely with NPM. Following the advice of others on SO, I have managed to navigate the NPM cache redirection that needs to occur on Openshift as described here. My current build script for running my node tests on Jenkins looks like this; npm --version node --version echo "Reconfiguring the NPM cache..." rm -rf app-root/build-dependencies/.npmrc mkdir -p app-root/build-dependencies/.npmrc export NPM

OpenShift Git Clone error

China☆狼群 提交于 2020-01-13 04:00:10
问题 I am a newbie on OpenShift , I have a problem with it , When I do rhc app git-clone mynewapp Your public ssh key must be uploaded to the OpenShift server. Would you like us to upload it for you? (yes/no) yes You can enter a name for your key, or leave it blank to use the default name. Using the same name as an existing key will overwrite the old key. Since you do not have any keys associated with your OpenShift account, your new key will be uploaded as the 'default' key type: ssh-rsa content:

安装OpenShift 4.2.13

♀尐吖头ヾ 提交于 2020-01-11 23:11:06
[root@xxxxxx ocp4]# ls install-config.yaml [root@xxxxxx ocp4]# vi install-config.yaml [root@xxxxxx ocp4]# vi install-config.yaml [root@xxxxxx ocp4]# cat install-config.yaml apiVersion: v1 baseDomain: example.com compute: - hyperthreading: Enabled name: worker replicas: 0 controlPlane: hyperthreading: Enabled name: master replicas: 3 metadata: name: ocp4 networking: clusterNetworks: - cidr: 10.254.0.0/16 hostPrefix: 24 networkType: OpenShiftSDN serviceNetwork: - 172.30.0.0/16 platform: none: {} pullSecret: '*********' sshKey: '***********' [root@xxxxxx ocp4]# cp ~/ocp4/install-config.yaml ~

pip install Failed in OpenShift, the error info is Permission Denied

自作多情 提交于 2020-01-11 10:09:28
问题 when I git push and rebuild my DIY application in OpenShift, the pip install failed, and the error is Permission Denied. does any one know why ? I have no idea why pip will write the .pip in /var/lib/openshift/513b50c74382ec1582000797/ path. remote: Building git ref 'master', commit 35344b7 remote: Requirement already satisfied (use --upgrade to upgrade): Flask==0.9 in ./app-root/data/lib/python2.7/site-packages (from -r /var/lib/openshift/513b50c74382ec1582000797/app-root/runtime/repo/

OpenShift node.js Error: listen EACCES

核能气质少年 提交于 2020-01-09 09:49:09
问题 I have been using OpenShift with node.js and socket.io. My code is: server.listen(process.end.OPENSHIFT_NODEJS_PORT || 3000); My code says that it returns port 8080. However, I get this error: DEBUG: Starting child process with 'node server.is' Info: socket.io started warn:error raised: Error: listen EACCES How can I fix this? No other solution I can find works. 回答1: You also need to specify to bind to your OPENSHIFT_NODEJS_IP in your listen, as it is trying to bind to 0.0.0.0 by default,

mavenize eclipse wtp project (Dynamic web module) for openshift

一个人想着一个人 提交于 2020-01-07 04:46:11
问题 Managed to publish my project in Openshift - by scp 'ing the war to the correct location as detailed here. Here is the .project file: <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>DataCollectionServlet</name> <comment></comment> <projects></projects> <buildSpec> <buildCommand> <name>org.eclipse.wst.jsdt.core.javascriptValidator</name> <arguments></arguments> </buildCommand> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments></arguments> </buildCommand>

Why does my openshift site say “Welcome to Firebase Hosting”?

一笑奈何 提交于 2020-01-07 02:21:29
问题 I haven't made any changes to the code, but now my site (http://www.tagalogreader.com/) says "Welcome to Firebase Hosting". Have I been hacked? What should I do? 回答1: This is the page you get when you create a firebase website, but have not hosted any content. If you are using Firebase go here to host your content. If not go to your domain provider and check your records, if you see anything with firebase in it get rid of it and update it to what it should be 回答2: It seems like you( or your

How to git-checkout first application created on OpenShift?

為{幸葍}努か 提交于 2020-01-06 08:27:14
问题 I am new to git (coming from Subversion). I am exploring OpenShift and created an account, together with a first application. As I understand, some code has already been created. I have installed TortoiseGit (I am under windows 7) and I would like to checkout the code created for my application. I believe I must perform a git clone, but with which URL? How can I check-out the code on my local PC? Update I have deleted my application, installed the client toolset and recreated the application