cloudfoundry

Need to list Orgs and Spaces in Cloud Foundry

天大地大妈咪最大 提交于 2019-12-11 13:24:42
问题 I am thinking to write a unix shell script to list orgs and spaces associated with it in Cloud Foundry. But had issues, as we can list spaces associated with an org only after targeting it. I cannot target 2 Orgs at a time using : for i in Org1 Org2 ; do cf target -o $i ; done Hence, if i put all the orgs in a text file and like this : for i in cat Orgs.txt ; do cf spaces $i ; done Please suggest your views. Thank you! 回答1: The cf org command will show information about an organization,

multi buildpack - not able to build java and node

徘徊边缘 提交于 2019-12-11 13:08:52
问题 Following this https://docs.cloud.gov/apps/multi-buildpack-deploys/ tutorial, I'm trying to build java and node buildpacks and my build pack contains the below URLs https://github.com/cloudfoundry/java-buildpack https://github.com/cloudfoundry/nodejs-buildpack Staging failed: Buildpack compilation step failed, how to fix this error? 来源: https://stackoverflow.com/questions/36596095/multi-buildpack-not-able-to-build-java-and-node

STS 3.0.0 with Spring Roo 1.2.2 cannot deploy to CloudFoundry with MongoDB service

点点圈 提交于 2019-12-11 09:45:19
问题 I downloaded STS 3.0.0 and have been trying to get a simple spring app onto CloudFoundry using Roo. STEP 1: This is my roo script // Spring Roo 1.2.2.RELEASE [rev 7d75659] log opened at 2012-08-26 22:36:52 project --topLevelPackage com.nroots.tracker mongo setup --cloudFoundry true entity mongo --class ~.domain.Trackable --testAutomatically field string --fieldName name --notNull --sizeMin 3 field date --fieldName datetime --type java.util.Date --dateTimeFormatPattern yyyyMMddHHmmssSSS

Getting access denied on cloud-bosh-artifacts.s3.amazonaws.com

梦想的初衷 提交于 2019-12-11 09:19:11
问题 I am trying to deploy micro bosh in EC2 as per http://docs.cloudfoundry.com/docs/running/deploying-cf/ec2/ I am getting (AWS::S3::Errors::AccessDenied) when executing bosh aws create Also URL http://cloud-bosh-artifacts.s3.amazonaws.com/ returns the following: <Error><Code>AccessDenied</Code> <Message>Access Denied</Message> <RequestId>zzzzzzzz</RequestId> <HostId>xxxxxxxxx</HostId> </Error> Is there any obvious bit of configuration that I am missing? Thanks Michal 回答1: I just ran into this

How to pull files from Cloud Foundry on Diego

我只是一个虾纸丫 提交于 2019-12-11 08:54:23
问题 I would like to retrieve some application's logs. I found that the command cf file was not available anymore and the plugin cf-download doesn't work on Diego Architecture. Is there a way to retrieve files from the cloud foundry by CLI other another method? 回答1: The solution is to use SSH without cf CLI When you are at the step 4) you can use WinSCP (for Windows) to have a graphical interface to navigate in the folders. 来源: https://stackoverflow.com/questions/48499625/how-to-pull-files-from

Error in accessing the Cloudfoundry Local App URL

走远了吗. 提交于 2019-12-11 08:52:11
问题 I need some help with a locally deployed app in the Local pivotal Cloud Foundry VM. Recently, I have installed the pivotal cloud foundry in a Windows Server 2012 VM and had deployed the Spring-music app in the local. Now I want to share this url with others, but when I give the URL generated in the APP PUSH Commands to others they are not able to see that app. Can you help how to share a APP url to others so that they can view the app. http://spring-music.local.pcfdev.io/ -- this is the Local

Provider org.springframework.cloud.cloudfoundry.CloudFoundryConnector could not be instantiated

戏子无情 提交于 2019-12-11 08:09:46
问题 I am working on a grails 2.5.3 app that will be deployed to cloudfoundry. The app is bound with few services and in order to get the values for those services I use two connectors: //s3 service connector compile ("org.cloudfoundry.community:spring-cloud-s3-service-connector:1.0.0") { excludes "aws-java-sdk", 'slf4j-api', 'slf4j-log4j12', 'slf4j' } //sso service connector compile (group: 'io.pivotal.spring.cloud', name: 'spring-cloud-sso-connector', version: '1.1.0.RELEASE') { excludes 'slf4j

Exclude certain WebApplicationInitializers in CloudFoundry WAR deploy

亡梦爱人 提交于 2019-12-11 08:08:06
问题 There's a specific version of this question and a general version; I'll ask it both ways. Specific Question We have a traditional Spring Web application that integrates with Apache Camel that we're pushing to Cloud Foundry. It depends on a custom library that pulls in spring-cloud-security (and therefore, spring-boot-autoconfigure , among others). When deploying to Cloud Foundry, the Java Autoreconfiguration looks for WebApplicationInitializer s on the classpath and one that it finds is

Change PCF Dev installation location

那年仲夏 提交于 2019-12-11 07:34:06
问题 I'm trying to setup Pvotal Cloud Foundry DEV on my machine, but my main hard drive does not have enough room and our System Administrators frown on us installing applications onto the C drive. I have an additional D: drive with plenty of space on it, and I would like to get PCF DEV to download and/or install all files there. How do I specify the download and installation location when running 'cf dev start' for the first time on a windows machine? 回答1: You can use the PCFDEV_HOME environment

Unexpected app crashes: “hijack: Backend error: Exit status: 500 and could not find the exitcode file for the process”

一笑奈何 提交于 2019-12-11 07:29:02
问题 app.crash index: 0, reason: CRASHED, exit_description: Instance became unhealthy: hijack: Backend error: Exit status: 500, message: {"Type":"","Message":"no space left on device","Handle":"","ProcessID":""} ; connection: process error: could not find the exitcode file for the process: stat /var/vcap/data/garden/depot/XXX/processes/XXX/exitcode: no such file or directory; connection: Lately, the above error has been persistently occurring on several apps running in the AppCloud. There is no