Skip to content

Unhelpful failure when wrong version of redis is installed #6

@fantapop

Description

@fantapop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions