Search code examples
ibm-cloudcloud-foundrykibana-4elasticsearch-2.0

How to run Kibana 4.4.1 on IBM Bluemix PaaS


I am trying to run Kibana 4.4.1 on an IBM Bluemix PaaS as a nodejs application. In my implementation, i use cloudfoundry to connect to the PaaS cloud.

I was able to run Kibana 4.1.1 on PaaS using the following steps

> Download Kibana from here to your personal desktop:
> https://download.elastic.co/kibana/kibana/kibana-4.1.1-windows.zip
> Extract the files using WinZip and navigate to /src/config/index.js
> Modify the following line from:
> // Set defaults for config file stuff
> kibana.port = kibana.port || 5601;
> To the following:
> kibana.port = process.env.PORT || 5601;

> Once the change has been made save the file.

> Navigate to the folder /src/ and create a new file called manifest.yml. The contents of this file should be the following:

> ---
> applications:
>  - name: %name%
>    host: %name%
>    memory: %memory%
>    domain: xyz.hfhf.mybluemix.net
>    instances: 1
>    command: node ./bin/kibana.js
>    env:
>      NODE_ENV: production
>      CONFIG_PATH: ./config/kibana.yml

> This file will tell Blue Mix how to run this application once uploaded. The %name% should be the same as the application name within Blue Mix. For %memory% use an increment of 128M, 256M, 512M.

> Navigate to the folder /src/config/ and open the file kibana.yml. Add the following lines to the end of the file:

> bundled_plugin_ids:
>  - plugins/dashboard/index
>  - plugins/discover/index
>  - plugins/doc/index
>  - plugins/kibana/index
>  - plugins/markdown_vis/index
>  - plugins/metric_vis/index
>  - plugins/settings/index
>  - plugins/table_vis/index
>  - plugins/vis_types/index
>  - plugins/visualize/index

> In the same file we need to update the variable “elasticsearch_url” to point to the virtual machine’s IP:

> elasticsearch_url: "http://<Virtual Machine IP>:9200"

> Save the file when finished.

> Download the Cloud Foundary Command Line Interface (CF CLI) here:

> https://github.com/cloudfoundry/cli/releases

> Once CF CLI has been installed follow the steps from the webpage we need to connect to Blue Mix. Open up command prompt on your computer by navigating to Start -> Run and typing in “CMD”:

>  

> To connect to Blue Mix use the command “cf api https://api.ng.bluemix.net”:
>  

> Log in to Blue Mix “cf login –u user_name –o org_name –s space_name”:
>  

> User_name is your login for Blue Mix
> Org_name is the organization that will house the application(s)
> Space_name is the folder which the application will be stored

> To upload the application use the command cf push in the following syntax “cf push appname –m 512m”
>  

> When pushing the application make sure the directory is the /src/ folder of kibana.

but these steps dont work for Kibana 4.4.1 as the directory structure is completely different. I tried to push Kibana to PaaS by moving to the src folder and typing the cf push command, but it fails to upload.

Has anyone tried to do this?

Error Stacktrace

2016-03-15T11:36:38.12-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/character-parser
2016-03-15T11:36:38.12-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/clean-css
2016-03-15T11:36:38.12-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/clean-css/node_modules/commander/node_modules/graceful-readlink
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/clean-css/node_modules/source-map
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/clean-css/node_modules/source-map/node_modules/amdefine
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/commander
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/constantinople
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/constantinople/node_modules/acorn
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/jstransformer/node_modules/promise
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/transformers
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/transformers/node_modules/css/node_modules/css-parse
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/transformers/node_modules/uglify-js
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/transformers/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/transformers/node_modules/uglify-js/node_modules/optimist
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/transformers/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/async
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/source-map
2016-03-15T11:36:38.13-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/uglify-to-browserify
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/camelcase
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/kind-of
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/kind-of/node_modules/is-buffer
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/longest
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/align-text/node_modules/repeat-string
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/center-align/node_modules/lazy-cache
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/kind-of
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/kind-of/node_modules/is-buffer
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/longest
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/right-align/node_modules/align-text/node_modules/repeat-string
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/cliui/node_modules/wordwrap
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/decamelize
2016-03-15T11:36:38.14-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs/node_modules/window-size
2016-03-15T11:36:38.15-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/void-elements
2016-03-15T11:36:38.15-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/with
2016-03-15T11:36:38.15-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/with/node_modules/acorn
2016-03-15T11:36:38.15-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/with/node_modules/acorn-globals
2016-03-15T11:36:38.15-0400 [STG/0]      OUT        [email protected] /tmp/staged/app/node_modules/jade/node_modules/with/node_modules/acorn-globals/node_modules/acorn
2016-03-15T11:36:38.15-0400 [STG/0]      OUT        Installing any new modules (package.json)
2016-03-15T11:36:41.37-0400 [STG/0]      OUT -----> Installing App Management
2016-03-15T11:36:41.40-0400 [STG/0]      OUT        WARN: App Management cannot be installed because the start script cannot be found.
2016-03-15T11:36:41.40-0400 [STG/0]      OUT        To install App Management utilities, specify your 'node' start script in 'package.json' or 'Procfile'.
2016-03-15T11:36:41.40-0400 [STG/0]      OUT -----> Caching build
2016-03-15T11:36:41.42-0400 [STG/0]      OUT        Clearing previous node cache
2016-03-15T11:36:41.46-0400 [STG/0]      OUT        Saving 2 cacheDirectories (default):
2016-03-15T11:36:41.46-0400 [STG/0]      OUT        - node_modules
2016-03-15T11:36:44.28-0400 [STG/0]      OUT        - bower_components (nothing to cache)
2016-03-15T11:36:44.58-0400 [STG/0]      OUT -----> Build succeeded!
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @bigfunger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @spalger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @spalger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @spalger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @spalger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @spalger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @spalger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── @spalger/[email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.47-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] invalid extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.48-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.49-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.49-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.49-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.49-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.49-0400 [STG/0]      OUT        ├── [email protected] extraneous
2016-03-15T11:36:45.49-0400 [STG/0]      OUT        └── [email protected] extraneous
2016-03-15T11:36:45.55-0400 [STG/0]      ERR     
2016-03-15T11:36:54.58-0400 [STG/1]      OUT -----> Uploading droplet (36M)
2016-03-15T11:37:03.85-0400 [DEA/1]      OUT Starting app instance (index 0) with guid 6ca26e72-d314-4659-8968-1824d40924e9
2016-03-15T11:37:11.22-0400 [App/0]      ERR     npm ERR! Linux 3.19.0-33-generic
2016-03-15T11:37:11.22-0400 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
2016-03-15T11:37:11.22-0400 [App/0]      ERR npm ERR! node v4.3.2
2016-03-15T11:37:11.22-0400 [App/0]      ERR npm ERR! npm  v2.14.12
2016-03-15T11:37:11.22-0400 [App/0]      ERR npm ERR! missing script: start
2016-03-15T11:37:11.22-0400 [App/0]      ERR npm ERR! 
2016-03-15T11:37:11.22-0400 [App/0]      ERR npm ERR! If you need help, you may report this error at:
2016-03-15T11:37:11.22-0400 [App/0]      ERR npm ERR!     <https://github.com/npm/npm/issues>
2016-03-15T11:37:11.23-0400 [App/0]      ERR npm ERR! Please include the following file with any support request:
2016-03-15T11:37:11.23-0400 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
2016-03-15T11:37:11.24-0400 [App/0]      OUT     
2016-03-15T11:37:11.32-0400 [DEA/1]      ERR Instance (index 0) failed to start accepting connections
2016-03-15T11:37:11.34-0400 [API/0]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"b463e8b29e7a4bf08ba0c0dcc207bde6", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056231}
2016-03-15T11:37:11.34-0400 [API/1]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"b463e8b29e7a4bf08ba0c0dcc207bde6", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056231}
2016-03-15T11:38:07.72-0400 [DEA/4]      OUT Starting app instance (index 0) with guid 6ca26e72-d314-4659-8968-1824d40924e9
2016-03-15T11:38:14.10-0400 [App/0]      ERR     npm ERR! Linux 3.19.0-33-generic
2016-03-15T11:38:14.10-0400 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
2016-03-15T11:38:14.10-0400 [App/0]      ERR npm ERR! node v4.3.2
2016-03-15T11:38:14.10-0400 [App/0]      ERR npm ERR! npm  v2.14.12
2016-03-15T11:38:14.10-0400 [App/0]      ERR npm ERR! missing script: start
2016-03-15T11:38:14.10-0400 [App/0]      ERR npm ERR! 
2016-03-15T11:38:14.10-0400 [App/0]      ERR npm ERR! If you need help, you may report this error at:
2016-03-15T11:38:14.10-0400 [App/0]      ERR npm ERR!     <https://github.com/npm/npm/issues>
2016-03-15T11:38:14.11-0400 [App/0]      ERR npm ERR! Please include the following file with any support request:
2016-03-15T11:38:14.11-0400 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
2016-03-15T11:38:14.12-0400 [App/0]      OUT     
2016-03-15T11:38:14.19-0400 [DEA/4]      ERR Instance (index 0) failed to start accepting connections
2016-03-15T11:38:14.24-0400 [API/1]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"b20c768699f247b2a4db78fe18fa38ad", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056294}
2016-03-15T11:38:14.24-0400 [API/1]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"b20c768699f247b2a4db78fe18fa38ad", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056294}
2016-03-15T11:39:07.74-0400 [DEA/6]      OUT Starting app instance (index 0) with guid 6ca26e72-d314-4659-8968-1824d40924e9
2016-03-15T11:39:14.39-0400 [App/0]      ERR     npm ERR! Linux 3.19.0-33-generic
2016-03-15T11:39:14.39-0400 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
2016-03-15T11:39:14.39-0400 [App/0]      ERR npm ERR! node v4.3.2
2016-03-15T11:39:14.39-0400 [App/0]      ERR npm ERR! npm  v2.14.12
2016-03-15T11:39:14.39-0400 [App/0]      ERR npm ERR! missing script: start
2016-03-15T11:39:14.39-0400 [App/0]      ERR npm ERR! 
2016-03-15T11:39:14.39-0400 [App/0]      ERR npm ERR! If you need help, you may report this error at:
2016-03-15T11:39:14.39-0400 [App/0]      ERR npm ERR!     <https://github.com/npm/npm/issues>
2016-03-15T11:39:14.40-0400 [App/0]      ERR npm ERR! Please include the following file with any support request:
2016-03-15T11:39:14.40-0400 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
2016-03-15T11:39:14.41-0400 [App/0]      OUT     
2016-03-15T11:39:14.47-0400 [DEA/6]      ERR Instance (index 0) failed to start accepting connections
2016-03-15T11:39:14.49-0400 [API/1]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"3cd5385706044dd1afe215b2fe7a3185", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056354}
2016-03-15T11:39:14.49-0400 [API/0]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"3cd5385706044dd1afe215b2fe7a3185", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056354}
2016-03-15T11:40:07.72-0400 [DEA/0]      OUT Starting app instance (index 0) with guid 6ca26e72-d314-4659-8968-1824d40924e9
2016-03-15T11:40:13.34-0400 [App/0]      ERR     npm ERR! Linux 3.19.0-33-generic
2016-03-15T11:40:13.34-0400 [App/0]      ERR npm ERR! argv "/home/vcap/app/vendor/node/bin/node" "/home/vcap/app/vendor/node/bin/npm" "start"
2016-03-15T11:40:13.34-0400 [App/0]      ERR npm ERR! node v4.3.2
2016-03-15T11:40:13.35-0400 [App/0]      ERR npm ERR! npm  v2.14.12
2016-03-15T11:40:13.35-0400 [App/0]      ERR npm ERR! missing script: start
2016-03-15T11:40:13.35-0400 [App/0]      ERR npm ERR! 
2016-03-15T11:40:13.35-0400 [App/0]      ERR npm ERR! If you need help, you may report this error at:
2016-03-15T11:40:13.35-0400 [App/0]      ERR npm ERR!     <https://github.com/npm/npm/issues>
2016-03-15T11:40:13.36-0400 [App/0]      ERR npm ERR! Please include the following file with any support request:
2016-03-15T11:40:13.36-0400 [App/0]      ERR npm ERR!     /home/vcap/app/npm-debug.log
2016-03-15T11:40:13.37-0400 [App/0]      OUT     
2016-03-15T11:40:13.44-0400 [DEA/0]      ERR Instance (index 0) failed to start accepting connections
2016-03-15T11:40:13.45-0400 [API/1]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"e9ee582dd49c4a28bc2907afbc48c37b", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056413}
2016-03-15T11:40:13.45-0400 [API/1]      OUT App instance exited with guid 6ca26e72-d314-4659-8968-1824d40924e9 payload: {"cc_partition"=>"default", "droplet"=>"6ca26e72-d314-4659-8968-1824d40924e9", "version"=>"2bbb4be0-2d32-42ed-a45f-ae0e3faddf08", "instance"=>"e9ee582dd49c4a28bc2907afbc48c37b", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458056413}

Solution

  • finally figured it out. all you have to do is

    create manifest.yml next to package.json

    ---
    applications:
    - name: %name_of_app%
      memory: 512M
      host: %name_of_app%
      domain: %name_of_domain%
    

    create a Procfile next to package.json

    web: bin/kibana --port $PORT
    

    and we are done :)