cloudfoundry

AppFog error when updating

点点圈 提交于 2019-12-12 19:53:10
问题 I always get this error when I'm updating my files in my appfog cloud hosting. Uploading Application: Checking for available resources: OK Packing application: OK Uploading (7K): OK Push Status: OK Stopping Application 'volkova': OK Staging Application 'volkova': OK Starting Application 'volkova': . Error: Application [volkova] failed to start, logs information below. ====> /logs/stderr.log <==== ./startup: line 3: /opt/cloudfoundry/runtimes/nodejs-v0.6.17/bin/node: Permission denied What is

Database connection refused with Symfony / PHP

*爱你&永不变心* 提交于 2019-12-12 19:50:46
问题 Trying to deploy a Symfony 3.2/Doctrine application to Swisscom PaaS. Buildpack (PHP 7, httpd etc.) are installed, composer is running and installing dependencies, but when calling the composer after-commands, like cache:clear I get an: [Doctrine\DBAL\Exception\ConnectionException] An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused my manifest.yml : applications: - services: - dbservice buildpack: php_buildpack host: myapp name: MyApp instances: 1 memory: 640M env:

Bluemix API to retrieve the service credentials

南楼画角 提交于 2019-12-12 19:06:28
问题 In a previous question, I can get the apiKey for interacting with the MessageHub management api. I'm not binding to this service to a Bluemix application, so I don't have access to the VCAP_SERVICES environment variable in my application. I would like to retreive the service credentials programatically. I think this may be a generic Bluemix cf api question rather than a MessageHub question. How can I retrieve the service credentials using an API call? 回答1: Sadly because BlueMix runs a version

cannot connect to TCP server on CloudFoundry (localhost node.js works fine)

我与影子孤独终老i 提交于 2019-12-12 18:13:52
问题 I have trouble connecting to my TCP server example running on CloudFoundry. When running my app.js file on a local node.js installation, it works just fine. Specifically, when I run the CloudFoundry by using vmc push, the service starts and does not crash. Some IP connects to it, disconnects and as far as I can tell, the service keeps running. I just cannot connect to it using using neither "telnet" nor "nc" (note both of these work fine when directed towards the localhost node.js server.

How to run Selenium-Grid on CloudFoundry?

懵懂的女人 提交于 2019-12-12 13:24:13
问题 Did anyone run Selenium-Grid on CloudFoundry with routing provided by Gorouter? According to the "Selenium-Grid Documentation" we can pass the hub address to a node instance like that: java -jar selenium-server-standalone.jar \ -role node \ -hub http://myhub.cf/grid/register but this node registers yourself with the local address and port. 回答1: I have already found a solution to my problem (Selenium v3.14.0). Local test based on selenium-server-standalone Hub java -Xmx640M -jar selenium

How can I see my VCAP_SERVICES environment variable with the cf program?

自闭症网瘾萝莉.ら 提交于 2019-12-12 13:12:24
问题 When I run cf env <app-name> it shows all the environment variables I've set with cf set-env , but I don't see the VCAP_SERVICES environment variable. How can I see that variable's value? 回答1: As of version 6.10 of the cf program, the VCAP_SERVICES environment will now be displayed with the other environment variables, with the command cf env <app-name> . To upgrade your cf program, download the appropriate version on the releases page: https://github.com/cloudfoundry/cli/releases 回答2: cf env

cloudfoundry: use an older buildpack version

为君一笑 提交于 2019-12-12 10:56:38
问题 Cloundfoundry recently updated its Java buildpack to version 2.5 (including java 8 and tomcat 8). I still would like to use version 2.4 since my app hasn't been upgraded to java 8 yet. What is the easiest way to do so? I can push the app using cf push app -b https://github.com/cloudfoundry/java-buildpack but how can I specify to use release 2.4 (https://github.com/cloudfoundry/java-buildpack/releases/tag/v2.4)? Apparently specifying the tag URL instead doesn't work. 回答1: To specify a branch

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

一曲冷凌霜 提交于 2019-12-12 05:25:30
问题 I see an issue just like this from a few years ago, but I am facing the same problem. I am using cf version 6.27.0+d26b32dcc.2017-06-08 and bx version 0.5.4+ae22935-2017-05-18T06:24:28+00:00 When I issue bx app logs <myappname> , I get this error Loggregator endpoint missing from config file If I issue cf logs <myappname> , it works like a charm. Can anyone provide guidance on this? thank you 回答1: bx app logs is using embedded cf cli, while that embedded version cf cli is too old. A

Downloading code from Ibm bluemix using cloud foundry?

穿精又带淫゛_ 提交于 2019-12-12 05:05:04
问题 Hi guys my computer just died and I have lost all my files, Now I was using IBM Bluemix to make a node js application so all my files are on the IBM Bluemix space but I somehow can't seem to download my files that are there. It lets you download starter code but it doesn't let you download any recent pushes using cloud foundry. I'm really stuck at this any help will be useful. 回答1: Since it's a node.js application, you could also use the Bluemix file viewer to access the files directly from

How to create a CUPS service for mongoDB?

独自空忆成欢 提交于 2019-12-12 04:31:38
问题 I am currently using a local database. Using a terminal to access mongodb. These are all the credentials I have. In my application properties when I provide the following data I am able to retrieve and store data. spring.data.mongodb.database=myNewDB spring.data.mongodb.host=localhost spring.data.mongodb.port=27017 I am trying to use cloud foundry CUPS to connect mongodb with URI. But following the URI guide line I am missing username and password. Where can I find those values? All my data