Sails cannot connect to remote Redis Server in Dev Environment V1.1.0lrange command on sails-redisRemote SQL Server with sails jsConnecting Sails with SQL ServerSails redis connection remains openSails JS with Redis for cachingsails waterline sort on number not working(sails-redis)Sails connect-redis adapterSailsJS deployment on azure is not stableSails 1.0 - sails-disk for dev/test and sails-mongo for productionsails cannot lift when changing adapter to sails-disk or sails-memory
Partial Fractions: Why does this shortcut method work?
What's the term for a group of people who enjoy literary works?
Why do player start with fighting for the corners in go?
When did J.K. Rowling decide to make Ron and Hermione a couple?
How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?
Has J.J.Jameson ever found out that Peter Parker is Spider-Man?
How is Sword Coast North governed?
Why are prop blades not shaped like household fan blades?
How to avoid a lengthy conversation with someone from the neighborhood I don't share interests with
How to structure presentation to avoid getting questions that will be answered later in the presentation?
Move label of an angle in Tikz
Protect a 6 inch air hose from physical damage
"Fewer errors means better products" or "Fewer errors mean better products"?
What's the proper way of indicating that a car has reached its destination during a dialogue?
How do people drown while wearing a life jacket?
Gold Battle KoTH
Need help identifying how to open this bolt/screw
Overprovisioning SSD on ubuntu. How? Ubuntu 19.04 Samsung SSD 860
HackerRank Implement Queue using two stacks Solution
How to power down external drive safely
Why did the United States not resort to nuclear weapons in Vietnam?
Adding a (stair/baby) gate without facing walls
Is there a general term for the items in a directory?
Feedback diagram
Sails cannot connect to remote Redis Server in Dev Environment V1.1.0
lrange command on sails-redisRemote SQL Server with sails jsConnecting Sails with SQL ServerSails redis connection remains openSails JS with Redis for cachingsails waterline sort on number not working(sails-redis)Sails connect-redis adapterSailsJS deployment on azure is not stableSails 1.0 - sails-disk for dev/test and sails-mongo for productionsails cannot lift when changing adapter to sails-disk or sails-memory
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to configure persistent sessions through a remote server with redis.
under sails.config.session I am configuring the following code to connect to my Server
module.exports.session =
adapter: '@sailshq/connect-redis',
url:"redis://:pass@157.xxx.xxx.xxx:6379/0",
prefix: 'sess:',
secret: "secretSailsSessionDataHere",
cookie:
maxAge: 1 * 60 * 60 * 1000
,
When I lift Sails with:
sails lift --redis or sails lift
The connection defaults to my localhost redis server. If I shutdown my local server it says connection refused from 127.0.0.1 when my server address is xxx.xxx.xxx It also spits out the following error
Redis connection manager failed unexpectedly. Details: Error: Error emitted from Redis client.
Error details:ReplyError: ERR invalid DB index
Any suggestions on how I can configure module.exports.sessions to use the remote server?
sails.js
add a comment |
I am trying to configure persistent sessions through a remote server with redis.
under sails.config.session I am configuring the following code to connect to my Server
module.exports.session =
adapter: '@sailshq/connect-redis',
url:"redis://:pass@157.xxx.xxx.xxx:6379/0",
prefix: 'sess:',
secret: "secretSailsSessionDataHere",
cookie:
maxAge: 1 * 60 * 60 * 1000
,
When I lift Sails with:
sails lift --redis or sails lift
The connection defaults to my localhost redis server. If I shutdown my local server it says connection refused from 127.0.0.1 when my server address is xxx.xxx.xxx It also spits out the following error
Redis connection manager failed unexpectedly. Details: Error: Error emitted from Redis client.
Error details:ReplyError: ERR invalid DB index
Any suggestions on how I can configure module.exports.sessions to use the remote server?
sails.js
add a comment |
I am trying to configure persistent sessions through a remote server with redis.
under sails.config.session I am configuring the following code to connect to my Server
module.exports.session =
adapter: '@sailshq/connect-redis',
url:"redis://:pass@157.xxx.xxx.xxx:6379/0",
prefix: 'sess:',
secret: "secretSailsSessionDataHere",
cookie:
maxAge: 1 * 60 * 60 * 1000
,
When I lift Sails with:
sails lift --redis or sails lift
The connection defaults to my localhost redis server. If I shutdown my local server it says connection refused from 127.0.0.1 when my server address is xxx.xxx.xxx It also spits out the following error
Redis connection manager failed unexpectedly. Details: Error: Error emitted from Redis client.
Error details:ReplyError: ERR invalid DB index
Any suggestions on how I can configure module.exports.sessions to use the remote server?
sails.js
I am trying to configure persistent sessions through a remote server with redis.
under sails.config.session I am configuring the following code to connect to my Server
module.exports.session =
adapter: '@sailshq/connect-redis',
url:"redis://:pass@157.xxx.xxx.xxx:6379/0",
prefix: 'sess:',
secret: "secretSailsSessionDataHere",
cookie:
maxAge: 1 * 60 * 60 * 1000
,
When I lift Sails with:
sails lift --redis or sails lift
The connection defaults to my localhost redis server. If I shutdown my local server it says connection refused from 127.0.0.1 when my server address is xxx.xxx.xxx It also spits out the following error
Redis connection manager failed unexpectedly. Details: Error: Error emitted from Redis client.
Error details:ReplyError: ERR invalid DB index
Any suggestions on how I can configure module.exports.sessions to use the remote server?
sails.js
sails.js
edited Mar 27 at 2:07
bleik urrego
asked Mar 27 at 0:32
bleik urregobleik urrego
586 bronze badges
586 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368116%2fsails-cannot-connect-to-remote-redis-server-in-dev-environment-v1-1-0%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55368116%2fsails-cannot-connect-to-remote-redis-server-in-dev-environment-v1-1-0%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown