rapp-project / rapp-platform

RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
Other
28 stars 20 forks source link

grunt and init-hop #207

Closed alexge233 closed 8 years ago

alexge233 commented 8 years ago

Is there a new dependency using grunt to launch hop? My copy of the RAPP VM has replaced

rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_scripts/deploy/deploy_hop_services.sh

with

rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_scripts/deploy/deploy_web_services.sh

When I try to execute it I get errors about grunt not being installed.

etsardou commented 8 years ago

True, as of v0.5.5 the web scripts have a dependency on grunt. Please execute these two commands:

https://github.com/rapp-project/rapp-platform/blob/master/rapp_scripts/setup/3_auxiliary_packages_setup.sh#L43

@klpanagi can elaborate on the dependency.

klpanagi commented 8 years ago

rapp_web_services has a dependency on Grunt.js since v0.5.5. In order to use Grunt.js for task management, you will first need to install, system-wide, grunt-commandline-interface:

$ sudo npm install -g grunt-cli

or just execute the script @etsardou mentioned.

alexge233 commented 8 years ago

At which port does grunt deploy HOP? I installed grunt, and setup the env variables, and I get no output from the script or from HOP. Is this the defined behaviour? Port 9001 is not open btw. No errrors or stdout at all was given when running the script.

alexge233 commented 8 years ago

Also, looking into the script I realise it does:

WEB_SERVICES_PATH=$HOME/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/                                    
cd  $WEB_SERVICES_PATH                                                                                                                
grunt --verbose init-hop 

I took a peek into Gruntfile.js to see why HOP doesn't load.

grunt.registerTask('init-hop', ['shell:init_hop']);

Which is the last line and the command in the script appears to silently fail. In nmap, there is no HOP port, in netstat there's no HOP listening, and in ps -ef theres no grunt, hop or init-hop running.

klpanagi commented 8 years ago

This is really strange. I tried to reproduce this error with no success.

Please follow these steps and report the output:

$ cd ~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform
$ git checkout origin/master --track
$ git fetch && git reset --hard origin/master
$ git checkout -- .
$ cd ~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services
$ make clean
$ npm install
$ grunt init-hop

If the aforementioned grunt task fails for any reason, please execute the run.sh script, directly:

$ ./run.sh

Please report back the output of the above commands.

alexge233 commented 8 years ago

@klpanagi I did exactly what you described above:

- cd rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform] (master *)
- git checkout origin/master --track
fatal: A branch named 'master' already exists.
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform] (master *)
- git fetch && git reset --hard origin/master
HEAD is now at dcf0daa fixes #202
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform] (master)
- git checkout -- .
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform] (master)
- cd rapp_web_services/
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services] (master)
- make clean
rm -rf doc/
rm -rf node_modules
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services] (master)
- npm install
npm WARN package.json @ No repository field.
npm http GET https://registry.npmjs.org/grunt-contrib-watch
npm http GET https://registry.npmjs.org/grunt-contrib-nodeunit
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/grunt-shell
npm http GET https://registry.npmjs.org/ink-docstrap
npm http GET https://registry.npmjs.org/grunt-jsdoc
npm http 304 https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/grunt-shell
npm http 304 https://registry.npmjs.org/ink-docstrap
npm http 200 https://registry.npmjs.org/grunt-contrib-watch
npm http 304 https://registry.npmjs.org/grunt-jsdoc
npm http GET https://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-0.6.1.tgz
npm http 200 https://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-0.6.1.tgz
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-0.10.0.tgz
npm http 200 https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-0.10.0.tgz
npm http 200 https://registry.npmjs.org/grunt-contrib-nodeunit
npm http GET https://registry.npmjs.org/grunt-contrib-nodeunit/-/grunt-contrib-nodeunit-0.4.1.tgz
npm http 200 https://registry.npmjs.org/grunt-contrib-nodeunit/-/grunt-contrib-nodeunit-0.4.1.tgz
npm http GET https://registry.npmjs.org/nodeunit
npm http GET https://registry.npmjs.org/hooker
npm http GET https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/gaze
npm http GET https://registry.npmjs.org/tiny-lr-fork/0.0.5
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/jsdoc
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http 304 https://registry.npmjs.org/hooker
npm http GET https://registry.npmjs.org/eventemitter2
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/rimraf
npm http 200 https://registry.npmjs.org/tiny-lr-fork/0.0.5
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/js-yaml
npm http GET https://registry.npmjs.org/getobject
npm http GET https://registry.npmjs.org/grunt-legacy-util
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/grunt-legacy-log
npm http GET https://registry.npmjs.org/exit
npm http GET https://registry.npmjs.org/jshint/-/jshint-2.5.11.tgz
npm http GET https://registry.npmjs.org/tiny-lr-fork/-/tiny-lr-fork-0.0.5.tgz
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/jsdoc
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http 200 https://registry.npmjs.org/gaze
npm http GET https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz
npm http 200 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/has-ansi
npm http GET https://registry.npmjs.org/strip-ansi
npm http GET https://registry.npmjs.org/supports-color
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/escape-string-regexp
npm http 200 https://registry.npmjs.org/tiny-lr-fork/-/tiny-lr-fork-0.0.5.tgz
npm http 304 https://registry.npmjs.org/js-yaml
npm http 304 https://registry.npmjs.org/getobject
npm http 200 https://registry.npmjs.org/jshint/-/jshint-2.5.11.tgz
npm http 304 https://registry.npmjs.org/underscore.string
npm http 200 https://registry.npmjs.org/nodeunit
npm http 304 https://registry.npmjs.org/grunt-legacy-util
npm http 304 https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/nodeunit/-/nodeunit-0.9.1.tgz
npm http 304 https://registry.npmjs.org/grunt-legacy-log
npm http 304 https://registry.npmjs.org/findup-sync
npm http 200 https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz
npm http 200 https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 304 https://registry.npmjs.org/exit
npm http 304 https://registry.npmjs.org/ansi-styles
npm http 304 https://registry.npmjs.org/has-ansi
npm http 304 https://registry.npmjs.org/strip-ansi
npm http 304 https://registry.npmjs.org/supports-color
npm http 304 https://registry.npmjs.org/escape-string-regexp
npm http 200 https://registry.npmjs.org/nodeunit/-/nodeunit-0.9.1.tgz
npm http GET https://registry.npmjs.org/ansi-regex
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/grunt-legacy-log-utils
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/ansi-regex
npm http GET https://registry.npmjs.org/globule
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/noptify
npm http GET https://registry.npmjs.org/faye-websocket
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/esprima
npm http 200 https://registry.npmjs.org/globule
npm http 304 https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/globule/-/globule-0.1.0.tgz
npm http 304 https://registry.npmjs.org/grunt-legacy-log-utils
npm http 200 https://registry.npmjs.org/faye-websocket
npm http 200 https://registry.npmjs.org/noptify
npm http GET https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.4.4.tgz
npm http GET https://registry.npmjs.org/noptify/-/noptify-0.0.3.tgz
npm http GET https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/qs/-/qs-0.5.6.tgz
npm http 200 https://registry.npmjs.org/globule/-/globule-0.1.0.tgz
npm http 200 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http 200 https://registry.npmjs.org/noptify/-/noptify-0.0.3.tgz
npm http 304 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.4.4.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-0.5.6.tgz
npm http 200 https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http GET https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz
npm http 200 https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz
npm http GET https://registry.npmjs.org/nopt/-/nopt-2.0.0.tgz
npm http 200 https://registry.npmjs.org/nopt/-/nopt-2.0.0.tgz
npm http GET https://registry.npmjs.org/moment
npm http 200 https://registry.npmjs.org/moment
npm http GET https://registry.npmjs.org/catharsis
npm http GET https://github.com/hegemonic/taffydb/tarball/7d100bcee0e997ee4977e273cdce60bd8933050e
npm http GET https://registry.npmjs.org/espree
npm http GET https://registry.npmjs.org/marked
npm http GET https://registry.npmjs.org/js2xmlparser
npm http GET https://registry.npmjs.org/strip-json-comments
npm http GET https://registry.npmjs.org/requizzle
npm http GET https://registry.npmjs.org/wrench
npm http GET https://registry.npmjs.org/bluebird
npm http 304 https://registry.npmjs.org/catharsis
npm http 304 https://registry.npmjs.org/marked
npm http 304 https://registry.npmjs.org/js2xmlparser
npm http 304 https://registry.npmjs.org/strip-json-comments
npm http 304 https://registry.npmjs.org/wrench
npm http 304 https://registry.npmjs.org/bluebird
npm http 304 https://registry.npmjs.org/espree
npm http 304 https://registry.npmjs.org/requizzle
npm http GET https://registry.npmjs.org/tap
npm http 200 https://github.com/hegemonic/taffydb/tarball/7d100bcee0e997ee4977e273cdce60bd8933050e
npm http 200 https://registry.npmjs.org/tap
npm http GET https://registry.npmjs.org/tap/-/tap-0.7.1.tgz
npm http 200 https://registry.npmjs.org/tap/-/tap-0.7.1.tgz
npm http GET https://registry.npmjs.org/underscore-contrib
npm http 304 https://registry.npmjs.org/underscore-contrib
npm http GET https://registry.npmjs.org/buffer-equal
npm http GET https://registry.npmjs.org/deep-equal
npm http GET https://registry.npmjs.org/difflet
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/runforcover
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/yamlish
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/exit
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/console-browserify
npm http 200 https://registry.npmjs.org/buffer-equal
npm http GET https://registry.npmjs.org/cli
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz
npm http 200 https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/slide/-/slide-1.1.6.tgz
npm http 200 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
npm http 200 https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz
npm http GET https://registry.npmjs.org/glob/-/glob-4.5.3.tgz
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/nopt
npm http 200 https://registry.npmjs.org/runforcover
npm http GET https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz
npm http GET https://registry.npmjs.org/runforcover/-/runforcover-0.0.2.tgz
npm http GET https://registry.npmjs.org/underscore/1.6.0
npm http 304 https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/minimatch/-/minimatch-1.0.0.tgz
npm http 200 https://registry.npmjs.org/yamlish
npm http 304 https://registry.npmjs.org/exit
npm http GET https://registry.npmjs.org/yamlish/-/yamlish-0.0.7.tgz
npm http 304 https://registry.npmjs.org/htmlparser2
npm http 304 https://registry.npmjs.org/console-browserify
npm http 304 https://registry.npmjs.org/cli
npm http 200 https://registry.npmjs.org/slide/-/slide-1.1.6.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz
npm http 200 https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz
npm http 200 https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz
npm http 304 https://registry.npmjs.org/shelljs
npm http 200 https://registry.npmjs.org/glob/-/glob-4.5.3.tgz
npm http 200 https://registry.npmjs.org/minimatch/-/minimatch-1.0.0.tgz
npm http 200 https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz
npm http 200 https://registry.npmjs.org/difflet
npm http GET https://registry.npmjs.org/difflet/-/difflet-0.2.6.tgz
npm http 200 https://registry.npmjs.org/yamlish/-/yamlish-0.0.7.tgz
npm http 304 https://registry.npmjs.org/underscore/1.6.0
npm http 200 https://registry.npmjs.org/runforcover/-/runforcover-0.0.2.tgz
npm http 200 https://registry.npmjs.org/difflet/-/difflet-0.2.6.tgz
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/date-now
npm http GET https://registry.npmjs.org/bunker
npm http GET https://registry.npmjs.org/once
npm http GET https://registry.npmjs.org/inflight
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/deep-is
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/minimist/0.0.8
npm http 200 https://registry.npmjs.org/inflight
npm http 304 https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz
npm http 304 https://registry.npmjs.org/date-now
npm http 200 https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/charm/-/charm-0.1.2.tgz
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/domhandler
npm http 304 https://registry.npmjs.org/minimist/0.0.8
npm http GET https://registry.npmjs.org/domutils
npm http 200 https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz
npm http 200 https://registry.npmjs.org/once
npm http 304 https://registry.npmjs.org/domelementtype
npm http 304 https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/once/-/once-1.3.3.tgz
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/domhandler
npm http 304 https://registry.npmjs.org/domutils
npm http 200 https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz
npm http 200 https://registry.npmjs.org/charm/-/charm-0.1.2.tgz
npm http 200 https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz
npm http 200 https://registry.npmjs.org/bunker
npm http GET https://registry.npmjs.org/dom-serializer
npm http 200 https://registry.npmjs.org/once/-/once-1.3.3.tgz
npm http GET https://registry.npmjs.org/bunker/-/bunker-0.1.2.tgz
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/string_decoder
npm http 200 https://registry.npmjs.org/deep-is
npm http GET https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz
npm http GET https://registry.npmjs.org/wrappy
npm http 304 https://registry.npmjs.org/dom-serializer
npm http 200 https://registry.npmjs.org/bunker/-/bunker-0.1.2.tgz
npm http GET https://registry.npmjs.org/brace-expansion
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http 304 https://registry.npmjs.org/string_decoder
npm http 200 https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz
npm http 200 https://registry.npmjs.org/wrappy
npm http GET https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz
npm http 304 https://registry.npmjs.org/brace-expansion
npm http GET https://registry.npmjs.org/concat-map/0.0.1
npm http GET https://registry.npmjs.org/balanced-match
npm http GET https://registry.npmjs.org/burrito
npm http 200 https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz
npm http 304 https://registry.npmjs.org/concat-map/0.0.1
npm http 304 https://registry.npmjs.org/balanced-match
npm http 200 https://registry.npmjs.org/burrito
npm http GET https://registry.npmjs.org/burrito/-/burrito-0.2.12.tgz
npm http 200 https://registry.npmjs.org/burrito/-/burrito-0.2.12.tgz
npm http GET https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/traverse/-/traverse-0.5.2.tgz
npm http 200 https://registry.npmjs.org/traverse/-/traverse-0.5.2.tgz
npm http 200 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.1.1.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.1.1.tgz
grunt-shell@1.1.2 node_modules/grunt-shell
└── chalk@1.1.1 (escape-string-regexp@1.0.3, supports-color@2.0.0, ansi-styles@2.1.0, strip-ansi@3.0.0, has-ansi@2.0.0)

grunt@0.4.5 node_modules/grunt
├── which@1.0.9
├── dateformat@1.0.2-1.2.3
├── eventemitter2@0.4.14
├── getobject@0.1.0
├── rimraf@2.2.8
├── colors@0.6.2
├── hooker@0.2.3
├── async@0.1.22
├── grunt-legacy-util@0.2.0
├── exit@0.1.2
├── lodash@0.9.2
├── coffee-script@1.3.3
├── underscore.string@2.2.1
├── glob@3.1.21 (inherits@1.0.2, graceful-fs@1.2.3)
├── minimatch@0.2.14 (sigmund@1.0.1, lru-cache@2.7.3)
├── iconv-lite@0.2.11
├── nopt@1.0.10 (abbrev@1.0.7)
├── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.2)
├── js-yaml@2.0.5 (argparse@0.1.16, esprima@1.0.4)
└── grunt-legacy-log@0.1.2 (grunt-legacy-log-utils@0.1.1, underscore.string@2.3.3, lodash@2.4.2)

grunt-contrib-watch@0.6.1 node_modules/grunt-contrib-watch
├── async@0.2.10
├── tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, qs@0.5.6, noptify@0.0.3)
├── lodash@2.4.2
└── gaze@0.5.2 (globule@0.1.0)

ink-docstrap@0.5.4 node_modules/ink-docstrap
└── moment@2.10.6

grunt-jsdoc@1.1.0 node_modules/grunt-jsdoc
└── jsdoc@3.4.0 (escape-string-regexp@1.0.3, strip-json-comments@1.0.4, async@1.4.2, taffydb@2.6.2, underscore@1.8.3, wrench@1.5.8, marked@0.3.5, requizzle@0.2.1, js2xmlparser@1.0.0, espree@2.2.5, bluebird@2.9.34, catharsis@0.8.7)

grunt-contrib-jshint@0.10.0 node_modules/grunt-contrib-jshint
├── hooker@0.2.3
└── jshint@2.5.11 (strip-json-comments@1.0.4, underscore@1.6.0, exit@0.1.2, shelljs@0.3.0, minimatch@1.0.0, console-browserify@1.1.0, cli@0.6.6, htmlparser2@3.8.3)

grunt-contrib-nodeunit@0.4.1 node_modules/grunt-contrib-nodeunit
├── hooker@0.2.3
└── nodeunit@0.9.1 (tap@0.7.1)
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services] (master)
- grunt init-hop
[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services] (master)

As you can see, no output, no stdout or stderr. I checked ps -ef for hop or grunt but nothing either and nmap localhost does not show the hop port to be listening.

Running run.sh gives out quite a few errors:

[rapp@rapp-platform][~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services] (master)
- ./run.sh 
Hop configuration parameters passed:
  * Http-Port: 9001
  * Server Cache directory: /home/rapp/.hop/cache/server
  * Clear cache directory: true
  * Server log directory: /home/rapp/.hop/log/server
  * Scheduler policy: accept-many
  * Max threads: 100
  * Report execution time: false
  * Verbosity level: 1
  * Debug level: 1
  * Warning level: 1
  * Security level: 0

Initialing Hop Web Server and registering Web Services
+ hop -v1 -g1 -w1 -s0 --clear-cache --no-fast-server-event --cache-dir /home/rapp/.hop/cache/server --http-port 9001 --log-file /home/rapp/.hop/log/server/hop-server-201512132057.log --scheduler accept-many --max-threads 100 --rc-file ./config/hop/hoprc.hop ./services/init.js
Hop v3.0.0
  http: 9001
  hostname: rapp-platform
  hostip: 127.0.1.1
...logging to [/home/rapp/.hop/log/12-13-2015-1450033076674/]

...file cache directory is set at [/home/rapp/.hop/cache/services/]

...file cache directory is set at [/home/rapp/.hop/cache/server/9001/upload/]

Found hop service file: [ontology_superclasses_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/ontology_superclasses_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_superclasses_of
Found hop service file: [ontology_is_subsuperclass_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/ontology_is_subsuperclass_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_is_subsuperclass_of
Found hop service file: [qr_detection.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/qr_detection.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/qr_detection
Found hop service file: [face_detection.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/face_detection.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/face_detection
Found hop service file: [speech_detection_sphinx4.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/speech_detection_sphinx4.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/speech_detection_sphinx4
Found hop service file: [text_to_speech.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/text_to_speech.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/text_to_speech
Found hop service file: [ontology_subclasses_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/ontology_subclasses_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_subclasses_of
Found hop service file: [record_cognitive_test_performance.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/record_cognitive_test_performance.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/record_cognitive_test_performance
Found hop service file: [rapp_platform_status.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/rapp_platform_status.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/rapp_platform_status
Found hop service file: [speech_detection_google.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/speech_detection_google.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/speech_detection_google
Found hop service file: [set_noise_profile.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/set_noise_profile.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/set_noise_profile
Found hop service file: [cognitive_test_chooser.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/cognitive_test_chooser.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/cognitive_test_chooser
Found hop service file: [available_services.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450033076674/available_services.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/available_services

------------------------------------------------------------
 --->   [Scanning Web Services for availability]           
------------------------------------------------------------

-2 WITH-URL: http://rapp-platform:9001/hop/speech_detection_sphinx4
1 REQUEST.serv: GET *://rapp-platform:9001 /hop/speech_detection_sphinx4 
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/cognitive_test_chooser.service.js:44
    2. &thread2651
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/ontology_subclasses_of.service.js:45
    2. &thread2233
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/speech_detection_google.service.js:46
    2. &thread2548
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/ontology_is_subsuperclass_of.service.js:44
    2. &thread2026
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/face_detection.service.js:47
    2. &thread2128
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/ontology_superclasses_of.service.js:44
    2. &thread2021
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/text_to_speech.service.js:46
    2. &thread2229
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/speech_detection_sphinx4.service.js:46
    2. &thread2132
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/record_cognitive_test_performance.service.js:44
    2. &thread2380
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/qr_detection.service.js:46
    2. &thread2030
1 ERRORURIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/rapp_platform_status.service.js:43
    2. &thread2384
[Error]- Requested write to log file [/home/rapp/.hop/log/12-13-2015-1450033076674/undefined.log] is not permittedbecause log file was not previously created
: #<JsError: TypeError, toObject: cannot convert "undefined">
URIError: Cannot find module "/home/rapp/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS/src/Rosbridge.js"
    1. hopscript, services/set_noise_profile.service.js:46
    2. &thread2553
File "services/speech_detection_sphinx4.service.js", line 138, character 22:
#    console.log(colors.error + '[Speech-Detection-Sphinx4]: ' + errorMsg +
#                      ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/speech_detection_sphinx4.service.js:138
    2. &thread2132

 ---> [Failed]: speech_detection_sphinx4

-3 WITH-URL: http://rapp-platform:9001/hop/speech_detection_google
2 REQUEST.serv: GET *://rapp-platform:9001 /hop/speech_detection_google 
2 ERROR[Error]- Requested write to log file [/home/rapp/.hop/log/12-13-2015-1450033076674/undefined.log] is not permittedbecause log file was not previously created
: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/speech_detection_google.service.js", line 135, character 22:
#    console.log(colors.error + '[Speech-Detection-Google]: ' + errorMsg +
#                      ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/speech_detection_google.service.js:135
    2. &thread2548

 ---> [Failed]: speech_detection_google

-4 WITH-URL: http://rapp-platform:9001/hop/qr_detection
3 REQUEST.serv: GET *://rapp-platform:9001 /hop/qr_detection 
3 ERROR[Error]- Requested write to log file [/home/rapp/.hop/log/12-13-2015-1450033076674/undefined.log] is not permittedbecause log file was not previously created
: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/qr_detection.service.js", line 122, character 22:
#    console.log(colors.error + '[QR-Detection]: ' + errorMsg + colors.clear);
#                      ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/qr_detection.service.js:122
    2. &thread2030

 ---> [Failed]: qr_detection

-5 WITH-URL: http://rapp-platform:9001/hop/face_detection
4 REQUEST.serv: GET *://rapp-platform:9001 /hop/face_detection 
4 ERROR: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/face_detection.service.js", line 124, character 22:
#    console.log(colors.error + '[Face-Detection]: ' + errorMsg + colors.clear);
#                      [Error]- Requested write to log file [/home/rapp/.hop/log/12-13-2015-1450033076674/undefined.log] is not permittedbecause log file was not previously created
^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/face_detection.service.js:124
    2. &thread2128

 ---> [Failed]: face_detection

-6 WITH-URL: http://rapp-platform:9001/hop/set_noise_profile
5 REQUEST.serv: GET *://rapp-platform:9001 /hop/set_noise_profile 
5 ERROR[Error]- Requested write to log file [/home/rapp/.hop/log/12-13-2015-1450033076674/undefined.log] is not permittedbecause log file was not previously created
: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/set_noise_profile.service.js", line 124, character 22:
#    console.log(colors.error + '[Set-Noise-Profile]: ' + errorMsg +
#                      ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/set_noise_profile.service.js:124
    2. &thread2553

 ---> [Failed]: set_noise_profile

-7 WITH-URL: http://rapp-platform:9001/hop/ontology_subclasses_of
6 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_subclasses_of 
6 ERROR: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/ontology_subclasses_of.service.js", line 101, character 28:
#  var unqCallId = randStrGen.createUnique();
#                            ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/ontology_subclasses_of.service.js:101
    2. &thread2233

 ---> [Failed]: ontology_subclasses_of

-8 WITH-URL: http://rapp-platform:9001/hop/ontology_superclasses_of
7 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_superclasses_of 
7 ERROR: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/ontology_superclasses_of.service.js", line 101, character 28:
#  var unqCallId = randStrGen.createUnique();
#                            ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/ontology_superclasses_of.service.js:101
    2. &thread2021

 ---> [Failed]: ontology_superclasses_of

-9 WITH-URL: http://rapp-platform:9001/hop/ontology_is_subsuperclass_of
8 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_is_subsuperclass_of 
8 ERROR: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/ontology_is_subsuperclass_of.service.js", line 102, character 28:
#  var unqCallId = randStrGen.createUnique();
#                            ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/ontology_is_subsuperclass_of.service.js:102
    2. &thread2026

 ---> [Failed]: ontology_is_subsuperclass_of

-10 WITH-URL: http://rapp-platform:9001/hop/detect_objects
9 REQUEST.serv: GET *://rapp-platform:9001 /hop/detect_objects 

 ---> [Failed]: detect_objects

-11 WITH-URL: http://rapp-platform:9001/hop/record_cognitive_test_performance
10 REQUEST.serv: GET *://rapp-platform:9001 /hop/record_cognitive_test_performance 
10 ERROR: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/record_cognitive_test_performance.service.js", line 105, character 28:
#  var unqCallId = randStrGen.createUnique();
#                            ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/record_cognitive_test_performance.service.js:105
    2. &thread2380

 ---> [Failed]: record_cognitive_test_performance

-12 WITH-URL: http://rapp-platform:9001/hop/cognitive_test_chooser
11 REQUEST.serv: GET *://rapp-platform:9001 /hop/cognitive_test_chooser 
11 ERROR: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/cognitive_test_chooser.service.js", line 121, character 28:
#  var unqCallId = randStrGen.createUnique();
#                            ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/cognitive_test_chooser.service.js:121
    2. &thread2651

 ---> [Failed]: cognitive_test_chooser

-13 WITH-URL: http://rapp-platform:9001/hop/text_to_speech
12 REQUEST.serv: GET *://rapp-platform:9001 /hop/text_to_speech 
12 ERROR: #<JsError: TypeError, toObject: cannot convert "undefined">
File "services/text_to_speech.service.js", line 111, character 28:
#  var unqCallId = randStrGen.createUnique();
#                            ^
TypeError: toObject: cannot convert "undefined"
    1. \@\@\@hopscript, services/text_to_speech.service.js:111
    2. &thread2229

 ---> [Failed]: text_to_speech

 <UpRunning Services>
    *[0] - available_services

------------------------------------------------------------
------------------------------------------------------------

13 ABORT:  &io-connection-error
*** ERROR:read/timeout:
Connection reset by peer -- #<input_port:#unspecified.512>
    1. &pool-scheduler1352, 

Please note that I have been using the RAPP VM, without any modifications whatsoever!

etsardou commented 8 years ago

To clarify, you are using the old VM (0.4.1) or the new (0.5.5)?

alexge233 commented 8 years ago

FYI, indeed the path ~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/modules/RosBridgeJS is empty and does not contain anything.

alexge233 commented 8 years ago

I am going take a wild guess and say the 0.4.1. Since I have been working on it for months. Its the VM that is broken?

etsardou commented 8 years ago

No its not broken, its a submodules problem. Please erase the ~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform folder and execute there:

git clone --recursive https://github.com/rapp-project/rapp-platform.git

Then it will be fine (after compilation of course).

etsardou commented 8 years ago

The problem was that the RosBridgeJS submodule did not exist in the previous rapp-platform and the git fetch did not bring it. One way to get it is by recursive cloning like above.

alexge233 commented 8 years ago

@etsardou I did what you suggested (and rebuild). The grunt command still does not work. Executing run.sh from inside the rapp_web_services directory:

- ./run.sh 
Hop configuration parameters passed:
  * Http-Port: 9001
  * Server Cache directory: /home/rapp/.hop/cache/server
  * Clear cache directory: true
  * Server log directory: /home/rapp/.hop/log/server
  * Scheduler policy: accept-many
  * Max threads: 100
  * Report execution time: false
  * Verbosity level: 1
  * Debug level: 1
  * Warning level: 1
  * Security level: 0

Initialing Hop Web Server and registering Web Services
+ hop -v1 -g1 -w1 -s0 --clear-cache --no-fast-server-event --cache-dir /home/rapp/.hop/cache/server --http-port 9001 --log-file /home/rapp/.hop/log/server/hop-server-201512132118.log --scheduler accept-many --max-threads 100 --rc-file ./config/hop/hoprc.hop ./services/init.js
Hop v3.0.0
  http: 9001
  hostname: rapp-platform
  hostip: 127.0.1.1
...logging to [/home/rapp/.hop/log/12-13-2015-1450034322144/]

...file cache directory is set at [/home/rapp/.hop/cache/services/]

...file cache directory is set at [/home/rapp/.hop/cache/server/9001/upload/]

Found hop service file: [ontology_superclasses_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/ontology_superclasses_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_superclasses_of
Found hop service file: [ontology_is_subsuperclass_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/ontology_is_subsuperclass_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_is_subsuperclass_of
Found hop service file: [qr_detection.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/qr_detection.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/qr_detection
Found hop service file: [face_detection.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/face_detection.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/face_detection
Found hop service file: [speech_detection_sphinx4.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/speech_detection_sphinx4.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/speech_detection_sphinx4
Found hop service file: [text_to_speech.service.js]
http://rapp-platform:9001/hop/ontology_subclasses_of
Found hop service file: [record_cognitive_test_performance.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/record_cognitive_test_performance.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/record_cognitive_test_performance
Found hop service file: [rapp_platform_status.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/rapp_platform_status.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/rapp_platform_status
Found hop service file: [speech_detection_google.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/speech_detection_google.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/speech_detection_google
Found hop service file: [set_noise_profile.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/set_noise_profile.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/set_noise_profile
Found hop service file: [cognitive_test_chooser.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/cognitive_test_chooser.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/cognitive_test_chooser
Found hop service file: [available_services.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450034322144/available_services.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/available_services

------------------------------------------------------------
 --->   [Scanning Web Services for availability]           
------------------------------------------------------------

-2 WITH-URL: http://rapp-platform:9001/hop/speech_detection_sphinx4
1 REQUEST.serv: GET *://rapp-platform:9001 /hop/speech_detection_sphinx4 

 ---> [Failed]: speech_detection_sphinx4

-3 WITH-URL: http://rapp-platform:9001/hop/speech_detection_google
2 REQUEST.serv: GET *://rapp-platform:9001 /hop/speech_detection_google 

 ---> [Failed]: speech_detection_google

-4 WITH-URL: http://rapp-platform:9001/hop/qr_detection
3 REQUEST.serv: GET *://rapp-platform:9001 /hop/qr_detection 
Connection to rosbridge established
[QR-Detection]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.

 ---> [OK]: qr_detection

-5 WITH-URL: http://rapp-platform:9001/hop/face_detection
4 REQUEST.serv: GET *://rapp-platform:9001 /hop/face_detection 
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established
[Face-Detection]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established

 ---> [OK]: face_detection

-6 WITH-URL: http://rapp-platform:9001/hop/set_noise_profile
Connection to rosbridge established
5 REQUEST.serv: GET *://rapp-platform:9001 /hop/set_noise_profile 
Connection to rosbridge established
[Set-Noise-Profile]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.

 ---> [OK]: set_noise_profile

-7 WITH-URL: http://rapp-platform:9001/hop/ontology_subclasses_of
6 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_subclasses_of 

 ---> [OK]: ontology_subclasses_of

-8 WITH-URL: http://rapp-platform:9001/hop/ontology_superclasses_of
7 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_superclasses_of 

 ---> [OK]: ontology_superclasses_of

-9 WITH-URL: http://rapp-platform:9001/hop/ontology_is_subsuperclass_of
8 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_is_subsuperclass_of 

 ---> [OK]: ontology_is_subsuperclass_of

-10 WITH-URL: http://rapp-platform:9001/hop/detect_objects
9 REQUEST.serv: GET *://rapp-platform:9001 /hop/detect_objects 

 ---> [Failed]: detect_objects

-11 WITH-URL: http://rapp-platform:9001/hop/record_cognitive_test_performance
10 REQUEST.serv: GET *://rapp-platform:9001 /hop/record_cognitive_test_performance 

 ---> [OK]: record_cognitive_test_performance

-12 WITH-URL: http://rapp-platform:9001/hop/cognitive_test_chooser
11 REQUEST.serv: GET *://rapp-platform:9001 /hop/cognitive_test_chooser 

 ---> [OK]: cognitive_test_chooser

-13 WITH-URL: http://rapp-platform:9001/hop/text_to_speech
12 REQUEST.serv: GET *://rapp-platform:9001 /hop/text_to_speech 
Reading requested file:[/home/rapp/.hop/cache/services/tts_xDQza.wav] , filesize: [428]

 ---> [OK]: text_to_speech

 <UpRunning Services>
    *[0] - qr_detection
    *[1] - face_detection
    *[2] - set_noise_profile
    *[3] - ontology_subclasses_of
    *[4] - ontology_superclasses_of
    *[5] - ontology_is_subsuperclass_of
    *[6] - record_cognitive_test_performance
    *[7] - cognitive_test_chooser
    *[8] - text_to_speech
    *[9] - available_services

------------------------------------------------------------
------------------------------------------------------------

-14 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
13 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
TypeError: no such field "services" pair
-15 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
14 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
TypeError: no such field "services" pair
    1. \@\@\@@loopInf hopscript, services/rapp_platform_status.service.js:620
    2. &thread2384
-16 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
15 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
TypeError: no such field "services" pair
    1. \@\@\@@loopInf hopscript, services/rapp_platform_status.service.js:620
    2. &thread2384
-17 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
16 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
TypeError: no such field "services" pair
    1. \@\@\@@loopInf hopscript, services/rapp_platform_status.service.js:620
    2. &thread2384
-18 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
17 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
TypeError: no such field "services" pair
    1. \@\@\@@loopInf hopscript, services/rapp_platform_status.service.js:620
    2. &thread2384
-19 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
18 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
TypeError: no such field "services" pair
    1. \@\@\@@loopInf hopscript, services/rapp_platform_status.service.js:620
    2. &thread2384
-20 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
19 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
TypeError: no such field "services" pair
    1. \@\@\@@loopInf hopscript, services/rapp_platform_status.service.js:620
    2. &thread2384

Seems like it gets stuck in an infinite loop (the output kept repeating on and on)

etsardou commented 8 years ago

The services are working, you just get this error for a single service (which is not needed). I think this is due to the HOP version you have -- I got this too, uninstalled HOP and installed it again and worked.

Anyway, the services are live now and you can work. @klpanagi can tell you what to do (if it's not HOP's fault) to eliminate this message.

The repeating is due to the available_services HOP service, which checks for the alive services each second. This will be removed in the next release.

alexge233 commented 8 years ago

@etsardou So I should stick with run.sh for now instead of grunt? @klpanagi should I uninstall HOP and re-install, or can I just edit that infinite loop out?

etsardou commented 8 years ago

You should always use deploy_wab_services.sh from the rapp_scripts folder in rapp_platform to deploy the services.

alexge233 commented 8 years ago

@etsardou It still fails, only run.sh seems to work. It must be an issue with grunt.

etsardou commented 8 years ago

Oh this calls grunt as well! Sorry I though it invoked run.sh. Then waiting for @klpanagi ...

klpanagi commented 8 years ago

The errors you get is due to the old version of hop+bigloo you have.

Please install hop+bigloo by executing the 11_hop_setup.sh script. Make sure to remove hop+bigloo directories before:

rm -rf ~/rapp_platform/hop*
cd ~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_scripts/setup
./11_hop_setup.sh

The above script will fetch and install the right versions of hop+bigloo for v0.5.5.

As for the grunt command, if you take a closer look at the init-hop task, you will notice that it just executes run.sh script on current shell, while keeping stdout and stderr active too and that is why the reported issue seems weird. I will dig into it tomorrow.

Can you please check on the installed grunt-cli version:

npm list -g grunt-cli

You should see:

/usr/local/lib
└── grunt-cli@0.1.13
etsardou commented 8 years ago

Actually first uninstall hop and bigloo with sudo make uninstall in the ~/rapp_platform/hop* folders and then proceed with the other steps..

klpanagi commented 8 years ago

Check on node.js version too.

node --version
alexge233 commented 8 years ago

npm:

- npm list -g grunt-cli
/usr/local/lib
└── grunt-cli@0.1.13 

- npm list -g grunt-cli
/usr/local/lib
└── grunt-cli@0.1.13 

I just finished running ./11_hop_setup.sh

- ./run.sh 
Hop configuration parameters passed:
  * Http-Port: 9001
  * Server Cache directory: /home/rapp/.hop/cache/server
  * Clear cache directory: true
  * Server log directory: /home/rapp/.hop/log/server
  * Scheduler policy: accept-many
  * Max threads: 100
  * Report execution time: false
  * Verbosity level: 1
  * Debug level: 1
  * Warning level: 1
  * Security level: 0

Initialing Hop Web Server and registering Web Services
+ hop -v1 -g1 -w1 -s0 --clear-cache --no-fast-server-event --cache-dir /home/rapp/.hop/cache/server --http-port 9001 --log-file /home/rapp/.hop/log/server/hop-server-201512132328.log --scheduler accept-many --max-threads 100 --rc-file ./config/hop/hoprc.hop ./services/init.js
Hop v3.0.0
  http: 9001
  hostname: rapp-platform
  hostip: 127.0.1.1
...logging to [/home/rapp/.hop/log/12-13-2015-1450042124529/]

...file cache directory is set at [/home/rapp/.hop/cache/services/]

...file cache directory is set at [/home/rapp/.hop/cache/server/9001/upload/]

Found hop service file: [ontology_superclasses_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/ontology_superclasses_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_superclasses_of
Found hop service file: [ontology_is_subsuperclass_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/ontology_is_subsuperclass_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_is_subsuperclass_of
Found hop service file: [qr_detection.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/qr_detection.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/qr_detection
Found hop service file: [face_detection.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/face_detection.log]
[OK] - Initiated HOP Web Service: 
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/text_to_speech
Found hop service file: [ontology_subclasses_of.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/ontology_subclasses_of.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/ontology_subclasses_of
Found hop service file: [record_cognitive_test_performance.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/record_cognitive_test_performance.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/record_cognitive_test_performance
Found hop service file: [rapp_platform_status.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/rapp_platform_status.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/rapp_platform_status
Found hop service file: [speech_detection_google.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/speech_detection_google.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/speech_detection_google
Found hop service file: [set_noise_profile.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/set_noise_profile.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/set_noise_profile
Found hop service file: [cognitive_test_chooser.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/cognitive_test_chooser.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/cognitive_test_chooser
Found hop service file: [available_services.service.js]
Initiated Writable Stream [/home/rapp/.hop/log/12-13-2015-1450042124529/available_services.log]
[OK] - Initiated HOP Web Service: 
http://rapp-platform:9001/hop/available_services

------------------------------------------------------------
 --->   [Scanning Web Services for availability]           
------------------------------------------------------------

-2 WITH-URL: http://rapp-platform:9001/hop/speech_detection_sphinx4
1 REQUEST.serv: GET *://rapp-platform:9001 /hop/speech_detection_sphinx4 
Connection to rosbridge established
Connection to rosbridge established
[Speech-Detection-Sphinx4]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.

 ---> [OK]: speech_detection_sphinx4

-3 WITH-URL: http://rapp-platform:9001/hop/speech_detection_google
Connection to rosbridge established
2 REQUEST.serv: GET *://rapp-platform:9001 /hop/speech_detection_google 
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established
Connection to rosbridge established
[Speech-Detection-Google]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.
Connection to rosbridge established

 ---> [OK]: speech_detection_google

-4 WITH-URL: http://rapp-platform:9001/hop/qr_detection
3 REQUEST.serv: GET *://rapp-platform:9001 /hop/qr_detection 
[QR-Detection]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.
Connection to rosbridge established

 ---> [OK]: qr_detection

-5 WITH-URL: http://rapp-platform:9001/hop/face_detection
4 REQUEST.serv: GET *://rapp-platform:9001 /hop/face_detection 
Connection to rosbridge established
[Face-Detection]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.

 ---> [OK]: face_detection

Connection to rosbridge established
-6 WITH-URL: http://rapp-platform:9001/hop/set_noise_profile
5 REQUEST.serv: GET *://rapp-platform:9001 /hop/set_noise_profile 
[Set-Noise-Profile]: Service invocation error. Invalid {file_uri} field! Abortion for security reasons.

 ---> [OK]: set_noise_profile

-7 WITH-URL: http://rapp-platform:9001/hop/ontology_subclasses_of
6 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_subclasses_of 

 ---> [OK]: ontology_subclasses_of

-8 WITH-URL: http://rapp-platform:9001/hop/ontology_superclasses_of
7 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_superclasses_of 

 ---> [OK]: ontology_superclasses_of

-9 WITH-URL: http://rapp-platform:9001/hop/ontology_is_subsuperclass_of
8 REQUEST.serv: GET *://rapp-platform:9001 /hop/ontology_is_subsuperclass_of 

 ---> [OK]: ontology_is_subsuperclass_of

-10 WITH-URL: http://rapp-platform:9001/hop/detect_objects
9 REQUEST.serv: GET *://rapp-platform:9001 /hop/detect_objects 

 ---> [Failed]: detect_objects

-11 WITH-URL: http://rapp-platform:9001/hop/record_cognitive_test_performance
10 REQUEST.serv: GET *://rapp-platform:9001 /hop/record_cognitive_test_performance 

 ---> [OK]: record_cognitive_test_performance

-12 WITH-URL: http://rapp-platform:9001/hop/cognitive_test_chooser
11 REQUEST.serv: GET *://rapp-platform:9001 /hop/cognitive_test_chooser 

 ---> [OK]: cognitive_test_chooser

-13 WITH-URL: http://rapp-platform:9001/hop/text_to_speech
12 REQUEST.serv: GET *://rapp-platform:9001 /hop/text_to_speech 
Reading requested file:[/home/rapp/.hop/cache/services/tts_gKqug.wav] , filesize: [428]

 ---> [OK]: text_to_speech

 <UpRunning Services>
    *[0] - speech_detection_sphinx4
    *[1] - speech_detection_google
    *[2] - qr_detection
    *[3] - face_detection
    *[4] - set_noise_profile
    *[5] - ontology_subclasses_of
    *[6] - ontology_superclasses_of
    *[7] - ontology_is_subsuperclass_of
    *[8] - record_cognitive_test_performance
    *[9] - cognitive_test_chooser
    *[10] - text_to_speech
    *[11] - available_services

------------------------------------------------------------
------------------------------------------------------------

-14 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
13 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-15 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
14 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-16 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
15 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-17 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
16 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-18 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
17 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-19 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
18 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-20 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
19 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-21 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
20 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-22 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
21 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-23 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
22 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-24 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
23 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-25 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
24 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-26 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
25 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-27 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
26 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-28 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
27 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-29 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
28 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-30 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
29 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-31 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
30 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-32 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
31 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-33 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
32 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-34 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
33 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-35 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
34 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-36 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
35 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-37 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
36 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-38 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
37 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-39 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
38 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-40 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
39 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&vals=. 
-41 WITH-HOP http://localhost:9001/hop/available_services?hop-encoding=hop&vals=.
40 REQUEST.serv: PUT *://localhost:9001 /hop/available_services?hop-encoding=hop&va

For some reason QR-Detection, Face-Detection and Set-Noise-Profile produce:

Service invocation error. Invalid {file_uri} field! Abortion for security reasons.

Why is this?

Also how can I disable the infinite loop of the /hop/available_services?hop-encoding=hop&vals=.???

klpanagi commented 8 years ago

The "infinite loop" is due to the existence of the rapp_platform_status HOP Service. This will be deprecated in v0.6.0. As for now you can just disable registration of the rapp_platform_status service:

$ cd ~/rapp_platform/rapp-platform-catkin-ws/src/rapp-platform/rapp_web_services/services
$ mv rapp_platform_status.service.js rapp_platform_status.js

Any updates on

$ grunt init-hop

??

alexge233 commented 8 years ago

@klpanagi

$ grunt init-hop still doesn't work for me. No output, hop isn't brought up. I'll disable the status service, thank you very much for your help.