Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error during install freeradius-role #398

Open
chaosenze opened this issue Sep 12, 2022 · 2 comments
Open

error during install freeradius-role #398

chaosenze opened this issue Sep 12, 2022 · 2 comments

Comments

@chaosenze
Copy link

chaosenze commented Sep 12, 2022

Hi,

it looks like it's the wrong path to freeradius config dir.

TASK [openwisp.openwisp2 : Enable SQL module] ************************************************************************************************************************************************************************************************
fatal: [openwisp2.dungeon.myhome]: FAILED! => {"changed": false, "msg": "Error while linking: [Errno 2] No such file or directory: b'/etc/freeradius/mods-available/sql' -> b'/etc/freeradius/mods-enabled/sql'", "path": "/etc/freeradius/mods-enabled/sql"}
$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ ls -l /etc/freeradius/
total 0
drwxr-xr-x 1 freerad freerad 408 Sep 13 01:18 3.0
$ ansible-galaxy role list
# /home/ansible/.ansible/roles
- Stouts.postfix, origin/develop
- openwisp.influxdb, origin/master
- openwisp.openwisp2, 22.5.1

@dim-0
Copy link

dim-0 commented Jan 17, 2024

Having the same issue.
Reason is, that freeradius has (slightly) modified their directory structure, by adding a directory named 3.0/ to /etc/freeradius/

As a workaround, this can simply be fixed by adjusting the variable freeradius_dir in this role (in my case in ~/.ansible/roles/openwisp.openwisp2/defaults/main.yml) to /etc/freeradius/3.0.

You might use this command (check your module path with ansible --version upfront):
sed -i 's|freeradius_dir: /etc/freeradius|freeradius_dir: /etc/freeradius/3.0|' ~/.ansible/roles/openwisp.openwisp2/defaults/main.yml

@dim-0
Copy link

dim-0 commented Jan 17, 2024

Fix available here:
#461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants