server icon indicating copy to clipboard operation
server copied to clipboard

User syncing for trusted servers does not work anymore after update to Nextcloud 20

Open lars-a opened this issue 6 years ago • 7 comments

After updating to Nextcloud 20 the users are not seen anymore on other federated Nextcloud instances setup as trusted servers of each other.

Steps to reproduce:

  • Install 2 Nextcloud 19 instances and setup each as trusted server for the other. Each instance shows the users of the other instance in the autocompletion for the sharing input field. Also in the settings of each instance the other server is shown with a green symbol. So at this point everything is working as expected.
  • Update instance 1 to Nextcloud 20 and after that instance 2 can no longer see the users of instance 1. It is also shown with an orange symbol in the settings of instance 2. And "occ federation:sync-addressbooks" returns "Error while syncing https://servername/nextcloud : Unauthorized".

As long as instance 2 is kept on Nextcloud 19 the sync in the other direction still works and the users of instance 2 are shown on instance 1. After updating instance 2 the Nextcloud 20 this also stops working.

OS: openSUSE Leap15.2 PHP 7.4.11 DB: mariadb 10.4.14

lars-a avatar Oct 09 '20 14:10 lars-a

Same problem for me

Mystikal57 avatar Oct 16 '20 10:10 Mystikal57

I have the same problem with two servers, one running NC 19 and one running NC 20. The logs of the NC 20 server contain lines like this:

Login failed: 'system' (Remote IP: 'x.x.x.x')

michaelkuhn avatar Oct 29 '20 14:10 michaelkuhn

I just checked today after updating to Nextcloud 20.0.3 and the problem seems to be fixed for me.

michaelkuhn avatar Dec 10 '20 20:12 michaelkuhn

Have you tried updating to a recent 20.0.x, @lars-a ? Still having that issue?

faust64 avatar Feb 06 '21 13:02 faust64

Have you tried updating to a recent 20.0.x, @lars-a ? Still having that issue?

I have updated my nextcloud instances to 20.0.7 and this issue is fixed.

lars-a avatar Feb 08 '21 10:02 lars-a

based on lars-a's comment I am closing this. Feel free to open a new issue if you should still experience this on NC21.0.2

szaimen avatar Jun 23 '21 13:06 szaimen

for me it helped to:

  • add the servers it self as a trusted server
  • trigger the cron job on booth ends two times,
  • and trigger occ dav:sync-system-addressbook and occ federation:sync-addressbooks

ghost avatar Sep 06 '21 15:09 ghost