3.2.4 upgrade messed up?

Jonathan Chan iamjonathanchan at gmail.com
Thu May 30 03:56:59 UTC 2024


Hi,

I've attempted to upgrade FreeRADIUS from 3.2.3 to 3.2.4 on two test
machines running Ubuntu 24. After the upgrade, I noticed the directory
structure was off, with files residing outside of the 3.0 directory, and
running freeradius -X would no longer load (not really the purpose of this
message).

Did I do something wrong with the upgrade?

Below is the output of the folder structure of ls -al /etc/freeradius after
doing the upgrade.

jonathan at vm:~$ sudo ls -al /etc/freeradius/
total 168
drwxr-s---  10 freerad freerad  4096 May 30 03:37 .
drwxr-xr-x 110 root    root     4096 May 30 03:37 ..
drwxr-xr-x   9 freerad freerad  4096 May 30 03:37 3.0
drwxr-xr-x   3 root    root     4096 May 30 03:37 certs
-rw-r--r--   1 root    root     9054 May 29 18:42 clients.conf
-rw-r--r--   1 root    root     1420 May 29 18:42 dictionary
-rw-r--r--   1 root    root     2661 May 29 18:42 experimental.conf
lrwxrwxrwx   1 root    root       28 May 29 18:42 hints ->
mods-config/preprocess/hints
lrwxrwxrwx   1 root    root       33 May 29 18:42 huntgroups ->
mods-config/preprocess/huntgroups
drwxr-xr-x   2 root    root     4096 May 30 03:37 mods-available
drwxr-xr-x  10 root    root     4096 May 30 03:37 mods-config
drwxr-xr-x   2 root    root     4096 May 30 03:37 mods-enabled
-rw-r--r--   1 root    root       52 May 29 18:42 panic.gdb
drwxr-xr-x   2 root    root     4096 May 30 03:37 policy.d
-rw-r--r--   1 root    root    29779 May 29 18:42 proxy.conf
-rw-r--r--   1 root    root    31890 May 29 18:42 radiusd.conf
-rw-r--r--   1 root    root    20754 May 29 18:42 README.rst
drwxr-xr-x   2 root    root     4096 May 30 03:37 sites-available
drwxr-xr-x   2 root    root     4096 May 30 03:37 sites-enabled
-rw-r--r--   1 root    root     3470 May 29 18:42 templates.conf
-rw-r--r--   1 root    root     8536 May 29 18:42 trigger.conf
lrwxrwxrwx   1 root    root       27 May 29 18:42 users ->
mods-config/files/authorize

jonathan at vm:~$ sudo ls -al /etc/freeradius/3.0
total 176
drwxr-xr-x  9 freerad freerad  4096 May 30 03:37 .
drwxr-s--- 10 freerad freerad  4096 May 30 03:37 ..
drwxr-xr-x  2 freerad freerad  4096 May  1 08:22 certs
-rw-r-----  1 freerad freerad  8330 May 21 02:03 clients.conf
-rw-r-----  1 root    root     8323 May 11 09:59 clients.conf.orig
-rw-r-----  1 freerad freerad  1420 Mar 31 05:22 dictionary
-rw-r-----  1 freerad freerad  2661 Mar 31 05:22 experimental.conf
drwxr-xr-x  2 freerad freerad  4096 May 21 19:12 mods-available
drwxr-xr-x 10 freerad freerad  4096 May  1 08:22 mods-config
drwxr-xr-x  2 freerad freerad  4096 May  1 08:22 mods-enabled
-rw-r-----  1 freerad freerad    52 Mar 31 05:22 panic.gdb
drwxr-xr-x  2 freerad freerad  4096 May  1 08:22 policy.d
-rw-r-----  1 freerad freerad 30005 May 21 20:41 proxy.conf
-rw-r-----  1 freerad freerad 30773 Mar 31 05:22 radiusd.conf
-rw-r-----  1 freerad freerad 20754 Mar 31 05:22 README.rst
drwxr-xr-x  2 freerad freerad  4096 May 30 03:18 sites-available
drwxr-xr-x  2 freerad freerad  4096 May 21 04:36 sites-enabled
-rw-r-----  1 freerad freerad  3470 Mar 31 05:22 templates.conf
-rw-r-----  1 freerad freerad  8536 Mar 31 05:22 trigger.conf


And here's the output from running sudo apt install freeradius:

jonathan at vm:~$ sudo apt install freeradius
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  freetds-common libct4 libdbi-perl
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  freeradius-common freeradius-config freeradius-python3 freeradius-utils
libfreeradius3 libpcre3
Suggested packages:
  freeradius-ldap freeradius-postgresql freeradius-mysql freeradius-krb5
