Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:41:50+00:00 2026-06-15T02:41:50+00:00

I have set up an instance to use as a redis worker. All ports

  • 0

I have set up an instance to use as a redis worker. All ports are open. When i issue

library("doRedis")
redisWorker(host="ZZZ-23-20-XXX-XXX.compute-1.amazonaws.com", queue="jobs")

i get the error

Error in socketConnection(host, port, open = "a+b", blocking = TRUE, timeout = timeout) : 
  cannot open the connection
In addition: Warning message:
In socketConnection(host, port, open = "a+b", blocking = TRUE, timeout = timeout) :
  ZZZ-23-20-XXX-XXX.compute-1.amazonaws.com:6379 cannot be opened

Any ideas what could be going on? I have also used the inernal EC2 IP (10.XXX.XXX.ZZZ) still get the same error. The server is up, running and pingable

I am running latest and greatest of R, doRedis,Ubuntu 12.04 all fully updated. This has been discussed before but no solution found. doRedis with strange socket connection error in Ubuntu Linux, R, and RStudio

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:41:52+00:00Added an answer on June 15, 2026 at 2:41 am

    I have had similar issues although with registerDoRedis() as you cannot set a timeout and I believe the problem is with the timeout value used in the function ‘redisConnect’.

    In R if you run fix(redisConnect) and you can see the default for timeout is as follows:

    redisConnect <- function (host = “localhost”, port = 6379, returnRef = FALSE,
    timeout = 2147483647L)

    It seems this huge timeout value is causing the issue. To check change it on the line it is used from this:

    con <- socketConnection(host, port, open = "a+b", blocking = TRUE, 
        timeout = timeout)
    

    To this:

    con <- socketConnection(host, port, open = "a+b", blocking = TRUE, 
        timeout = 30)
    

    I find that works although as soon as you reload the package the change gets wiped. I just found this today so will submit a bug to the developer. I’m running R 2.15 on OSX by the way.

    The function you are using should default to timeout 30, or you can try setting it on the function call to be sure rather than fix()’ing the underlying code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking to have a database query set all the instance variables in a class:
I have successfully set up an HgWebDir instance over CGI with Apache, and I
I have a set of experimental values. For instance, I have a value of
I have a ComboBox with its DataSource set to an instance of a DataTable.
I have a instance of Oracle Access Manager set up on Server A and
Problem: I have a value that is set in $record, for instance 1.69. Then
I have set up my EC2 infrastructure behind an ELB instance and by using
I have a Silverlight DataGrid and I have set the ItemsSource to an instance
I have a set of callback classes that I use for handling callbacks with
I have a Set that I need to use the findAll closure upon. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.