codementum / experimentr

Backend (Node.js, redis), frontend (js), and analysis (R) for web-based visualization studies.
29 stars 16 forks source link

Crash on fresh clone w/ npm install #52

Closed connorgr closed 10 years ago

connorgr commented 10 years ago

Error as follows:

Connors-MacBook-Pro-8:experimentr connor$ node app.js 8870
Listening on port 8870

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED
    at RedisClient.on_error     (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:151:24)
    at Socket.<anonymous>     (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:86:14)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:426:14
    at process._tickCallback (node.js:415:13)
codementum commented 10 years ago

Can you check to see if redis-server is running? ps aux | grep redis

On Mon, Nov 11, 2013 at 9:46 AM, Connor Gramazio notifications@github.comwrote:

Error as follows:

Connors-MacBook-Pro-8:experimentr connor$ node app.js 8870 Listening on port 8870

events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED at RedisClient.on_error (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:151:24) at Socket. (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:86:14) at Socket.EventEmitter.emit (events.js:95:17) at net.js:426:14 at process._tickCallback (node.js:415:13)

— Reply to this email directly or view it on GitHubhttps://github.com/codementum/experimentr/issues/52 .

connorgr commented 10 years ago

Connors-MacBook-Pro-8:experimentr connor$ ps aux | grep redis

connor 46826 0.0 0.0 2432784 628 s004 S+ 9:48AM 0:00.00 grep redis

On Mon, Nov 11, 2013 at 9:47 AM, Lane Harrison notifications@github.comwrote:

Can you check to see if redis-server is running? ps aux | grep redis

On Mon, Nov 11, 2013 at 9:46 AM, Connor Gramazio notifications@github.comwrote:

Error as follows:

Connors-MacBook-Pro-8:experimentr connor$ node app.js 8870 Listening on port 8870

events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED at RedisClient.on_error (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:151:24)

at Socket. (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:86:14)

at Socket.EventEmitter.emit (events.js:95:17) at net.js:426:14 at process._tickCallback (node.js:415:13)

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52> .

— Reply to this email directly or view it on GitHubhttps://github.com/codementum/experimentr/issues/52#issuecomment-28205174 .

connorgr commented 10 years ago

Connors-MacBook-Pro-8:experimentr connor$ redis-server redis.conf

-bash: redis-server: command not found

Which is weird given that I did an npm install.

On Mon, Nov 11, 2013 at 9:48 AM, Connor Gramazio connor@cs.brown.eduwrote:

Connors-MacBook-Pro-8:experimentr connor$ ps aux | grep redis

connor 46826 0.0 0.0 2432784 628 s004 S+ 9:48AM 0:00.00 grep redis

On Mon, Nov 11, 2013 at 9:47 AM, Lane Harrison notifications@github.comwrote:

Can you check to see if redis-server is running? ps aux | grep redis

On Mon, Nov 11, 2013 at 9:46 AM, Connor Gramazio notifications@github.comwrote:

Error as follows:

Connors-MacBook-Pro-8:experimentr connor$ node app.js 8870 Listening on port 8870

events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED at RedisClient.on_error (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:151:24)

at Socket. (/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:86:14)

at Socket.EventEmitter.emit (events.js:95:17) at net.js:426:14 at process._tickCallback (node.js:415:13)

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52> .

— Reply to this email directly or view it on GitHubhttps://github.com/codementum/experimentr/issues/52#issuecomment-28205174 .

codementum commented 10 years ago

Ah. It's possible that the npm install for redis only gives you the node library for redis. Assuming you're on a Mac, try brew install redis (or maybe brew install redis-server).

On Mon, Nov 11, 2013 at 9:49 AM, Connor Gramazio notifications@github.comwrote:

Connors-MacBook-Pro-8:experimentr connor$ redis-server redis.conf

-bash: redis-server: command not found

Which is weird given that I did an npm install.

On Mon, Nov 11, 2013 at 9:48 AM, Connor Gramazio connor@cs.brown.eduwrote:

Connors-MacBook-Pro-8:experimentr connor$ ps aux | grep redis

connor 46826 0.0 0.0 2432784 628 s004 S+ 9:48AM 0:00.00 grep redis

On Mon, Nov 11, 2013 at 9:47 AM, Lane Harrison notifications@github.comwrote:

Can you check to see if redis-server is running? ps aux | grep redis

On Mon, Nov 11, 2013 at 9:46 AM, Connor Gramazio notifications@github.comwrote:

Error as follows:

Connors-MacBook-Pro-8:experimentr connor$ node app.js 8870 Listening on port 8870

events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED at RedisClient.on_error

(/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:151:24)

at Socket.

(/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:86:14)

