Webtop and Nextcloud contact sharing

NethServer Version: NS8
Module: Webtop and Nextcloud

We have installed Mail, Webtop and Nextcloud on the same node.

In trying to share the Contacts that are stored in Nextcloud with Webtop, we followed these steps:

  1. In Nextcloud - copy Contact link to clipboard
  2. In Webtop - under Personal calendars - select Add Internet addressbook
  3. In Webtop - paste URL from Nextcloud and provide username/password - click Next
  4. In Weptop - selected Contacts and 60 minute sync interval
  5. Then the name appears in list of addressbooks - BUT NEVER any synced results

Please note that the Contact link in Nextcloud is working on cellphones.

The attached image shows the settings in the foreground and a VERY EMPTY list in the background. Also “Last sync” appears to be “n/a”.

Ideas? Where to look?

no idea. You should maybe ask this directly to the webtop community ? Are there any logs ?

1 Like

Thanks, I think you found a bug as it seems the automatic sync doesn’t work. It worked after waiting some more time…

I copied the contact link from Nextcloud…

https://nextcloud.ns8rockytest2.com/remote.php/dav/addressbooks/users/1628274b-5c2d-4e87-99cb-f5f5573d4064/contacts/

…and created an internet addressbook in Webtop.

After a manual sync…

…Webtop shows:

But the automatic sync isn’t executed at all.

EDIT:

I retried using 15 minutes interval and an automatic sync worked.

So it seems to work, I was just too impatient…

1 Like

In the first reply, you asked for log files. I am still new to NS8 and as such have no idea where to look for log files. Having said that, I retried the process after deleting my first attempt.

A notice showed up (I can’t get a screenshot) that reads as follows:

Contacts 16:35

Synchronization error:
(“SardineExpection: Unexpected response (412 Precondition failed)”)

1 Like

You can watch the logs at the System logs page, see System logs — NS8 documentation
So it’s possible to follow the logs and retry the synchronisation.

Maybe there are wrong credentials set to access the internet calendar?

It seems this error occurs when the caldard/carddav syntax isn’t correct.

You could try to create a test addressbook in Nextcloud with just a few contacts and then check if the sync is working.
Maybe one of the contacts causes the error.

Thanks for the note of where to find the logs. Will learn/follow it up.

I had an idea. I just tried something… we are using Cloudflare DNS and the host name for nextcloud was proxied via Cloudflare. So I just changed it to remove the proxy via DNS so that the ping showed the actual IP instead of the proxy IP.

It worked in just a couple of seconds.

We can basically say that it is now a working option - but now I am curious why proxied DNS entries would cause webtop to hiccup whereas cell phones and desktop apps (e.g. evolution) were fine…

I am not sure that would warrant consideration as a webtop bug?

1 Like

I don’t know much about Cloudflare, I found this: https://community.cloudflare.com/t/what-is-the-difference-between-proxied-and-dns-only/173310

Maybe the DNS proxying doesn’t work correctly because the traffic comes from the local server which isn’t the case using the cell phone or other clients.

You could try to use the IP 127.0.0.1 or localhost instead of the hostname when connecting to the addressbook.

Just tried localhost in connection string and got “Connection Refused”

1 Like