Nextcloud Tasks/Calendar: Hidden limit of 30 calendars causes "unable to create the list" error
-
Problem
When using the Nextcloud Tasks app, attempting to create a new task list fails with: "An error occurred, unable to create the list."
Creating tasks via Apple Reminders (CalDAV sync) also silently fails — new lists simply disappear.
Deleting existing task lists and emptying the trash temporarily fixes the issue, but it returns once you have enough lists again.
Root Cause
Nextcloud 32.x introduced a
RateLimitingPluginin the DAV app (apps/dav/lib/CalDAV/Security/RateLimitingPlugin.php) that enforces a hard limit of 30 calendars + subscriptions per user via thedav.maximumCalendarsSubscriptionsapp config setting (default: 30).Two issues with this limit:
- The default of 30 is too low for users who use the Tasks app heavily (e.g., project management with one task list per project). Each task list is a CalDAV calendar, so 28 project lists + a personal calendar + a birthday calendar = 30 = limit reached.
- Trashed calendars count toward the limit. The
getCalendarsForUserCount()method inCalDavBackend.phphas nodeleted_atfilter, so calendars in the trash still count. This is arguably a bug — trashed items shouldn't block creation of new ones.
There's also a rate limit of 10 calendar creations per hour (
dav.rateLimitCalendarCreation), which can be hit when setting up multiple projects.Fix
Increase the calendar+subscription limit (default: 30)
occ config:app:set dav maximumCalendarsSubscriptions --value=999
Or disable the limit entirely
occ config:app:set dav maximumCalendarsSubscriptions --value=-1
Optionally increase the rate limit (default: 10 per hour)
occ config:app:set dav rateLimitCalendarCreation --value=50
Suggestion for Cloudron
Consider either:- Increasing the default maximumCalendarsSubscriptions to 999 in the Cloudron Nextcloud package's start.sh
- Or documenting this limit in the Cloudron Nextcloud docs
The error message from the Tasks app ("An error occurred, unable to create the list") gives no indication that a calendar limit has been reached, making this very difficult to diagnose.
Environment: Cloudron Nextcloud package 5.6.7 (Nextcloud 32.0.6), Tasks app 0.17.1
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login