cloudfoundry

Not able to get my application logs using “cf logs my-cool-app” command (CF version 6.11)

会有一股神秘感。 提交于 2019-12-10 21:24:21
问题 I am trying view logs of my running application on Bluemix using : "cf logs my-cool-app" command (CF version 6.11) . If fails with : FAILED Loggregator endpoint missing from config file Anyone seen this issue? 回答1: The problem appears to stem from the use of the 6.11 codebase for CF CLI and the current version of CloudFoundry that Bluemix is running. Good news is that an upcoming upgrade will alleviate the problem. We're investigating potential workarounds. This is just an issue with the CF

Override Spring Cloud Config values with environment

狂风中的少年 提交于 2019-12-10 19:25:43
问题 Is there a way to override properties set via a Spring Cloud Config Server with another property source (specifically, the system environment)? I know I could manually do it by looping through the Environment object's PropertySource s, but if I could set it up so that the bootstrapConfig source was lowest priority, that would be ideal. 回答1: FWIW, I accomplished this by writing a custom ApplicationListener whose Event fired early in the cycle, but after the Config Service's PropertySource was

Deployed R app with Shiny crash with 'could not find function “httpdPort”'

心不动则不痛 提交于 2019-12-10 18:42:25
问题 I have an application built with Shiny (a tutorial, where ui.R and server.R are taken from here: http://shiny.rstudio.com/tutorial/lesson1/). I have these two files in shiny-frontend folder, and if I runApp("shiny-frontend") locally in RStudio - everything works great and I see the tutorial in my browser. Now I want the same app to be put into Bluemix via cloudfoundry. I'm using this: http://www.ibm.com/developerworks/library/ba-rtwitter-app/ as a tutorial, but struggling with an error. I

Cloud Foundry Development Workflow

匆匆过客 提交于 2019-12-10 17:28:20
问题 I'm trying to figure out how to use Micro CloudFoundry for development as described when I read things like the following from the Cloud Foundry blog: "Rather than installing a web server (Tomcat, etc.), runtimes (Java, Ruby, etc.), and services (Postgres, MongoDB, etc.), you can do a single download of Micro Cloud Foundry, boot it up, and deploy your applications using ‘vmc push’." When I'm developing (Node, Grails or Java web apps), I'm used to just refreshing and seeing my changes (well,

HTTPS node app on Cloud Foundry

╄→尐↘猪︶ㄣ 提交于 2019-12-10 16:04:52
问题 Is it possible to deploy a node.js app on Cloud Foundry that listens for HTTPS requests on port 443? I can find various references to SSL support in the Cloud Foundry forums, but no actual examples of HTTPS apps. The article "Setup SSL on cloudfoundry landscape" seems to indicate that I need to install nginx and use that, but there is not really enough information there to tell me what I need to do. 回答1: The SSL connection will terminate at the loadbalancer and then forward the unencrypted

Spring Cloud Config Server + RabbitMQ

懵懂的女人 提交于 2019-12-10 14:24:32
问题 I created spring cloud config server and client and they work as expected. I have added @RefreshScope to my client and I am able to see the new properties getting fetched after hitting /refresh endpoint. But I was told that when I deploy it in cloud foundry environment , I must integrate it with RabbitMQ in order for all the instances to receive the refresh message. Is it possible to point me to a link which explains this problem and solution in detail? 回答1: Spring Cloud Bus This is what you

Getting error java.io.FileNotFoundException (log4j log file) at the time of publish project on cloudfoundry

偶尔善良 提交于 2019-12-10 13:16:04
问题 I am planing to move web application to cloudfoundry along with mysql service. But I am getting below error. Its working fine with local environment. log file get generated also. Below is error log: Jan 5, 2013 7:35:59 AM org.cloudfoundry.reconfiguration.AbstractServiceConfigurer configure INFO: No beans of type org.springframework.amqp.rabbit.connection.ConnectionFactory found in application context Jan 5, 2013 7:35:59 AM org.apache.catalina.core.StandardContext start SEVERE: Error

why does the 'cf run-task' command not work on swisscom cloudfoundry

那年仲夏 提交于 2019-12-10 11:19:01
问题 I'm trying to get 'cf run-task' to work on the swisscom cloudfoundry instance. But it fails with even the simplest command: $ cf run-task hostapp "echo SUCCESS" --name task1 Creating task for app hostapp in org xxx / space yyy as xxx@yyy.com... Unexpected Response Response Code: 404 FAILED Is run-task not yet supported in cf api version 2.96.0? (which seems to be the current installed version on the swisscom env) 回答1: The Swisscom Application Cloud has not activated the cf run-task feature

Error pushing changes to cloud foundry

有些话、适合烂在心里 提交于 2019-12-10 09:31:14
问题 from my local host, I connected to blue mix with cf api https://api.ng.bluemix.net I logged in and then I pushed the changes with cf push However, in the console, Uploading MY_PROJECT... Uploading app files from: /Users/MyName/Documents/MY_PROJECT Uploading 437.7K, 386 files Done uploading FAILED Error processing app files: Error uploading application. The resource file mode is invalid: File mode '0444' is invalid. (venv) My-iMac:MY_PROJECT MyName$ How do I trouble shoot this? 回答1: According

详解CloudFoundry中各个组件的作用

僤鯓⒐⒋嵵緔 提交于 2019-12-09 16:30:34
CloudFoundry是一个标杆性的项目,架构设计上有很多值得借鉴之处。从CloudFoundry官网摘了一张图,我们以此剖析各个组件的作用。 Router Router是整个平台的流量入口,负责分发所有的请求到对应的组件,包括来自外部用户对app的请求和平台内部的管理请求。 Router是PaaS平台中至关重要的一个组件,它在内存中维护了一张路由表,记录了域名与实例的对应关系,所谓的实例自动迁移,靠得就是这张路由表,某实例宕掉了,就从路由表中剔除,新实例创建了,就加入路由表。 CloudFoundry1.0中的router是用nginx+lua嵌入脚本实现的,2.0用golang重写,更名为gorouter,性能有所提升,并声称试图解决websocket请求和tcp请求(虽然这在笔者看来是没用的),它的代码在 https://github.com/cloudfoundry/gorouter,大家可以研究一下。 Authentication 这块包含两个组件,一个是Login Server,负责登录,一个是OAuth2 Server(UAA),UAA是个Java的项目,如果想找一个OAuth2开源方案,可以尝试一下UAA Cloud Controller Cloud Controller负责管理app的整个生命周期。用户通过命令行工具cf与CloudFoundry