snmp
The following NEW packages will be installed:
  freeradius-python3 libpcre3
The following packages will be upgraded:
  freeradius freeradius-common freeradius-config freeradius-utils
libfreeradius3
5 upgraded, 2 newly installed, 0 to remove and 21 not upgraded.
Need to get 2,815 kB of archives.
After this operation, 2,025 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 libpcre3
amd64 2:8.39-15build1 [248 kB]
Get:2 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-common all 3.2.4-1 [248 kB]
Get:3 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-config amd64 3.2.4-1 [216 kB]
Get:4 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-utils amd64 3.2.4-1 [116 kB]
Get:5 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius amd64 3.2.4-1 [1,761 kB]
Get:6 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 libfreeradius3 amd64 3.2.4-1 [204 kB]
Get:7 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-python3 amd64 3.2.4-1 [21.5 kB]
Fetched 2,815 kB in 2s (1,462 kB/s)
(Reading database ... 84870 files and directories currently installed.)
Preparing to unpack .../0-freeradius-common_3.2.4-1_all.deb ...
Unpacking freeradius-common (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Preparing to unpack .../1-freeradius-config_3.2.4-1_amd64.deb ...
Unpacking freeradius-config (3.2.4-1) over (3.2.3+dfsg-2build7) ...
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/sites-enabled': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/sites-available': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/policy.d': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-enabled': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/unbound': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids/sqlite':
Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids/postgresql':
Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids/mysql':
Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/postgresql/extras': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/oracle': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/ndb': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mysql/extras/wimax': Directory
not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mysql/extras': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mongo': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/sqlite': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/postgresql': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/oracle': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/oracle': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/mongo': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/oracle': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter/postgresql': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/realm': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/python3': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/preprocess': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/perl': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/files': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/attr_filter': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-available': Directory not empty
dpkg: warning: unable to delete old directory '/etc/freeradius/3.0/certs':
Directory not empty
dpkg: warning: unable to delete old directory '/etc/freeradius/3.0':
Directory not empty
Selecting previously unselected package libpcre3:amd64.
Preparing to unpack .../2-libpcre3_2%3a8.39-15build1_amd64.deb ...
Unpacking libpcre3:amd64 (2:8.39-15build1) ...
Preparing to unpack .../3-freeradius-utils_3.2.4-1_amd64.deb ...
Unpacking freeradius-utils (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Preparing to unpack .../4-freeradius_3.2.4-1_amd64.deb ...
Unpacking freeradius (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Preparing to unpack .../5-libfreeradius3_3.2.4-1_amd64.deb ...
Unpacking libfreeradius3 (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Selecting previously unselected package freeradius-python3.
Preparing to unpack .../6-freeradius-python3_3.2.4-1_amd64.deb ...
Unpacking freeradius-python3 (3.2.4-1) ...
Setting up libpcre3:amd64 (2:8.39-15build1) ...
Setting up freeradius-common (3.2.4-1) ...
Setting up libfreeradius3 (3.2.4-1) ...
Setting up freeradius-config (3.2.4-1) ...
Setting up freeradius (3.2.4-1) ...
Installing new version of config file /etc/default/freeradius ...
Installing new version of config file /etc/init.d/freeradius ...
Installing new version of config file /etc/logrotate.d/freeradius ...
Warning: The unit file, source configuration file or drop-ins of
freeradius.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
Job for freeradius.service failed because the control process exited with
error code.
See "systemctl status freeradius.service" and "journalctl -xeu
freeradius.service" for details.
invoke-rc.d: initscript freeradius, action "restart" failed.
● freeradius.service - FreeRADIUS multi-protocol policy server
     Loaded: loaded (/usr/lib/systemd/system/freeradius.service; enabled;
preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Thu
2024-05-30 03:37:48 UTC; 57ms ago
       Docs: man:radiusd(8)
             man:radiusd.conf(5)
             http://wiki.freeradius.org/
             http://networkradius.com/doc/
    Process: 1926 ExecStartPre=/usr/sbin/freeradius $FREERADIUS_OPTIONS -Cx
-lstdout (code=exited, status=1/FAILURE)
        CPU: 219ms
Warning: The unit file, source configuration file or drop-ins of
freeradius.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
Setting up freeradius-python3 (3.2.4-1) ...
Warning: The unit file, source configuration file or drop-ins of
freeradius.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
freeradius.service is not active, cannot reload.
invoke-rc.d: initscript freeradius, action "force-reload" failed.
Setting up freeradius-utils (3.2.4-1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.1) ...
Scanning processes...



Scanning linux images...




Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.


More information about the Freeradius-Users mailing list