Hello, On 10.05.23 22:40, Victor Seva wrote: > Hi, > > On 10/5/23 16:36, Denys Pozniak wrote: >> Hello! >> >> After a major upgrade of Kamailio (5.1 -> 5.6), an error appears that >> it is not possible to open configuration file (I think this is about >> /etc/radiusclient/radiusclient.conf), although it exists with the >> necessary access rights: >> /0(27075) DEBUG: <core> [core/sr_module.c:969]: init_mod(): auth_radius >> 0(27075) ERROR: auth_radius [auth_radius.c:123]: mod_init(): failed >> to open configuration file >> 0(27075) ERROR: <core> [core/sr_module.c:975]: init_mod(): Error >> while initializing module auth_radius >> (/usr/lib64/kamailio/modules/auth_radius.so) >> ERROR: error while initializing modules >> / >> For the test, I made Kamailio downgrade back to 5.1 and the problem >> went away. >> Shortened the Kamailio config to the minimum for reproducing the >> problem: >> >> /#!KAMAILIO >> memdbg=5 >> memlog=5 >> children=1 >> log_stderror=no >> listen=udp:127.0.0.1:5060 <http://127.0.0.1:5060> >> loadmodule "kex.so" >> loadmodule "corex.so" >> loadmodule "tm.so" >> loadmodule "sl.so" >> loadmodule "rr.so" >> loadmodule "pv.so" >> loadmodule "maxfwd.so" >> loadmodule "auth.so" >> loadmodule "auth_radius.so" >> modparam("auth_radius", "radius_config", >> "/etc/radiusclient/radiusclient.conf") >> >> request_route { >> return; >> } >> / >> >> Could the commit below somehow affect the acceptance of the >> radius_config module parameter? >> https://github.com/kamailio/kamailio/commit/f33ba318b20cbd2b34d278a7e2c4e64129b9e68d >> <https://github.com/kamailio/kamailio/commit/f33ba318b20cbd2b34d278a7e2c4e64129b9e68d> >> >> > > No, I don't think so.
Indeed, that commit should not change anything. Looking at the code, it is rc_read_config() that fails -- this is not a function implemented inside kamailio, being from radius client library. Is it the same radius client library used for the two test cases? It is the same operating system? In other words, have you tried with the two version on exactly the same system? Cheers, Daniel -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - June 5-7, 2023 - www.kamailioworld.com __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
