You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to federate to server.
One of the server has a green light and both, the adressbook and federation sync went well.
On the second server the federation fails. Running
OK: occ federation:sync-addressbooks
FAILED: occ federation:sync-addressbooks
Satus: red light.
Running occ federation:sync-addressbooks -vvv will fail with Error while syncing https://nc-domain : VCard object with uid already exists in this addressbook collection.
In the nextcloud.log the corresponding error is: {"reqId":"AzTnCXqiI3wLnWv2yv82","level":3,"time":"2025-02-07T13:53:44+01:00","remoteAddr":"","user":"--","app":"federation","method":"","url":"--","message":"Server sync for https://nc-domain failed.","userAgent":"--","version":"30.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"VCard object with uid already exists in this addressbook collection.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/public/AppFramework/Db/TTransactional.php","line":45,"function":"OCA\\DAV\\CardDAV\\{closure}","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php","line":610,"function":"atomic","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/SyncService.php","line":83,"function":"createCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/public/AppFramework/Db/TTransactional.php","line":45,"function":"OCA\\DAV\\CardDAV\\{closure}","class":"OCA\\DAV\\CardDAV\\SyncService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/SyncService.php","line":80,"function":"atomic","class":"OCA\\DAV\\CardDAV\\SyncService","type":"->"},{"file":"/var/www/nextcloud/apps/federation/lib/SyncFederationAddressBooks.php","line":58,"function":"syncRemoteAddressBook","class":"OCA\\DAV\\CardDAV\\SyncService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/federation/lib/Command/SyncFederationAddressBooks.php","line":34,"function":"syncThemAll","class":"OCA\\Federation\\SyncFederationAddressBooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OCA\\Federation\\Command\\SyncFederationAddressBooks","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1078,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":183,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/console.php","line":87,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php","Line":622,"message":"Server sync for https://nc-domain failed.","exception":{},"CustomMessage":"Server sync for https://nc-domain failed."}}
Steps to reproduce
occ dav:sync-system-addressbook
occ federation:sync-addressbooks
Expected behavior
Should work as on the other (federated) server:
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Bug description
We are trying to federate to server.
One of the server has a green light and both, the adressbook and federation sync went well.
On the second server the federation fails. Running
OK: occ federation:sync-addressbooks
FAILED: occ federation:sync-addressbooks
Satus: red light.
Running occ federation:sync-addressbooks -vvv will fail with
Error while syncing https://nc-domain : VCard object with uid already exists in this addressbook collection.
In the nextcloud.log the corresponding error is:
{"reqId":"AzTnCXqiI3wLnWv2yv82","level":3,"time":"2025-02-07T13:53:44+01:00","remoteAddr":"","user":"--","app":"federation","method":"","url":"--","message":"Server sync for https://nc-domain failed.","userAgent":"--","version":"30.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"VCard object with uid already exists in this addressbook collection.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/public/AppFramework/Db/TTransactional.php","line":45,"function":"OCA\\DAV\\CardDAV\\{closure}","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php","line":610,"function":"atomic","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/SyncService.php","line":83,"function":"createCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/public/AppFramework/Db/TTransactional.php","line":45,"function":"OCA\\DAV\\CardDAV\\{closure}","class":"OCA\\DAV\\CardDAV\\SyncService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/SyncService.php","line":80,"function":"atomic","class":"OCA\\DAV\\CardDAV\\SyncService","type":"->"},{"file":"/var/www/nextcloud/apps/federation/lib/SyncFederationAddressBooks.php","line":58,"function":"syncRemoteAddressBook","class":"OCA\\DAV\\CardDAV\\SyncService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/federation/lib/Command/SyncFederationAddressBooks.php","line":34,"function":"syncThemAll","class":"OCA\\Federation\\SyncFederationAddressBooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OCA\\Federation\\Command\\SyncFederationAddressBooks","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1078,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":183,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/console.php","line":87,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":11,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php","Line":622,"message":"Server sync for https://nc-domain failed.","exception":{},"CustomMessage":"Server sync for https://nc-domain failed."}}
Steps to reproduce
occ dav:sync-system-addressbook
occ federation:sync-addressbooks
Expected behavior
Should work as on the other (federated) server:
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
occ dav:sync-system-addressbook works as expected
occ federation:sync-addressbooks -vvv failed
The text was updated successfully, but these errors were encountered: