Calendar synchronization does not work


I have a problem with the Calendar app. Two days ago I noticed that my calendars on mobile and laptop stopped syncing.
To check, I then logged on directly to the cloud. Most of the calendars stopped loading. The loading icon just kept spinning forever but no calendar appeared.
I then tried to export a working calendar. This generated a “service not available” error.
I then exported all non-functioning calendars in Thunderbird to ics and then deleted all calendars in Nextcloud.
Then the import and export function in Nextcloud worked again.
However, the import of the ics files into Nextcloud only worked partially. All appointments were missing, which were all-day or went over several days.
I was able to isolate the error to the extent that the problem is probably the multi-day or all-day appointments.
In the Firefox debugger, when importing the ICS file, it showed a lot of error 503 for an ICS file with a lot of all-day appointments. Also, in mobile, syncing with DavX5 stopped working as soon as I created a multi-day appointment in a calendar.

Nextcloud version NextCloudPi 27.0.1

The issue you are facing: Calendar synchronization does not work.
Is this the first time you’ve seen this error? Y

In nextcloud.log I only found this entry related to the calendar.
Oddly enough, this is also the last entry since yesterday. Although I tested until the evening on the error.

The output of your Nextcloud log in Admin > Logging:

[no app in context] Warnung: Login failed: ncp disabled (Remote IP:

POST /index.php/login
from at 2023-10-27T10:42:48+00:00

[no app in context] Fehler: Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 10240000 bytes, aber 9306112 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein. at <<closure>>

 0. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 149
 1. /var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php line 50
    OCA\DAV\Connector\Sabre\Directory->createFile("*** sensitive parameters replaced ***")
 2. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
    OCA\DAV\Upload\UploadFolder->createFile("*** sensitive parameters replaced ***")
 3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
    Sabre\DAV\Server->createFile("*** sensitive parameters replaced ***")
 4. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
 5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
 6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
 7. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
 8. /var/www/nextcloud/apps/dav/lib/Server.php line 364
 9. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
10. /var/www/nextcloud/remote.php line 172
    require_once("/var/www/nextcl ... p")

PUT /remote.php/dav/uploads/malte/4fc1e14b2a50dc747217486fa941818d/000115
from by malte at 2023-10-23T05:01:33+00:00

I uninstalled the calendar app and reinstalled it.That didn’t do anything either though.

I’m pretty clueless right now so if anyone has ideas about the error…

Thank you for your help.

Clear the cache either via GUI or on commandline sudo bash -c ‘source /usr/local/etc/ && clear_opcache’

Thank you clear_opcache has fixed the problem. Actually as always… if only I had tried this earlier…