Issue 488 in redis: Cannot start server. Fatal Config File Error

2,088 views
Skip to first unread message

re...@googlecode.com

unread,
Mar 20, 2011, 5:50:22 AM3/20/11
to redi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 488 by Sebou...@gmail.com: Cannot start server. Fatal Config File
Error
http://code.google.com/p/redis/issues/detail?id=488

What version of Redis you are using, in what kind of Operating System?

redis-2.2.2 on Linux/Ubuntu 10.10

What is the problem you are experiencing?

Cannot start redis server

What steps will reproduce the problem?

redis-server redis.conf

Do you have an INFO output? Please past it here.

*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 135
>>> 'slave-serve-stale-data yes'
Bad directive or wrong number of arguments

If it is a crash, can you please paste the stack trace that you can find in
the log file or on standard output? This is really useful for us!

Please provide any additional information below.
I installed by following the directions here:http://redis.io/download Any
help is much appreciated. thanks!

re...@googlecode.com

unread,
Mar 20, 2011, 5:59:24 AM3/20/11
to redi...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 488 by pcnoordh...@gmail.com: Cannot start server.

You have an older version of Redis installed on your operating system.
Please start redis-server by pointing to the exact path of the binary. When
your working directory is the root of the archive you downloaded, you can
start it by executing "src/redis-server".

re...@googlecode.com

unread,
Mar 20, 2011, 6:16:27 AM3/20/11
to redi...@googlegroups.com

Comment #2 on issue 488 by Sebou...@gmail.com: Cannot start server. Fatal

Thanks.. When I do that I get Opening port: bind: Address already in use
But I don't have a server running. Do you know how to fix that?

re...@googlecode.com

unread,
Mar 20, 2011, 6:26:30 AM3/20/11
to redi...@googlegroups.com

Comment #3 on issue 488 by pcnoordh...@gmail.com: Cannot start server.

You have something running on that port, whether it is Redis itself or
something else. That needs to be killed/quitted first. Otherwise, you can
run Redis on a different, unused, port.

re...@googlecode.com

unread,
Mar 20, 2011, 7:13:51 AM3/20/11
to redi...@googlegroups.com

Comment #4 on issue 488 by Sebou...@gmail.com: Cannot start server. Fatal

How would I find out what's running on the port and quit it? And how can I
run it on a different port?

re...@googlecode.com

unread,
Mar 20, 2011, 7:17:52 AM3/20/11
to redi...@googlegroups.com

Comment #5 on issue 488 by Sebou...@gmail.com: Cannot start server. Fatal

btw NMAP says port 631 is open.


PORT STATE SERVICE
631/tcp open ipp


re...@googlecode.com

unread,
Mar 20, 2011, 8:01:58 AM3/20/11
to redi...@googlegroups.com

Comment #6 on issue 488 by pcnoordh...@gmail.com: Cannot start server.

Use "lsof -i :6379 | grep -i listen" to find out which process is listening
on the default Redis port. Change the config file to make Redis listen on
another port.

re...@googlecode.com

unread,
Mar 20, 2011, 9:23:10 PM3/20/11
to redi...@googlegroups.com

Comment #7 on issue 488 by Sebou...@gmail.com: Cannot start server. Fatal

That command shows that nothing is running on port 6379. I can't seem to
get it to work. What's the best way to uninstall and install again?

re...@googlecode.com

unread,
Mar 21, 2011, 4:00:00 AM3/21/11
to redi...@googlegroups.com

Comment #8 on issue 488 by pcnoordh...@gmail.com: Cannot start server.

You're passing a config file when starting Redis. Please double check that
nothing is running on the port that is specified in that config file (6379
is the default, but when Redis quits saying that the port is already in
use, and 6379 is not bound, you probably have a non-default port number
specified in you config file?).

re...@googlecode.com

unread,
Mar 21, 2011, 6:38:49 PM3/21/11
to redi...@googlegroups.com

Comment #9 on issue 488 by Sebou...@gmail.com: Cannot start server. Fatal

I've verified that nothing is running on port 6379. I've checked the
default port and it's 6379. I need to run redis on this port to make it
work with juggernaut. I've tried deleting the folder and reinstalling, and
I get the same result. Has this happened to anyone else? What do you
recommend? Thanks..

re...@googlecode.com

unread,
Apr 4, 2011, 3:58:40 PM4/4/11
to redi...@googlegroups.com

Comment #10 on issue 488 by soufiane...@gmail.com: Cannot start server.

I have the same problem on ubuntu 10.10

Greg Andrews

unread,
Apr 4, 2011, 5:36:26 PM4/4/11
to redi...@googlegroups.com
Comment #10 on issue 488 by soufiane...@gmail.com: Cannot start server. Fatal Config File Error
I have the same problem on ubuntu 10.10


Are you using the Ubuntu package?  None of the Redis versions packaged by Ubuntu are recent enough to  support the "slave-serve-stale-data" config file option.

re...@googlecode.com

unread,
Sep 15, 2011, 8:04:38 AM9/15/11
to redi...@googlegroups.com

Comment #11 on issue 488 by rajitha....@gmail.com: Cannot start server.

yes even i am facing the same problem..

re...@googlecode.com

unread,
Sep 20, 2011, 4:14:49 AM9/20/11
to redi...@googlegroups.com

Comment #12 on issue 488 by sahil20g...@gmail.com: Cannot start server.

same problem i am facing if I go to config file and then change port to
something else the redis server is running but the issue is i need to
integrate it with juggernaut..... how to run it at default port ?????????/


re...@googlecode.com

unread,
Sep 20, 2011, 4:49:41 AM9/20/11
to redi...@googlegroups.com

Comment #13 on issue 488 by anti...@gmail.com: Cannot start server. Fatal

Hi, I just included the port number in the error message when Redis can't
bind the listening socket so that troubleshooting will be simpler the next
time. However this is not a Redis bug but a setup issue.

Salvatore

re...@googlecode.com

unread,
Sep 20, 2011, 4:58:48 AM9/20/11
to redi...@googlegroups.com

Comment #14 on issue 488 by sahil20g...@gmail.com: Cannot start server.

how to resolve that issue then ?? @anti

re...@googlecode.com

unread,
Sep 20, 2011, 5:25:15 AM9/20/11
to redi...@googlegroups.com

Comment #15 on issue 488 by anti...@gmail.com: Cannot start server. Fatal

not sure I understand your issue but you can try writing to the Redis
Google Group.
If the problem is that you can't change port, likely you specify a port
number in redis.conf but then don't run redis-server with "redis-server
/path/to/config/file".

re...@googlecode.com

unread,
Mar 7, 2012, 12:11:02 PM3/7/12
to redi...@googlegroups.com

Comment #16 on issue 488 by hanqch...@gmail.com: Cannot start server. Fatal

I have the same problem after I install a new version redis. After I reboot
my computer, all the problem is gone. I guess this problem is because there
is an old version redis running on your computer.


re...@googlecode.com

unread,
Aug 4, 2014, 8:17:07 PM8/4/14
to redi...@googlegroups.com

Comment #17 on issue 488 by create0...@gmail.com: Cannot start server.
Is this issue solved? I found nothing run at port 6379 but redis says the
address already in use. Sometimes reboot may helps.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

re...@googlecode.com

unread,
Aug 4, 2014, 8:52:07 PM8/4/14
to redi...@googlegroups.com

Comment #18 on issue 488 by josiah.c...@gmail.com: Cannot start server.
This bug tracker is no longer in use, it has been migrated to
github.com/antirez/redis .

Your problem is not a bug with Redis, but is caused by your usage of Redis.
You should email the Redis mailing list
(https://groups.google.com/forum/#!forum/redis-db) with your problem, what
you have done to diagnose your problem, and what you would like to happen.

re...@googlecode.com

unread,
Jun 26, 2015, 10:57:51 PM6/26/15
to redi...@googlegroups.com

Comment #19 on issue 488 by edysatri...@gmail.com: Cannot start server.
Fatal Config File Error
https://code.google.com/p/redis/issues/detail?id=488

please help me.
my case error same like sebou :
root@satria-pc:/home/satria# service redis-server restart
Stopping redis-server: redis-server.
Starting redis-server:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 709
>>> 'unixsocket /tmp/redis.sock echo unixsocket /tmp/redis.sock'
Bad directive or wrong number of arguments
failed

re...@googlecode.com

unread,
Jun 26, 2015, 11:59:56 PM6/26/15
to redi...@googlegroups.com

Comment #20 on issue 488 by josiah.c...@gmail.com: Cannot start server.
A few things:
1) Bug tracking was moved to Github, as I last stated August 4, 2014
2) This isn't a bug with Redis, this is a problem with your configuration
file, which is why it has a status of "invalid"
3) The error reported by Redis tells you exactly what is wrong: "bad
directive or wrong number of arguments" - line 709 *should*
read 'unixsocket /tmp/redis.sock' without the quotes, assuming that is the
socket path you want
Reply all
Reply to author
Forward
0 new messages