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.