at Socket.EventEmitter.emit (events.js:95:17) at net.js:426:14 at process._tickCallback (node.js:415:13)

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52> .

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52#issuecomment-28205174>

.

— Reply to this email directly or view it on GitHubhttps://github.com/codementum/experimentr/issues/52#issuecomment-28205380 .

connorgr commented 10 years ago

brew install redis did the trick. Want me to update the README.md to make that clear?

On Mon, Nov 11, 2013 at 9:51 AM, Lane Harrison notifications@github.comwrote:

Ah. It's possible that the npm install for redis only gives you the node library for redis. Assuming you're on a Mac, try brew install redis (or maybe brew install redis-server).

On Mon, Nov 11, 2013 at 9:49 AM, Connor Gramazio notifications@github.comwrote:

Connors-MacBook-Pro-8:experimentr connor$ redis-server redis.conf

-bash: redis-server: command not found

Which is weird given that I did an npm install.

On Mon, Nov 11, 2013 at 9:48 AM, Connor Gramazio connor@cs.brown.eduwrote:

Connors-MacBook-Pro-8:experimentr connor$ ps aux | grep redis

connor 46826 0.0 0.0 2432784 628 s004 S+ 9:48AM 0:00.00 grep redis

On Mon, Nov 11, 2013 at 9:47 AM, Lane Harrison < notifications@github.com>wrote:

Can you check to see if redis-server is running? ps aux | grep redis

On Mon, Nov 11, 2013 at 9:46 AM, Connor Gramazio notifications@github.comwrote:

Error as follows:

Connors-MacBook-Pro-8:experimentr connor$ node app.js 8870 Listening on port 8870

events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED at RedisClient.on_error

(/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:151:24)

at Socket.

(/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:86:14)

at Socket.EventEmitter.emit (events.js:95:17) at net.js:426:14 at process._tickCallback (node.js:415:13)

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52> .

— Reply to this email directly or view it on GitHub<

https://github.com/codementum/experimentr/issues/52#issuecomment-28205174>

.

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52#issuecomment-28205380>

.

— Reply to this email directly or view it on GitHubhttps://github.com/codementum/experimentr/issues/52#issuecomment-28205480 .

codementum commented 10 years ago

That sounds great. I'll double check to make sure you're on the collaborators list (so you can push directly).

On Mon, Nov 11, 2013 at 9:54 AM, Connor Gramazio notifications@github.comwrote:

brew install redis did the trick. Want me to update the README.md to make that clear?

On Mon, Nov 11, 2013 at 9:51 AM, Lane Harrison notifications@github.comwrote:

Ah. It's possible that the npm install for redis only gives you the node library for redis. Assuming you're on a Mac, try brew install redis (or maybe brew install redis-server).

On Mon, Nov 11, 2013 at 9:49 AM, Connor Gramazio notifications@github.comwrote:

Connors-MacBook-Pro-8:experimentr connor$ redis-server redis.conf

-bash: redis-server: command not found

Which is weird given that I did an npm install.

On Mon, Nov 11, 2013 at 9:48 AM, Connor Gramazio connor@cs.brown.eduwrote:

Connors-MacBook-Pro-8:experimentr connor$ ps aux | grep redis

connor 46826 0.0 0.0 2432784 628 s004 S+ 9:48AM 0:00.00 grep redis

On Mon, Nov 11, 2013 at 9:47 AM, Lane Harrison < notifications@github.com>wrote:

Can you check to see if redis-server is running? ps aux | grep redis

On Mon, Nov 11, 2013 at 9:46 AM, Connor Gramazio notifications@github.comwrote:

Error as follows:

Connors-MacBook-Pro-8:experimentr connor$ node app.js 8870 Listening on port 8870

events.js:72 throw er; // Unhandled 'error' event ^ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED at RedisClient.on_error

(/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:151:24)

at Socket.

(/Users/connor/brown/cs/rcomp/study/experimentr/node_modules/redis/index.js:86:14)

at Socket.EventEmitter.emit (events.js:95:17) at net.js:426:14 at process._tickCallback (node.js:415:13)

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52> .

— Reply to this email directly or view it on GitHub<

https://github.com/codementum/experimentr/issues/52#issuecomment-28205174>

.

— Reply to this email directly or view it on GitHub<

https://github.com/codementum/experimentr/issues/52#issuecomment-28205380>

.

— Reply to this email directly or view it on GitHub< https://github.com/codementum/experimentr/issues/52#issuecomment-28205480>

.

— Reply to this email directly or view it on GitHubhttps://github.com/codementum/experimentr/issues/52#issuecomment-28205794 .

connorgr commented 10 years ago

Closed. Solution: brew install redis. Also added detailed dependency installation instructions.

codementum commented 10 years ago

:clap::clap::clap: