mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #1987] Radicale (thus CardDAV and CalDAV) or modoboa-contacts (or at least I think) doesn't seem to work on a stock ubuntu 20.04 modoboa install #1489
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1489
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @extragreen on GitHub (Jul 5, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1987
Impacted versions
Steps to reproduce
Run installer on ubuntu 20.04 fresh install (thus using python3.8) after making a quick change to
database.pyas outlined in the comments here https://github.com/modoboa/modoboa/issues/1883. AND after installingpython3-virtualenvandpython3-pip. Even created a symlink for pip just in case:ln -s /usr/bin/pip3 /usr/bin/pip.Install finishes and everything looks good except for a couple of errors (not sure if related to the issue) which include:
modulenotfounderror: no module named 'braces'

Apparently the above shows if
django-bracesisn't installed but doesn't it install in the line directly above the error?you'll have caldav 0.5.0 which is incompatible

The above 2 errors were also documented here https://github.com/modoboa/modoboa/issues/1975 (although different trigger) but, unfortunately, nothing in this issue seems to work.
Current behaviour
On any user with a mailbox, selecting yes for the 'synchronise address book using CardDAV' option doesn't stick. It just reverts back to 'no' after a refresh of the page:
And, one can't access their contacts 'from the outside':
As it just leads to this error once one logs in:
Also tried running the installer with python2.7, same outcome. Running this on 18.04 works flawlessly so i'm assuming this is a python3.8/pip3/python3-virtualenv compatibility issue like some other posts outlined. Regardless, just posting here to increase awareness.
Any help understanding these errors would also be greatly appreciated as I am relatively new to this, thanks!
Expected behavior
For it to download the .vcf contact file just like on Ubuntu 18.04 or on the modoboa demo.
Video/Screenshot link (optional)
@extragreen commented on GitHub (Jul 7, 2020):
Alright I managed to install it without any errors by rebuilding the virtualenv after running the installer. Lots of VMs died in the making of this modoboa install haha. Rebuilding the env seemed to build the wheel for everything successfully and installed caldav 0.6.2. Unfortunately, the same behaviour is still present.
I've checked the logs for nginx when I click 'save' after selecting yes for the 'synchronise address book using CardDAV' option (as shown above):
And the logs for uwsgi:
AND this is the django error email I get:
All I can gather from these is that there's a http 500 error coming from somewhere... I tried a few different changes to my nginx config just in case that was the issue but none work. Here's my nginx config if it'll help:
Have also tried this with localhost:5232 on the server and still returns the same error as above when trying to access the contacts list:

Creating a calendar event also does not work and gives me the following django error right after clicking 'create' for an event (API is enabled):
Absolutely everything else works except for carddav/caldav, any help would be greatly appreciated!
@tonioo commented on GitHub (Sep 17, 2020):
@extragreen Can you try to manually install caldav 0.6.2?
@extragreen commented on GitHub (Nov 3, 2020):
Apologies for the delay, crazy year :) Yep so just at the start of my second post I rebuilt the virtualenv including all extensions and caldav 0.6.2 did install.
It's been a while since i've had time to work on the machine so I'm going to try a completely fresh install with the newer version later in the year and see what happens
@KrystianPlichta commented on GitHub (Jan 5, 2022):
I have same issue on debian 10
Radicale management | 1.5.1
Contacts | 0.8.2
@yga01 commented on GitHub (Mar 30, 2022):
Seems like I have comparable problem:
in supervisord.log I see something which I think looks weird:
cat supervisord.log | grep radicale
2022-03-28 18:25:35,174 INFO Included extra file "/etc/supervisor/conf.d/radicale.conf" during parsing
2022-03-28 18:25:36,184 INFO spawned: 'radicale' with pid 31216
2022-03-28 18:25:37,187 INFO success: radicale entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-28 21:42:42,759 INFO waiting for policyd, radicale to die
2022-03-28 21:42:42,778 INFO stopped: radicale (exit status 0)
2022-03-28 21:43:31,740 INFO Included extra file "/etc/supervisor/conf.d/radicale.conf" during parsing
2022-03-28 21:43:32,751 INFO spawned: 'radicale' with pid 733
2022-03-28 21:43:33,752 INFO success: radicale entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-03-28 21:47:39,151 INFO waiting for policyd, radicale to die
2022-03-28 21:47:39,170 INFO stopped: radicale (exit status 0)
2022-03-28 21:48:29,716 INFO Included extra file "/etc/supervisor/conf.d/radicale.conf" during parsing
2022-03-28 21:48:30,726 INFO spawned: 'radicale' with pid 733
2022-03-28 21:48:31,727 INFO success: radicale entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
But maybe this is normal startup behaviour?
extragreen wrote: "On any user with a mailbox, selecting yes for the 'synchronise address book using CardDAV' option doesn't stick. It just reverts back to 'no' after a refresh of the page:" I have the same issue, switch doesn't stick.
Anyways, I can't connect to the caldav or carddav server.