Public bug reported:

1) lsb_release -rd
Description:    Ubuntu 18.04.3 LTS
Release:        18.04

2) apt-cache policy freeradius
freeradius:
  Installed: 3.0.16+dfsg-1ubuntu3.1
  Candidate: 3.0.16+dfsg-1ubuntu3.1
  Version table:
 *** 3.0.16+dfsg-1ubuntu3.1 500
        500 http://ch.archive.ubuntu.com/ubuntu bionic-updates/main amd64 
Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 
Packages
        100 /var/lib/dpkg/status
     3.0.16+dfsg-1ubuntu3 500
        500 http://ch.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

3) What you expected to happen
Freeradius service to start on with system boot.
Freeradius service to start with 'service freeradius start'.


4) What happened instead
Freeradius service doesn't start due to /tmp/radiusd missing and not being 
created automatically.

Oct 30 14:14:56 radius systemd[1]: Starting FreeRADIUS multi-protocol policy 
server...
Oct 30 14:14:56 radius freeradius[5524]: FreeRADIUS Version 3.0.16
Oct 30 14:14:56 radius freeradius[5524]: Copyright (C) 1999-2017 The FreeRADIUS 
server project and contributors
Oct 30 14:14:56 radius freeradius[5524]: There is NO warranty; not even for 
MERCHANTABILITY or FITNESS FOR A
Oct 30 14:14:56 radius freeradius[5524]: PARTICULAR PURPOSE
Oct 30 14:14:56 radius freeradius[5524]: You may redistribute copies of 
FreeRADIUS under the terms of the
Oct 30 14:14:56 radius freeradius[5524]: GNU General Public License
Oct 30 14:14:56 radius freeradius[5524]: For more information about these 
matters, see the file named COPYRIGHT
Oct 30 14:14:56 radius freeradius[5524]: Starting - reading configuration files 
...
Oct 30 14:14:56 radius freeradius[5524]: Debugger not attached
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): Driver rlm_sql_mysql 
(module rlm_sql_mysql) loaded and linked
Oct 30 14:14:56 radius freeradius[5524]: Creating attribute SQL-Group
Oct 30 14:14:56 radius freeradius[5524]: Creating attribute Unix-Group
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql_mysql: libmysql version: 5.7.27
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): Attempting to connect 
to database "radiusdb"
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): Initialising connection 
pool
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): Processing 
generate_sql_clients
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql) in generate_sql_clients: 
query is SELECT id, nasname, shortname, type, secret, server FROM nas
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): 0 of 0 connections in 
use.  You  may need to increase "spare"
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): Opening additional 
connection (0), 1 of 1 pending slots used
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql_mysql: Starting connect to 
MySQL server
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): Reserved connection (0)
Oct 30 14:14:56 radius freeradius[5524]: rlm_sql (sql): Released connection (0)
Oct 30 14:14:56 radius freeradius[5524]: rlm_cache (cache_eap): Driver 
rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
Oct 30 14:14:56 radius freeradius[5524]: 
[/etc/freeradius/3.0/mods-config/attr_filter/access_reject]:11 Check item 
"FreeRADIUS-Response-Delay" #011found in filter list for realm "DEFAULT".
Oct 30 14:14:56 radius freeradius[5524]: 
[/etc/freeradius/3.0/mods-config/attr_filter/access_reject]:11 Check item 
"FreeRADIUS-Response-Delay-USec" #011found in filter list for realm "DEFAULT".
Oct 30 14:14:56 radius freeradius[5524]: rlm_detail (auth_log): 'User-Password' 
suppressed, will not appear in detail output
Oct 30 14:14:56 radius freeradius[5524]: rlm_mschap (mschap): using internal 
authentication
Oct 30 14:14:56 radius freeradius[5524]: TLS section "tls" missing, trying to 
use legacy configuration
Oct 30 14:14:56 radius freeradius[5524]: tls: Failed changing permissions on 
/tmp/radiusd: No such file or directory
Oct 30 14:14:56 radius freeradius[5524]: rlm_eap_tls: Failed initializing SSL 
context
Oct 30 14:14:56 radius freeradius[5524]: rlm_eap (EAP): Failed to initialise 
rlm_eap_tls
Oct 30 14:14:56 radius freeradius[5524]: 
/etc/freeradius/3.0/mods-enabled/eap[2]: Instantiation failed for module "eap"
Oct 30 14:14:56 radius systemd[1]: freeradius.service: Control process exited, 
code=exited status=1
Oct 30 14:14:56 radius systemd[1]: freeradius.service: Failed with result 
'exit-code'.
Oct 30 14:14:56 radius systemd[1]: Failed to start FreeRADIUS multi-protocol 
policy server.
Oct 30 14:15:01 radius systemd[1]: freeradius.service: Service hold-off time 
over, scheduling restart.
Oct 30 14:15:01 radius systemd[1]: freeradius.service: Scheduled restart job, 
restart counter is at 173.
Oct 30 14:15:01 radius systemd[1]: Stopped FreeRADIUS multi-protocol policy 
server.

5) Fix:
Create the following file …

nano /etc/tmpfiles.d/radius.conf

… with the following content …

d     /tmp/radiusd   0700 freerad freerad - -

… save and exit, then execute the following command …

systemd-tmpfiles --create

… reboot.

** Affects: freeradius (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850927

Title:
  freeradius not starting on boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/1850927/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to