My Application Environment
cf env cfrocketchat
Getting env variables for app cfrocketchat in org [email protected] / space testchat as [email protected]...
OK
System-Provided:
{
"VCAP_SERVICES": {
"mongodb-2.4": [
{
"credentials": {
"db": "db",
"host": "50.23.230.136",
"hostname": "50.23.230.136",
"name": "6454ca24-aa2b-484d-b6a7-1cfad16284d0",
"password": "7d89f59d-1d15-472a-9802-8ce0e4e45948",
"port": 10129,
"url": "mongodb://4f070b0a-10e9-43c9-aeba-49c5e6b40374:[email protected]:10129/db",
"username": "4f070b0a-10e9-43c9-aeba-49c5e6b40374"
},
"label": "mongodb-2.4",
"name": "cfrocket-mongo",
"plan": "100",
"tags": [
"nosql",
"document",
"mongodb",
"data_management",
"ibm_experimental"
]
}
]
}
}
{
"VCAP_APPLICATION": {
"application_id": "dcae7231-5e89-4cd5-9aae-c3574ac10168",
"application_name": "cfrocketchat",
"application_uris": [
"cfrocketchat.mybluemix.net"
],
"application_version": "93a8d9f7-2fdd-4c1c-904d-189ab4ca07e7",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 512
},
"name": "cfrocketchat",
"space_id": "090bbc56-69fc-4842-aa62-6783f89bdb2d",
"space_name": "testchat",
"uris": [
"cfrocketchat.mybluemix.net"
],
"users": null,
"version": "93a8d9f7-2fdd-4c1c-904d-189ab4ca07e7"
}
}
User-Provided:
MONGO_URL: mongodb://4f070b0a-10e9-43c9-aeba-49c5e6b40374:[email protected]:10129/db
ROOT_URL: https://cfrocketchat.mybluemix.net/
Running Environment Variable Groups:
BLUEMIX_REGION: ibm:yp:us-south
Staging Environment Variable Groups:
BLUEMIX_REGION: ibm:yp:us-south
Pushing the Application
cf push cfrocketchat -m 512M -b https://github.com/ind1go/bluemix-buildpack-meteor.git
Crashes Like
-----> Downloaded app package (5.4M)
-----> Downloaded app buildpack cache (456K)
Cloning into '/tmp/buildpacks/bluemix-buildpack-meteor'...
No version of Node.js specified in nodeversion, using '0.10.*'
-----> Resolving engine versions
Using Node.js version: 0.10.44
-----> Fetching Node.js binaries
- downloading and extracting node from http://nodejs.org/dist/v0.10.44/node-v0.10.44-linux-x64.tar.gz
Installing meteor
################################################################## 100.0%
Downloading Meteor distribution
################################################################## 100.0%
Meteor 1.3.2.4 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.
This may prompt for your password.
sudo: no tty present and no askpass program specified
Couldn't write the launcher script. Please either:
(1) Run the following as root:
cp "/tmp/node-meteor-dpXW/.meteor/packages/meteor-tool/1.3.2_4/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
(2) Add "$HOME/.meteor" to your path, or
(3) Rerun this command to try again.
Then to get started, take a look at 'meteor --help' or see the docs at
docs.meteor.com.
Meteor installed
Ignoring build of mobile platforms
Building meteor bundle
/tmp/node-meteor-dpXW/.meteor/packages/meteor-tool/.1.3.2_4.10vjklo++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:116
throw error;
^
Error: ENOSPC, open '/tmp/node-meteor-dpXW/.meteor/packages/meteor-tool/.build125293..1.1.10.eiagoy++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/tests/organizations.js'
Installing meteor bundle
/tmp/buildpacks/bluemix-buildpack-meteor/bin/compile: line 127: cd: /tmp/staged/app/.meteor/meteor_build/app/bundle/programs/server: No such file or directory
Staging failed: Buildpack compilation step failed
FAILED
BuildpackCompileFailed
cf logs of my application
cf logs cfrocketchat --recent
Connected, dumping recent logs for app cfrocketchat in org [email protected] / space testchat as [email protected]...
2016-04-29T08:07:44.99+0900 [API/2] OUT Updated app with guid dcae7231-5e89-4cd5-9aae-c3574ac10168 ({"state"=>"STOPPED"})
2016-04-29T08:07:59.37+0900 [DEA/52] OUT Got staging request for app with id dcae7231-5e89-4cd5-9aae-c3574ac10168
2016-04-29T08:08:06.96+0900 [API/1] OUT Updated app with guid dcae7231-5e89-4cd5-9aae-c3574ac10168 ({"state"=>"STARTED"})
2016-04-29T08:08:07.59+0900 [STG/52] OUT -----> Downloaded app package (5.4M)
2016-04-29T08:08:07.82+0900 [STG/52] OUT -----> Downloaded app buildpack cache (456K)
2016-04-29T08:08:08.40+0900 [STG/0] ERR Cloning into '/tmp/buildpacks/bluemix-buildpack-meteor'...
2016-04-29T08:08:09.32+0900 [STG/0] OUT -----> Resolving engine versions
2016-04-29T08:08:09.33+0900 [STG/0] OUT No version of Node.js specified in nodeversion, using '0.10.*'
2016-04-29T08:08:09.79+0900 [STG/0] OUT Using Node.js version: 0.10.44
2016-04-29T08:08:09.81+0900 [STG/0] OUT -----> Fetching Node.js binaries
2016-04-29T08:08:09.82+0900 [STG/0] OUT - downloading and extracting node from http://nodejs.org/dist/v0.10.44/node-v0.10.44-linux-x64.tar.gz
2016-04-29T08:08:10.70+0900 [STG/0] OUT Installing meteor
################################################################## 100.0%
2016-04-29T08:08:10.94+0900 [STG/0] ERR Downloading Meteor distribution
################################################################## 100.0%
2016-04-29T08:08:54.05+0900 [STG/0] ERR Meteor 1.3.2.4 has been installed in your home directory (~/.meteor).
2016-04-29T08:08:54.05+0900 [STG/0] ERR Writing a launcher script to /usr/local/bin/meteor for your convenience.
2016-04-29T08:08:54.05+0900 [STG/0] ERR This may prompt for your password.
2016-04-29T08:08:54.07+0900 [STG/0] ERR sudo: no tty present and no askpass program specified
2016-04-29T08:08:54.07+0900 [STG/0] ERR Couldn't write the launcher script. Please either:
2016-04-29T08:08:54.07+0900 [STG/0] ERR (1) Run the following as root:
2016-04-29T08:08:54.07+0900 [STG/0] ERR cp "/tmp/node-meteor-dpXW/.meteor/packages/meteor-tool/1.3.2_4/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
2016-04-29T08:08:54.07+0900 [STG/0] ERR (2) Add "$HOME/.meteor" to your path, or
2016-04-29T08:08:54.07+0900 [STG/0] ERR (3) Rerun this command to try again.
2016-04-29T08:08:54.07+0900 [STG/0] ERR Then to get started, take a look at 'meteor --help' or see the docs at
2016-04-29T08:08:54.07+0900 [STG/0] ERR docs.meteor.com.
2016-04-29T08:08:54.08+0900 [STG/0] OUT Meteor installed
2016-04-29T08:08:54.08+0900 [STG/0] OUT Ignoring build of mobile platforms
2016-04-29T08:08:54.09+0900 [STG/0] OUT Building meteor bundle
2016-04-29T08:11:44.54+0900 [STG/0] OUT /tmp/node-meteor-dpXW/.meteor/packages/meteor-tool/.1.3.2_4.10vjklo++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:116
2016-04-29T08:11:44.54+0900 [STG/0] OUT throw error;
2016-04-29T08:11:44.54+0900 [STG/0] OUT ^
2016-04-29T08:11:44.54+0900 [STG/0] OUT Error: ENOSPC, open '/tmp/node-meteor-dpXW/.meteor/packages/meteor-tool/.build125293..1.1.10.eiagoy++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/tests/organizations.js'
2016-04-29T08:11:44.63+0900 [STG/0] OUT Installing meteor bundle
2016-04-29T08:11:44.63+0900 [STG/0] ERR /tmp/buildpacks/bluemix-buildpack-meteor/bin/compile: line 127: cd: /tmp/staged/app/.meteor/meteor_build/app/bundle/programs/server: No such file or directory
2016-04-29T08:11:44.64+0900 [STG/0] OUT Staging failed: Buildpack compilation step failed
2016-04-29T08:11:44.90+0900 [API/1] ERR encountered error: App staging failed in the buildpack compile phase