Error: Redis connection to 127.0.0.1:6379 failed - connect EINVAL

854 views
Skip to first unread message

Rajiv Kaushal

unread,
Mar 23, 2012, 1:39:09 PM3/23/12
to rubyin...@googlegroups.com
Hi,

I followed instructions from http://www.saltwebsites.com/2012/how-run-redis-service-under-windows for running redis server. 

  1. I downloaded Windows Redis port by Dušan Majkić and extracted to "C:\redisserver\redis\"  I have runtest and redis.conf in this directory for example after extracting here.
  2.  I downloaded Windows Redis service program by Konstantin Cherenkov and extracted to "C:\redisserver\redis-windows-service\" having readme.md and RedisService.sln files in it
  3. I also downloaded file from  https://github.com/kcherenkov/redis-windows-service/downloads i.e RedisService_1.1.exe in "C:\redisserver\"
  4. After that I run command : sc create redis-instance binpath= "\"C:\redisserver\redis\RedisService_1.1.exe\" c:\redisserver\redis\redis.conf start= "auto" DisplayName= "Redis"
  5. I got message after running this command 
  6. [SC] CreateService SUCCESS
  7. Now, when I run juggernaut I am getting the response:
C:\ruby_projects\sports>juggernaut
The "sys" module is now called "util". It should have a similar interface.
   info  - socket.io started
Error: Redis connection to 127.0.0.1:6379 failed - connect EINVAL


Am I doing something wrong? How should I run juggernaut?


--
Thanks and Regards,

Rajiv Kaushal


Luis Lavena

unread,
Mar 23, 2012, 1:43:19 PM3/23/12
to rubyin...@googlegroups.com
On Fri, Mar 23, 2012 at 2:39 PM, Rajiv Kaushal <kalya...@gmail.com> wrote:
> Hi,
>
> I followed instructions
> from http://www.saltwebsites.com/2012/how-run-redis-service-under-windows for
> running redis server.
>

Hello,

Wasn't the instructions I provided before enough?

You don't need to run Redis as a service to actually use it.

> Now, when I run juggernaut I am getting the response:
>
> C:\ruby_projects\sports>juggernaut
> The "sys" module is now called "util". It should have a similar interface.
>    info  - socket.io started
> Error: Redis connection to 127.0.0.1:6379 failed - connect EINVAL
>
> https://gist.github.com/2118265 [My Gem list]
>
> Am I doing something wrong? How should I run juggernaut?
>

Mostly likely the redis instance you configured is not working.

Why you don't start it from the command line, pointing to the
configuration file and see if it works?

You should try to "walk" before "run" and don't follow blindly
tutorials on internet which most of the times just works in the user
system.

It is important you understand what you're doing first than copy and paste.

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Rajiv Kaushal

unread,
Mar 23, 2012, 2:11:39 PM3/23/12
to rubyin...@googlegroups.com
Hi,

I created server.js with the following code in it:

var http = require('http');  
http.createServer(function (req, res) {  
  res.writeHead(200, {'Content-Type': 'text/plain'});  
  res.end('Hello World\n');  
}).listen(6379, "127.0.0.1");

After that I run command c:\node\>node server.js

and juggernaut from separate command window and I got the following output.

The "sys" module is now called "util". It should have a similar interface.
info  - socket.io started

Does it mean it is running fine now?

Thanks and Regards,

Rajiv


Bryan Bibat

unread,
Mar 23, 2012, 2:24:35 PM3/23/12
to rubyin...@googlegroups.com
Please stop for a moment and try to look at what you are doing.

You just created a "hello world" Node.js web server on the same port as Redis, a server that has nothing to do with the latter.

When that has sunk in, kindly refer to Luis' questions on his latest mail. It's in the middle of your mail in case you're not familiar with interleaved posting.

--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.



--
Bryan Bibat
Freelance Software Engineer
http://www.bryanbibat.net
Reply all
Reply to author
Forward
0 new messages