userManager->countSeenUsers() > 100 || array_sum($this->userManager->countUsers()) > 100) { $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'yes'); $output->info('Could not sync system address books during update - too many user records have been found. Please call occ dav:sync-system-addressbook manually.'); return; } try { $this->syncService->syncInstance(); $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'no'); } catch (Throwable $e) { $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'yes'); $this->logger->error('Could not sync system address books during update', [ 'exception' => $e, ]); $output->warning('System address book sync failed. See logs for details'); } } }