cloudfoundry

CloudFoundry / Nginx / Grails and the X-Forwarded Header (Missing)

天大地大妈咪最大 提交于 2019-12-12 04:24:29
问题 Using CloudFoundry with Nginx, we're trying to get the X-Forwarded for header out in grails, but we can't seem to do so. It's either blank or the IP address of the Nginx server. We often create sites where users are allowed to vote, and we want to be sure that they only vote once. Therefore, we'd like to use a combination of their network gateway (router) ip address and their X-Forwarded-For (internal) ip address so that we can check if people have already voted without having to block their

Unable to deploy/run tasks on Pivotal CF from Spring Cloud Dataflow container error CF-UnprocessableEntity(10008)

空扰寡人 提交于 2019-12-12 04:14:24
问题 Trying to deploy a Java Spring Boot App/Task using Spring Cloud Data Flow. But it fails with foloowing exception CF-UnprocessableEntity(10008): The request is semantically invalid: Task must have a droplet. Specify droplet or assign current droplet to app. Tried the solutions below by SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_API-TIMEOUT to 720 and SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_TASK_TASK_TIMEOUT to 360 did not work. TaskLauncher cloudfoundry Problems with Tasklaunching https://github.com/spring

Cloud foundry p-mysql

China☆狼群 提交于 2019-12-12 03:49:02
问题 hello to all I have a problem when I try to bind laravel app to p-mysql service created, I get connection refused error and app deployment failed. what I tried to do/can do: use cf-laravel-example instead of my application still not working I can access service instance of p-mysql I can ssh the container running mysql delete service and create, bind it again to the app. I am using cf-release 231, cf-mysql-release 26 when I ran cf service-access I GET Getting service access as admin... broker:

How to add mongodb service in application running inside cf?

喜夏-厌秋 提交于 2019-12-12 03:34:08
问题 I have deployed my application in cf running on vagrant machine.But my application requires mongodb .I don't know how to add.Can anyone please hep me with this. rle0249@rle0249-Latitude-3450:~/CloudFoundry$ cf service-brokers Getting service brokers as admin... name url No service brokers found Thanks 回答1: Before you can provision a MongoDB service, or any other service, you need to have an appropriate service broker registered with CF. Service brokers can run anywhere, but are often BOSH

bx cf logs gives “Error dialing traffic controller server” when switching region

怎甘沉沦 提交于 2019-12-12 03:26:01
问题 I need a script to collect logs which must switch between regions via a bx login -a . I'm using the bluemix cli so that I can login using an apikey. But when I switch regions the bx cf logs app_name goes haywire. [Ops]$ bx cf logs AppName Invoking 'cf logs AppName'... FAILED Error dialing traffic controller server: websocket: bad handshake. Please ask your Cloud Foundry Operator to check the platform configuration (traffic controller is wss://doppler.eu-gb.bluemix.net:443). [Ops]$ bx api API

How to deploy a Scala application with filenames larger than 242 characters in CloudFoundry garden container

廉价感情. 提交于 2019-12-12 03:16:45
问题 I've been trying to deploy a scala application built into a fat-jar with sbt assembly. There is well known issue with containers and scala compilation generated class names: https://github.com/milessabin/shapeless/wiki/Shapeless-with-SBT-Assembly-inside-Docker, essentially they don't support file names larger than ~242 chars and will fail miserably to start scala application if they do contain those. Problem is several libraries (scalaz, play) contain those. scalacOptions in assembly ++= Seq(

Deploy a Laravel App on Cloudfoundry

人盡茶涼 提交于 2019-12-12 00:42:50
问题 I am trying to deploy a Laravel based web application to the Swisscom Application Cloud. Therefor I use the provided PHP Buildpack. The Docs shows an example with Lumen, so I am assuming that it should work with Laravel as well. Used command: cf push app-name -m 512M -n app-name While deploying I get these two errors: a) The extension 'fpm' is not provided by this buildpack. The extension 'tokenizer' is not provided by this buildpack. The extension 'dom' is not provided by this buildpack. The

RMagick gem in Cloudfoundry?

一个人想着一个人 提交于 2019-12-12 00:25:10
问题 The rails 3.2 app needs RMagick gem. From the support ticket, they say its in private PaaS. But what for apps hosted on cloudfoundry.com itself, not in private PaaS? 回答1: CloudFoundry.com recently added the ImageMagick binaries, which are necessary for libraries such as RMagick to work. The path is /var/vcap/packages/imagemagick/bin/ . For example, to configure the paperclip gem add the following to config/environments/production.rb : Paperclip.options[:command_path] = "/var/vcap/packages

Jenkins pushes app to wrong target

≯℡__Kan透↙ 提交于 2019-12-11 23:26:36
问题 we continuously build our apps with Jenkins and deploy them to our different spaces: ... cf login -a https://api.lyra-836.appcloud.swisscom.com -u ... cf target -s development cf push scs-flux-monitoring-development ... Now we recognized that the push is sometimes taking a wrong space to install the app. We think this is because of another Jenkins Job doing a parallel push. As far we can see the .cf/config.json stores the name of the Space and when another cf target is called all pushes are

Adding a new runtime to CloudFoundry

纵饮孤独 提交于 2019-12-11 18:48:10
问题 I am presently evaluating the possibility of adding a new runtime (for example Perl runtime) to CloudFoundry PaaS platform. Is it possible to add a new runtime (for example Perl runtime) to CLOUDFOUNDRY PAAS PLATFORM (CloudFoundry.com) ? If yes please share some relevant details... Is it possible to add a new runtime (for example Perl runtime) to a PRIVATE CLOUDFOUNDRY INSTANCE ? If yes please share some relevant details... 回答1: You can add new runtimes to your own private instance of cloud