Unable to connect to Redis jobboard other than localhost

Bug #1616636 reported by excepttheweasel
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description


I'm using taskflow 2.3.0 and 2.6.0 and trying to use a job board with the following URL:




However, this seems to fail with the error:

    redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused.

I noticed that within the Redis driver, it uses merge_uri to create a config containing the host and port as hostname.

However within CLIENT_CONF_TRANSFERS it is expecting host and port as separate config values. So the actual hostname is never used and it falls back to localhost. Does that sound like an accurate description following over the code?

I feel like the fix might be to have redis accept hostname, rather than host + port in impl_redis.py.

Revision history for this message
excepttheweasel (jebarker) wrote :

Alternatively, the board parameter - though it is being parsed as a URL - is not really used in that way and you're actually supposed to always parse the redis URL yourself and pass in the host and port parameters to fetch_backend. In that case, might I recommend that `fetch_backend` rejects a URL and only allows one of `zookeeper` or `redis` ? Would have helped me diagnose this problem more readily.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.