Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error when syncing metadata between two Nextcloud servers #1134

Open
Janovlk opened this issue Aug 29, 2024 · 0 comments
Open

An error when syncing metadata between two Nextcloud servers #1134

Janovlk opened this issue Aug 29, 2024 · 0 comments

Comments

@Janovlk
Copy link

Janovlk commented Aug 29, 2024

Hello,

I use the Vdirsyncer version 0.19.2. Python 3.12.3, Ubuntu 24.04LTS. I'm synchronizing two Nextcloud servers. Syncing data is always okay.
I tried to sync metadata. I choosed color only for test. The Vdirsyncer reads colors without problems:
debug: Key: color
debug: A: #00FB00FF
debug: B: #6ea68f
debug: S: #00FB00FF

But after that, there is an error:

Copying color to caldav_nextcloud_ocloud_de/personal
debug: ====================
debug: PROPPATCH https://´zzzzz.ocloud.de/remote.php/dav/calendars/zzzzz/personal/
debug: {'User-Agent': 'vdirsyncer/0.19.2', 'Content-Type': 'application/xml; charset=UTF-8'}
debug: b'\n \n \n \n <ns0:calendar-color xmlns:ns0="http://apple.com/ns/ical/">#6ea68f</ns0:calendar-color>\n \n \n \n '
debug: Sending request...
debug: 207
debug: <CIMultiDictProxy('Date': 'Thu, 29 Aug 2024 16:50:46 GMT', 'Server': 'Apache', 'Content-Security-Policy': "default-src 'none';", 'Expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'Cache-Control': 'no-store, no-cache, must-revalidate', 'Pragma': 'no-cache', 'Vary': 'Brief,Prefer', 'X-Request-Id': 'Fu0qP7LjGun3v4cWmFTp', 'X-Debug-Token': 'Fu0qP7LjGun3v4cWmFTp', 'Set-Cookie': 'oc_sessionPassphrase=v5wDOF03qOfLrn%2F%2BBYtvU8gZev5Yhr6ycYUGSS%2BfpoR7N284e2TZFDZlA%2BNe%2FloSlu4lBX948MQk9sSEyTZYt9h9R9k%2BvaapeEKlu8PFOzWBkeErSs%2BgsG1BuAwqwZiU; path=/; secure; HttpOnly; SameSite=Lax', 'Set-Cookie': '__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax', 'Set-Cookie': '__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict', 'Set-Cookie': 'ocm8ds1rl6wk=h1m6l7acib9gkucs7e2gr0esq0; path=/; secure; HttpOnly; SameSite=Lax', 'Set-Cookie': 'cookie_test=test; expires=Thu, 29-Aug-2024 17:50:47 GMT; Max-Age=3600', 'Strict-Transport-Security': 'max-age=15768000', 'Referrer-Policy': 'no-referrer', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'X-Permitted-Cross-Domain-Policies': 'none', 'X-Robots-Tag': 'noindex, nofollow', 'X-XSS-Protection': '1; mode=block', 'Connection': 'close', 'Transfer-Encoding': 'chunked', 'Content-Type': 'application/xml; charset=utf-8')>
debug: <StreamReader 472 bytes eof>
debug: Found cached value for ['command', '/home/zzzzzz/VdirNextcloudUser.sh'].
debug: Found cached value for ['command', '/home/zzzzzz/VdirNextcloudPass.sh'].
debug: Found cached value for ['command', '/home/zzzzzz/VdirNextcloudUser.sh'].
debug: Found cached value for ['command', '/home/zzzzzz/VdirNextcloudPass.sh'].
Metasyncing carddav_nextcloud/Personal
error: Unknown error occurred for carddav_nextcloud/Personal:
error: Use -vdebug to see the full traceback.
debug: File "/root/.local/share/pipx/venvs/vdirsyncer/lib/python3.12/site-packages/vdirsyncer/cli/tasks.py", line 156, in metasync_collection
debug: await metasync(
debug: File "/root/.local/share/pipx/venvs/vdirsyncer/lib/python3.12/site-packages/vdirsyncer/metasync.py", line 50, in metasync
debug: a = await storage_a.get_meta(key)
debug: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
debug: File "/root/.local/share/pipx/venvs/vdirsyncer/lib/python3.12/site-packages/vdirsyncer/storage/dav.py", line 693, in get_meta
debug: raise exceptions.UnsupportedMetadataError

Here is my config file: (username is replaced with zzzz)

**[general]
status_path = "~/.vdirsyncer/status/"

[pair caldav_nextcloud]
a = "caldav_nextcloud_ocloud_de"
b = "caldav_nextcloud_nextcloud_org"
collections = ["from a"]
metadata = ["color"]
conflict_resolution = "a wins"

[storage caldav_nextcloud_nextcloud_org]
type = "caldav"
url = "https://zzzzzz.next-cloud.org/remote.php/dav/calendars/zzzzzz/personal/"
username.fetch = ["command", "/home/zzzzzz/VdirNextcloudUser.sh"]
password.fetch = ["command", "/home/zzzzzz/VdirNextcloudPass.sh"]

[storage caldav_nextcloud_ocloud_de]
type = "caldav"
url = "https://zzzzzz.ocloud.de/remote.php/dav/calendars/zzzzzz/personal/"
username.fetch = ["command", "/home/zzzzzz/VdirNextcloudUser.sh"]
password.fetch = ["command", "/home/zzzzzz/VdirNextcloudPass.sh"]

[pair carddav_nextcloud]
a = "carddav_nextcloud_ocloud_de"
b = "carddav_nextcloud_nextcloud_org"
#collections = ["from a"]
collections = [["Personal", "contacts", "personal"]]
metadata = ["color"]
conflict_resolution = "a wins"

[storage carddav_nextcloud_ocloud_de]
type = "carddav"
url = "https://zzzzzz.ocloud.de/remote.php/dav/addressbooks/users/zzzzzz/contacts/"
username.fetch = ["command", "/home/zzzzzz/VdirNextcloudUser.sh"]
password.fetch = ["command", "/home/zzzzzz/VdirNextcloudPass.sh"]

[storage carddav_nextcloud_nextcloud_org]
type = "carddav"
url = "https://zzzzzz.next-cloud.org/remote.php/dav/addressbooks/users/zzzzzz/personal/"
username.fetch = ["command", "/home/zzzzzz/VdirNextcloudUser.sh"]
password.fetch = ["command", "/home/zzzzzz/VdirNextcloudPass.sh"]

[pair caldav_tabdigital]
a = "caldav_nextcloud_ocloud_de"
b = "caldav_nextcloud_tabdigital"
collections = null
metadata = ["color", "displayname"]
conflict_resolution = "a wins"

[storage caldav_nextcloud_tabdigital]
type = "caldav"
url = "https://mia.nl.tab.digital/remote.php/dav/calendars/zzzzzz/personal/"
username.fetch = ["command", "/home/zzzzzz/VdirNextcloudUser.sh"]
password.fetch = ["command", "/home/zzzzzz/VdirNextcloudPass.sh"]

[pair carddav_tabdigital]
a = "carddav_nextcloud_ocloud_de"
b = "carddav_nextcloud_tabdigital"
collections = null
metadata = ["color"]
conflict_resolution = "a wins"

[storage carddav_nextcloud_tabdigital]
type = "carddav"
url = "https://mia.nl.tab.digital/remote.php/dav/addressbooks/users/zzzzzz/contacts/"
username.fetch = ["command", "/home/zzzzzz/VdirNextcloudUser.sh"]
password.fetch = ["command", "/home/zzzzzz/VdirNextcloudPass.sh"]**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant