Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sails installed but don't works, ubuntu 13.04 #921

Closed
Vadorequest opened this issue Sep 24, 2013 · 25 comments
Closed

sails installed but don't works, ubuntu 13.04 #921

Vadorequest opened this issue Sep 24, 2013 · 25 comments

Comments

@Vadorequest
Copy link

Hi.

I'm using Windows Azure for host my website for a school project.
I have a VM with ubuntu 13.04 installed.

azureuser@tripanalyzer:~$ nodejs -v
v0.10.18

azureuser@tripanalyzer:~$ npm -v
1.3.8

I installed a lot of things, because the VM was almost empty.
nodejs works well, no problem. But when I run this:

sails
sails lift
sails -v

there is ... nothing appens:

root@tripanalyzer:/home/azureuser/trip-analyzer/server# sails -v
root@tripanalyzer:/home/azureuser/trip-analyzer/server# sails lift
root@tripanalyzer:/home/azureuser/trip-analyzer/server# sails

the sails command is founded (because no error, but don't works. I used

npm install sails -g

So, do you have any idea? I work on windows usually.
And, it's crazy but... When I do:

root@tripanalyzer:/home/azureuser/trip-analyzer/server# nodejs app.js
info:
info:
info:    Sails.js           <|
info:    v0.9.4              |\
info:                       /|.\
info:                      / || \
info:                    ,'  |'  \
info:                 .-'.-==|/_--'
info:                 `--'-------'
info:    __---___--___---___--___---___--___
info:  ____---___--___---___--___---___--___-__
info:
info: Server lifted in `/home/azureuser/trip-analyzer/server`
info: To see your app, visit http://localhost:80
info: To shut down Sails, press <CTRL> + C at any time.

debug: --------------------------------------------------------
debug: :: Tue Sep 24 2013 22:27:02 GMT+0000 (UTC)
debug:
debug: Environment      : development
debug: Port             : 80
debug: --------------------------------------------------------

That works! And at the url: http://tripanalyzer.cloudapp.net/
(i don't know if it will be available when you will watch it but...)
My page is good !
Except these error:

GET http://tripanalyzer.cloudapp.net/js/socket.io.js 404 (Not Found) tripanalyzer.cloudapp.net/:114
GET http://tripanalyzer.cloudapp.net/js/sails.io.js 404 (Not Found) tripanalyzer.cloudapp.net/:114
GET http://tripanalyzer.cloudapp.net/js/app.js 404 (Not Found) tripanalyzer.cloudapp.net/:114
Content loaded http://tripanalyzer.cloudapp.net/ content.js:17

In the javascript console, obviously, so that don't works really because sails don't generate the .temp because he's not running.

Thank you for your time.

Details of the sails install here:

root@tripanalyzer:/home/azureuser/trip-analyzer/server# npm install -g
npm http GET https://registry.npmjs.org/sails-mongo
npm http GET https://registry.npmjs.org/grunt/0.4.1
npm http GET https://registry.npmjs.org/sails-disk
npm http GET https://registry.npmjs.org/ejs/0.8.4
npm http GET https://registry.npmjs.org/optimist/0.3.4
npm http GET https://registry.npmjs.org/bcrypt/0.7.7
npm http GET https://registry.npmjs.org/sails/0.9.4
npm http 304 https://registry.npmjs.org/sails-mongo
npm http 304 https://registry.npmjs.org/ejs/0.8.4
npm http 304 https://registry.npmjs.org/grunt/0.4.1
npm http 304 https://registry.npmjs.org/sails-disk
npm http 304 https://registry.npmjs.org/optimist/0.3.4
npm http 304 https://registry.npmjs.org/bcrypt/0.7.7
npm http 304 https://registry.npmjs.org/sails/0.9.4
npm http GET https://registry.npmjs.org/fs-extra/0.6.1
npm http GET https://registry.npmjs.org/waterline-criteria
npm http GET https://registry.npmjs.org/lodash/1.2.1
npm http GET https://registry.npmjs.org/underscore.string/2.3.1
npm http GET https://registry.npmjs.org/async/0.2.9
npm http GET https://registry.npmjs.org/underscore/1.4.4
npm http GET https://registry.npmjs.org/mongodb
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/bindings/1.0.0
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 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/hooker
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/js-yaml
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/waterline-criteria
npm http 304 https://registry.npmjs.org/fs-extra/0.6.1
npm http 304 https://registry.npmjs.org/lodash/1.2.1
npm http 304 https://registry.npmjs.org/underscore/1.4.4
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/mongodb
npm http 304 https://registry.npmjs.org/underscore.string/2.3.1
npm http 304 https://registry.npmjs.org/async/0.2.9
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/findup-sync
npm http 304 https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/jsonfile
npm http GET https://registry.npmjs.org/ncp
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf

> bcrypt@0.7.7 install /usr/lib/node_modules/TripAnalyzer/node_modules/bcrypt
> node-gyp rebuild

npm http 304 https://registry.npmjs.org/hooker
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/js-yaml
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/jsonfile
npm http 304 https://registry.npmjs.org/ncp
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/rimraf
make: Entering directory `/usr/lib/node_modules/TripAnalyzer/node_modules/bcrypt/build'
  CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
npm http GET https://registry.npmjs.org/graceful-fs
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/graceful-fs
  CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
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/argparse
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/bson/0.2.2
npm http GET https://registry.npmjs.org/kerberos/0.0.3
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/lru-cache
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node
npm http 304 https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/bson/0.2.2
npm http 304 https://registry.npmjs.org/kerberos/0.0.3
  SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node: Finished
  COPY Release/bcrypt_lib.node
make: Leaving directory `/usr/lib/node_modules/TripAnalyzer/node_modules/bcrypt/build'
npm http GET https://registry.npmjs.org/underscore

> kerberos@0.0.3 install /usr/lib/node_modules/TripAnalyzer/node_modules/sails-mongo/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails-mongo/node_modules/mongodb/node_modules/kerberos/build'
  SOLINK_MODULE(target) Release/obj.target/kerberos.node
  SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
  COPY Release/kerberos.node
make: Leaving directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails-mongo/node_modules/mongodb/node_modules/kerberos/build'
npm http 304 https://registry.npmjs.org/underscore

> bson@0.2.2 install /usr/lib/node_modules/TripAnalyzer/node_modules/sails-mongo/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails-mongo/node_modules/mongodb/node_modules/bson/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
npm http GET https://registry.npmjs.org/socket.io/0.9.14
npm http GET https://registry.npmjs.org/waterline
npm http GET https://registry.npmjs.org/express/3.2.6
npm http GET https://registry.npmjs.org/connect-redis/1.4.5
npm http GET https://registry.npmjs.org/connect-mongo/0.3.2
npm http GET https://registry.npmjs.org/winston/0.7.1
npm http GET https://registry.npmjs.org/i18n/0.4.1
npm http GET https://registry.npmjs.org/fs-extra/0.5.0
npm http GET https://registry.npmjs.org/glob/3.1.14
npm http GET https://registry.npmjs.org/underscore.string/2.3.0
npm http GET https://registry.npmjs.org/include-all
npm http GET https://registry.npmjs.org/inflection/1.2.5
npm http GET https://registry.npmjs.org/node-uuid/1.4.0
npm http GET https://registry.npmjs.org/grunt-contrib-copy/0.4.1
npm http GET https://registry.npmjs.org/grunt-cli/0.1.9
npm http GET https://registry.npmjs.org/grunt-contrib-clean/0.4.1
npm http GET https://registry.npmjs.org/grunt-contrib-concat/0.3.0
npm http GET https://registry.npmjs.org/grunt-sails-linker
npm http GET https://registry.npmjs.org/grunt-contrib-jst/0.5.0
npm http GET https://registry.npmjs.org/grunt-contrib-watch/0.4.4
npm http GET https://registry.npmjs.org/grunt-contrib-uglify/0.2.2
npm http GET https://registry.npmjs.org/grunt-contrib-cssmin/0.6.1
npm http GET https://registry.npmjs.org/grunt-contrib-less/0.5.2
npm http GET https://registry.npmjs.org/ejs-locals/1.0.2
npm http GET https://registry.npmjs.org/grunt-contrib-coffee
npm http GET https://registry.npmjs.org/coffee-script/1.6.2
npm http 304 https://registry.npmjs.org/socket.io/0.9.14
npm http 304 https://registry.npmjs.org/connect-redis/1.4.5
npm http 304 https://registry.npmjs.org/express/3.2.6
npm http 304 https://registry.npmjs.org/connect-mongo/0.3.2
npm http 304 https://registry.npmjs.org/waterline
npm http 304 https://registry.npmjs.org/winston/0.7.1
npm http 304 https://registry.npmjs.org/i18n/0.4.1
npm http 304 https://registry.npmjs.org/fs-extra/0.5.0
npm http 304 https://registry.npmjs.org/glob/3.1.14
npm http 304 https://registry.npmjs.org/underscore.string/2.3.0
npm http 304 https://registry.npmjs.org/include-all
npm http 304 https://registry.npmjs.org/inflection/1.2.5
npm http 304 https://registry.npmjs.org/node-uuid/1.4.0
npm http 304 https://registry.npmjs.org/grunt-contrib-copy/0.4.1
npm http 304 https://registry.npmjs.org/grunt-cli/0.1.9
npm http 304 https://registry.npmjs.org/grunt-contrib-clean/0.4.1
npm http 304 https://registry.npmjs.org/grunt-contrib-concat/0.3.0
npm http 304 https://registry.npmjs.org/grunt-sails-linker
npm http 304 https://registry.npmjs.org/grunt-contrib-jst/0.5.0
npm http 304 https://registry.npmjs.org/grunt-contrib-watch/0.4.4
  SOLINK_MODULE(target) Release/obj.target/bson.node
npm http 304 https://registry.npmjs.org/grunt-contrib-uglify/0.2.2
npm http 304 https://registry.npmjs.org/grunt-contrib-cssmin/0.6.1
npm http 304 https://registry.npmjs.org/grunt-contrib-less/0.5.2
npm http 304 https://registry.npmjs.org/ejs-locals/1.0.2
npm http 304 https://registry.npmjs.org/grunt-contrib-coffee
  SOLINK_MODULE(target) Release/obj.target/bson.node: Finished
  COPY Release/bson.node
make: Leaving directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails-mongo/node_modules/mongodb/node_modules/bson/build'
npm http 304 https://registry.npmjs.org/coffee-script/1.6.2
npm http GET https://registry.npmjs.org/resolve
npm http GET https://registry.npmjs.org/redis
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/clean-css
npm http GET https://registry.npmjs.org/grunt-lib-contrib
npm http GET https://registry.npmjs.org/grunt-lib-contrib
npm http GET https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/sprintf
npm http GET https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/send/0.1.0
npm http GET https://registry.npmjs.org/cookie-signature/1.0.1
npm http GET https://registry.npmjs.org/connect/2.7.11
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/mkdirp/0.3.4
npm http 304 https://registry.npmjs.org/resolve
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/redis
npm http 304 https://registry.npmjs.org/grunt-lib-contrib
npm http 304 https://registry.npmjs.org/less
npm http 304 https://registry.npmjs.org/sprintf
npm http 304 https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/gaze
npm http GET https://registry.npmjs.org/tiny-lr/0.0.4
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http 304 https://registry.npmjs.org/grunt-lib-contrib
npm http 304 https://registry.npmjs.org/clean-css
npm http 304 https://registry.npmjs.org/fresh/0.1.0
npm http 304 https://registry.npmjs.org/methods/0.0.1
npm http 304 https://registry.npmjs.org/send/0.1.0
npm http 304 https://registry.npmjs.org/cookie-signature/1.0.1
npm http 304 https://registry.npmjs.org/connect/2.7.11
npm http 304 https://registry.npmjs.org/commander/0.6.1
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/zlib-browserify/0.0.1
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http 304 https://registry.npmjs.org/mkdirp/0.3.4
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/gaze
npm http 304 https://registry.npmjs.org/tiny-lr/0.0.4
npm http 304 https://registry.npmjs.org/zlib-browserify/0.0.1
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/mime/1.2.6
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/faye-websocket
npm http GET https://registry.npmjs.org/noptify
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/fileset
npm http 304 https://registry.npmjs.org/cycle
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/stack-trace
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/mime/1.2.6
npm http 304 https://registry.npmjs.org/faye-websocket
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/noptify
npm http 304 https://registry.npmjs.org/fileset
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/q/0.9.4
npm http GET https://registry.npmjs.org/anchor
npm http GET https://registry.npmjs.org/bson/0.1.8
npm http GET https://registry.npmjs.org/qs/0.6.5
npm http GET https://registry.npmjs.org/formidable/1.0.14
npm http GET https://registry.npmjs.org/cookie/0.0.5
npm http GET https://registry.npmjs.org/send/0.1.1
npm http GET https://registry.npmjs.org/bytes/0.2.0
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/q/0.9.4
npm http 304 https://registry.npmjs.org/anchor
npm http 304 https://registry.npmjs.org/formidable/1.0.14
npm http 304 https://registry.npmjs.org/cookie/0.0.5
npm http 304 https://registry.npmjs.org/send/0.1.1
npm http 304 https://registry.npmjs.org/bson/0.1.8
npm http GET https://registry.npmjs.org/validator
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/bytes/0.2.0
npm http 304 https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/ycssmin
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/qs/0.6.5
npm http 304 https://registry.npmjs.org/validator
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/wordwrap
npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.18","npm":"1.3.8"})
npm http 304 https://registry.npmjs.org/ycssmin
npm http 304 https://registry.npmjs.org/amdefine
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp

> bson@0.1.8 install /usr/lib/node_modules/TripAnalyzer/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http 304 https://registry.npmjs.org/ws
make: Entering directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2
npm http 304 https://registry.npmjs.org/boom
npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.18","npm":"1.3.8"})
npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.18","npm":"1.3.8"})
npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.18","npm":"1.3.8"})
npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.18","npm":"1.3.8"})
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/tinycolor
npm http GET https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http 304 https://registry.npmjs.org/tinycolor
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/options
  SOLINK_MODULE(target) Release/obj.target/bson.node
  SOLINK_MODULE(target) Release/obj.target/bson.node: Finished

> ws@0.4.31 install /usr/lib/node_modules/TripAnalyzer/node_modules/sails/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  COPY Release/bson.node
make: Leaving directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/build'
make: Entering directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/usr/lib/node_modules/TripAnalyzer/node_modules/sails/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
TripAnalyzer@0.0.1 /usr/lib/node_modules/TripAnalyzer
├── ejs@0.8.4
├── optimist@0.3.4 (wordwrap@0.0.2)
├── bcrypt@0.7.7 (bindings@1.0.0)
├── sails-disk@0.9.1 (lodash@1.2.1, fs-extra@0.6.1, waterline-criteria@0.9.2)
├── grunt@0.4.1 (which@1.0.5, dateformat@1.0.2-1.2.3, eventemitter2@0.4.13, colors@0.6.2, hooker@0.2.3, async@0.1.22, lodash@0.9.2, coffee-script@1.3.3, underscore.string@2.2.1, findup-sync@0.1.2, iconv-lite@0.2.11, rimraf@2.0.3, nopt@1.0.10, glob@3.1.21, minimatch@0.2.12, js-yaml@2.0.5)
├── sails-mongo@0.9.5 (async@0.2.9, underscore@1.4.4, underscore.string@2.3.1, mongodb@1.3.19)
└── sails@0.9.4 (inflection@1.2.5, grunt-sails-linker@0.9.2, grunt-contrib-clean@0.4.1, node-uuid@1.4.0, async@0.2.9, grunt-contrib-concat@0.3.0, grunt-contrib-copy@0.4.1, grunt-contrib-coffee@0.7.0, ejs-locals@1.0.2, fs-extra@0.5.0, glob@3.1.14, underscore.string@2.3.0, i18n@0.4.1, coffee-script@1.6.2, connect-redis@1.4.5, include-all@0.1.1, grunt-contrib-jst@0.5.0, lodash@1.2.1, grunt-contrib-watch@0.4.4, grunt-contrib-cssmin@0.6.1, grunt-cli@0.1.9, grunt-contrib-uglify@0.2.2, express@3.2.6, waterline@0.9.4, grunt-contrib-less@0.5.2, winston@0.7.1, connect-mongo@0.3.2, socket.io@0.9.14)
root@tripanalyzer:/home/azureuser/trip-analyzer/server#

@sgress454
Copy link
Member

If node app.js works but sails lift doesn't, it either means that the global Sails didn't install properly, or the sails.js symlink is incorrect. What do you get from typing which sails? Can you open the file at the path it outputs?

@Vadorequest
Copy link
Author

azureuser@tripanalyzer:~$ which sails
/usr/bin/sails

@Vadorequest
Copy link
Author

Content of the file:

#!/usr/bin/env node

var argv = require('optimist').argv;

// Build sails instance
var sails = require('../lib');
sails.config = {
  appPath: process.cwd(),
  prod: argv.prod,

  // Indicate that this is a mock config
  mock: true
};
if(argv.verbose){
  sails.config.log = {level: 'verbose'};
}
if(argv.port){
  sails.config.port = argv.port;
}

require('../lib/configuration')(sails).load(function (err) {
  if (err) throw new Error(err);


  // Dependencies
  var _ = require('lodash'),
    utils = require('./utils.js')(sails),
    fs = utils.fs,
    generate = require('./generate.js')(sails),
    newSailsApp = require('./new.js')(sails);



  // If coffeescript is not installed, fail silently
  try {
    require('coffee-script');
    sails.log.verbose('Enabling CoffeeScript...');
  } catch (e) {
    sails.log.verbose('CoffeeScript not installed.');
  }

  // Stringify args
  argv._ = _.map(argv._, function (arg) {
    return arg + '';
  });

  // Known errors
  var errors = {
    badLocalSails: function (requiredVersion) {
      return 'You may consider reinstalling Sails locally (npm install sails@' + requiredVersion + ').';
    }
  };

  // Read package.json file in specified path
  function getPackage(path) {
    path = require('underscore.string').rtrim(path, '/');
    var packageJson = fs.readFileSync(path + '/package.json', 'utf-8');
    try {
      packageJson = JSON.parse(packageJson);
    } catch (e) {
      return false;

So... I think that it's ok...

@sgress454
Copy link
Member

Is node aliasing nodejs?

@Vadorequest
Copy link
Author

It wasn't.
alias node="nodejs"

But still the same.

@Vadorequest
Copy link
Author

Do you have any other idea for fix it?
Thank you for your help.

@geoffreak
Copy link

Maybe try changing the first line of /usr/bin/sails to #!/usr/bin/env nodejs?

@Vadorequest
Copy link
Author

It works. Nice!
I just have another error, without any link, it's because my port 80 is already used:


azureuser@tripanalyzer:~/trip-analyzer/server$ sails lift
info:
info:
info:    Sails.js           <|
info:    v0.9.4              |\
info:                       /|.\
info:                      / || \
info:                    ,'  |'  \
info:                 .-'.-==|/_--'
info:                 `--'-------'
info:    __---___--___---___--___---___--___
info:  ____---___--___---___--___---___--___-__
info:
info: Server lifted in `/home/azureuser/trip-analyzer/server`
info: To see your app, visit http://localhost:80
info: To shut down Sails, press <CTRL> + C at any time.

debug: --------------------------------------------------------
debug: :: Wed Sep 25 2013 14:13:17 GMT+0000 (UTC)
debug:
debug: Environment      : development
debug: Port             : 80
debug: --------------------------------------------------------
warn: error raised: Error: listen EACCES

error: Server doesn't seem to be starting.
error: Perhaps something else is already running on port 80?

I tried to kill the process but I can't see it. It appends often on the vm, I don't know why. Sometimes it died by is own...

@Vadorequest
Copy link
Author

Okay, I fixed the problem about the port used. I'm working on the 1337 now.
http://tripanalyzer.cloudapp.net:1337/

But I have a problem (again...) I don't have the .js files.
If the server is running, just check the javascript errors (f12, console)

GET http://tripanalyzer.cloudapp.net:1337/js/socket.io.js 404 (Not Found) tripanalyzer.cloudapp.net/:114
GET http://tripanalyzer.cloudapp.net:1337/js/sails.io.js 404 (Not Found) tripanalyzer.cloudapp.net/:114
GET http://tripanalyzer.cloudapp.net:1337/js/app.js 404 (Not Found) 

Why? My node_modules are well installed, sails is running, so why it didn't find the .js files?
I working on it, but if you have any solution...

@Vadorequest Vadorequest reopened this Sep 25, 2013
@Vadorequest
Copy link
Author

Ah, maybe it's because I'm developping under windows 7 and the server is ubuntu 13.04, I transfert the source code via git.

@Vadorequest
Copy link
Author

The .tmp directory is not generated when I run sails lift...

@geoffreak
Copy link

That might be a permissions issue. Try making a .tmp directory with 777 permissions.

Though it is more likely a firewall issue of some sort if it is having issues downloading the boilerplate source. Have you tried uploading the files downloaded from your computer (except the node_modules - just run npm install in the sails root)

Have you tried running in verbose logging mode? You can change the log level in config/log.js from the default of info.

@sgress454
Copy link
Member

Has this been resolved?

@JigneshPansuriaDeveloper

error: Server doesn't seem to be starting.
error: Perhaps something else is already running on port 80?

but it gives blank page

Ex:http://localhost

nothing comes

again i try http://localhost/user/create?name=harekrishna

@Vadorequest
Copy link
Author

don't use the port 80 if you are on a normal computer. Prefer another port.
(8080, 1337, 5000, ...)

2014-01-31 jigneshnavsoft notifications@github.com

error: Server doesn't seem to be starting.
error: Perhaps something else is already running on port 80?

but it gives blank page

Ex:http://localhost

nothing comes

again i try http://localhost/user/create?name=harekrishna


Reply to this email directly or view it on GitHubhttps://github.com//issues/921#issuecomment-33770711
.

Cordialement,

M. Ambroise Dhenain.

@JigneshPansuriaDeveloper

i want to access url like this http://localhost not any port

how to do that??

@Vadorequest
Copy link
Author

The error is useful, you have another program running on this port.
Skype is running on :80 for example.

2014-01-31 jigneshnavsoft notifications@github.com

i want to access url like this http://localhost not any port

how to do that??


Reply to this email directly or view it on GitHubhttps://github.com//issues/921#issuecomment-33771313
.

Cordialement,

M. Ambroise Dhenain.

@Vadorequest
Copy link
Author

But, as programmer, I advice you to don't use the port 80, you'll get
errors like this and lost your time.
Use another port for development and use the port 80 with production on a
dedicated server. It's what programmers do usually.

2014-01-31 Ambroise Dhenain ambroise.dhenain@gmail.com

The error is useful, you have another program running on this port.
Skype is running on :80 for example.

2014-01-31 jigneshnavsoft notifications@github.com

i want to access url like this http://localhost not any port

how to do that??


Reply to this email directly or view it on GitHubhttps://github.com//issues/921#issuecomment-33771313
.

Cordialement,

M. Ambroise Dhenain.

Cordialement,

M. Ambroise Dhenain.

@JigneshPansuriaDeveloper

Not Found

The requested URL /user/create was not found on this server.

Apache/2.2.15 (CentOS) Server at localhost Port 80

i close skype but same result nothing comes

On Fri, Jan 31, 2014 at 9:20 AM, Vadorequest notifications@github.comwrote:

The error is useful, you have another program running on this port.
Skype is running on :80 for example.

2014-01-31 jigneshnavsoft notifications@github.com

i want to access url like this http://localhost not any port

how to do that??

Reply to this email directly or view it on GitHub<
https://github.com/balderdashy/sails/issues/921#issuecomment-33771313>
.

Cordialement,

M. Ambroise Dhenain.

Reply to this email directly or view it on GitHubhttps://github.com//issues/921#issuecomment-33771452
.

@JigneshPansuriaDeveloper

which files i need to chnage the code... for port number changes

On Fri, Jan 31, 2014 at 9:22 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:

Not Found

The requested URL /user/create was not found on this server.

Apache/2.2.15 (CentOS) Server at localhost Port 80

i close skype but same result nothing comes

On Fri, Jan 31, 2014 at 9:20 AM, Vadorequest notifications@github.comwrote:

The error is useful, you have another program running on this port.
Skype is running on :80 for example.

2014-01-31 jigneshnavsoft notifications@github.com

i want to access url like this http://localhost not any port

how to do that??

Reply to this email directly or view it on GitHub<
https://github.com/balderdashy/sails/issues/921#issuecomment-33771313>
.

Cordialement,

M. Ambroise Dhenain.

Reply to this email directly or view it on GitHubhttps://github.com//issues/921#issuecomment-33771452
.

@Vadorequest
Copy link
Author

/config/local.js

2014-01-31 jigneshnavsoft notifications@github.com:

which files i need to chnage the code... for port number changes

On Fri, Jan 31, 2014 at 9:22 AM, Jignesh Jigs ec.jignesh@gmail.com
wrote:

Not Found

The requested URL /user/create was not found on this server.

Apache/2.2.15 (CentOS) Server at localhost Port 80

i close skype but same result nothing comes

On Fri, Jan 31, 2014 at 9:20 AM, Vadorequest <notifications@github.com
wrote:

The error is useful, you have another program running on this port.
Skype is running on :80 for example.

2014-01-31 jigneshnavsoft notifications@github.com

i want to access url like this http://localhost not any port

how to do that??

Reply to this email directly or view it on GitHub<
https://github.com/balderdashy/sails/issues/921#issuecomment-33771313>
.

Cordialement,

M. Ambroise Dhenain.

Reply to this email directly or view it on GitHub<
https://github.com/balderdashy/sails/issues/921#issuecomment-33771452>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/921#issuecomment-33771708
.

Cordialement,

M. Ambroise Dhenain.

@Vadorequest
Copy link
Author

by the way, you could also run sails lift --port 8080 for instance.
But I prefer use the config file.

2014-01-31 Ambroise Dhenain ambroise.dhenain@gmail.com:

/config/local.js

2014-01-31 jigneshnavsoft notifications@github.com:

which files i need to chnage the code... for port number changes

On Fri, Jan 31, 2014 at 9:22 AM, Jignesh Jigs ec.jignesh@gmail.com
wrote:

Not Found

The requested URL /user/create was not found on this server.

Apache/2.2.15 (CentOS) Server at localhost Port 80

i close skype but same result nothing comes

On Fri, Jan 31, 2014 at 9:20 AM, Vadorequest <notifications@github.com
wrote:

The error is useful, you have another program running on this port.
Skype is running on :80 for example.

2014-01-31 jigneshnavsoft notifications@github.com

i want to access url like this http://localhost not any port

how to do that??

Reply to this email directly or view it on GitHub<
https://github.com/balderdashy/sails/issues/921#issuecomment-33771313>
.

Cordialement,

M. Ambroise Dhenain.

Reply to this email directly or view it on GitHub<
https://github.com/balderdashy/sails/issues/921#issuecomment-33771452>
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/921#issuecomment-33771708
.

Cordialement,

M. Ambroise Dhenain.

Cordialement,

M. Ambroise Dhenain.

@JigneshPansuriaDeveloper

it works for me http://localhost:8080/
but not working http://localhost

@vaibhavmule
Copy link

Same problem with me on Ubuntu 14.04, I added nodejs at first line. It worked.

@Nishchit14
Copy link

@vaibhavmule @jigneshnavsoft
If you are not root user, Then you can not use port below 1024, Try out higher than 1024 or login as root user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants