Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not set calendars/subscriptions limit to unlimited #44116

Closed
JB1985 opened this issue Mar 8, 2024 · 10 comments · Fixed by nextcloud/documentation#11636
Closed

Can not set calendars/subscriptions limit to unlimited #44116

JB1985 opened this issue Mar 8, 2024 · 10 comments · Fixed by nextcloud/documentation#11636
Assignees
Labels

Comments

@JB1985
Copy link

JB1985 commented Mar 8, 2024

Steps to reproduce

  1. Open the Calendar App
    • New calendar
  2. New calendar
  3. Write a calendar name
  4. Submit

Expected behavior

I expect the calendar to be created.

Actual behaviour

Error: An error occurred, unable to create the calendar.

image

Calendar app version

4.6.6

CalDAV-clients used

No response

Browser

Firefox 123.0 64 bit

Client operating system

Windows 11

Server operating system

Debian 12

Web server

Apache

Database engine version

MariaDB

PHP engine version

PHP 8.2

Nextcloud version

27.1.7

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

Enabled:
  - appointments: 2.0.1
  - audioplayer: 3.4.1
  - bbb: 2.5.0
  - bookmarks: 13.1.3
  - bruteforcesettings: 2.7.0
  - calendar: 4.6.6
  - circles: 27.0.1
  - cloud_federation_api: 1.10.0
  - comments: 1.17.0
  - contacts: 5.5.3
  - contactsinteraction: 1.8.0
  - dashboard: 7.7.0
  - dav: 1.27.0
  - deck: 1.11.4
  - drawio: 2.1.4
  - federatedfilesharing: 1.17.0
  - federation: 1.17.0
  - files: 1.22.0
  - files_linkeditor: 1.1.16
  - files_mindmap: 0.0.30
  - files_pdfviewer: 2.8.0
  - files_reminders: 1.0.0
  - files_rightclick: 1.6.0
  - files_sharing: 1.19.0
  - files_trashbin: 1.17.0
  - files_versions: 1.20.0
  - firstrunwizard: 2.16.0
  - forms: 3.4.6
  - groupfolders: 15.3.5
  - logreader: 2.12.0
  - lookup_server_connector: 1.15.0
  - notes: 4.9.2
  - notifications: 2.15.0
  - notify_push: 0.6.9
  - oauth2: 1.15.2
  - password_policy: 1.17.0
  - passwords: 2023.12.32
  - photos: 2.3.0
  - polls: 5.4.3
  - previewgenerator: 5.4.0
  - privacy: 1.11.0
  - provisioning_api: 1.17.0
  - recommendations: 1.6.0
  - related_resources: 1.2.0
  - richdocuments: 8.2.5
  - serverinfo: 1.17.0
  - settings: 1.9.0
  - sharebymail: 1.17.0
  - spreed: 17.1.6
  - support: 1.10.0
  - survey_client: 1.15.0
  - systemtags: 1.17.0
  - tasks: 0.15.0
  - text: 3.8.0
  - theming: 2.2.0
  - twofactor_admin: 4.4.0
  - twofactor_backupcodes: 1.16.0
  - twofactor_nextcloud_notification: 3.8.0
  - twofactor_totp: 9.0.0
  - updatenotification: 1.17.0
  - user_status: 1.7.0
  - viewer: 2.1.0
  - weather_status: 1.7.0
  - workflowengine: 2.9.0

Nextcloud configuration

No response

Web server error log

[08/Mar/2024:10:29:58 +0100] 1797 717 "MKCOL /remote.php/dav/calendars/1130/test HTTP/2.0" 403 215 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0" nextcloud 443

Log file

{"reqId":"jo0lCTm57WoyEth6bEFA","level":2,"time":"2024-03-08T09:29:58+00:00","remoteAddr":"xxxxxxx","user":"1130","app":"dav","method":"MKCOL","url":"/remote.php/dav/calendars/1130/test","message":"Maximum number of calendars/subscriptions reached","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0","version":"27.1.7.2","data":{"app":"dav","calendars":"37","subscription":"0","limit":"30"}}
{"reqId":"jo0lCTm57WoyEth6bEFA","level":0,"time":"2024-03-08T09:29:58+00:00","remoteAddr":"xxxxxxxx","user":"1130","app":"webdav","method":"MKCOL","url":"/remote.php/dav/calendars/1130/test","message":"Calendar limit reached","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:123.0) Gecko/20100101 Firefox/123.0","version":"27.1.7.2","exception":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"Calendar limit reached","Code":0,"Trace":[{"file":"/var/customers/webs/web1/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeBind","class":"OCA\\DAV\\CalDAV\\Security\\RateLimitingPlugin","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1189,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":560,"function":"createCollection","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/customers/webs/web1/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMkcol","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/apps/dav/lib/Server.php","line":368,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/customers/webs/web1/nextcloud/remote.php","line":172,"args":["/var/customers/webs/web1/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/customers/webs/web1/nextcloud/apps/dav/lib/CalDAV/Security/RateLimitingPlugin.php","Line":106,"message":"Calendar limit reached","exception":{},"CustomMessage":"Calendar limit reached"}}

Browser log

MKCOL https://nextcloud/remote.php/dav/calendars/1130/test [HTTP/2 403  270ms]

Additional info

I couldn't find any documentation about it. How high is the limit and can it be increased?

@JB1985 JB1985 added the bug label Mar 8, 2024
@tcitworld
Copy link
Member

I couldn't find any documentation about it. How high is the limit and can it be increased?

See https://docs.nextcloud.com/server/27/admin_manual/groupware/calendar.html#rate-limits

nextcloud/calendar#5792 is the issue to have nicer details

@tcitworld tcitworld closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2024
@JB1985
Copy link
Author

JB1985 commented Mar 8, 2024

Thanks, but the documentation is probably not completely correct.

The "--type" option does not exist.

It seems that --type is not supported, see:
nextcloud/documentation#9494

@JB1985
Copy link
Author

JB1985 commented Mar 8, 2024

Please reopen this Bug report @tcitworld :

It set to -1:

`~ # sudo -u web1 php /nextcloud/occ config:app:set calendar maximumCalendarsSubscriptions --value=-1

Config value maximumCalendarsSubscriptions for app calendar set to -1
`
But still I get the error:

,"File":"/nextcloud/apps/dav/lib/CalDAV/Security/RateLimitingPlugin.php","Line":106,"message":"Calendar limit reached","exception":{},"CustomMessage":"Calendar limit reached"}}

@tcitworld tcitworld reopened this Mar 8, 2024
@gramels
Copy link

gramels commented Mar 10, 2024

same behaviour here

@gramels
Copy link

gramels commented Mar 10, 2024

calenders can be created with occ dav:create-calendar though

@ChristophWurst
Copy link
Member

The "--type" option does not exist.

My bad. The options exists only in Nextcloud 29+. I will adjust the docs.

@ChristophWurst ChristophWurst added the 1. to develop Accepted and waiting to be taken care of label Mar 11, 2024
@ChristophWurst ChristophWurst self-assigned this Mar 11, 2024
@ChristophWurst ChristophWurst changed the title An error accurred, unable to create the calendar / Maximum number of calendars/subscriptions reached Can not set calendars/subscriptions limit to unlimited Mar 11, 2024
@ChristophWurst ChristophWurst added 2. developing Work in progress and removed 1. to develop Accepted and waiting to be taken care of labels Mar 11, 2024
@ChristophWurst ChristophWurst transferred this issue from nextcloud/calendar Mar 11, 2024
@ChristophWurst
Copy link
Member

I have tested with a production instance and can create calendars just fine.

The unit test #44118 will confirm this programmatically.

@ChristophWurst
Copy link
Member

ChristophWurst commented Mar 11, 2024

sudo -u web1 php /nextcloud/occ config:app:set calendar maximumCalendarsSubscriptions --value=-1

it is sudo -u web1 php /nextcloud/occ config:app:set dav maximumCalendarsSubscriptions --value=-1. my bad². The config option is for dav, not calendar.

@tcitworld
Copy link
Member

Edited your comment as the app is dav, not calendar.

@JB1985
Copy link
Author

JB1985 commented Mar 11, 2024

Works now with "dav" instead of "calendar".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ☑️ Done
Development

Successfully merging a pull request may close this issue.

5 participants