Unable to sync to NextCloud from Mac desktop

Environment:

  • Joblin: Joplin 1.0.179 (prod, darwin)
  • NextCloud: 18.0.1 (http, not currently https)

Synchronization settings:

  • Synchronization target: Nextcloud
  • Nextcloud WebDAV URL: http:///remote.php/webdav/Joplin
  • Nextcloud username: dpatterson
  • Nextcloud password: *********
  • Synchronization ingerval: 5 minutes
    Check synchronization configuration results:
    Success! Synchronization configuration appears to be correct

When I click the Synchronize button, I get the following:

Completed: 2020-02-19 9:32 AM

Last error: Fail-safe: Sync was interrupted because 100% of the data (21 items) is about to be deleted. To override this behaviour disable the fail-safe in the sync settings.

My Joplin directory on the Nextcloud host exists and contains three directories:

  • .lock/
  • .resource/
  • .sync/

.lock/ and .resource/ are empty.
.sync/ contains a single file: version.txt with the single character “1” in it.

Log output with log-level debug can be found here: https://pastebin.com/9KUSw4MG
Your forum software wouldn’t let me submit the log contents directly because of all of the URLs in it.

Thanks,
Dave

@dpatterson

Welcome to the forum.

Is it not “/webdav/files/Joplin”?

And if you still have problems you could try the Webdav connector rather than the Nextcloud one.

/webdav/files/Joplin gives this error:
Error. Please check that URL, username, password, etc. are correct and that the sync target is accessible. The reported error was:
WebDAV directory not found: http://example.com/remote.php/webdav/files/Joplin

Switching to the Webdav connector worked. Thanks!

@dpatterson

You’re welcome.

As it is a “real” Webdav URL I just wondered if you may want to remove it from the above post. It’s possible from this thread that you have published your webdav path and your username. That only leaves the password! It’s only an outside chance that someone would see it and try to have a go at getting in but why risk it? If you’re not using 2FA on your Nextcloud server the user/pass combo could allow access to the full user account.

Regards.

Good thought. Edited appropriately. Thanks.