Is there a maximum number of calendars that can be created?

I have to create several calendars for a school, one for each subject and each year group. That adds up to quite a few.
Suddenly NC reports that an error has occurred and I can’t create any more calendars.
Does anyone have a solution?

And that error is…?

I once also had the problem that I was not able to create further calendars. In my case the following solved my problem:

In file

/path/to/your/nextcloud/apps/dav/lib/CalDAV/Security/RateLimitingPlugin.php

I needed to adjust the following line (default value is 30):

$calendarLimit = (int) $this->config->getAppValue('dav', 'maximumCalendarsSubscriptions', '60');

Afterwards I could create further calendars.

And you should be aware that after Nextcloud updates the default value will be back…

Hope this helps!

There is zero need to modify the code to make that change. See the rate limits section of the Admin Manual. It’s a parameter that can be set: Calendar / CalDAV — Nextcloud latest Administration Manual latest documentation

3 Likes

@jtr: Thank you for pointing this out. I wasn’t aware that it can be changed this way…

Thank you, that was exactly the hint I needed!

1 Like

Any suggestions on how to change the rate limit if you’ve used the Docker AIO install? Or in which container I would have to be?

See AIO: How to run occ commands.

2 Likes