super-productivity icon indicating copy to clipboard operation
super-productivity copied to clipboard

CalDav Synchronization with Nextcloud not working

Open tubia opened this issue 2 years ago • 9 comments

Your Environment

  • Version used: superProductivity_7.6.0_amd64.deb
  • Operating System and version: Linux Mint 20.2
  • Desktop Environment: Cinnamon
  • Browser Name and version:

Expected Behavior

Adding a new project, selecting CalDav Sync, filling the base dav url, the Nextcloud user name and password and the calendar name should successfully show you the list of tasks.

Current Behavior

Adding a new project, selecting CalDav Sync, filling the base dav url, the Nextcloud user name and password and the calendar name returns an error of failed synchronization.

Steps to Reproduce (for bugs)

  1. Add New Project
  2. Select "Configure CalDav Integration"
  3. Fill the fields: baseURL: "https://mycloud.example.org/remote.php/dav"; CalDav resource: "accademia" (in my case); user and password
  4. Save
  5. Click on the Sync button to check if the synchronization works

Console Output

Error: Not able to get rev for WebDAV
    at t._getRevFromMeta (web-dav-sync.service.ts:116)
    at t.<anonymous> (web-dav-sync.service.ts:48)
    at Generator.next (<anonymous>)
    at o (main.0726891bcbe9eeb4eb61.js:1)
    at l.invoke (zone.js:372)
    at Object.onInvoke (core.js:28672)
    at l.invoke (zone.js:371)
    at t.run (zone.js:134)
    at zone.js:1276
    at l.invokeTask (zone.js:406)

Error Log (Desktop only)

[2021-10-09 14:30:03.002] [error] Frontend Error: { HANDLED_ERROR_PROP: 'Caldav: Error: CALENDAR NOT FOUND: accademia' } undefined
[2021-10-09 14:30:03.008] [error] Frontend Error Stack:

tubia avatar Oct 09 '21 12:10 tubia

Do you mean WebDAV sync or the CalDAV issue integration? They are two separate things. One is for importing CalDAV events as tasks the other is for syncing all your data. You seem to have activated both and both don't seem to be properly configured.

johannesjo avatar Oct 10 '21 14:10 johannesjo

Dear @johannesjo thanks for your reply.

You are right, I tried in the beginning to set up the sync through the "Settings" -> "Sync" -.> "WebDav"

Now I disabled it and tried the CalDav path through the "Add New Project" -> "CalDav integration", but still no luck.

Do you have any suggestion on how to properly configure this?

tubia avatar Oct 10 '21 15:10 tubia

I am not using the CalDAV integration myself unfortunately. I'd recommend trying to have a look at how others configured theirs, e.g.:

https://github.com/johannesjo/super-productivity/issues/1192 https://github.com/johannesjo/super-productivity/search?q=caldav&type=issues

Caldav: Error: CALENDAR NOT FOUND: accademia indicates to me, that there might be something wrong there. Maybe "accademia" is not the correct name, at least not in regards to it's public address.

johannesjo avatar Oct 10 '21 15:10 johannesjo

This issue has not received any updates in 90 days. Please comment, if this still relevant!

github-actions[bot] avatar Feb 08 '22 01:02 github-actions[bot]

@tubia have you resolved the issue? I got a same error。 the metaData is:

GalensGan avatar Mar 12 '22 14:03 GalensGan

Hello! Same issue for me. Debian testing with Appimage 7.10.1, and deb package. Alex.

alacecho avatar Mar 12 '22 21:03 alacecho

I know this was done with Nextcloud in mind, however I can't setup this also for Vikunja using its caldav link I get: global-error-handler.class.ts:33 GLOBAL_ERROR_HANDLER {HANDLED_ERROR_PROP: "Caldav: Error: CALDAV NETWORK ERROR: TypeError: Cannot read properties of null (reading 'split')"}

The CalDav link for vikunja is in the form of my.vikunja.instance/dav/principals/MyUsername

krillin666 avatar Apr 04 '22 10:04 krillin666

This issue has not received any updates in 90 days. Please comment, if this still relevant!

github-actions[bot] avatar Aug 03 '22 02:08 github-actions[bot]

As a further reference, the new version continues not to work with CalDav integration. The overall sync with WebDav, accessible through the Settings, doesn't work either with Nextcloud.

I could also work myself on the issue if anyone of the dev team could point me where to look in the code.

tubia avatar Aug 18 '22 15:08 tubia

Just a confirmation that the issue is still relevant.

cloo avatar Nov 20 '22 08:11 cloo

I have to say that this is working for me with the latest NextCloud and SuperProductivity versions.

How to configure:

  • Create Project
  • Select Caldav Integration
  • Set the full calendar link as "Base URL": i.e., https://your-nextcloud-instance.tld/remote.php/dav/calendars/$USERNAME/$CALENDARNAME/ - you can get this link from the NextCloud Tasks webview by right-clicking the project and selecting "Copy Private Link"
  • Set the exact human-readable name of the resource (e.g., "Tasks", "Deck: Personal", as it appears on NextCloud's sidebar)
  • Select whatever choices you want for the syncing
  • Save and wait for the poll!

It would be nice to have the "sync" button also trigger the polling/pushing for this, but I think it's good enough :).

Edit 2: ok :) #2022

Edit: sadly, though, it seems it doesn't push tasks as caldav todos :( #1312

Edit 3: it also doesn't seem to work with Decks, but that's probably a Deck issue

Petemir avatar Jan 11 '23 12:01 Petemir

This issue has not received any updates in 90 days. Please comment, if this still relevant!

github-actions[bot] avatar May 12 '23 01:05 github-actions[bot]

* Create Project
* Select Caldav Integration
* Set the full calendar link as "Base URL": i.e., `https://your-nextcloud-instance.tld/remote.php/dav/calendars/$USERNAME/$CALENDARNAME/` - you can get this link from the NextCloud Tasks webview by right-clicking the project and selecting "Copy Private Link"
* **_Set the exact human-readable name of the resource_** (e.g., "Tasks", "Deck: Personal", as it appears on NextCloud's sidebar)

For what it's worth, and in case anyone else is looking for answers to this problem, this worked for me.

Thanks!

gitwas avatar Aug 25 '23 11:08 gitwas