Some calendar events in Nextcloud are sporadically declined without any interaction

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Problem exists since 32.x. Current version: 34.0.3.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Server: Debian 13
  • Web server and version (e.g, Apache 2.4.25):
    • nginx 1.30.4
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.30.4
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • Since July
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Self-hosted non-AIO on VM
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

We decided to move from SOGo calendars to Nextcloud in July. Since then we occasionally see similar problems: either event organizer sends out a decline email to everyone (without doing it manually), or event is marked as declined for attendees ( also without any human interaction).

We have a lot of different devices: Outlook with CalDavSynchronizer (4.7 or 4.7.1), Thunderbird (both Linux and Windows), native iOS clients and some Androids with DavX5.

The last occurance was last week. I have sent an invitation to 2 of my colleagues around 16 o’clock on September 30th. They have accepted my invitation in approx. 30-40 minutes. Then, according to database table oc_calendarchanges , on October 1st at 01:25:05 the event was somehow changed for me and 1 of the colleagues (I added conversion from Linux Epoch to local time):

id | uri | synctoken | calendarid | operation | calendartype | created_at
--------+------------------------------------------+-----------+------------+-----------+--------------+------------
305511 | 1E2B8EE9-E91D-4C18-90D8-6DFA543293E5.ics | 1938 | 3 | 2 | 0 | 1790810705 Donnerstag, 1. Oktober 2026 um 01:25:05

None of us has done anything with this event at this time. I have looked through Nextcloud logs and Nginx logs, there was no interaction with this event from any client. My CalDavSynchronizer log show that it has done a sync at 01:23:35 and didn’t find anything new, and at 01:33:36 it found server changes. Unfortunately, our logs in Nextcloud and Postgres are set to 1, so I don’t have any meaningful logs beyond this.

Previously in July, when we still had older version of Nextcloud (32.x), I found out that it happens if a person accepts an invitation in Outlook (and sends a confirmation email), and then accepts invitation in Nextcloud calendar through web interface. After that we upgraded Nextcloud, new 4.7 update for CalDavSynchronizer was release, and this issue seemed to disappear. Now that’s not the case anyway.

Our problem looks like github issue here Updating a event sends "canceled" notification to participants · Issue #4748 · nextcloud/calendar · GitHub . It might be that the problem is in CalDavSyncronizer plugin, but so far I wasn’t able to gather enough data to confidentially say that plugin somehow edits events or supplies uncorrect metadata or CalDAV properties. If that was the case, then events would be declined or showed any problems at the time of creation or any interaction, instead it might happen either instantly or several hours later.

Steps to replicate it (hint: details matter!):

  1. Unfortunately none so far

Log entries

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "...",
            "..."
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "dbtype": "pgsql",
        "version": "34.0.3.2",
        "overwrite.cli.url": "https:\/\/domain\/",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "maintenance": false,
        "loglevel": 1,
        "upgrade.disable-web": "true",
        "logtimezone": "Europe\/Berlin",
        "default_phone_region": "DE",
        "share_folder": "\/Accepted Shares",
        "maintenance_window_start": 1,
        "app_install_overwrite": [
            "to_gif_example"
        ],
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "port",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "allow_local_remote_servers": true,
        "log_type": "syslog",
        "syslog_tag": "nextcloud",
        "syslog_facility": "daemon",
        "defaultapp": "spreed,files",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": port,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": true,
        "mail_smtptimeout": 30,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpdebug": true,
        "serverid": 186
    }
}

Apps

The output of occ app:list (if possible).

Enabled:

  • activity: 7.0.0
  • admin_audit: 1.24.0
  • announcementbanner: 2.8.1
  • app_api: 34.0.0
  • appointments: 2.8.4
  • approval: 3.3.2
  • appstore: 1.0.0
  • assistant: 3.5.0
  • attendance: 1.53.0
  • bruteforcesettings: 7.0.0
  • calendar: 6.6.2
  • calendar_resource_management: 0.12.2
  • call_summary_bot: 3.5.0
  • circles: 34.0.0
  • cloud_federation_api: 1.18.0
  • comments: 1.24.0
  • contacts: 8.9.1
  • contactsinteraction: 1.15.0
  • context_chat: 5.4.0
  • dav: 1.40.0
  • deck: 1.18.5
  • external: 9.0.1
  • federatedfilesharing: 1.24.0
  • federation: 1.24.0
  • files: 2.6.0
  • files_accesscontrol: 5.0.0
  • files_downloadlimit: 5.2.0
  • files_external: 1.26.0
  • files_lock: 34.0.1
  • files_pdfviewer: 7.0.0-dev.0
  • files_reminders: 1.7.0
  • files_sharing: 1.26.0
  • files_trashbin: 1.24.0
  • files_versions: 1.27.0
  • forms: 5.4.0
  • group_everyone: 0.1.21
  • groupfolders: 22.0.6
  • impersonate: 5.0.0
  • integration_openai: 4.5.2
  • logreader: 7.0.0
  • lookup_server_connector: 1.22.0
  • mail: 5.12.3
  • metavox: 2.2.3
  • nextcloud_announcements: 6.0.0
  • notes: 6.1.0
  • notifications: 7.0.0-dev.1
  • notify_push: 1.4.1
  • oauth2: 1.22.0
  • office: 1.0.0
  • password_policy: 6.0.0-dev.0
  • photos: 7.0.0
  • polls: 9.3.0
  • profile: 1.3.0
  • provisioning_api: 1.24.0
  • recommendations: 7.0.0
  • related_resources: 5.0.0-dev.0
  • richdocuments: 11.1.2
  • serverinfo: 6.0.0
  • settings: 1.17.0
  • side_menu: 6.2.0
  • sketch_picker: 2.5.0
  • spreed: 24.0.5
  • systemtags: 1.24.0
  • tables: 2.3.1
  • tasks: 0.18.1
  • text: 8.0.0
  • theming: 2.9.0
  • theming_customcss: 1.22.0
  • twofactor_backupcodes: 1.23.0
  • twofactor_totp: 16.0.0
  • user_ldap: 1.25.0
  • user_migration: 10.5.0
  • user_saml: 8.4.0
  • user_status: 1.14.0
  • viewer: 7.0.0-dev.0
  • webhook_listeners: 1.6.0
  • whiteboard: 2.0.0
  • workflowengine: 2.16.0
    Disabled:
  • dashboard: 7.14.0 (installed 7.8.0)
  • encryption: 2.22.0
  • firstrunwizard: 7.0.0-dev.0 (installed 5.0.0-dev.0)
  • folder_protection: 2.4.0 (installed 2.4.0)
  • groupfolder_tags: 1.0.3 (installed 1.0.3)
  • htmlviewer: 33.0.0 (installed 33.0.0)
  • privacy: 6.0.0-dev.1 (installed 4.0.0-dev.0)
  • sharebymail: 1.24.0 (installed 1.22.0)
  • sharelisting: 1.3.0 (installed 1.3.0)
  • support: 6.0.0 (installed 4.0.0-dev.0)
  • survey_client: 6.0.0-dev.0 (installed 4.0.0-dev.0)
  • suspicious_login: 12.0.0-dev.0
  • twofactor_nextcloud_notification: 8.0.0
  • updatenotification: 1.24.0 (installed 1.22.0)
  • weather_status: 1.14.0 (installed 1.12.0)

This sounds a bit like the cron-job executed this… but I have no idea how the invitations are handled, if the replies are directly processes or queued and executed by the cronjob.

In most cases, the cronjob runs every 5 mins, so perhaps some access just in the preceding 5 minutes?

But it just happens randomly? If you had some systematic, you could try to invited only accounts with a specific client connected.

I though so too, but in that case the decline of invitation wouldn’t happen 8 hours later. We also don’t have any external automations running at that time.

Yes, it’s random, I cannot find any pattern here and reproduce the issue.