For some reason, my freedombox on rockpro64 failed to boot, so I made a fresh Debian install on a laptop, installed freedombox on it (26.7.1), and restored the last backup (which unfortunately was one week old due to having issues to setup remote backup).
At the restore, there was a failure with radicale, restore was stopped. I tried restoring everything except radicale, it worked. Then I tried radicale, it was apparently complete, but radicale does not work (last diagnostic is failed and no client can connect).
Searching into the journal, I see repeated occurenxe of this from yesterday when I reinstalled:
mai 10 22:54:15 freedombo-t400 systemd[1]: Starting uwsgi-app@radicale.service - radicale uWSGI app...
mai 10 22:54:15 freedombo-t400 (uwsgi)[6631]: uwsgi-app@radicale.service: Failed to set up special execution directory in /var/lib: File exists
mai 10 22:54:15 freedombo-t400 (uwsgi)[6631]: uwsgi-app@radicale.service: Failed at step STATE_DIRECTORY spawning /usr/bin/uwsgi: File exists
mai 10 22:54:15 freedombo-t400 systemd[1]: uwsgi-app@radicale.service: Main process exited, code=exited, status=238/STATE_DIRECTORY
mai 10 22:54:15 freedombo-t400 systemd[1]: uwsgi-app@radicale.service: Failed with result 'exit-code'.
mai 10 22:54:15 freedombo-t400 systemd[1]: Failed to start uwsgi-app@radicale.service - radicale uWSGI app.
This is repeating itself today. Any advice is appreciated.
EDIT: I just updated the journal quote, as some lines had been truncated, missing perhaps the most interesting part (“File exists”).
I tried changing the permissions of /var/lib/private, adding x for all, I changed the shell of radicale to bash, did sudo su radicale then cd /var/lib/radicale/collections and it worked. However, radicale still fails.
If I understood correctly, you reinstalled FreedomBox from the beginning and restored everything, except Radicale (because it failed during the first restore).
I wondered if the uninstall process was able to remove these directories that give permission errors or if this botched restore created these directories with permissions that block their removal and now can’t be written to.
I tried restoring all with the first restore, but restore of radicale failed. Then I did restore again without radicale. Then then I uninstalled radicale and installed it agin.
I did another reinstall and restore on another computer (x86 PC), and radicale wasn’t working properly. I got it working after:
changing the owner of /var/lib/private/radicale (by the way the right option is -R, not -r)
rebooting
uninstalling and re-installing radicale, and restoring the backup
To me, that seems to say that there is some problem with radicale, but I am not sure it is exactly identified.
EDIT: this morning, it does not work again.
EDIT2: /var/lib/radicale was a normal director, with an empty collections sub-directory. After removing it and creating a symlink to /var/lib/private/radicale and rebooting, radicale is working. Let’s see over the next days.