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 character-parser#1.2.1 /tmp/staged/app/node_modules/jade/node_modules/character-parser
2016-03-15T11:36:38.12-0400 [STG/0] OUT clean-css#3.4.10 /tmp/staged/app/node_modules/jade/node_modules/clean-css
2016-03-15T11:36:38.12-0400 [STG/0] OUT graceful-readlink#1.0.1 /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 source-map#0.4.4 /tmp/staged/app/node_modules/jade/node_modules/clean-css/node_modules/source-map
2016-03-15T11:36:38.13-0400 [STG/0] OUT amdefine#1.0.0 /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 commander#2.6.0 /tmp/staged/app/node_modules/jade/node_modules/commander
2016-03-15T11:36:38.13-0400 [STG/0] OUT constantinople#3.0.2 /tmp/staged/app/node_modules/jade/node_modules/constantinople
2016-03-15T11:36:38.13-0400 [STG/0] OUT acorn#2.7.0 /tmp/staged/app/node_modules/jade/node_modules/constantinople/node_modules/acorn
2016-03-15T11:36:38.13-0400 [STG/0] OUT promise#6.1.0 /tmp/staged/app/node_modules/jade/node_modules/jstransformer/node_modules/promise
2016-03-15T11:36:38.13-0400 [STG/0] OUT transformers#2.1.0 /tmp/staged/app/node_modules/jade/node_modules/transformers
2016-03-15T11:36:38.13-0400 [STG/0] OUT css-parse#1.0.4 /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 uglify-js#2.2.5 /tmp/staged/app/node_modules/jade/node_modules/transformers/node_modules/uglify-js
2016-03-15T11:36:38.13-0400 [STG/0] OUT amdefine#1.0.0 /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 optimist#0.3.7 /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 wordwrap#0.0.3 /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 uglify-js#2.6.2 /tmp/staged/app/node_modules/jade/node_modules/uglify-js
2016-03-15T11:36:38.13-0400 [STG/0] OUT async#0.2.10 /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/async
2016-03-15T11:36:38.13-0400 [STG/0] OUT source-map#0.5.3 /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/source-map
2016-03-15T11:36:38.13-0400 [STG/0] OUT uglify-to-browserify#1.0.2 /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 yargs#3.10.0 /tmp/staged/app/node_modules/jade/node_modules/uglify-js/node_modules/yargs
2016-03-15T11:36:38.14-0400 [STG/0] OUT camelcase#1.2.1 /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 cliui#2.1.0 /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 center-align#0.1.3 /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 align-text#0.1.4 /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 kind-of#3.0.2 /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 is-buffer#1.1.3 /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 longest#1.0.1 /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 repeat-string#1.5.4 /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 lazy-cache#1.0.3 /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 right-align#0.1.3 /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 align-text#0.1.4 /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 kind-of#3.0.2 /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 is-buffer#1.1.3 /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 longest#1.0.1 /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 repeat-string#1.5.4 /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 wordwrap#0.0.2 /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 decamelize#1.2.0 /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 window-size#0.1.0 /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 void-elements#2.0.1 /tmp/staged/app/node_modules/jade/node_modules/void-elements
2016-03-15T11:36:38.15-0400 [STG/0] OUT with#4.0.3 /tmp/staged/app/node_modules/jade/node_modules/with
2016-03-15T11:36:38.15-0400 [STG/0] OUT acorn#1.2.2 /tmp/staged/app/node_modules/jade/node_modules/with/node_modules/acorn
2016-03-15T11:36:38.15-0400 [STG/0] OUT acorn-globals#1.0.9 /tmp/staged/app/node_modules/jade/node_modules/with/node_modules/acorn-globals
2016-03-15T11:36:38.15-0400 [STG/0] OUT acorn#2.7.0 /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/decompress-zip#0.2.0-stripfix2 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── #spalger/angular-bootstrap#0.12.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── #spalger/filesaver#1.1.2 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── #spalger/leaflet-draw#0.2.3 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── #spalger/leaflet-heat#0.1.3 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── #spalger/numeral#2.0.0 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── #spalger/test-subj-selector#0.2.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── #spalger/ui-ace#0.2.3 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── angular#1.4.7 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── angular-bootstrap-colorpicker#3.0.19 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── angular-elastic#2.5.0 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── angular-route#1.4.7 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── ansicolors#0.3.2 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── autoprefixer#5.1.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── autoprefixer-loader#2.0.0 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── babel#5.8.23 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── babel-core#5.8.23 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── babel-loader#5.3.2 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── babel-runtime#5.8.20 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── bluebird#2.9.34 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── boom#2.8.0 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── bootstrap#3.3.5 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── brace#0.5.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── bunyan#1.7.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── caniuse-db#1.0.30000265 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── chalk#1.1.0 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── clipboard#1.5.5 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── commander#2.8.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── css-loader#0.17.0 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── d3#3.5.6 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── elasticsearch#8.0.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── elasticsearch-browser#8.0.1 extraneous
2016-03-15T11:36:45.47-0400 [STG/0] OUT ├── expiry-js#0.1.7 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── exports-loader#0.6.2 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── expose-loader#0.7.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── extract-text-webpack-plugin#0.8.2 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── file-loader#0.8.4 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── font-awesome#4.4.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── glob#4.5.3 invalid extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── good#6.3.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── good-squeeze#2.1.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── gridster#0.5.6 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── hapi#8.8.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── har-validator#1.8.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── imports-loader#0.6.4 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── jade#1.11.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── jade-loader#0.7.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── joi#6.6.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── jquery#2.1.4 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── js-yaml#3.4.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── json-loader#0.5.3 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── json-stringify-safe#5.0.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── json5#0.4.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── jstimezonedetect#1.0.5 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── leaflet#0.7.5 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── less#2.5.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── less-loader#2.2.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── loader-utils#0.2.11 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── lodash#3.10.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── marked#0.3.3 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── micromatch#2.2.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── minimatch#2.0.10 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── mkdirp#0.5.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── moment#2.10.6 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── moment-timezone#0.4.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── postcss-minify-selectors#1.4.6 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── postcss-normalize-url#2.1.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── postcss-reduce-idents#1.0.2 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── postcss-single-charset#0.3.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── postcss-unique-selectors#1.0.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── raw-loader#0.5.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── regenerator#0.8.36 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── request#2.61.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── requirefrom#0.2.0 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── rimraf#2.4.3 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── rjs-repack-loader#1.0.6 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── script-loader#0.6.1 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── semver#4.3.6 extraneous
2016-03-15T11:36:45.48-0400 [STG/0] OUT ├── style-loader#0.12.3 extraneous
2016-03-15T11:36:45.49-0400 [STG/0] OUT ├── tar#2.2.0 extraneous
2016-03-15T11:36:45.49-0400 [STG/0] OUT ├── url-loader#0.5.6 extraneous
2016-03-15T11:36:45.49-0400 [STG/0] OUT ├── webpack#1.12.1 extraneous
2016-03-15T11:36:45.49-0400 [STG/0] OUT ├── webpack-directory-name-as-main#1.0.0 extraneous
2016-03-15T11:36:45.49-0400 [STG/0] OUT ├── whatwg-fetch#0.9.0 extraneous
2016-03-15T11:36:45.49-0400 [STG/0] OUT └── wreck#6.2.0 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}
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 :)
Related
I'm trying to use pre-commit 2.20.0 on Ubuntu 22.04.1 / Python 3.10.6.
I followed the instructions at https://pre-commit.com/#installation and installed pre-commit with pip (22.2.2).
Here's my .pre-commit-config.yaml file:
$ cat /home/username/Projects/web/app/.pre-commit-config.yaml
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pycqa/isort
rev: "5.10.1"
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: "22.8.0"
hooks:
- id: black
language_version: python3.10
But I face an error when committing a new file:
$ git commit -m "Update file."
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('python', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout:
Executable `python` not found
stderr: (none)
Check the log at /home/username/.cache/pre-commit/pre-commit.log
The same error occurs when using a virtual environment (virtualenv 20.16.5):
$ virtualenv venv
created virtual environment CPython3.10.6.final.0-64 in 170ms
creator CPython3Posix(dest=/home/username/Projects/web/app/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/username/.local/share/virtualenv)
added seed packages: pip==22.2.2, setuptools==65.3.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
$ git commit -m "Update file."
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('python', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout:
Executable `python` not found
stderr: (none)
Check the log at /home/username/.cache/pre-commit/pre-commit.log
Here's the full log:
$ cat /home/username/.cache/pre-commit/pre-commit.log
pre-commit version: 2.20.0
git --version: git version 2.34.1
sys.version:
3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]
sys.executable: /usr/bin/python3
os.name: posix
sys.platform: linux
### error information is the same as here above
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pre_commit/error_handler.py", line 73, in error_handler
yield
File "/usr/local/lib/python3.10/dist-packages/pre_commit/main.py", line 358, in main
return hook_impl(
File "/usr/local/lib/python3.10/dist-packages/pre_commit/commands/hook_impl.py", line 254, in hook_impl
return retv | run(config, store, ns)
File "/usr/local/lib/python3.10/dist-packages/pre_commit/commands/run.py", line 424, in run
install_hook_envs(to_install, store)
File "/usr/local/lib/python3.10/dist-packages/pre_commit/repository.py", line 223, in install_hook_envs
_hook_install(hook)
File "/usr/local/lib/python3.10/dist-packages/pre_commit/repository.py", line 79, in _hook_install
lang.install_environment(
File "/usr/local/lib/python3.10/dist-packages/pre_commit/languages/python.py", line 221, in install_environment
helpers.run_setup_cmd(prefix, install_cmd)
File "/usr/local/lib/python3.10/dist-packages/pre_commit/languages/helpers.py", line 48, in run_setup_cmd
cmd_output_b(*cmd, cwd=prefix.prefix_dir, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pre_commit/util.py", line 146, in cmd_output_b
raise CalledProcessError(returncode, cmd, retcode, stdout_b, stderr_b)
pre_commit.util.CalledProcessError: command: ('python', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout:
Executable `python` not found
stderr: (none)
Here is my venv/ folder structure:
$ tree -L 3 venv/
venv/
├── lib
│ └── python3.10
├── local
│ ├── bin
│ │ ├── activate
│ │ ├── activate.csh
│ │ ├── activate.fish
│ │ ├── activate.nu
│ │ ├── activate.ps1
│ │ ├── activate_this.py
│ │ ├── deactivate.nu
│ │ ├── pip
│ │ ├── pip3
│ │ ├── pip-3.10
│ │ ├── pip3.10
│ │ ├── python -> /usr/bin/python3
│ │ ├── python3 -> python
│ │ ├── python3.10 -> python
│ │ ├── wheel
│ │ ├── wheel3
│ │ ├── wheel-3.10
│ │ └── wheel3.10
│ └── lib
│ └── python3.10
└── pyvenv.cfg
6 directories, 19 files
...which may be the cause of the trouble as per https://github.com/pypa/virtualenv/issues/2350 but I can definitely not understand all the story.
More:
$ which python # empty result!
$ which python3
/usr/bin/python3
$ ls -l /usr/bin/python3
(...) /usr/bin/python3 -> python3.10
Did I miss something in the pre-commit installation?
How could I properly and simply (#basic user) fix this error, if possible?
I am using MV BlueFox3 camera on a RaspberryPi4 and I am trying to write a .bb recipe which is going to install the necessary software for the camera. A quick setup guide is on the manufacturer website, but I can not get the first part to work. So far, this is how my recipe looks:
SUMMARY = "Installs mvIMPACT Acquire base libraries"
DESCRIPTION = "This recipe installs mvIMPACT Acquire base libraries for all MATRIX VISION devices."
HOMEPAGE = "http://www.matrix-vision.de"
LICENSE_FLAGS = "EULA"
LICENSE_FLAGS_WHITELIST = "EULA"
LICENSE = "EULA"
LIC_FILES_CHKSUM = "file://${WORKDIR}/mvIMPACT_Acquire-ARM64-2.45.0/doc/EULA.txt;md5=f6f99507036166a5604b38e6df10f004"
PACKAGE_ARCH = "${MACHINE_ARCH}"
S = "${WORKDIR}"
SRC_URI = "file://mvGenTL_Acquire-ARM64_gnu-2.45.0.tgz"
TARGET = "arm64"
MVIA_SUBDIR = "opt/mvIMPACT_Acquire"
MVIA_LIB_SUBDIR = "lib"
TOOLKITS_LIB_SUBDIR = "Toolkits"
MV_DATA_DIR = "opt/mvIMPACT_Acquire/data"
do_install() {
# install mvIMPACT Acquire runtime binaries
install -m 0755 -d ${D}${base_prefix}/${MVIA_SUBDIR}/${MVIA_LIB_SUBDIR}
install -m 0755 -d ${D}${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}
install -m 0755 -d ${D}${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/FreeImage3160/bin/Release/FreeImage/${TARGET}
oe_soinstall ${S}/mvIMPACT_Acquire-ARM64-${PV}/lib/${TARGET}/libmvDeviceManager.so.${PV} ${D}${base_prefix}/${MVIA_SUBDIR}/${MVIA_LIB_SUBDIR}
oe_soinstall ${S}/mvIMPACT_Acquire-ARM64-${PV}/lib/${TARGET}/libmvPropHandling.so.${PV} ${D}${base_prefix}/${MVIA_SUBDIR}/${MVIA_LIB_SUBDIR}
oe_soinstall ${S}/mvIMPACT_Acquire-ARM64-${PV}/Toolkits/expat/bin/${TARGET}/lib/*.so.* ${D}${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}
install -m 0755 ${S}/mvIMPACT_Acquire-ARM64-${PV}/Toolkits/FreeImage3160/bin/Release/FreeImage/${TARGET}/*.so ${D}${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/FreeImage3160/bin/Release/FreeImage/${TARGET}
# set environment variables for mvIMPACT Acquire
install -m 0755 -d ${D}${sysconfdir}/profile.d
echo 'export MVIMPACT_ACQUIRE_DIR=/opt/mvIMPACT_Acquire' >> ${D}${sysconfdir}/profile.d/acquire.sh
echo 'export MVIMPACT_ACQUIRE_DATA_DIR=/opt/mvIMPACT_Acquire/data' >> ${D}${sysconfdir}/profile.d/acquire.sh
# set library search paths for the dynamic linker
install -m 0755 -d ${D}${sysconfdir}/ld.so.conf.d
echo '/opt/mvIMPACT_Acquire/lib' >> ${D}${sysconfdir}/ld.so.conf.d/acquire.conf
echo '/opt/mvIMPACT_Acquire/Toolkits' >> ${D}${sysconfdir}/ld.so.conf.d/acquire.conf
# set up logfiles
install -m 0755 -d ${D}${base_prefix}/${MV_DATA_DIR}/logs
install -m 0755 ${S}/mvIMPACT_Acquire-ARM64-${PV}/apps/mvDebugFlags.mvd ${D}${base_prefix}/${MV_DATA_DIR}/logs/
}
INHIBIT_PACKAGE_STRIP = "1"
INSANE_SKIP_${PN} += "dev-so \
already-stripped \
ldflags"
PACKAGES = "${PN} ${PN}-dev ${PN}-doc"
FILES_${PN} += "${base_prefix}/${MVIA_SUBDIR}/${MVIA_LIB_SUBDIR}/lib*.so.* \
${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/lib*.so.* \
${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/FreeImage3160/bin/Release/FreeImage/${TARGET}/lib*.so \
${sysconfdir}/profile.d/*.sh \
${sysconfdir}/ld.so.conf.d/*.conf"
FILES_${PN}-dev += "${base_prefix}/${MVIA_SUBDIR}/${MVIA_LIB_SUBDIR}/lib*.so \
${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/lib*.so"
FILES_${PN}-doc += "${base_prefix}/${MV_DATA_DIR}/logs"
but I am getting the following error:
NOTE: Executing Tasks
ERROR: mvimpact-acquire-base-2.45.0-r0 do_package: QA Issue: File '/opt/mvIMPACT_Acquire/Toolkits/FreeImage3160/bin/Release/FreeImage/arm64/libfreeimage-3.16.0.so' from mvimpact-acquire-base was already stripped, this will prevent future debugging! [already-stripped]
ERROR: mvimpact-acquire-base-2.45.0-r0 do_package: QA Issue: File '/opt/mvIMPACT_Acquire/Toolkits/libexpat.so.1.6.0' from mvimpact-acquire-base was already stripped, this will prevent future debugging! [already-stripped]
ERROR: mvimpact-acquire-base-2.45.0-r0 do_package: QA Issue: File '/opt/mvIMPACT_Acquire/lib/libmvDeviceManager.so.2.45.0' from mvimpact-acquire-base was already stripped, this will prevent future debugging! [already-stripped]
ERROR: mvimpact-acquire-base-2.45.0-r0 do_package: QA Issue: File '/opt/mvIMPACT_Acquire/lib/libmvPropHandling.so.2.45.0' from mvimpact-acquire-base was already stripped, this will prevent future debugging! [already-stripped]
ERROR: mvimpact-acquire-base-2.45.0-r0 do_package: QA Issue: mvimpact-acquire-base: Files/directories were installed but not shipped in any package:
/opt
/opt/mvIMPACT_Acquire
/opt/mvIMPACT_Acquire/Toolkits
/opt/mvIMPACT_Acquire/lib
/opt/mvIMPACT_Acquire/data
/opt/mvIMPACT_Acquire/Toolkits/libexpat.so
/opt/mvIMPACT_Acquire/Toolkits/libexpat.so.1.6.0
/opt/mvIMPACT_Acquire/Toolkits/libexpat.so.1
/opt/mvIMPACT_Acquire/Toolkits/FreeImage3160
/opt/mvIMPACT_Acquire/Toolkits/FreeImage3160/bin
/opt/mvIMPACT_Acquire/Toolkits/FreeImage3160/bin/Release
/opt/mvIMPACT_Acquire/Toolkits/FreeImage3160/bin/Release/FreeImage
/opt/mvIMPACT_Acquire/Toolkits/FreeImage3160/bin/Release/FreeImage/arm64
/opt/mvIMPACT_Acquire/Toolkits/FreeImage3160/bin/Release/FreeImage/arm64/libfreeimage-3.16.0.so
/opt/mvIMPACT_Acquire/lib/libmvPropHandling.so
/opt/mvIMPACT_Acquire/lib/libmvDeviceManager.so.2.45.0
/opt/mvIMPACT_Acquire/lib/libmvDeviceManager.so.2
/opt/mvIMPACT_Acquire/lib/libmvDeviceManager.so
/opt/mvIMPACT_Acquire/lib/libmvPropHandling.so.2.45.0
/opt/mvIMPACT_Acquire/lib/libmvPropHandling.so.2
/opt/mvIMPACT_Acquire/data/logs
/opt/mvIMPACT_Acquire/data/logs/mvDebugFlags.mvd
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
mvimpact-acquire-base: 22 installed and not shipped files. [installed-vs-shipped]
ERROR: mvimpact-acquire-base-2.45.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/stefan/Projects/raspberrypiOS/build/tmp/work/raspberrypi4_64-poky-linux/mvimpact-acquire-base/2.45.0-r0/temp/log.do_package.2280592
ERROR: Task (/home/stefan/Projects/raspberrypiOS/meta-mvimpact-acquire/recipes-mvimpactacquire/mvimpact-acquire/mvimpact-acquire-base_2.45.0.bb:do_package) failed with exit code '1'
I am guessing that I should change the FILES variable to ensure proper package splitting but I do not know how. I have tried adding the directories and files from the error message, but no matter what I do, the error message seems to be the same (22 packages).
In the workdir, the image and package folders seem to be identical, and the package-split folder contains mvimpact-acquire-base (with only the /etc folder inside, but no /opt), while the mvimpact-acquire-base-dev, mvimpact-acquire-base-doc, mvimpact-acquire-base-src folders are all empty.
Can anyone help me understand this problem better or suggest a potential solution regarding the FILES variable and the error message.
I think the other error messages about stripping are not at issue here, but if you can share additional info it would be great.
Below are the contents of some WORKDIR(/work/raspberrypi4_64-poky-linux/mvimpact-acquire-base/2.45.0-r0) subdirectories.
image/
├── etc
│ ├── ld.so.conf.d
│ │ └── acquire.conf
│ └── profile.d
│ └── acquire.sh
└── opt
└── mvIMPACT_Acquire
├── data
│ └── logs
│ └── mvDebugFlags.mvd
├── lib
│ ├── libmvDeviceManager.so -> libmvDeviceManager.so.2.45.0
│ ├── libmvDeviceManager.so.2 -> libmvDeviceManager.so.2.45.0
│ ├── libmvDeviceManager.so.2.45.0
│ ├── libmvPropHandling.so -> libmvPropHandling.so.2.45.0
│ ├── libmvPropHandling.so.2 -> libmvPropHandling.so.2.45.0
│ └── libmvPropHandling.so.2.45.0
└── Toolkits
├── FreeImage3160
│ └── bin
│ └── Release
│ └── FreeImage
│ └── arm64
│ └── libfreeimage-3.16.0.so
├── libexpat.so -> libexpat.so.1.6.0
├── libexpat.so.1 -> libexpat.so.1.6.0
└── libexpat.so.1.6.0
14 directories, 13 files
package/
├── etc
│ ├── ld.so.conf.d
│ │ └── acquire.conf
│ └── profile.d
│ └── acquire.sh
└── opt
└── mvIMPACT_Acquire
├── data
│ └── logs
│ └── mvDebugFlags.mvd
├── lib
│ ├── libmvDeviceManager.so -> libmvDeviceManager.so.2.45.0
│ ├── libmvDeviceManager.so.2 -> libmvDeviceManager.so.2.45.0
│ ├── libmvDeviceManager.so.2.45.0
│ ├── libmvPropHandling.so -> libmvPropHandling.so.2.45.0
│ ├── libmvPropHandling.so.2 -> libmvPropHandling.so.2.45.0
│ └── libmvPropHandling.so.2.45.0
└── Toolkits
├── FreeImage3160
│ └── bin
│ └── Release
│ └── FreeImage
│ └── arm64
│ └── libfreeimage-3.16.0.so
├── libexpat.so -> libexpat.so.1.6.0
├── libexpat.so.1 -> libexpat.so.1.6.0
└── libexpat.so.1.6.0
14 directories, 13 files
packages-split/
├── mvimpact-acquire-base
│ └── etc
│ ├── ld.so.conf.d
│ │ └── acquire.conf
│ └── profile.d
│ └── acquire.sh
├── mvimpact-acquire-base-dev
├── mvimpact-acquire-base-doc
└── mvimpact-acquire-base-src
7 directories, 2 files
The issue was new BitBake syntax. I changed the following lines:
INSANE_SKIP_${PN} += "dev-so
FILES_${PN} += "${base_prefix}/${MVIA_SUBDIR}/${MVIA_LIB_SUBDIR}/lib*.so.* \
${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/lib*.so.* \
${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/FreeImage3160/bin/Release/FreeImage/${TARGET}/lib*.so \
${sysconfdir}/profile.d/*.sh \
${sysconfdir}/ld.so.conf.d/*.conf"
to
INSANE_SKIP:${PN} += "dev-so
FILES:${PN} += "${base_prefix}/${MVIA_SUBDIR}/${MVIA_LIB_SUBDIR}/lib*.so.* \
${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/lib*.so.* \
${base_prefix}/${MVIA_SUBDIR}/${TOOLKITS_LIB_SUBDIR}/FreeImage3160/bin/Release/FreeImage/${TARGET}/lib*.so \
${sysconfdir}/profile.d/*.sh \
${sysconfdir}/ld.so.conf.d/*.conf"
So basically, instead of underscores it now uses colons.
I'm following this tutorial:
https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-hello.html
My bitbake version is 1.50.0 and BBPATH is following:
export BBPATH="/home/testusr/projects/bitbake_example/bitbake_sample_project/hello"
and I'm at the last step of the tutorial with following file structure:
/home/testusr/projects/bitbake_example/bitbake_sample_project $ tree
.
├── hello
│ ├── classes
│ │ └── base.bbclass
│ └── conf
│ ├── bblayers.conf
│ └── bitbake.conf
└── mylayer
├── conf
│ └── layer.conf
└── printhello.bb
The problem is when I try to build that:
/home/testusr/projects/bitbake_example/bitbake_sample_project/hello $ bitbake printhello
WARNING: Layer mylayer should set LAYERSERIES_COMPAT_mylayer in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
WARNING: No bb files in default matched BBFILE_PATTERN_mylayer '^\/home\/testusr\/projects\/bitbake_example\/bitbake_sample_project\/mylayer/'
ERROR: Nothing PROVIDES 'printhello'
The warning is saying that there are no bb files under:
/home/testusr/projects/bitbake_example/bitbake_sample_project/mylayer/
but this file is clearly there as can be seen in tree output, so I'm totally confused.
The problem was with the tutorial in layer.conf file. It had:
BBFILES += "${LAYERDIR}/\*.bb"
Instead of:
BBFILES += "${LAYERDIR}/*.bb"
and that's why it couldn't be found.
Play Version
PlayScala#2.7.2
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (Zulu 8.38.0.13-CA-linux64) (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (Zulu 8.38.0.13-CA-linux64) (build 25.212-b04, mixed mode)
Expected Behavior
make your sbt project as 'root'
add sub-project as 'buildA'
add sub-project as 'appA'
buildA include a appA.routes
-> Yay, you can create some builds in one root project !!
Actual Behavior
My child-project (buildA) can NOT load grand-chid-project(appA)' s routing.
$ tree -L 2
.
├── build.sbt
├── build-app
│ ├── app
│ ├── build.sbt
│ ├── conf
│ │ ├── application.conf
│ │ ├── logback.xml
│ │ └── routes
├── core
│ ├── app
│ ├── build.sbt
│ ├── conf
│ │ └── core.routes
│ ├── src
├── project
├── plugins.sbt
build.sbt
lazy val buildApp = project.in(file("build-app"))
lazy val root = project.in(file("."))
build-app/build.sbt
lazy val core = project.in(file("../core")).enablePlugins(PlayScala)
lazy val buildApp = (project in file("."))
.enablePlugins(PlayScala)
.dependsOn(core)
build-app/conf/routes
GET / controllers.app.HomeController.index
-> /core core.Routes
core/conf/core.routes
GET / controllers.core.HomeController.index
$ sbt "project buildApp" compile
[error] /home/sizer/go/src/github.com/sizer/hello-sbt-multiproject/build-app/conf/routes:3:1: not found: value core
[error] -> /core core.Routes
Can NOT load core.routes :sob:
Am I Wrong or Is it correct behaviour??
my project is below.
https://github.com/sizer/hello-sbt-multiproject/tree/playframework_failedExample
I've managed to get cucumber-scala up and running on a Play/Scala. Now I want to run the entire play application so that I can use something like Selenium to test my application.
My Current attempts have lead me to
val app = new FakeApplication()
val port = 3333
lazy val browser: TestBrowser = TestBrowser.of(webDriverClass, Some("http://localhost:" + port))
lazy val server = TestServer(port, app)
Of course this FakeApplication() is not configured in any way... Am I approaching this incorrectly? This application is also multi-module and Ideally I would like to have the feature tests run per module (see output from tree below)
├── README.md
├── build.sbt
├── conf
│ ├── application.conf
│ └── routes
├── logs
│ └── application.log
├── modules
│ ├── module1
│ │ ├── app
│ │ ├── conf
│ │ ├── target
│ │ └── test
│ └── module2
│ ├── app
│ ├── conf
│ └── target
└── project
├── build.properties
├── plugins.sbt
├── project
│ └── target
└── target
├── config-classes
├── resolution-cache
├── scala-2.10
└── streams
I am aware that Play has a selenium integration which can be used to drive my tests. However I have a business requirement for feature files, as they are used as a reporting mechanism. I am not absolutely tied to Cucumber so if anyone is aware of a way of driving browser based tests using Feature files that would also be acceptable to me?
Thanks,
Ben
Update:
I was running through IntelliJ, which causes a server to run with no routes or anything provided. I assume this is because it runs with a default blank application.
However When running through sbt test I get the following output:
Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error in custom provider, Configuration error: Configuration error[Router not found: admin.Routes]
while locating play.api.inject.guice.FakeRouterProvider
while locating play.api.routing.Router
for parameter 0 at play.api.http.JavaCompatibleHttpRequestHandler.<init>(HttpRequestHandler.scala:200)
while locating play.api.http.JavaCompatibleHttpRequestHandler
while locating play.api.http.HttpRequestHandler
for parameter 4 at play.api.DefaultApplication.<init>(Application.scala:221)
at play.api.DefaultApplication.class(Application.scala:221)
while locating play.api.DefaultApplication
while locating play.api.Application
If you're using the default configuration settings for IntegrationTest in sbt, and ScalaTestPlusPlay, here are the directories to use:
src/it/scala – scala IT code
src/it/java – java IT code
src/it/resources – resources, including configuration
Place your application.conf and routes files in the resources directory and FakeApplication will pick it up. You can also set the paths in your sbt script to some other place.
If all of your development/integration testing machines are Unix-like and you use git for VC, you can use a relative symlink1 to your real routes file.
For Windows or other VCS's, you'll likely have to copy the routes file and do double maintenance.
1 symlink using a relative path to the original, e.g., ../../../conf/routes.