Sync error with Nextcloud

Operating system

Linux

Joplin version

2.14.20

Desktop version info

Joplin 2.14.20 (prod, linux)

Client ID: 9db284522d384168bbcd4235dad2b6fe
Sync Version: 3
Profile Version: 46
Keychain Supported: No

Revision: cfd98e3

Backup: 1.4.0

Sync target

Nextcloud

Editor

Markdown Editor

What issue do you have?

When I try to sync to the server the following error will consistently show and fail the sync operation. The same sync error appears across all devices desktop and mobile. Any advice to fix would be greatly appreciated.

Fetched items: 4/31.
Completed: 26/04/2024 19:34 (12s)
Last error: Error: On file ba0bf132e1a344bcb2c1205ca5383ff4.md: Missing required property: type_: id: ba0bf132e1a344bcb2c1205ca5383ff4 parent_id: 4263a84842944e848e8647c8898e9e40 item_type: 1 item_id: 13f2f7bf3e3b455585c3d3b1cfa742b5 item_updated_time: 1704134684343 title_diff: "" body_diff: "[{"diffs":[[0,"ssitzky\\n"],[1,"- Mayakovsky\\n"],[0,"- Moholy"]],"start1":4,"start2":4,"length1":16,"length2":29}]" metadata_diff: {"new":{},"deleted":} encryption_cipher_text: encryption_applied: 0 up

You could try deleting this file (ba0bf132e1a344bcb2c1205ca5383ff4.md), maybe that will help. Looks like it's just a revision so you're unlikely to lose any useful data by doing so. But make a copy just in case.

Note that this can happen when you open one of these files in Nextcloud (even if you don't make any change, Nextcloud modifies it), so make sure you never open any .md file

1 Like

Yes, the next cloud software prefers very strongly that you only use its client sync program on your computer to move data back and forth and make changes to data stored in next cloud. You need to pretend that the directory that you're syncting your files to is invisible inside next cloud. Always leave it alone. See if that helps.

When you choose next Cloud as your synchronization choice in Joplin in actuality it is using webdav and the presumption is that you will not be directly editing the data stored on the webdav next Cloud Server.