#1060667 radicale: Radicale is not logging to a log file under /var/log/radicale as per systemd unit "LogsDirectory"

#1060667#5
Date:
2024-01-12 11:20:20 UTC
From:
To:
Dear Maintainer,

I have installed Radicale Card/CalDAV server on Debian Bookworm (12.4).

apt install radicale

Install adds "radicale" user and group OK.
Config file in /etc/radicale/config

I did not change the config file (initially).

Enable and use systemd service (installed as /lib/systemd/system/radicale.service).

systemctl enable radicale.service
systemctl start radicale.service
systemctl status radicale.service :
-------------------
● radicale.service - A simple CalDAV (calendar) and CardDAV (contact) server
     Loaded: loaded (/lib/systemd/system/radicale.service; enabled; preset: enabled)
     Active: active (running) since Fri 2024-01-12 10:50:29 GMT; 5s ago
       Docs: man:radicale(1)
   Main PID: 61961 (radicale)
      Tasks: 1 (limit: 9249)
     Memory: 20.9M
        CPU: 726ms
     CGroup: /system.slice/radicale.service
             └─61961 /usr/bin/python3 /usr/bin/radicale

Jan 12 10:50:29 vesta systemd[1]: Started radicale.service - A simple CalDAV (calendar) and CardDAV (contact) server.
-------------------

In /var/log/syslog (and journal) :

Jan 12 10:50:29 vesta systemd[1]: Started radicale.service - A simple CalDAV (calendar) and CardDAV (contact) server.

Radicale systemd unit includes a "[Service]" section :

[Service]
ExecStart=/usr/bin/radicale
Restart=on-failure
LogsDirectory=radicale
User=radicale

and should use a log file : /var/log/radicale

ls -l /var/log :
drwxr-xr-x  2 radicale radicale          4096 Jan 12 10:50 radicale

However this directory is empty and never populated.


Set logging to "info" in config file and : systemctl restart radicale :


/var/log/syslog :

2024-01-12T10:53:49.958708+00:00 vesta systemd[1]: Stopping radicale.service - A simple CalDAV (calendar) and CardDAV (contact) server...
2024-01-12T10:53:50.050017+00:00 vesta systemd[1]: radicale.service: Deactivated successfully.
2024-01-12T10:53:50.050667+00:00 vesta systemd[1]: Stopped radicale.service - A simple CalDAV (calendar) and CardDAV (contact) server.
2024-01-12T10:53:50.066160+00:00 vesta systemd[1]: Started radicale.service - A simple CalDAV (calendar) and CardDAV (contact) server.
2024-01-12T10:53:50.585767+00:00 vesta radicale[62111]: [2024-01-12 10:53:50 +0000] [62111] [INFO] Loaded default config
2024-01-12T10:53:50.586197+00:00 vesta radicale[62111]: [2024-01-12 10:53:50 +0000] [62111] [INFO] Loaded config file '/etc/radicale/config'
2024-01-12T10:53:50.586326+00:00 vesta radicale[62111]: [2024-01-12 10:53:50 +0000] [62111] [INFO] Skipped missing config file '/var/lib/radicale/.config/radicale/config'
2024-01-12T10:53:50.586435+00:00 vesta radicale[62111]: [2024-01-12 10:53:50 +0000] [62111] [INFO] Starting Radicale

/var/log/radicale is still empty. No log file written here.

I assume I should see logging go to a file under this directory. I also
assume that I might be doing something wrong.

Many Thanks for having a look.

Alastair