added redis requirepass in the conf and now I cant restart

1,159 views
Skip to first unread message

David Montgomery

unread,
Feb 11, 2012, 6:36:09 AM2/11/12
to redi...@googlegroups.com
Hi,

I added password requirepass in the conf file and now I cant stop the server.

sudo /etc/init.d/redis_6379 stop

Stopping ...
(error) ERR operation not permitted
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...

How to I resolve?

Thanks

Salvatore Sanfilippo

unread,
Feb 11, 2012, 9:38:55 AM2/11/12
to redi...@googlegroups.com
Modify your init script to use '-a' (auth) in the redis-cli call.

Ciao,
Salvatore

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>

--
Salvatore 'antirez' Sanfilippo
open source developer - VMware

http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele

David Montgomery

unread,
Feb 11, 2012, 11:18:25 AM2/11/12
to redi...@googlegroups.com
Hi,

I modified the below in the init.d script. Now I get the below error.

CLIEXEC=/usr/local/bin/redis-cli -a password

./redis_6379 stop
./redis_6379: line 5: -a: command not found
Stopping ...
./redis_6379: line 32: -p: command not found


Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...

Kosma Moczek

unread,
Feb 13, 2012, 5:37:41 PM2/13/12
to redi...@googlegroups.com
On Sat, Feb 11, 2012 at 5:18 PM, David Montgomery
<davidmo...@gmail.com> wrote:
> I modified the below in the init.d script.  Now I get the below error.
>
> CLIEXEC=/usr/local/bin/redis-cli -a password

Try the following (might or might not work depending on the script):

CLIEXEC="/usr/local/bin/redis-cli -a password"

--
Kosma Moczek
http://www.kosma.pl/

Reply all
Reply to author
Forward
0 new messages