OpenSIPS / opensips

OpenSIPS is a GPL implementation of a multi-functionality SIP Server that targets to deliver a high-level technical solution (performance, security and quality) to be used in professional SIP server platforms.
https://opensips.org
Other
1.23k stars 571 forks source link

[BUG] usrloc use redis cache failed #3408

Closed gao114882 closed 1 week ago

gao114882 commented 1 month ago

OpenSIPS version you are running

 ./opensips -V 
version: opensips 3.3.10 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
main.c compiled on 03:30:57 Jun 12 2024 with gcc 4.8.5

Describe the bug

my conf is that, cachedb_redis connect success, so the redis password is correct。

modparam("cachedb_redis", "cachedb_url", "redis://:123456@172.16.4.111:6379")
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "use_domain", 1)
modparam("usrloc", "db_url", "mysql://opensips:opensipsrw@172.16.4.111/opensips")
modparam("usrloc", "timer_interval", 10)
modparam("usrloc", "working_mode_preset", "federation-cachedb-cluster")
modparam("usrloc", "cachedb_url", "redis://:123456@172.16.4.111:6379/0")
modparam("usrloc", "location_cluster", 1)
modparam("usrloc", "skip_replicated_db_ops", 1)

the error is :

 DBG:core:init_mod: initializing module usrloc
Jun 12 14:04:40 [112] DBG:usrloc:mod_init: initializing
Jun 12 14:04:40 [112] INFO:usrloc:ul_init_locks: locks array size 512
Jun 12 14:04:40 [112] DBG:core:get_flag_id_by_name: New flag: [ NAT : 0 ][1]
Jun 12 14:04:40 [112] DBG:usrloc:ul_check_config: ul config: db_mode=-1, cluster_mode=2, rrp=2, sql_wm=0
Jun 12 14:04:40 [112] DBG:core:cachedb_bind_mod: Binded to mod redis
Jun 12 14:04:40 [112] ERROR:usrloc:ul_check_db: not enough capabilities for cachedb_url redis://:123456@172.16.4.111:6379/0
Jun 12 14:04:40 [112] ERROR:usrloc:mod_init: DB support check failed
Jun 12 14:04:40 [112] ERROR:core:init_mod: failed to initialize module usrloc
Jun 12 14:04:40 [112] ERROR:core:main: error while initializing modules
Jun 12 14:04:40 [112] INFO:core:cleanup: cleanup
Jun 12 14:04:40 [112] NOTICE:cachedb_redis:destroy: destroy module cachedb_redis ...

I think the conf maybe is incorrect, can you tell me the correct config settings?

To Reproduce

Expected behavior

Relevant System Logs

OS/environment information

Additional context

github-actions[bot] commented 1 month ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

github-actions[bot] commented 1 week ago

Marking as closed due to lack of progress for more than 30 days. If this issue is still relevant, please re-open it with additional details.