#1003286 rlm_counter: Failed to open file /etc/freeradius/3.0/db.daily: Read-only file system

Package:
freeradius
Source:
freeradius
Description:
high-performance and highly configurable RADIUS server
Submitter:
Sven Reissmann
Date:
2025-02-10 21:30:01 UTC
Severity:
normal
#1003286#5
Date:
2022-01-07 15:56:00 UTC
From:
To:
Dear Maintainer,

when enabling the freeradius module "counter" (rlm_counter) in freeradius
3.0.21+dfsg-2.2+deb11u1, the systemd service refuses to start with the
following error message, while at the same time, "freeradius -X" successfully
starts freeradius in debug mode.

I assume the reason is the following directive in the systemd service:

However, in the module itself (/etc/freeradius/3.0/mods-available/counter),
the default filename for the database is:

And in /etc/freeradius/3.0/radius.conf, ${db_dir} is set as:


Steps to reproduce:

  * Install freeradius
    apt install freeradius

  * Enable rlm_counter
    cd /etc/freeradius/3.0/mods-enabled
    ln -s ../mods-available/counter .

  * Restart freeradius
    systemctl restart freeradius

#1003286#10
Date:
2025-02-10 21:27:44 UTC
From:
To:
I don't think there is consensus yet to remove init-scripts just because
we can. The init script provided also redirects normal invocations to
systemctl.

I dropped README.Debian in 3.2.6+dfsg-3 and will happily accept patches
for a small new one, possibly also mentioning other settings for
non-every-day settings like in #1003286

Bernhard