Permission denied starting Redis even with sudo

2,440 views
Skip to first unread message

Arthur Zeyda

unread,
Dec 18, 2014, 3:32:36 PM12/18/14
to redi...@googlegroups.com
This might be a really basic thing that I'm missing but I'm getting a permission error when starting Redis using the command "sudo service redis_6379 start". The exact error message that I am getting is "/etc/init.d/redis_6379: 33: /etc/init.d/redis_6379: /usr/local/bin: Permission denied". These are the permissions on redis-server:

-rwxr-xr-x 1 sysadmin root 4236196 Dec 18 15:26 /usr/local/bin/redis-server


Any help would be appreciated.


Josiah Carlson

unread,
Dec 18, 2014, 4:49:06 PM12/18/14
to redi...@googlegroups.com
Open /etc/init.d/redis_6379 . Look at line 33. What does it say?

 - Josiah


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Arthur Zeyda

unread,
Dec 18, 2014, 5:06:45 PM12/18/14
to redi...@googlegroups.com
$EXEC $CONF. Guessing it doesn't have access to the config file? I checked and the config file should have full access.

Josiah Carlson

unread,
Dec 18, 2014, 5:52:03 PM12/18/14
to redi...@googlegroups.com
What are the permissions on /usr/local/bin? And what are the contents of $EXEC and $CONF (you can find them earlier in redis_6379)?

 - Josiah

Arthur Zeyda

unread,
Dec 18, 2014, 8:26:08 PM12/18/14
to redi...@googlegroups.com
Permissions on /usr/local/bin are "drwxr-xr-x  2 sysadmin root 4096 Dec 18 15:26 bin".  $EXEC is "EXEC=/usr/local/bin" is $CONF is "CONF="/etc/redis/6379.conf".

Josiah Carlson

unread,
Dec 18, 2014, 8:45:10 PM12/18/14
to redi...@googlegroups.com
Right now it's trying to execute a directory entry, not the Redis server binary.

The definition for $EXEC should read:
EXEC=/usr/local/bin/redis-server

 - Josiah

Arthur Zeyda

unread,
Dec 18, 2014, 8:53:07 PM12/18/14
to redi...@googlegroups.com
Ha! Wow that was beyond dumb. Thanks for putting up with me. The config asked for the executable path and I figured it was the directory not the actual executable.

Josiah Carlson

unread,
Dec 19, 2014, 1:19:50 AM12/19/14
to redi...@googlegroups.com
Not all lessons are complicated.

 - Josiah

Reply all
Reply to author
Forward
0 new messages