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

Unhelpful failure when wrong version of redis is installed #6

Open
fantapop opened this issue Apr 25, 2014 · 1 comment
Open

Unhelpful failure when wrong version of redis is installed #6

fantapop opened this issue Apr 25, 2014 · 1 comment

Comments

@fantapop
Copy link

The default redis installation in ubuntu 12.04 is 2.2. If I was paying closer attention to the requirements I would have noticed that hatch requires 2.6+. Instead I got this error message when trying to visit the root:

Error: zrange lua script is not loaded
at RedisHQ.all (/home/chrisf/dev/hatchjs/node_modules/jugglingdb-redis-hq/lib/adapter.js:839:19)
at Function.all (/home/chrisf/dev/hatchjs/node_modules/jugglingdb/lib/model.js:487:25)
at Function.findOne (/home/chrisf/dev/hatchjs/node_modules/jugglingdb/lib/model.js:602:10)
at loadPage (/home/chrisf/dev/hatchjs/lib/middleware.js:116:26)
at async.parallel.req.member (/home/chrisf/dev/hatchjs/lib/middleware.js:54:17)
at /home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:511:21
at /home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:227:13
at /home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:111:13
at Array.forEach (native)
at _each (/home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:32:24)
at async.each (/home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:110:9)
at _asyncMap (/home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:226:9)
at Object.map (/home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:204:23)
at _parallel (/home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:509:20)
at Object.async.parallel (/home/chrisf/dev/hatchjs/node_modules/async/lib/async.js:539:9)
at Object.hatchMiddleware as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:168:78)
at end (/home/chrisf/dev/hatchjs/lib/middleware.js:35:13)
at Object.rewriteMiddleware as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.handle (/home/chrisf/dev/hatchjs/lib/middleware.js:294:9)
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.csrfProtection as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.module.exports as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.methodOverride as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.session as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.cookieParser as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.multipart as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.json as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at Object.urlencoded as handle
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/lib/proto.js:193:15)
at SendStream.error (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/connect/node_modules/serve-static/index.js:86:37)
at SendStream.EventEmitter.emit (events.js:95:17)
at SendStream.error (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/send/lib/send.js:172:51)
at SendStream.onStatError (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/send/lib/send.js:285:48)
at next (/home/chrisf/dev/hatchjs/node_modules/express/node_modules/send/lib/send.js:484:28)
at /home/chrisf/dev/hatchjs/node_modules/express/node_modules/send/lib/send.js:492:23
at Object.oncomplete (fs.js:107:15)

Obviously this is a feature request but it would be nice to have a failure on startup that gives a more reasonable error.

@randunel
Copy link
Member

I believe this is an issue for jugglingdb/redis-hq-adapter

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