rlm_python works in -X, fatal signal when started using systemctl (pRet is NULL)

Jorge Pereira jpereira at freeradius.org
Tue Nov 16 17:01:17 CET 2021


> On 13 Nov 2021, at 20:42, Jonathan Davis <jonathan at prioritycolo.com> wrote:
> 
> I am now on FreeRADIUS Version 3.0.25
> 

Great

> When I go and mod-enable python3, and start in debug I get the error:
> 
> /etc/freeradius/mods-enabled/python3[9]: Failed to link to module 'rlm_python3': /usr/lib/freeradius/rlm_python3.so: cannot open shared object file: No such file or directory
> 
> And it's not wrong, in /usr/lib/freeradius there is no rlm_python3.so, only rlm_python.so
> 
> Trying to install freeradius-python3 gives me:
> 
>  freeradius-python3 : Depends: freeradius (= 3.0.20+dfsg-3build1) but 3.0.25-2 is to be installed
> 

My suggestion is remove all existing *radius* packages, then update to the latest 3.0.25

> If I go with mods-available/python, I can see:
> 
>   # Instantiating module "python" from file /etc/freeradius/mods-enabled/python
> Python version: 2.7.18 (default, Mar  8 2021, 13:02:45)  [GCC 9.3.0]
> python_function_load - Module 'dr_yubikey' not found
> <type 'exceptions.ImportError'> (No module named requests)
> [0] /etc/freeradius/mods-config/python/dr_yubikey.py:13 at <module>()
> python_function_load - Failed to import python function 'dr_yubikey.authenticate'

Can’t find the “dr_yubikey” path, please check where is the dr_yubikey module. e.g: /my/path/whatever/ and add it into the variable “python_path” in /etc/freeradius/mods-enabled/python

Also, double check if exist the function called “authenticate” in dr_yubikey

> /etc/freeradius/mods-enabled/python[9]: Instantiation failed for module "python"
> 
> But dr_yubikey.py exists in mods-config/python/ but it's def trying 2.7.18 not 3.8
> 
> I'm going to hit this fresh in the morning, removing FreeRadius and installing 3.0.20 again, then upgrading. For some reason I removed 3.0.20 I think before installing 3.0.25, as I didn't catch it installed to /etc/freeradius and I was still in /etc/freeradius/3.0 from 3.0.20 wondering what when wrong.
> 

The Ubuntu/Debian packages goes to /etc/freeradius/3.0 and our official packages is in /etc/freeradius. 

> On 2021-11-13 12:36 p.m., Alan DeKok wrote:
>> On Nov 13, 2021, at 11:58 AM, Jonathan Davis<jonathan at prioritycolo.com>  wrote:
>>> Python 3.8.10
>>> Ubuntu 20.04.3 LTS
>>> FreeRADIUS 3.0.20
>>   Upgrade to 3.0.25.  Packages are onhttp://packages.networkradius.com
>> 
>>   If the problem goes away, then it's already been fixed.
>> 
>>   Alan DeKok.
>> 
>> 
>> -
>> List info/subscribe/unsubscribe? Seehttp://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Jorge Pereira
jpereira at networkradius.com






More information about the Freeradius-Users mailing list