FreeRadius 3.2.3 not starting due to missing MongoDB driver
Hello All, We are unable to start FreeRadius with MongoDB sql driver enabled on sql module, it is stating: Could not link driver rlm_sql_mongo: /usr/lib64/freeradius/rlm_sql_mongo.so: cannot open shared object file: No such file or directory Make sure it (and all its dependent libraries!) are in the search path of your system's ld /etc/raddb/mods-enabled/sql[27]: Instantiation failed for module "sql" We installed Freeradius v3.2.3 using the official repo of Rocky Linux 8 below: http://packages.networkradius.com/freeradius-3.2/rocky/ # dnf install freeradius Appreciate your help of what could be missing from the installation steps to make it work Best regards
On Aug 13, 2023, at 10:59 AM, Ibrahim Al Mahfooz <ibrahim.nezar@sevennet.net> wrote:
We are unable to start FreeRadius with MongoDB sql driver enabled on sql module, it is stating:
Could not link driver rlm_sql_mongo: /usr/lib64/freeradius/rlm_sql_mongo.so: cannot open shared object file: No such file or directory Make sure it (and all its dependent libraries!) are in the search path of your system's ld /etc/raddb/mods-enabled/sql[27]: Instantiation failed for module "sql"
We installed Freeradius v3.2.3 using the official repo of Rocky Linux 8 below: http://packages.networkradius.com/freeradius-3.2/rocky/
The Mongo driver is experimental, and isn't in the default packages. You will have to build a new package from source. Alan DeKok.
May I ask, if i build a new a new package from source which i guess you mean from FR git, how to ensure MongoDb driver will be included during the build stage? Any flag related to mongodb should be included during the config step or will i need to install mongodb client before the compile step? Appreciate hints or a reference to a guide for this driver inclusion Thanks Alan On Sun, 13 Aug 2023 at 18:05 Alan DeKok <aland@deployingradius.com> wrote:
On Aug 13, 2023, at 10:59 AM, Ibrahim Al Mahfooz < ibrahim.nezar@sevennet.net> wrote:
We are unable to start FreeRadius with MongoDB sql driver enabled on sql module, it is stating:
Could not link driver rlm_sql_mongo: /usr/lib64/freeradius/rlm_sql_mongo.so: cannot open shared object file: No such file or directory Make sure it (and all its dependent libraries!) are in the search path of your system's ld /etc/raddb/mods-enabled/sql[27]: Instantiation failed for module "sql"
We installed Freeradius v3.2.3 using the official repo of Rocky Linux 8 below: http://packages.networkradius.com/freeradius-3.2/rocky/
The Mongo driver is experimental, and isn't in the default packages.
You will have to build a new package from source.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Ibrahim Abdulatif IT and EPC Core Signaling Manager Sevennet Layers Co., LTD. +964 (0) 53 511 5514 <+964+(0)+53+511+5514> | +964 (0) 770 471 5514 <+964+(0)+770+471+5514> www.sevennet.net 2nd Floor, Faruk Investment Group, Salim Street, Sulaymaniyah, Iraq
On Aug 13, 2023, at 1:16 PM, Ibrahim Al Mahfooz <ibrahim.nezar@sevennet.net> wrote:
May I ask, if i build a new a new package from source which i guess you mean from FR git, how to ensure MongoDb driver will be included during the build stage?
Any flag related to mongodb should be included during the config step or will i need to install mongodb client before the compile step?
Appreciate hints or a reference to a guide for this driver inclusion
You'll have to install the mongo client libraries and header files. Then edit redhat/freeradius.spec, and delete: --without-rlm_sql_mongo \ ... rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/ippool/mongo rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/main/mongo ... And then it should build. But I haven't looked at that in detail. Alan DeKok.
Thank you Alan. We will give it a try in a testing environment. However since there is a performance penalty thing you highlighted in the other thread https://lists.freeradius.org/pipermail/freeradius-users/2023-August/103491.h..., actually we changed our mind when it came to production until that async API driver get developed by Mongo. We also put my vote on the Mongo page for this request. Appreciate the guidance. Best regards
On Aug 22, 2023, at 9:59 AM, Ibrahim Al Mahfooz <ibrahim.nezar@sevennet.net> wrote:
Thank you Alan. We will give it a try in a testing environment. However since there is a performance penalty thing you highlighted in the other thread https://lists.freeradius.org/pipermail/freeradius-users/2023-August/103491.h..., actually we changed our mind when it came to production until that async API driver get developed by Mongo. We also put my vote on the Mongo page for this request.
The performance penalty is likely the difference between 5K packets/s and 20K packets/s. So if you have a small system, it doesn't matter. The async stuff in v4 is largely there to permit higher scaling. i.e. millions to tens of millions of users. Right now, v3 runs just fine for hundreds of thousands of users and more. But it could be better, which is why we're doing v4. Alan DeKok.
participants (2)
-
Alan DeKok -
Ibrahim Al Mahfooz