#682017 radicale: Data and log directories should be set up when configuring the package

Package:
radicale
Source:
radicale
Submitter:
"Konstantin Khomoutov"
Date:
2026-08-13 19:03:05 UTC
Severity:
minor
Tags:
#682017#5
Date:
2012-07-18 19:03:29 UTC
From:
To:
Currently, the package assumes the only way to run Radicale is as a
standalone server (which is wrong by itself), and for some reason the
directories for storing logs and data files are created at server's
startup, in its init script.

This is wrong for two reasons:
1) If Radicale is started by a web server, it's unusable as it
   tries to access its data and log directories, which do not
   exist as they are not created when the package is configured.
2) Only the /var/run directory is allowed to be transient,
   so it has to be re-created, if needed, at server's startup.
   The log and data directories are "stable" and hence should
   be managed by the postinst script.

These changes are required for Radicale to be useful when set up to be
run by a web server (via WSGI).

Another (minor but nagging) problem with the way this package sets the
log directory up is that it's not readable by the members of the `adm'
group which (by the policy) should have read access to the system logs.

The attached patch fixes all these problems.

#682017#12
Date:
2013-06-26 15:27:31 UTC
From:
To:
I agree with this bug report, except that I think the check for /var/run
is not needed. The policy does not require it, if I am reading
correctly; and a check of the daemons installed on my system, only one
does this kind of check.

#682017#17
Date:
2013-06-26 15:38:49 UTC
From:
To:
UGH, sorry about that, I misread the code and thought it was creating
/var/run/, instead of /var/run/radicale/

#682017#22
Date:
2013-06-26 16:54:35 UTC
From:
To:
Hi Konstantin,

Thanks for the bugreport and the patch.  However...

Quoting Konstantin Khomoutov (2012-07-18 21:03:29)

No.  The package do not assume it is only run as a standalone server.
What it assumes is that if run as the user created by the package, then
it will be used the way offered by the package: as a daemon controlled
with the sysV init script.

You are free to bypass the way the package handles the daemon, but then
you are on your own, and is best advised to use a separate account that
you are in control of, to not risk your system blowing up in surprising
ways if some day the package is upgraded in a way involving changes to
the account.

I believe Policy do not mandate log and data to be created early.

Reason for setting up these directories late is to ease changing account
but still use the sysV script.
by hand what the sysV script does, or extend your uWSGI script to do it,
or (recommende) do same but for a different account.

This does indeed sound like a bug.


 - Jonas

#682017#35
Date:
2020-06-10 01:57:29 UTC
From:
To:
Much of what was asked for in bug #682017 has been implemented at this
point.  I think portions should really be in the postinst script instead
of /etc/init.d/radicale, but creating the log and data directories has
been implemented.

#682017#40
Date:
2026-08-13 18:57:03 UTC
From:
To:
The Debian NEW review of radicale 3.7.8+ds-2 has been completed.

Decision: ACCEPTED
Reviewer: Mechtilde Stehmann

Review comment:

Hi,
please add the missing authors to d/copyright.
You find the info in the public notes
Thanks

Full review details: https://dfsg-new-queue.debian.org/reviews/radicale

#682017#45
Date:
2026-08-13 19:00:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
radicale, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 682017@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <dr@jones.dk> (supplier of updated radicale package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 12 Aug 2026 23:19:40 +0200
Source: radicale
Binary: python3-radicale radicale radicale-uwsgi
Architecture: source all
Version: 3.7.8+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Jonas Smedegaard <dr@jones.dk>
Changed-By: Jonas Smedegaard <dr@jones.dk>
Description:
 python3-radicale - simple calendar and addressbook server - python3 module
 radicale   - simple calendar and addressbook server - daemon
 radicale-uwsgi - simple calendar and addressbook server - uWSGI Unix socket
Closes: 682017 982762 1130672
Changes:
 radicale (3.7.8+ds-2) unstable; urgency=medium
 .
   * tighten systemd unit file
   * relax uWSGI config file to use fewer workers and threads
   * move initial access rights setup
     from uWSGI config file to postinst script;
     closes: bug#682017, #982762,
     thanks to Konstantin Khomoutov, Martína Ferrari and Rob Browning
   * fix uWSGI-based setup and provide as binary package radicale-uwsgi;
     closes: bug#1130672,
     thanks to Borden, Alexandre Rossi and Petter Reinholdtsen
Checksums-Sha1:
 6ab9cec7b176623ac340a565e54c4299f77df7cc 2948 radicale_3.7.8+ds-2.dsc
 2efe4fde2ecbde71a5f828fa26aee32695426b6e 28900 radicale_3.7.8+ds-2.debian.tar.xz
 64818467cb45b479b232c21ce853cc4bc67e3acb 187852 python3-radicale_3.7.8+ds-2_all.deb
 c71d51c3d57c788d5a9b1d8c81562ad4189bca50 38444 radicale-uwsgi_3.7.8+ds-2_all.deb
 828d948a90cfb36f488c8f7a49f9dc951dfc6f1f 111576 radicale_3.7.8+ds-2_all.deb
 5f74b03c484c24213538dd4d63869d1bb1b6fc95 8643 radicale_3.7.8+ds-2_amd64.buildinfo
Checksums-Sha256:
 02f44ab44694bc6a2830843d9c0770e82408ab036dbcd4072eb99bc62193c41d 2948 radicale_3.7.8+ds-2.dsc
 fdc89e2c9f29a9578f399cb92b426235e17f1f4eab58354f8105477b7de9dd59 28900 radicale_3.7.8+ds-2.debian.tar.xz
 2dd9fc6164151d7d25a572eb4d5f988b96dfcdf5d333f4e37eb240ac3bec39d7 187852 python3-radicale_3.7.8+ds-2_all.deb
 ee44083b6f93f18dcb0d24aab8b55f28adb86cd2d5bb54ccf1e6424fb2752355 38444 radicale-uwsgi_3.7.8+ds-2_all.deb
 6e1938226a3a71064dd85ec2ced3ac0e0c87ed5e787df000f3b1ef6ca77d4840 111576 radicale_3.7.8+ds-2_all.deb
 0ded51f1591a97055d18b7f9b3c2fff17f41c9d0cd6a01b2430fddd2b5c00c4f 8643 radicale_3.7.8+ds-2_amd64.buildinfo
Files:
 2a6f8c1687611ff0d8ebc8f7394a0b0e 2948 net optional radicale_3.7.8+ds-2.dsc
 23e4464c4b5efd0c256baa546ba4f8c9 28900 net optional radicale_3.7.8+ds-2.debian.tar.xz
 9622a14b557bf2d110d1ddeab0aed97f 187852 python optional python3-radicale_3.7.8+ds-2_all.deb
 204e460d041de0760e438a6be5f1744c 38444 net optional radicale-uwsgi_3.7.8+ds-2_all.deb
 7b466408da8be74f9fcfabc06dda2e36 111576 net optional radicale_3.7.8+ds-2_all.deb
 51e0201ad378e7054a2708e1ea323f0a 8643 net optional radicale_3.7.8+ds-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJABAEBCgAqFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmp887kMHGRyQGpvbmVz
LmRrAAoJECx8MUbBoAEh3W8P/3/CVzz3a0kNm2dgCHrK8ftSRT1hK0sS9UhFwobF
3NWadjYKhMeDbV6iu9STv60apwXJlp+qJr4YbsGY1oqlrn8yT+UQFAgaRQ8RCqzH
YqOdGBPdVxaP10lYA6oT+hqvHjSm7piJddlAHQVewVBIWGbUdt5A2v+a00nD/jMa
1QEO8es2EFA7fawg0aRP9oOGxZWKPU1gVrmWgubmMwgzl7BmO8XD0Za0nnyDpZR0
0cVG+1y1OYvFMxoM0aDIFxaojM0qze4A63t3cctlBjlyqWP5gFXyAi/avNFCbRXF
TdKf/Xw6d2R9Bl7J9PuDp+NFoZfd0vM+Kt2rs5BAnzBLkY3WCK++7d3yqNAM7rbI
V1smnxkgJYP9zuolTH/t6DhfSaIq85BQSnNTJU1WtGD84eNj+qGGeCOW4a4dul5c
3b+Ehomg649ARleAoeSapDvHUKYKnDIjHuAGxfGWwjXQAyUPNaQH0RFxiNtyl5ov
8vZd4i/wcLw2XWlmEEi90sXtIkici5PXTXukH65Oz4XToOjo+RcBAxlUfULU/zdo
+ppm4ZfjWkEe0rvYa/AEOViXyylypZg9bh0M79NTVP3UforuhRP3I3AsYOgLvWTd
vQyj3d3ScNtfBOF1uJzQqRcTA/h5QsyxqbLUSipMV99M+7qL3m9ywSfMjhoTU1w0
hqtu
=OvXI
-----END PGP SIGNATURE-----