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

Error when starting "node app.js" #32

Closed
geronimoooooooo opened this issue Sep 26, 2013 · 3 comments
Closed

Error when starting "node app.js" #32

geronimoooooooo opened this issue Sep 26, 2013 · 3 comments

Comments

@geronimoooooooo
Copy link

I receive an error when I try to start with "node app.js".
Sails loads successfully and I get the information how to start on port: 1337 but in the end there is something wrong with the Redis connection to 127.0.0.1:6379.
The redis db comes with the project?

I use nodejs 0.10 on win2008 server x64.

Waiting...
verbose: Binding route :: get /gist/:id/FeatureServer/:layer/:method
verbose: Binding route :: get /gist/:id/FeatureServer/:layer
verbose: Binding route :: get /gist/:id/FeatureServer
verbose: Binding route :: get /gist/:id
verbose: Binding route :: get /gist/raw/:id
verbose: Binding route :: get /gist/raw/:id/:layer
verbose: Binding route :: get /gist
verbose: Binding route :: get /gist/:id/preview
verbose: Binding route :: get /github/
verbose: Binding route :: get /github/:user
verbose: Binding route :: get /github/:user/:repo
verbose: Binding route :: get /github/:user/:repo/FeatureServer
verbose: Binding route :: get /github/:user/:repo/FeatureServer/:layer
verbose: Binding route :: get /github/:user/:repo/FeatureServer/:layer/:method
verbose: Binding route :: get /github/:user/:repo/:file
verbose: Binding route :: get /github/:user/:repo/:file/FeatureServer
verbose: Binding route :: get /github/:user/:repo/:file/FeatureServer/:layer
verbose: Binding route :: get /github/:user/:repo/:file/FeatureServer/:layer/:method
verbose: Binding route :: get /github/:user/:repo/:file/preview
verbose: Binding route :: get /sample
debug: Lowering sails...
verbose: Sent kill signal to grunt child process...

events.js:72
throw er; // Unhandled 'error' event
^
Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
at RedisClient.on_error (C:\Users\Administrator\Documents\GitHub\koop\node_modules\redis\index.js:163:24)
at Socket. (C:\Users\Administrator\Documents\GitHub\koop\node_modules\redis\index.js:86:14)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:441:14
at process._tickDomainCallback (node.js:459:13)

@chelm
Copy link
Contributor

chelm commented Sep 26, 2013

Ahh totally. Let me add a better check for Redis. If no redis-server is running locally it dies (bug), so it should default to its local cache storage.

Also: Im planning switching out the caching/storage to use levelDB which should eliminate this issue and Redis altogether.

@geronimoooooooo
Copy link
Author

big thx!
Just to clarify: In order to run koop right now, I need to install and run a redis?

@chelm
Copy link
Contributor

chelm commented Sep 26, 2013

@geronimoooooooo I just pushed a fix. If you pull down the latest you dont need to have Redis, it will use a local object hash storage that gets erased every time you stop the koop server. So for testing this in fine but in any sort of production env you'd want to use Redis.

Also, i added a flag to start up to manually tell Koop to use redis (in the readme). so to start with a redis backend:

node app.js --redis=true

@chelm chelm closed this as completed Sep 26, 2013
rgwozdz pushed a commit that referenced this issue Sep 19, 2022
rgwozdz added a commit that referenced this issue Oct 7, 2022
* Add function to register authentication plugin and apply authentication during provider registration.
* Bump koop-output-geoservices. Add tests for auth-plugin registration.
* Tell Travis to use Node 8 - required because tests leverage FeatureServer which uses async/await.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants