That's a configuration issue related to "eap". Are you trying to configure
EAP?

Fed

On Fri, Dec 7, 2018 at 11:55 AM Yash Jipkate <[email protected]> wrote:

> Thanks Federico,
>
> The server is a development one and I have specified the port
> in /etc/freeradius/mods-enabled/rest file. Although I have changed it back
> to 8000 after you pointed out but still no effect.
>
> Is freeradius sitting on the same host where
>> django-freeradius/openwisp-radius is installed?
>
>
> The host is 127.0.0.1 as specified in my
> /etc/freeradius/mods-enabled/rest file and I have followed the instructions
> as in the docs as a root user.
>
> I tried purging and reinstalling freeradius and ended up with a new error
>
> Dec 07 16:18:04 thejedicode-inspiron-5558o freeradius[24760]: rlm_sql
> (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
> Dec 07 16:18:04 thejedicode-inspiron-5558o freeradius[24760]: Creating
> attribute SQL-Group
> Dec 07 16:18:04 thejedicode-inspiron-5558o freeradius[24760]: Unable to
> check file "/etc/freeradius/certs/dh": No such file or directory
> Dec 07 16:18:04 thejedicode-inspiron-5558o freeradius[24760]: rlm_eap_tls:
> Failed initializing SSL context
> Dec 07 16:18:04 thejedicode-inspiron-5558o freeradius[24760]: rlm_eap
> (EAP): Failed to initialise rlm_eap_tls
> Dec 07 16:18:04 thejedicode-inspiron-5558o freeradius[24760]:
> /etc/freeradius/mods-enabled/eap[14]: Instantiation failed for module "eap"
> Dec 07 16:18:04 thejedicode-inspiron-5558o systemd[1]: freeradius.service:
> Control process exited, code=exited status=1
> Dec 07 16:18:04 thejedicode-inspiron-5558o systemd[1]: Failed to start
> FreeRADIUS multi-protocol policy server.
> -- Subject: Unit freeradius.service has failed
>
> Any idea of how it got here?
>
> On Friday, December 7, 2018 at 2:21:19 PM UTC+5:30, Federico Capoano wrote:
>>
>> As the log says, freeradius is trying to reac http://127.0.0.1:8007,
>> this fails and hence it halts. To fix it you must ensure it can connect.
>>
>
>
> Is freeradius sitting on the same host where
>> django-freeradius/openwisp-radius is installed? Is this a production or
>> development environment?
>>
>> If it's a production environment, the URL http://127.0.0.1:8007 is
>> likely wrong.
>> If it's a development environment, either the development server is not
>> started, or maybe is just because unless you changed the port of the
>> development server, the port is 8000, so the URL should be
>> http://127.0.0.1:8000
>>
>> I hope it helps
>> Federico
>>
>>
>> On Friday, December 7, 2018 at 4:49:02 AM UTC+1, Yash Jipkate wrote:
>>>
>>> Hello,
>>>
>>> I am currently started to work on the django-freeradius project. I am
>>> facing some problems in setting up the freeradius server...
>>>
>>> when I run
>>> journalctl -xe
>>>
>>>
>>> the output I get is:
>>>
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]:
>>> [/etc/freeradius/mods-config/attr_filter/access_reject]:11 Check item
>>> "FreeRADIUS-Response-Delay-USec"
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]: rlm_mschap
>>> (mschap): using internal authentication
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]:
>>> rlm_sql_mysql: libmysql version: 5.7.24
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]: rlm_sql
>>> (sql): Attempting to connect to database "radius"
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]: rlm_sql
>>> (sql): Initialising connection pool
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]: Ignoring
>>> "ldap" (see raddb/mods-available/README.rst)
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]:  #
>>> Skipping contents of 'if' as it is always 'false' --
>>> /etc/freeradius/sites-enabled/inner-tunnel:331
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]: radiusd:
>>> #### Skipping IP addresses and Ports ####
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]:
>>> Configuration appears to be OK
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]: rlm_rest
>>> (rest): Removing connection pool
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o freeradius[10549]: rlm_sql
>>> (sql): Removing connection pool
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o systemd[1]:
>>> freeradius.service: Control process exited, code=exited status=1
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o systemd[1]: Failed to start
>>> FreeRADIUS multi-protocol policy server.
>>> -- Subject: Unit freeradius.service has failed
>>> -- Defined-By: systemd
>>> -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>> --
>>> -- Unit freeradius.service has failed.
>>> --
>>> -- The result is failed.
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o systemd[1]:
>>> freeradius.service: Unit entered failed state.
>>> Dec 07 08:55:18 thejedicode-inspiron-5558o systemd[1]:
>>> freeradius.service: Failed with result 'exit-code'.
>>>
>>> When I run:
>>>
>>> freeradius -X
>>>
>>> I get:
>>>
>>> rlm_rest (rest): Opening additional connection (0), 1 of 32 pending
>>> slots used
>>> rlm_rest (rest): Connecting to "http://127.0.0.1:8007";
>>> rlm_rest (rest): Connection failed: 7 - Couldn't connect to server
>>> rlm_rest (rest): Opening connection failed (0)
>>> rlm_rest (rest): Removing connection pool
>>> /etc/freeradius/mods-enabled/rest[1]: Instantiation failed for module
>>> "rest"
>>>
>>> I tried to look it up on the internet but cant seem to solve it.
>>>
>>> Any help is appreciated. Thanks
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to