7

all of a sudden my redis database has started to give errors on some connections:

(error) ERR operation not permitted

I've restarted the redis service and am connecting to it with the client using the correct auth key, it connects everytime but only allows db operations through the client only some of the time.

MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460

1 Answers1

13

Try this:

search for the line above in your on the redis config file to check if you have a password set:

requirepass foobared

If that line is not commented out, then you need to do this:

$redis-cli redis 127.0.0.1:6379> AUTH foobared 
OK
simbabque
  • 53,749
  • 8
  • 73
  • 136
MrTeleBird
  • 151
  • 7
  • 1
    Note that the AUTH command only takes one argument: the password. The "OK" up there shouldn't be typed in -- that's the response you'd get for a successful AUTH call. – Tyson Jan 19 '13 at 01:05
  • 1
    that worked for me, thanks.. btw what about this command -> redis-cli -a ? i tried this but it's not working.. – thekucays Nov 01 '16 at 03:53