[GH-ISSUE #1511] Creating a calendar leads to HTTP 500 in API call #1189

Closed
opened 2026-02-27 11:15:47 +03:00 by kerem · 8 comments
Owner

Originally created by @sr-it1 on GitHub (Jun 28, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1511

Impacted versions

  • Modoboa: 1.10.5
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

After clicking on "Calendar" and then on "+ New calendar" nothing happens. The nginx access logfile only shows
[...] "POST /api/v1/user-calendars/ HTTP/1.1" 500 [...]
There is nothing in the error.log

A HTTPS request to /radicale/.web shows "Radicale works!"

Any hints on this?

What I didn't find was the URL to access the calendar and contacts from an external client, such as an iphone (CalDAV / CardDAV) directly.

Current behavior

Calendar is not created.

Expected behavior

Calendar is created

Video/Screenshot link (optional)

Originally created by @sr-it1 on GitHub (Jun 28, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1511 # Impacted versions * Modoboa: 1.10.5 * installer used: Yes * Webserver: Nginx # Steps to reproduce After clicking on "Calendar" and then on "+ New calendar" nothing happens. The nginx access logfile only shows [...] "POST /api/v1/user-calendars/ HTTP/1.1" 500 [...] There is nothing in the error.log A HTTPS request to /radicale/.web shows "Radicale works!" Any hints on this? What I didn't find was the URL to access the calendar and contacts from an external client, such as an iphone (CalDAV / CardDAV) directly. # Current behavior Calendar is not created. # Expected behavior Calendar is created # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:15:47 +03:00
Author
Owner

@tonioo commented on GitHub (Jun 28, 2018):

Which user did you use?

<!-- gh-comment-id:400970330 --> @tonioo commented on GitHub (Jun 28, 2018): Which user did you use?
Author
Owner

@sr-it1 commented on GitHub (Jun 28, 2018):

I checked both: a SuperAdmin and a SimpleUser - it is the same API call and an HTTP 500 as well - and both users have the account flag, too.

<!-- gh-comment-id:400992020 --> @sr-it1 commented on GitHub (Jun 28, 2018): I checked both: a SuperAdmin and a SimpleUser - it is the same API call and an HTTP 500 as well - and both users have the account flag, too.
Author
Owner

@tonioo commented on GitHub (Jun 28, 2018):

Actually it won't work with the default admin user because it has no mailbox, need to add something about this.
It should work with a simple user, unless you choose the "self signed certificate" option at installation time. You need a valid certificate.

<!-- gh-comment-id:400994479 --> @tonioo commented on GitHub (Jun 28, 2018): Actually it won't work with the default admin user because it has no mailbox, need to add something about this. It should work with a simple user, unless you choose the "self signed certificate" option at installation time. You need a valid certificate.
Author
Owner

@sr-it1 commented on GitHub (Jun 28, 2018):

It was the default admin created at installation time. The SimpleUser was created afterwards.

I chose the "self signed certifiate", but I just switched to a "normal" valid SSL certificate. I already updated the postfix, dovecot, nginx references. I did not find any cert ref in /etc/radicale/config, these were commented out, neither in /etc/supervisor/conf.d/radicale.conf.

Did I miss a location?

<!-- gh-comment-id:400996197 --> @sr-it1 commented on GitHub (Jun 28, 2018): It was the default admin created at installation time. The SimpleUser was created afterwards. I chose the "self signed certifiate", but I just switched to a "normal" valid SSL certificate. I already updated the postfix, dovecot, nginx references. I did not find any cert ref in /etc/radicale/config, these were commented out, neither in /etc/supervisor/conf.d/radicale.conf. Did I miss a location?
Author
Owner

@sr-it1 commented on GitHub (Jun 28, 2018):

I just did a complete reinstall of the server. I used the self signed cert again, but updated the cert and key files to the offical cert/key.

It is not possible to create a calendar - neither as superadmin nor as simpleuser.

<!-- gh-comment-id:401071866 --> @sr-it1 commented on GitHub (Jun 28, 2018): I just did a complete reinstall of the server. I used the self signed cert again, but updated the cert and key files to the offical cert/key. It is not possible to create a calendar - neither as superadmin nor as simpleuser.
Author
Owner

@tonioo commented on GitHub (Jul 10, 2018):

@sr-it1 Do you have any trace? Would be easier to debug...

<!-- gh-comment-id:403799391 --> @tonioo commented on GitHub (Jul 10, 2018): @sr-it1 Do you have any trace? Would be easier to debug...
Author
Owner

@sr-it1 commented on GitHub (Aug 10, 2018):

After a second complete reinstall, it works now, even for the admin user!

It is an self signed certificate during installation and is switched to a "normal valid SSL certificate" afterwards. The admin user is updated to have a normal mailbox as well and can also have a calender.

It seems that this issue is connected to a browser cache issue. Using another browser and/or clearing FireFox cache worked. Maybe this caused the primary issue, that a radicale calendar could not be created.

Is there an plan to save the contact information to radicale also, that these could be used in cardav sync as well as the calendar?

<!-- gh-comment-id:412048462 --> @sr-it1 commented on GitHub (Aug 10, 2018): After a second complete reinstall, it works now, even for the admin user! It is an self signed certificate during installation and is switched to a "normal valid SSL certificate" afterwards. The admin user is updated to have a normal mailbox as well and can also have a calender. It seems that this issue is connected to a browser cache issue. Using another browser and/or clearing FireFox cache worked. Maybe this caused the primary issue, that a radicale calendar could not be created. Is there an plan to save the contact information to radicale also, that these could be used in cardav sync as well as the calendar?
Author
Owner

@tonioo commented on GitHub (Aug 19, 2018):

@sr-it1 Enabling carddav for contacts is something planed but I wonder if it could be sponsored.

<!-- gh-comment-id:414110564 --> @tonioo commented on GitHub (Aug 19, 2018): @sr-it1 Enabling carddav for contacts is something planed but I wonder if it could be sponsored.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1189
No description provided.