node.js - error:a hook ('orm') failed to load when lifting sails app using Redis -


i trying connect project wigh sails.js redis, when try lift it, have error of readonly,

the whole error next:

error: hook ('orm') failed load! error: error: readonly can't write against read slave.     @ hiredisreplyparser.execute (/home/victor/downloads/gestamp-desarrollo/gestamp-desarrollo/node_modules/redis/lib/parser/hiredis.js:30:33)     @ redisclient.on_data (/home/victor/downloads/gestamp-desarrollo/gestamp-desarrollo/node_modules/redis/index.js:547:27)     @ socket.<anonymous> (/home/victor/downloads/gestamp-desarrollo/gestamp-desarrollo/node_modules/redis/index.js:102:14)     @ socket.eventemitter.emit (events.js:95:17)     @ socket.<anonymous> (_stream_readable.js:746:14)     @ socket.eventemitter.emit (events.js:92:17)     @ emitreadable_ (_stream_readable.js:408:10)     @ emitreadable (_stream_readable.js:404:5)     @ readableaddchunk (_stream_readable.js:165:9)     @ socket.readable.push (_stream_readable.js:127:10)     @ tcp.onread (net.js:526:21) [error: readonly can't write against read slave.] error: error: readonly can't write against read slave.     @ hiredisreplyparser.execute (/home/victor/downloads/gestamp-desarrollo/gestamp-desarrollo/node_modules/redis/lib/parser/hiredis.js:30:33)     @ redisclient.on_data (/home/victor/downloads/gestamp-desarrollo/gestamp-desarrollo/node_modules/redis/index.js:547:27)     @ socket.<anonymous> (/home/victor/downloads/gestamp-desarrollo/gestamp-desarrollo/node_modules/redis/index.js:102:14)     @ socket.eventemitter.emit (events.js:95:17)     @ socket.<anonymous> (_stream_readable.js:746:14)     @ socket.eventemitter.emit (events.js:92:17)     @ emitreadable_ (_stream_readable.js:408:10)     @ emitreadable (_stream_readable.js:404:5)     @ readableaddchunk (_stream_readable.js:165:9)     @ socket.readable.push (_stream_readable.js:127:10)     @ tcp.onread (net.js:526:21) [error: readonly can't write against read slave.] 

the sails.js version 0.10.5

my connections.js is

  redis: {     adapter: 'sails-redis',     port: 6379,     host: '10.250.201.3', //    host: 'localhost',     password: null,     database: 2,     options: {        // low-level configuration       // (redis driver options)       parser: 'hiredis',       return_buffers: false,       detect_buffers: false,       socket_nodelay: true,       no_ready_check: false,       enable_offline_queue: true     }   }, 

and model is:

module.exports = {     schema: false,     connection: 'redis' }; 


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -