Open javaboyuk opened 8 months ago
What do you need from me for this, or is there documentation to say what I need to look at for configuration. Or should this be posted in the server code base?
Can you please reformat your loglines without the superfluous whitespace, then I can work with the stack trace.
As for Sabre\VObject\Recur\MaxInstancesExceededException: Recurring events are only allowed to generate 3500
this exception is thrown when your recurring events have no end date. We only allow mx 3500 recurrance instances, otherwise they would be endless and you'd possibly create millions of lines in your DB for reminders etc. If you have a stacktrace, it would be great to know if that is from the ReminderService
as I suspect or if it's in the Sabre code.
Can you search your exported ics file for 3c1b8ebf-1bf0-4bbe-abdc-8b560e988c4e
and copypaste the found results? Everyting between BEGIN:VEVENT
and END:VEVENT
. Or you can send me the whole ics via email if you like - anna.larch@nextcloud.com.
Same thing is happening to me. Seems related to this issue https://github.com/owncloud/core/issues/12429
Adding to /config/php/www2.conf
pm.max_children = 1
pm.max_spare_servers = 1
pm.min_spare_servers = 1
pm.start_servers = 1
"fixes" it. The import happens pretty slow, (the entire app is much slower) but it actually imports everything perfectly and consitently instead of failing on ~40% of them.
Steps to reproduce
notes: same when trying to import the exported file from current instance into a fresh install of 28.0.1 or fresh install of 27.1.5 as well as using the current version that was updated from 27.1.4.
Expected behavior
you should get popup showing alll the entries where imported, and no errors (I assume) in the logfile
Actual behaviour
You get a pop up the shows only a subset of the entries were inported and you get errors in the log, which changes with each attempt: Mainly: OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 5 database is locked also: Sabre\VObject\Recur\MaxInstancesExceededException: Recurring events are only allowed to generate 3500 Also: Sabre\DAV\Exception\UnsupportedMediaType: Validation error in iCalendar: More than one master object was found for the object with UID 3c1b8ebf-1bf0-4bbe-abdc-8b560e988c4e
Calendar app version
4.6.1
CalDAV-clients used
nextcloud 27.1.5 and 28.0.1
Browser
Firefox 121.0 (64bit)
Client operating system
Windows 11 (patched)
Server operating system
ARM Linux (rpi4 64bit)
Web server
Apache
Database engine version
SQlite
PHP engine version
PHP 8.2
Nextcloud version
27.1.5 and 28.0.1
Updated from an older installed version or fresh install
Fresh install
List of activated apps
Nextcloud configuration
Web server error log
Log file
Browser log
No response
Additional info
the log file is massive, so tried to get one of the database is locked examples, if you need more we can arrange a private transfer if you would like. but as this is easily reproducible and to me looks like a race condition as the server is a slow rpi runing sqlite, maybe the exception should be caught and if locked, a delay and retry a few times then hard exception raised? but I am not a php programmer so couldn't really work out quite what was happening, but I have seen such issues in java code before :-)