Skip to content

AUTH doesn't work #10

Closed
Closed
@FSX

Description

@FSX

I'm using something like this:

    self.redis = Redis(host=options.redis_host, port=options.redis_port, db=options.redis_db)
    self.redis.auth('fooword')

And I get this output:

[frank@isamu 61924]$ python index.py 
Traceback (most recent call last):
  File "index.py", line 651, in <module>
    main()
  File "index.py", line 644, in main
    http_server = tornado.httpserver.HTTPServer(Application())
  File "index.py", line 126, in __init__
    self.redis.auth('fooword')
  File "/srv/http/nginx/61924/modules/redis.py", line 1261, in auth
    return self.send_command('AUTH %s\r\n' % passwd)
  File "/srv/http/nginx/61924/modules/redis.py", line 122, in _send_command_retry
    return self._send_command(s)
  File "/srv/http/nginx/61924/modules/redis.py", line 110, in _send_command
    self.connect()
  File "/srv/http/nginx/61924/modules/redis.py", line 1355, in connect
    self.select(self.db)
  File "/srv/http/nginx/61924/modules/redis.py", line 1164, in select
    return self.send_command('SELECT %s\r\n' % db)
  File "/srv/http/nginx/61924/modules/redis.py", line 122, in _send_command_retry
    return self._send_command(s)
  File "/srv/http/nginx/61924/modules/redis.py", line 118, in _send_command
    return self._get_response()
  File "/srv/http/nginx/61924/modules/redis.py", line 1273, in _get_response
    raise ResponseError(err)
modules.redis.ResponseError: operation not permitted

When I use telnet it works:

[frank@isamu 61924]$ telnet localhost 6379
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
AUTH fooword
+OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions