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

Jonathan Davis jonathan at prioritycolo.com
Sun Nov 14 00:42:46 CET 2021


I am now on FreeRADIUS Version 3.0.25

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

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'
/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.

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


More information about the Freeradius-Users mailing list