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

conf files in Freeradius are not writable via web interface DaloRadius #522

Open
millionaire312 opened this issue May 21, 2024 · 3 comments
Labels

Comments

@millionaire312
Copy link

Hello everybody. I can't add some configs via web interface Daloradius.

For example if I want to add Realm or proxy via daloradius
I'm getting this message the file /etc/freeradius/3.0/proxy.conf isn't writable, I can't save realm information to the file
but realm name saved in database and listing on web.

to solve this problem I made this steps:

make owner www-data for proxy.conf in folder freeradius (does not work)
gave chmod 777 for proxy.conf in folder freeradius (does not work)

Screenshot 2024-05-21 at 23-37-17 New Realm daloRADIUS

server Debian 12.
FreeRADIUS Version 3.2.1
Daloradius version 2.1 beta

@QuantumCorral
Copy link

Hello everyone,

I am experiencing the same issue where the file /etc/freeradius/3.0/proxy.conf is not writable. I see the following error:

Image

  • server Debian 12.
  • daloRADIUS - RADIUS Management version 2.2 beta / 03 Jul 2024 / install script

Have there been any updates or solutions to this issue?

Thank you in advance for your help! 😊

@QuantumCorral
Copy link

I’ve done some further investigation, and the Nginx error log reveals the following:

root@0-196-doloradius:/var/log/nginx# cat error.log 2025/01/27 22:02:53 [notice] 53236#53236: using inherited sockets from "5;6;" 2025/01/27 22:10:16 [error] 57415#57415: *16 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined variable $proxyname in /var/www/html/daloradius/app/operators/mng-rad-proxys-new.php on line 156; PHP message: PHP Warning: Undefined variable $retry_delay in /var/www/html/daloradius/app/operators/mng-rad-proxys-new.php on line 165; PHP message: PHP Warning: Undefined variable $retry_count in /var/www/html/daloradius/app/operators/mng-rad-proxys-new.php on line 173; PHP message: PHP Warning: Undefined variable $dead_time in /var/www/html/daloradius/app/operators/mng-rad-proxys-new.php on line 181; PHP message: PHP Warning: Undefined variable $default_fallback in /var/www/html/daloradius/app/operators/mng-rad-proxys-new.php on line 189" while reading upstream, client: 10.22.0.100, server: _, request: "GET /daloradius/app/operators/mng-rad-proxys-new.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "10.248.0.196", referrer: "http://10.248.0.196/daloradius/app/operators/mng-rad-realms.php"

@QuantumCorral
Copy link

QuantumCorral commented Jan 27, 2025

Found a solution!
Not sure if this is the best way, but it works for now:

sudo chown freerad:www-data /etc/freeradius/3.0/proxy.conf
sudo chmod 660 /etc/freeradius/3.0/proxy.conf

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

No branches or pull requests

3 participants