zadam / trilium

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

(Bug report) ERROR when syncing deleted notes. #4762

Open fangs32 opened 1 month ago

fangs32 commented 1 month ago

Trilium Version

0.63.5

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Win10 as desktop, ubuntu 22 as server.

Description

When edit my notes through my desktop, and click the sync button, system shows that 'Sync finished successfully', and actually everything has been synced expect the deleted note. The note deleted on desktop is not synced to server correctly. Although it is invisible from desktop, I can still find, open and edit it from web browser when server shows me the info below:

13:35:59.221 ERROR: get /api/notes/:noteId/blob threw exception: 'Blob zmoZafaYphZmPxoZzPoS for notes 'CoTR36fWnqyD' was not found.', stack: undefined

And now, I don't know if the correct way to solve this problem is to delete the note again but from the browser this time? At least i can't find it after that.

Error logs

No response

fangs32 commented 1 month ago

Hi, someone reported that this error only occurs when check the 'erase notes permanently' option. Perhaps it is related to the order between reloading the app and updating the database?