zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.42k stars 1.93k forks source link

content with lot of pdf attachments not sync between multi-client and server #2050

Open grissiom opened 3 years ago

grissiom commented 3 years ago

Trilium version: 0.47.5, server version: docker: zadam/trilium:0.47-latest

I attached many(about 20+) pdf files in to my trilium wiki on client A, most of them are arXiv papers last night. But when I sync with the server today in client B, I see the structure of the wiki is crumbled.

Here is the screenshot on the client B: image

Here is the screenshot of the web server: image

I'm not able to screenshot the client A right now but the note should be well structured.

What should I provide to help fixing this problem? Thanks in advance.

grissiom commented 3 years ago

One more thing, even if I did the "Force full sync" on client B, many pdf files are still placed in the root node. "Consistency check" doesn't help both on client B and the server side.

zadam commented 3 years ago

Hi, if you could send me the logs from both client and server to zadam.apps@gmail.com I could try to analyse this.

There are real use cases where this may happen - mostly when "incompatible" changes are done on both sides and sync can't really resolve them. Like in one instance you insert a PDF into a parent note X, and at around the same time you delete X on another instance. But it's hard to say what exactly happened without seeing the logs first ...

zDEFz commented 3 years ago

Trilium version: 0.47.5, server version: docker: zadam/trilium:0.47-latest

I attached many(about 20+) pdf files in to my trilium wiki on client A, most of them are arXiv papers last night. But when I sync with the server today in client B, I see the structure of the wiki is crumbled.

Here is the screenshot on the client B: image

Here is the screenshot of the web server: image

I'm not able to screenshot the client A right now but the note should be well structured.

What should I provide to help fixing this problem? Thanks in advance.

Pack it into a zip, let the depth of the folders be at a maximum of 2. Replace all non-ascii characters (the asian ones) with something else..