delano / redis-dump

Redis to JSON and nack again
https://rubygems.org/gems/redis-dump
MIT License
825 stars 124 forks source link

TimeoutError #36

Closed yisangwu closed 5 months ago

yisangwu commented 6 months ago

ERROR (Redis::TimeoutError): Waited 1.0 seconds

Redis Server

redis_version:7.0.12

Can you support the latest version?

delano commented 6 months ago

@yisangwu It supports Redis 7.x already. Based on the error, the issue you're having is related to the network connection. You can try increasing the timeout.

$ bin/redis-dump -h
  Try: bin/redis-dump show-commands
Usage: bin/redis-dump [global options] COMMAND [command options] 
    ...

    -t, --timeout=S                  Configure connect, read, and write timeouts (ruby redis client)

Otherwise, if you still get the same error then the redis server either isn't running or isn't available to the machine running redis-dump.