Calendar dates don't get synced between devices

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 33.0.8
  • Operating system and version (e.g., Ubuntu 24.04):
    • OpenBSD 7.9
  • 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.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • A few weeks ago
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • OS-provided package
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

New calendar dates/items don’t get synced on MacOS and iOS calendar.

When I create a new date in my Nextcloud calendar, it won’t get synced to my calendar app on MacOS or iOS. This used to work for years and all the dates I created in the past still get synced.

The newly created calendar items are displayed when I open the calendar in the browser on my Nextcloud instance

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

  1. Create a new date in the calendar app in the browser

  2. Created date will be displayed in the browser (even on another account if the calendar is shared)

  3. Date will not show up on synced devices (via CalDAV), no error messages on these devices

Log entries

DbalExceptionAn exception occurred while executing a query: SQLSTATE[42702]: Ambiguous column: 7 ERROR: column reference "file_id" is ambiguous LINE 1: ...rsions" "v" ON "p"."version_id" = "v"."id" WHERE ("file_id" ... ^
UnsupportedMediaTypeValidation error in iCalendar: ENCODING=QUOTED-PRINTABLE is not valid for this document type.

Nextcloud

https://paste.debian.net/plainh/ce01dd54

https://paste.debian.net/plainh/9ce1f4ae

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": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "33.0.8.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Movie",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\MP4",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\PDF"
        ],
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "preview_max_filesize_image": 25,
        "loglevel": 2,
        "trashbin_retention_obligation": "1, 2",
        "data-fingerprint": "2b319383cd85bc0f02b85ae038668c47",
        "theme": "",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "default_phone_region": "DE",
        "default_language": "de",
        "default_locale": "de_DE",
        "force_locale": "de_DE",
        "integrity.check.disabled": true,
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtptimeout": 10,
        "mail_smtpauthtype": "LOGIN",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "updatechecker": false,
        "overwriteprotocol": "https",
        "maintenance_window_start": 100,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "cron_log": true,
        "maintenance": false,
        "simpleSignUpLink.shown": false,
        "versions_retention_obligation": "disabled",
        "app_install_overwrite": [],
        "jpeg_quality": "60"
    }
}

Apps

Enabled:
  - activity: 6.0.0
  - calendar: 6.5.4
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - contacts: 8.7.6
  - cospend: 4.0.2
  - dav: 1.36.1
  - federatedfilesharing: 1.23.0
  - files: 2.5.0
  - files_downloadlimit: 5.1.0
  - files_pdfviewer: 6.0.0
  - files_sharing: 1.25.2
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - notes: 6.0.2
  - notify_push: 1.4.0
  - oauth2: 1.21.0
  - photos: 6.0.0
  - previewgenerator: 5.14.0
  - privacy: 5.0.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - recommendations: 6.0.0
  - related_resources: 4.0.0
  - settings: 1.16.0
  - text: 7.0.1
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0
  - viewer: 6.0.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - admin_audit: 1.23.0
  - app_api: 33.0.0 (installed 4.0.6)
  - bruteforcesettings: 6.0.0 (installed 5.0.0-dev.0)
  - comments: 1.23.0 (installed 1.3.0)
  - contactsinteraction: 1.14.1 (installed 1.5.0)
  - dashboard: 7.13.0 (installed 7.0.0)
  - encryption: 2.21.0 (installed 2.5.0)
  - federation: 1.23.0 (installed 1.7.0)
  - files_external: 1.25.1
  - files_reminders: 1.6.0 (installed 1.2.0)
  - files_trashbin: 1.23.0 (installed 1.20.1)
  - files_versions: 1.26.0 (installed 1.25.0)
  - firstrunwizard: 6.0.0 (installed 2.13.0)
  - nextcloud_announcements: 5.0.0 (installed 1.6.0)
  - notifications: 6.0.0 (installed 2.17.0)
  - password_policy: 5.0.0 (installed 1.19.0)
  - serverinfo: 5.0.0 (installed 1.14.0)
  - sharebymail: 1.23.0 (installed 1.20.0)
  - support: 5.0.0 (installed 1.12.0)
  - survey_client: 5.0.0 (installed 1.5.0)
  - suspicious_login: 11.0.0
  - systemtags: 1.23.0 (installed 1.7.0)
  - twofactor_nextcloud_notification: 7.0.0
  - updatenotification: 1.23.0 (installed 1.3.0)
  - user_ldap: 1.24.0
  - user_status: 1.13.0 (installed 1.7.0)
  - weather_status: 1.13.0 (installed 1.4.0)

Can you refer to a specific update when it stopped working?

I can create an entry in iOS and it is directly created. When I do the same on the web-interface, the iOS does not pick up directly, if I create another event the same day on the phone, the one on I create via GUI (per PC) appears as well.
If I force nothing, it appears after a few minutes (10-15 perhaps).
But I am still on NC 32… (planning to upgrade soon)

not sure if that breaks something that it stops syncing after this event. If you can find and repair this, this would be great.