openshift

400, 502, 503 errors with Websockets

可紊 提交于 2019-12-24 04:26:11
问题 I am making a multiplayer game using Socket.io, Node.js, and Openshift. It was working for a while, but I made a few small changes and now something unrelated to what I changed has broken. When a second player tries to join the game, it boots everyone out, showing a 503 error for anyone else who goes on the site. For the second player, I get a lot of console errors including WebSocket connection to 'ws://avalon-evao.rhcloud.com/socket.io/?EIO=3&transport=websocket&sid=d5smykffy4EWHxgIAAAC'

rhc setup - command not found

你离开我真会死。 提交于 2019-12-24 04:14:07
问题 I am working on a MacBook Air, OS X 10.10 (Yosemite) After successfully installing Ruby 4.1.6 and Git 1.9.3 (Apple Git-50) OpenShift client tools rhc-1.30.2.gem I got this message: If this is your first time installing the RHC tools, please run 'rhc setup' But, when I run rhc setup (according the the OpenShift documentation) I just get this back: Olivers-MacBook-Air-4:~ oliverhowells$ rhc setup -bash: $: command not found I want to set up an SSH key, but as long as I get this error, I am not

Openshift node app failed to start

偶尔善良 提交于 2019-12-24 03:55:14
问题 I am failing to start my node-based application on Openshift. The application starts OK locally but node's automatic deployment (on push to the remote master repo) hits a cyclic problem with the log; DEBUG: Running node-supervisor with DEBUG: program './app/server.js' DEBUG: --watch '/var/lib/openshift/53dab282e0b8cdd367000131/app-root/data/.nodewatch' DEBUG: --ignore 'undefined' DEBUG: --extensions 'node|js|coffee' DEBUG: --exec 'node' DEBUG: Starting child process with 'node ./app/server.js

Openshift: Change the https to http

五迷三道 提交于 2019-12-24 03:35:17
问题 I create a application on the openshift platform, but the url to my app always use https I think it slow down the visit speed How can I change it to http ? 回答1: Are you using Google Chrome or Chromium with OpenShift? OpenShift is currently returning some header information that is causing Chrome browsers to automatically redirect from http to https. The bug has been documented here: https://bugzilla.redhat.com/show_bug.cgi?id=908417 (login required) This should be fixed in the next update to

Openshift, web service client error: Permission denied

[亡魂溺海] 提交于 2019-12-24 03:34:52
问题 Well I have 2 services deployed as a war file in tomcat on Openshift using Jboss. The web services are developped in Eclipse. For testing I have The web service: the function public String sayHello(String input){ return "Hello "+input; } The client web service Sayhello sayhello=new Sayhello(); sayhello.setInput("EveryOne"); SayhelloResponse resp= stub.sayhello(sayhello); String result=resp.get_return(); When calling the client web service after it's depled on openshift I got these errors: org

Getting out of memory error when restarting WildFly on OpenShift

╄→гoц情女王★ 提交于 2019-12-24 02:57:15
问题 I have a issue with WildFly AS on OpenShift. When i try to deploy WAR on server i keep getting following exception. 2014-12-20 04:31:33,072 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-7) JBAS010406: Registered connection factory java:/JmsXA 2014-12-20 04:31:33,444 ERROR [org.hornetq.core.client] (Thread-0 (HornetQ-client-global-threads-32821528)) HQ214017: Caught unexpected Throwable: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0

Rails 4, Carrierwave-aws, images uploaded to Amazon s3 locally, but not in production (Openshift)

◇◆丶佛笑我妖孽 提交于 2019-12-24 02:52:54
问题 I have a Rails 4 application hosted on openshift. I am using carrierwave and the carrierwave-aws gem to handle image upload. When I test it locally, the images are uploaded and displayed as expected to Amazon S3. However, on production server, which is hosted on Openshift, the images are uploaded to '/uploads/images' instead of Amazon. Here are my configurations and Gemfile: gem 'carrierwave' gem 'carrierwave-aws' In initializers/carrierwave.rb #config/initializers/carrierwave.rb CarrierWave

How to configure Laravel 5.2 on Openshift?

你说的曾经没有我的故事 提交于 2019-12-24 02:14:14
问题 I've been looking through tutorials and cartridges on how to use and configure Laravel in Openshift to no avail. Even the best things I could find didn't help that much. So far what I've been able to do is setup Laravel so I could see the welcome page that says "Laravel" in the middle. What I did to achieve this is use these 2 cartridges: PHP 5.6.16 - https://github.com/boekkooi/openshift-cartridge-php Nginx - https://github.com/boekkooi/openshift-cartridge-nginx With https://github.com

Can dependencies be installed with yum in .openshift/action_hooks/build?

北城余情 提交于 2019-12-24 02:06:38
问题 I am using a DIY cartridge, and would like to use yum to install a dependency in the install stage (.openshift/action_hooks/build). Is this possible? When I try, it fails with "Error: rpmdb open failed", and permission to use sudo is denied. 回答1: No, you would have to have root access to install packages via yum. If there is a package that you would like installed, and can make a good case for it, you can either add it here (www.openshift.com/ideas) or file a bugzilla ticket here (https:/

New Relic requires root access on Openshift machine

江枫思渺然 提交于 2019-12-23 20:21:29
问题 I have an Application on Openshift and I just added New Relic add-on New Relic asks for setting up Server and configuration is listed as However, I could not get root access , I tried \> sudo rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm bash: /usr/bin/sudo: Permission denied > su - root bash: /bin/su: Permission denied > sudo su bash: /usr/bin/sudo: Permission denied How do I setup New Relic on my Openshift box? Thanks 回答1: You're not allowed root