Error: Protocol error, got "\x00" as reply type byte

1,127 views
Skip to first unread message

Klapaucius Fitzpatrick

unread,
Apr 12, 2015, 2:56:36 AM4/12/15
to redi...@googlegroups.com
Greetings,

I've installed redis-server on my brand new debian virtual server (hosted by Scaleway's IAAS cloud service)

I launch the daemon with

sudo /etc/init.d redis-server start

And according to the logs, no problem occurs :

[12961] 12 Apr 00:41:18.825 # Server started, Redis version 2.8.17
[12961] 12 Apr 00:41:18.825 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[12961] 12 Apr 00:41:18.859 * DB loaded from disk: 0.034 seconds
[12961] 12 Apr 00:41:18.859 * The server is now ready to accept connections on port 6379

Except when I launch redis-cli and type, for example, 'ping' :

:~ $ redis-cli
127.0.0.1:6379> ping
Error: Protocol error, got "\x00" as reply type byte
:~ $

I noticed there was a problem when my flask app was unable to connect to redis, hence the ping test.

Here is the content of /etc/redis/redis.conf : http://paste.debian.net/166341/

I haven't changed anything in it from the repository version. I've tried changing the port, to no success.

Thanks !

Jan-Erik Rediger

unread,
Apr 12, 2015, 5:51:56 AM4/12/15
to redi...@googlegroups.com
Are you sure Redis is actually listening on 127.0.0.1 port 6379?
Maybe something else is listening on 6379 and Redis only bound to your
IPv6 address.

Check with 'netstat -tlpn'
> --
> 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.

Klapaucius Fitzpatrick

unread,
Apr 12, 2015, 12:13:15 PM4/12/15
to redi...@googlegroups.com
~$ netstat -tlpn
(No info could be read for "-p": geteuid()=1000 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        
0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      -              
tcp        
0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -              
tcp6      
0      0 :::22                   :::*                    LISTEN      -              
Reply all
Reply to author
Forward
0 new messages