[SR-Users] 5.0 to 5.1 - No module matching <geoip2> found

Daniel W. Graham dan at cmsinter.net
Fri Dec 15 05:12:11 CET 2017


Its installed and was working prior to the 5.1 upgrade.

I got the module error fixed. For whatever reason there was an SE context applied to the libmaxminddb.* files that was killing permissions. I was able to reset them. SE linux was disabled prior and is currently.

I still get -

ERROR: <core> [core/pvapi.c:903]: pv_parse_spec2(): error searching pvar "gip2"
ERROR: <core> [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [s/115] in [$gip2(src=>cc)] at [6 (5)]
loading modules under config path: /usr/local/lib64/kamailio/modules/
CRITICAL: <core> [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 560, column 8-21: Can't get from cache: $gip2(src=>cc)
WARNING: <core> [core/ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1

Daniel W. Graham, CTO
CMSInter.net LLC
DIRECT (989) 400-4230

INTERNET | TELEPHONE | MANAGED IT

From: sr-users [mailto:sr-users-bounces at lists.kamailio.org] On Behalf Of Joel Serrano
Sent: Thursday, December 14, 2017 11:01 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching <geoip2> found

You need to have libmaxminddb library installed.

What OS are you using?

If deb based:

$ dpkg -l | grep maxmind

If rpm based:

$ rpm -qa | grep maxmind


Cheers,
Joel.

On Thu, Dec 14, 2017 at 12:24 Daniel W. Graham <dan at cmsinter.net<mailto:dan at cmsinter.net>> wrote:
Upgraded two installs to 5.1.

  *   Same cfg file from 5.0
  *   No issues with install 1

Install 2 results in:

ERROR: <core> [core/modparam.c:152]: set_mod_param_regex(): No module matching <geoip2> found
CRITICAL: <core> [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 343, column 71: Can't set module parameter
ERROR: <core> [core/sr_module.c:582]: load_module(): could not open module </usr/local/lib64/kamailio/modules/geoip2.so>: libmaxminddb.so.0: cannot open shared object file: No such file or directory
CRITICAL: <core> [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 122, column 12-22: failed to load module
WARNING: <core> [core/ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1

ls -l /usr/local/lib64/kamailio/modules/ | grep geo
-rwxr-xr-x 1 root root   73800 Dec 14 12:44 geoip2.so

If I copy cfg file from install 2 to install 1, no issues with install 1.

Any idea what could be going wrong?

- dan

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171215/9e1104c2/attachment.html>


More information about the sr-users mailing list