openshift

How to use to make a file executable on Openshift server after pushing it via git

血红的双手。 提交于 2019-12-13 04:59:36
问题 The original poser is found here. I want to ensure my index.cgi is set to 755, even afer i push files to git. This is not happening and the file permission , based on the umask i understand is getting set to 700. I am unable to create the post-update script on the server , which is to be kept at openshift/hooks location, due to the set permissions. So i tried using action hooks to do the job. I created a file named stop in my action hooks local folder. Following this i pushed my index file to

Express session-cookie not being sent on openshift with https and secure flag

て烟熏妆下的殇ゞ 提交于 2019-12-13 04:32:30
问题 Got a strange issue, I am using Express and in development we use http and have secure: false for the session cookie, however now we are moving to openshift we have turned https on thinking it would be a simple endeavour but our cookies are not being sent back with the responses. If however we turn off https and revert back to http on openshift it works fine and cookies are sent. So here is an example of what the cookie config looks like: var setupSession = function() { var sessionConfig = {

how to redirect http to https on an openshift golang app?

走远了吗. 提交于 2019-12-13 03:50:44
问题 I have a scaled golang application running on the openshift free tier. It uses a custom cartidge located at https://github.com/zolamk/openshift-go and i want to redirect http to https, i tried following the guide at Technical FAQs by using .htaccess file but that didn't work, maybe because haproxy is used as a load balancer, so my question is how can i redirect HTTP traffic to HTTPS without touching my application code if possible? maybe by changing the haproxy.cfg file, here is what my

Minishift start using hyper-v on windows 10 fails with E1011

笑着哭i 提交于 2019-12-13 03:17:33
问题 Windows 10 Version 1607 minishift v1.3.1+a2d3799 CDK v3.1.1-1 Vagrant 2.0.0 When I try to start minishift I'm getting an error pretty early on: PS C:\minishift> minishift start Starting local OpenShift cluster using 'hyperv' hypervisor... E1011 16:57:09.569574 13196 start.go:282] Error starting the VM: Error starting stopped host: exit status 1. Retrying E1011 16:57:12.173524 13196 start.go:282] Error starting the VM: Error starting stopped host: exit status 1. Retrying E1011 16:57:14.765997

Kafka on Kubernetes - Clients are unable to retrieve metadata

泪湿孤枕 提交于 2019-12-13 02:59:26
问题 I have a Kafka cluster running on Kubernetes along with ZooKeeper on Kubernetes. As outlined in this answer, I have configured the internal broker port as well as the advertised external port for the clients: listener.security.protocol.map=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT inter.broker.listener.name=PLAINTEXT listeners=PLAINTEXT://:29092,PLAINTEXT_HOST://0.0.0.0:9093 advertised.listeners=PLAINTEXT://:29092,PLAINTEXT_HOST://{EXTERNAL-IP-ADDRESS}:9093 zookeeper.connect=zk-cs

How to open an internal port in Openshift 3 Online?

假如想象 提交于 2019-12-13 02:47:23
问题 Say if I want to open two ports, one for the public at 8080, and another one to process some public request but was forwarded by the 8080 port like such: const http = require('http'); const publicServer = http.createServer(...).listen(8080); const privateServer = http.createServer(...).listen(9999); publicServer.on('connect', (req, cltSocket, head) => { ... if (...) { // let srvSocket = net.connect('9999', 'localhost', () => { let srvSocket = net.connect('9999', '127.0.0.1', () => { cltSocket

Openshift - rhc setup - in 'require': cannot load such file

帅比萌擦擦* 提交于 2019-12-13 02:37:31
问题 I am trying to install the Openshift client tools using the procedure available here. At the step requiring to perform rhc set-up , I get the following error message: I am on a Windows 10 64 bit laptop. Anyone knows how to solve this? 回答1: You are using ruby2.2.0. I had similar problems and I downgraded ruby to 1.9.3 as from the tutorial https://developers.openshift.com/en/getting-started-windows.html#client-tools and it worked at least on my windows 7 64 machine. 回答2: Somebody on SO even

OpenShift Migration - ENV Variables In Conf File NOT Replaced As Before

為{幸葍}努か 提交于 2019-12-13 02:32:25
问题 I am migrating a webapp from OpenShift v2 to OpenShift Pro. This is a regular Java Tomcat app. My webapp on OpenShift v2 had an additional docBase specified in server.xml like this: <Context docBase="${OPENSHIFT_DATA_DIR}/documents" path="/documents" /> During deployment the environment variable OPENSHIFT_DATA_DIR was replaced with its value: /opt/app-root/data Just as you would expect. I have done the equivalent (though quite different) set up in OpenShift Pro but the deployment failed. Upon

Openshift: manage cron processes

杀马特。学长 韩版系。学妹 提交于 2019-12-13 02:25:12
问题 I've setup my project and a cron file inside an openshift box, the project runs ok, but for some reason I can't manage cron running processes, I can't even list them, if I connect via ssh and exec 'ps aux' the cron process doesnt even appear. I write a little test: <?php file_put_contents('../../b.log','pid: '.getmypid().PHP_EOL,FILE_APPEND); file_put_contents('../../b.log',shell_exec('whoami'),FILE_APPEND); cat b.log: pid: 194061 54ae4f424382ec439100xxxx //the user is right, the cron process

OpenShift - nginx pod as SSL termination and load balancer

别等时光非礼了梦想. 提交于 2019-12-13 00:06:16
问题 In the past, I have used the following configuration file for nginx on Ubuntu. It does the following: SSL termination Load balancer Inserts a custom header X-Nginx-header Logs the invocations events { } http { log_format main '$time_iso8601 - $remote_addr - "$http_user_agent" - "$request" - $request_id ' '- $status - $body_bytes_sent - $request_time '; access_log /home/ubuntu/project-demo/logs/access.log main; error_log /home/ubuntu/project-demo/logs/error.log error; proxy_cache_path /data