[OpenSIPS-Users] Using Redis with OpenSIPS 2.1.5 error
Sami Montour
smontour at hotmail.com
Thu Dec 22 12:52:37 EST 2016
Hello Everyone,
I am trying to use Redis with OpenSIPS 2.1.5 but I am getting an error (see below) indicating that OpenSIPS is not able to load the module (cachedb_redis.so). As you can see from my printout below, the module does exist in the module library directory. Below is my configuration about Redis, OpenSIPS, and the error.
Any help is very much appreciated. Thanks.
========================================
# opensips -c
Dec 21 11:39:04 [15262] ERROR:core:sr_load_module: could not open module
</usr/local/opensips/lib64/opensips/modules/cachedb_redis.so>:
/usr/local/opensips/lib64/opensips/modules/cachedb_redis.so: undefined
symbol: get_redis_connection
Dec 21 11:39:04 [15262] ERROR:core:load_module: failed to load module Dec 21 11:39:04 [15262] CRITICAL:core:yyerror: parse error in config file /usr/local/opensips//etc/opensips/opensips.cfg, line 158, column
13-14: failed to load module cachedb_redis.so
Dec 21 11:39:04 [15262] ERROR:core:set_mod_param_regex: no module matching cachedb_redis found Dec 21 11:39:04 [15262] CRITICAL:core:yyerror: parse error in config file /usr/local/opensips//etc/opensips/opensips.cfg, line 159, column
18-19: Parameter <cachedb_url> not found in module <cachedb_redis> - can't set Dec 21 11:39:04 [15262] ERROR:core:main: bad config file (2 errors)
# ll /usr/local/opensips/lib64/opensips/modules/cachedb_redis.so
-rwxr-xr-x 1 root root 209608 Dec 21 11:16 /usr/local/opensips/lib64/opensips/modules/cachedb_redis.so
========================================
opensips.cfg
#### CacheDB Redis module
loadmodule "cachedb_redis.so"
modparam("cachedb_redis","cachedb_url","redis:group1://localhost:6379/")
========================================
# dpkg -l | grep redis
ii libhiredis-dev:amd64 0.13.3-2
amd64
ii libhiredis0.13:amd64 0.13.3-2
amd64
ii redis-server 2:3.0.6-1 amd64
ii redis-tools 2:3.0.6-1 amd64
========================================
# opensips -V
version: opensips 2.1.5 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_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_lt, epoll_et, sigio_rt, select.
git revision: e381dd5
main.c compiled on 11:14:40 Dec 21 2016 with gcc 5.4.0
========================================
# uname -a
Linux rainier 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC
2016 x86_64 x86_64 x86_64 GNU/Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161222/09a17de6/attachment.html>
More information about the Users
mailing list