Skip to content

It seems like redis sentinel is not friendly with redis servers that have requirepass enabled  #917

@xetorthio

Description

@xetorthio

I get the following crash when trying to start a sentinel that connects to a redis with requirepass enabled.

4859] 30 Jan 11:49:00.049 * Max number of open files set to 10032
.
.-__ ''-._ _.- .. ''-._ Redis 2.9.7 (ad297a1/0) 64 bit
.-.-``.``\/ _.,_ ''-._ ( ' , .- | , ) Running in sentinel mode |-.-...- __...-.-._|'.-'| Port: 26379
|-._ ._ / .-' | PID: 4859
-._ -.
-./ _.-' _.-' |-.-._-.**.-' .-'.-'|
| -._-.
.-'.-' | http://redis.io
-._-.-.**.-'_.-' _.-' |-.-._-.**.-' .-'.-'|
| -._-._ .-'.-' |
-._-.-.**.-'_.-' _.-' -. -.__.-' _.-' -._ _.-'
`-.__.-'

[4859] 30 Jan 11:49:00.053 #

=== REDIS BUG REPORT START: Cut & paste starting from here ===
[4859] 30 Jan 11:49:00.053 # Redis 2.9.7 crashed by signal: 11
[4859] 30 Jan 11:49:00.053 # Failed assertion: (:0)
[4859] 30 Jan 11:49:00.053 # --- STACK TRACE
0 redis-sentinel 0x00000001077db2b0 logStackTrace + 96
1 redis-sentinel 0x00000001077f01c4 redisProcessCallbacks + 740
2 libsystem_c.dylib 0x00007fff95f758ea _sigtramp + 26
3 ??? 0x0000000032aaaba7 0x0 + 850045863
4 redis-sentinel 0x00000001077ac488 aeProcessEvents + 616
5 redis-sentinel 0x00000001077ac77b aeMain + 43
6 redis-sentinel 0x00000001077b39c9 main + 969
7 libdyld.dylib 0x00007fff96bc57e1 start + 0
[4859] 30 Jan 11:49:00.053 # --- INFO OUTPUT
[4859] 30 Jan 11:49:00.053 # # Server
redis_version:2.9.7
redis_git_sha1:ad297a1a
redis_git_dirty:0
redis_build_id:99a770b5d2f57df0
redis_mode:sentinel
os:Darwin 12.2.1 x86_64
arch_bits:64
multiplexing_api:kqueue
gcc_version:4.2.1
process_id:4859
run_id:049e09161bd8def14892607289e5379a59116e7b
tcp_port:26379
uptime_in_seconds:0
uptime_in_days:0
hz:10
lru_clock:1738006

Clients

connected_clients:0
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

Memory

used_memory:996240
used_memory_human:972.89K
used_memory_rss:1822720
used_memory_peak:995216
used_memory_peak_human:971.89K
used_memory_lua:31744
mem_fragmentation_ratio:1.83
mem_allocator:libc

Persistence

loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1359557340
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok

Stats

total_connections_received:0
total_commands_processed:0
instantaneous_ops_per_sec:0
rejected_connections:0
expired_keys:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0

Replication

role:master
connected_slaves:0

CPU

used_cpu_sys:0.01
used_cpu_user:0.00
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

Commandstats

Cluster

cluster_enabled:0

Keyspace

hash_init_value: 1359577982

[4859] 30 Jan 11:49:00.053 # --- CLIENT LIST OUTPUT
[4859] 30 Jan 11:49:00.053 #
[4859] 30 Jan 11:49:00.053 # --- REGISTERS
[4859] 30 Jan 11:49:00.053 #
RAX:7b992934885643d0 RBX:00007f8469500000
RCX:00007f8469500000 RDX:00007f8469500cf0
RDI:00007f8469500cf0 RSI:00007f8469500000
RBP:00007fff584559e0 RSP:00007fff58455970
R8 :0000000000000001 R9 :0000000000000014
R10:0000000000000001 R11:0000000000000000
R12:00000000000000c0 R13:0000000000000001
R14:00000001078c0000 R15:00007f8469500cf0
RIP:00000001077f01c4 EFL:0000000000010202
CS :000000000000002b FS:0000000000000000 GS:0000000000000000
[4859] 30 Jan 11:49:00.053 # (00007fff584559e8) -> 00000001077ac488
[4859] 30 Jan 11:49:00.053 # (00007fff584559e0) -> 00007fff58455a90
[4859] 30 Jan 11:49:00.053 # (00007fff584559d8) -> 0000000000000006
[4859] 30 Jan 11:49:00.053 # (00007fff584559d0) -> 00000001078c0000
[4859] 30 Jan 11:49:00.053 # (00007fff584559c8) -> 0000000000000001
[4859] 30 Jan 11:49:00.053 # (00007fff584559c0) -> 00000000000000c0
[4859] 30 Jan 11:49:00.053 # (00007fff584559b8) -> 0000000000000001
[4859] 30 Jan 11:49:00.053 # (00007fff584559b0) -> 00007f8469500cf0
[4859] 30 Jan 11:49:00.053 # (00007fff584559a8) -> 7b992934885643d0
[4859] 30 Jan 11:49:00.053 # (00007fff584559a0) -> 0000000000000000
[4859] 30 Jan 11:49:00.053 # (00007fff58455998) -> 00007f8469500000
[4859] 30 Jan 11:49:00.053 # (00007fff58455990) -> 00007f8469500cf0
[4859] 30 Jan 11:49:00.053 # (00007fff58455988) -> 00007fff95f75b29
[4859] 30 Jan 11:49:00.053 # (00007fff58455980) -> 00007f8469500e08
[4859] 30 Jan 11:49:00.053 # (00007fff58455978) -> 00007f8469500e10
[4859] 30 Jan 11:49:00.053 # (00007fff58455970) -> 00007fffffff0000
[4859] 30 Jan 11:49:00.053 #
=== REDIS BUG REPORT END. Make sure to include from START to END. ===

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions