<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi, Sami!<br>
<br>
Did you compile OpenSIPS redis with a different compiler, or with
gcc 5.4?<br>
Can you apply this patch[1] and test again?<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/25502536bb2cd03088b83c4997062841a5a238b1.patch">https://github.com/OpenSIPS/opensips/commit/25502536bb2cd03088b83c4997062841a5a238b1.patch</a><br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 12/22/2016 07:52 PM, Sami Montour
wrote:<br>
</div>
<blockquote
cite="mid:BY2PR10MB074407292283D093DE365819CC920@BY2PR10MB0744.namprd10.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoPlainText">Hello Everyone,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"> 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.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Any help is very much appreciated.
Thanks.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"># opensips -c<o:p></o:p></p>
<p class="MsoPlainText">Dec 21 11:39:04 [15262]
ERROR:core:sr_load_module: could not open module<o:p></o:p></p>
<p class="MsoPlainText"></usr/local/opensips/lib64/opensips/modules/cachedb_redis.so>:
<o:p></o:p></p>
<p class="MsoPlainText">/usr/local/opensips/lib64/opensips/modules/cachedb_redis.so:
undefined<o:p></o:p></p>
<p class="MsoPlainText">symbol: get_redis_connection<o:p></o:p></p>
<p class="MsoPlainText">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<o:p></o:p></p>
<p class="MsoPlainText">13-14: failed to load module
cachedb_redis.so<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">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<o:p></o:p></p>
<p class="MsoPlainText">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)<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"># ll
/usr/local/opensips/lib64/opensips/modules/cachedb_redis.so<o:p></o:p></p>
<p class="MsoPlainText">-rwxr-xr-x 1 root root 209608 Dec 21
11:16
/usr/local/opensips/lib64/opensips/modules/cachedb_redis.so<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText">opensips.cfg<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">#### CacheDB Redis module<o:p></o:p></p>
<p class="MsoPlainText">loadmodule "cachedb_redis.so"<o:p></o:p></p>
<p class="MsoPlainText">modparam("cachedb_redis","cachedb_url","redis:group1://localhost:6379/")<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"># dpkg -l | grep redis<o:p></o:p></p>
<p class="MsoPlainText">ii libhiredis-dev:amd64
0.13.3-2
<o:p></o:p></p>
<p class="MsoPlainText">amd64<o:p></o:p></p>
<p class="MsoPlainText">ii libhiredis0.13:amd64
0.13.3-2
<o:p></o:p></p>
<p class="MsoPlainText">amd64<o:p></o:p></p>
<p class="MsoPlainText">ii redis-server
2:3.0.6-1 amd64<o:p></o:p></p>
<p class="MsoPlainText">ii redis-tools
2:3.0.6-1 amd64<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"># opensips -V<o:p></o:p></p>
<p class="MsoPlainText">version: opensips 2.1.5 (x86_64/linux)<o:p></o:p></p>
<p class="MsoPlainText">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.<o:p></o:p></p>
<p class="MsoPlainText">git revision: e381dd5<o:p></o:p></p>
<p class="MsoPlainText">main.c compiled on 11:14:40 Dec 21 2016
with gcc 5.4.0<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">========================================<o:p></o:p></p>
<p class="MsoPlainText"># uname -a<o:p></o:p></p>
<p class="MsoPlainText">Linux rainier 4.4.0-53-generic
#74-Ubuntu SMP Fri Dec 2 15:59:10 UTC<o:p></o:p></p>
<p class="MsoPlainText">2016 x86_64 x86_64 x86_64 GNU/Linux<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>