Occ dav:sync-system-addressbook stops at 30000

Nextcloud version (eg, 29.0.5): 29.0.8
Operating system and version (eg, Ubuntu 24.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.52
PHP version (eg, 8.3): 8.1

The issue you are facing:

occ dav:sync-system-addressbook

… stops after 30000 entries

Is this the first time you’ve seen this error? N

Steps to replicate it:

  1. Run the command on a large server

30000 users is not exactly a small number, and would actually be a case for a Nextcloud Enterprise contract :wink:

Anyway, I think it will be difficult to find someone here on the forums who can reproduce this. So maybe it’s better to open an issue on GitHub: https://github.com/nextcloud/server/issues

Enterprise is closed source which is not an option. I’ll open an issue.

No, it isn’t. It’s based on the same source code, probably built with a slightly different build script, which by the way isn’t public for the Community Edition either. There are also some additional enterprise apps and extensions available, which may include closed source components. However, these are all optional.

But that was just a side note anyway. :wink:

2 Likes

would you please be so kind and pu the link to the issue you have hopefully opened here as an answer?

Thank you in advance

occ dav:sync-system-addressbook stops after 30000 entries

We discussed that just the other day, it’s indeed a problem that we loop over the whole user backend and not use pagination. It’s on our list, cannot give you an ETA. For some setups, it works to increase the memory limit (for those who also set an memory limit on cli).

Enterprise is closed source which is not an option.

Please reach out to our team if you have questions related to our enterprise offerings: Nextcloud Enterprise: Content collaboration software for enterprises

I’ll open an issue.

That would be great, thank you :+1:

4 Likes

I just checked /etc/php/version/cli/php.ini and it has -1 for memory_limit if that’s what you’re talking about?

Reported at [Bug]: occ dav:sync-system-addressbook stops after 30000 entries · Issue #48722 · nextcloud/server · GitHub

1 Like

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