Issue connecting to Calendar after upgrade to NC30

Nextcloud version (eg, 29.0.5): 30.0.1
Operating system and version (eg, Ubuntu 24.04): Freebsd 13
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.62
PHP version (eg, 8.3): 8.3.12

The issue you are facing:

unable to sync calendar with external calendar app (OneCalendar)

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

When I link to my Nextcloud account to access the calendar, it appears to link correctly (the correct calendar information appears) but the app fails to sync the data.

This is the output from the log:

webdav] Error: Exception thrown: OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException
	REPORT /remote.php/dav/calendars/dougw/momdad/
	from 192.168.50.1 by dougw at Oct 25, 2024, 11:10:59 AM


 UnsupportedLimitOnInitialSyncException Exception thrown: OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException

    /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Sync/Plugin.phpLine 121

    OCA\DAV\CalDAV\Calendar->getChanges()

    /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Sync/Plugin.phpLine 62

    Sabre\DAV\Sync\Plugin->syncCollection(
      "*** sensitive parameters replaced ***"
    )

    /usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.phpLine 89

    Sabre\DAV\Sync\Plugin->Sabre\DAV\Sync\{closure}(
      "*** sensitive parameters replaced ***"
    )

    /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.phpLine 690

    Sabre\DAV\Server->emit()

    /usr/local/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.phpLine 89

    Sabre\DAV\CorePlugin->httpReport()

    /usr/local/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.phpLine 472

    Sabre\DAV\Server->emit()

    /usr/local/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.phpLine 43

    Sabre\DAV\Server->invokeMethod()

    /usr/local/www/nextcloud/apps/dav/lib/Server.phpLine 370

    OCA\DAV\Connector\Sabre\Server->start()

    /usr/local/www/nextcloud/apps/dav/appinfo/v2/remote.phpLine 19

    OCA\DAV\Server->exec()

    /usr/local/www/nextcloud/remote.phpLine 146

    undefinedundefinedrequire_once(
      "/usr/local/www/nextcloud/apps/dav/appinfo/v2/remote.php"
    )

So just the external application?

I found this bug report with this error:

That sounds like the problem. It’s good to know I’m not alone.

Thanks for digging that up.

I did some further research and testing, and what I’ve found is that there is a bug in later versions of Nextcloud that prevents INITIAL syncing of caldav calendars. Those versions are 28.0.10 or higher, 29.0.7 or higher, and all versions of 30. Calendars where the initial sync was done in prior versions continue to sync correctly in the latest versions.

I was able to confirm this by going back and installing version 29.0.6, migrating all my data and settings, syncing the calendars, then upgrading to 30.0.2 and everything worked correctly. Obviously doing a new install of 29.0.6 each time I want to add a new user with all that entails is a task I don’t want to do every week, but at least I have an option.

Hopefully this will be fixed in the near future.

It would be great to share these details directly with the developers on github. Either in the topic that is already linked (if it is similar enough), or even a new one if you see a regression and you can already name a version.

Good point. Will do.

Thanks

Seems the error is still there with latest 30.0.5…

Seems to be solved. I have upgraded to Calender 5.0.10 and Nextcloud 30.0.6 and my OneCalender can sync with Nextcloud.

I think it’s solved for OneCalendar because that developper made a change to their code. It’s still an issue for all other CalDav apps.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.