Privacyidea-radius upgrade fail

Hello, I just test an upgrade of PrivacyIdea and privacyIdea-radius but it failed after upgrading the Radius plugin.

  • apt list --upgradable
privacyidea-nginx/stable 3.7.1-1focal all [upgradable from: 3.6.3-1focal]
privacyidea-radius/stable 3.4.2-1focal all [upgradable from: 3.4.1-2focal]
privacyidea/stable 3.7.1-1focal amd64 [upgradable from: 3.6.3-1focal]

image (74)

It looks like some configuration files has changed or the path itself ?
I can’t investigate as I rollbacked immediatly to previous version of the container (it is a production server)

What are the change between version 3.4.1-2 and 3.4.2-1 ?
The server is Ubuntu 20.04 LTS

If anyone can help troubleshooting this, it would be helpful !

thank you

These are the changes.

Well, look at your error output. Could be you mangled with file access rights.

The job identifier is 3439.
May 26 22:55:56 OTPServer freeradius[32102]: FreeRADIUS Version 3.0.20
May 26 22:55:56 OTPServer freeradius[32102]: Copyright (C) 1999-2019 The FreeRADIUS server project and contributors
May 26 22:55:56 OTPServer freeradius[32102]: There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
May 26 22:55:56 OTPServer freeradius[32102]: PARTICULAR PURPOSE
May 26 22:55:56 OTPServer freeradius[32102]: You may redistribute copies of FreeRADIUS under the terms of the
May 26 22:55:56 OTPServer freeradius[32102]: GNU General Public License
May 26 22:55:56 OTPServer freeradius[32102]: For more information about these matters, see the file named COPYRIGHT
May 26 22:55:56 OTPServer freeradius[32102]: Starting - reading configuration files ...
May 26 22:55:56 OTPServer freeradius[32102]: /etc/freeradius/3.0/radiusd.conf[875]: Failed reading directory /etc/freeradius/3.0/sites-enabled/: No such file or directory
May 26 22:55:56 OTPServer freeradius[32102]: Errors reading or parsing /etc/freeradius/3.0/radiusd.conf
May 26 22:55:56 OTPServer systemd[1]: freeradius.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

—> Failed reading directory /etc/freeradius/3.0/sites-enabled/: No such file or directory

When I look the diff between the old and new version:

diff -qr /etc/freeradius/3.0 /freeradiusbackup/freeradius/3.0/
Only in /freeradiusbackup/freeradius/3.0/: sites-enabled

I don’t know why but the folder site-enabled was deleted during the upgrade. I move the backuped folder, restarted freeradius, and it seems to work now :slight_smile:

1 Like