Re: Cannot start Redis - "Can't open the log file: Permission denied"

11,519 views
Skip to first unread message

Tim Lossen

unread,
Nov 28, 2012, 5:17:05 AM11/28/12
to redi...@googlegroups.com
why don't you change the configuration so that the log file is created in some other (= writable) directory?


On 2012-11-28, at 08:20 , Ram wrote:

> I have installed Redis from the tar.gz and I followed the instructions in the "Installing Redis more properly" section of the Redis Quick Start guide (http://redis.io/topics/quickstart)
>
> But when I get to the final step of actually starting the Redis service, I get the following error
>
> $ /etc/init.d/redis_6379 start
> Starting Redis server...
>
> *** FATAL CONFIG FILE ERROR ***
> Reading the configuration file, at line 53
> >>> 'logfile /var/log/redis_6379.log'
> Can't open the log file: Permission denied
>
> Any help is appreciated.
>
> The file does not exist yet because it's a fresh install. I have tried creating the file but it gets created by root because I need sudo to create files in that location. The quick start guide does not seem to say anything about permissions for the log file so I am guessing this shouldn't be an issue.
>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/COpwtFuLuB4J.
> 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.

--
http://tim.lossen.de



Vivek Chaure

unread,
Nov 28, 2012, 5:27:46 AM11/28/12
to redi...@googlegroups.com
sudo /etc/init.d/redis_6379 start

regards,
-
Vivek M. Chaure

Ram

unread,
Dec 13, 2012, 11:32:42 PM12/13/12
to redi...@googlegroups.com
Thanks guys, it worked when I changed permissions on the log file but I think next time I would probably try running it using sudo

Muhammad Taqi Hassan Bukhari

unread,
Nov 3, 2016, 5:53:16 AM11/3/16
to Redis DB
it starts with sudo /etc/init.d/redis_6379 start, but on reboot, the issue is same, i have to do it manually each time on reboot.
Reply all
Reply to author
Forward
0 new messages