Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

redis (error) ERR operation not permitted

Tags:

redis

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.

like image 430
MonkeyBonkey Avatar asked Dec 04 '12 16:12

MonkeyBonkey


People also ask

How do I check my Redis settings?

You can obtain a list of all the supported configuration parameters by typing CONFIG GET * in an open redis-cli prompt. All the supported parameters have the same meaning of the equivalent configuration parameter used in the redis.

How do I change Redis configuration?

You can alter the Redis configuration file directly by opening and editing it with your preferred text editor. For example, you can use nano to do so: sudo nano /etc/redis/redis. conf.

Where is the Redis config file located?

The Redis configuration file is located at installdir/redis/etc/redis. conf.


1 Answers

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
like image 117
MrTeleBird Avatar answered Nov 07 '22 16:11

MrTeleBird