modoboa / modoboa-radicale

The Radicale frontend of Modoboa
MIT License
21 stars 14 forks source link

Can't create new calendar with fresh install on Ubuntu Server 22.04 #103

Open mazzekp opened 1 year ago

mazzekp commented 1 year ago

Installed a fresh install on a new Ubuntu Server 22.04. The email part of the server works perfectly, but when I wanted to setup the calendar (the modoboa-installer was used with the Let's Encrypt certificate option so Radicale was installed with it), nothing happens when I login as the domain admin (adminuser@example.com), navigate to calendar, and then new calendar (create button on the pop-up window doesn't do anything).

Going to the mail.example.com/radicale/ displays the "Radicale works!" message. I've read a lot of message boards about this issue and couldn't find whether this was ever fixed or if there was a solution. Let me know if there are any questions or missing information. Thank you.

mwyngloddwr commented 1 year ago

I too have the same problem. For info, I tried following advice in the Radicale documentation (https://radicale.org/v3.html) to create manually a collection /srv/radicale/collections/collection-root//calendar and created a file in the folder ".Radicale.props" with the following content {"tag": "VCALENDAR"} {"tag": "VADDRESSBOOK"}. I had installed SSL certificates signed by my own CA. When I logged in to my account (https:///accounts/login) and navigated to calendar no calendar showed and the new calendar button still did not work. When I tried to connect to the server from a Thunderbird client to create a new calendar on the client I was able to connect using the url "https:////calendar" and was prompted to provide the user password. I received, not unexpectedly, the message "could not find calendars at this location". I had hoped I might be able then to import data to the client calendar and sync the data to the server. All to no avail. So I am left, like mazzekp, concluding the issue is not resolved.

Spitfireap commented 1 year ago

Installed a fresh install on a new Ubuntu Server 22.04. The email part of the server works perfectly, but when I wanted to setup the calendar (the modoboa-installer was used with the Let's Encrypt certificate option so Radicale was installed with it), nothing happens when I login as the domain admin (adminuser@example.com), navigate to calendar, and then new calendar (create button on the pop-up window doesn't do anything).

Going to the mail.example.com/radicale/ displays the "Radicale works!" message. I've read a lot of message boards about this issue and couldn't find whether this was ever fixed or if there was a solution. Let me know if there are any questions or missing information. Thank you.

Hi, can set DEBUG to True in settings.py, restart uwsgi service and try again to check what the server is responding ?

Spitfireap commented 1 year ago

@mwyngloddwr, I'm working on that, see #112 :)

mwyngloddwr commented 6 days ago

18 months on and I've solved my problem. I had installed SSL certificate and key created by my own CA in /etc/ssl/certs & private. I tried again recently to create a calendar and received an error notification 'certificate verify failed: unable to get local issuer certificate' - this despite the fact my CA certificate was also in /etc/ssl/certs. I now realise it should have been in the directory 'certifi' of the site-packages file of my modoboa instance (/srv/modoboa/env/lib/python/site-packages) where there was a file cacert.pem. When, having made a copy of cacert.pem, I replaced it with my own CA certificate re-named to cacert.pem modoboa-radicale worked as I had originally expected.