I’ve been adding web pages with the web clipper on Firefox. One of the notes didn’t appear in Joplin. This may be related.
The last note that got flushed to disk was this:
I’m having issues with finding what note is causing this.
In the debugger I’m seeing this:
But when I click “sync” those errors don’t multiply, so maybe they’re not connected to the issue.
That’s what I’m seeing in the log (.config/joplin-desktop/log.txt):
2020-02-25 19:25:58: "Starting scheduled sync"
2020-02-25 19:25:58: "Error: URI malformed
Error: URI malformed
at EncryptionService.encrypt (/tmp/.mount_JoplinMgdiNs/resources/app/lib/services/EncryptionService.js:298:11)
at EncryptionService.encryptAbstract_ (/tmp/.mount_JoplinMgdiNs/resources/app/lib/services/EncryptionService.js:402:33)
at async EncryptionService.encryptString (/tmp/.mount_JoplinMgdiNs/resources/app/lib/services/EncryptionService.js:489:3)
at async Function.serializeForSync (/tmp/.mount_JoplinMgdiNs/resources/app/lib/models/BaseItem.js:344:22)
at async Synchronizer.start (/tmp/.mount_JoplinMgdiNs/resources/app/lib/synchronizer.js:457:25)
at async timeoutCallback (/tmp/.mount_JoplinMgdiNs/resources/app/lib/registry.js:112:24)"
2020-02-25 19:25:58: "Operations completed: "
2020-02-25 19:25:58: "createRemote: 1"
2020-02-25 19:25:58: "Total folders: 50"
2020-02-25 19:25:58: "Total notes: 192"
2020-02-25 19:25:58: "Total resources: 934"
2020-02-25 19:25:58: "There was some errors:"
2020-02-25 19:25:58: "Error: URI malformed
Error: URI malformed
at EncryptionService.encrypt (/tmp/.mount_JoplinMgdiNs/resources/app/lib/services/EncryptionService.js:298:11)
at EncryptionService.encryptAbstract_ (/tmp/.mount_JoplinMgdiNs/resources/app/lib/services/EncryptionService.js:402:33)
at async EncryptionService.encryptString (/tmp/.mount_JoplinMgdiNs/resources/app/lib/services/EncryptionService.js:489:3)
at async Function.serializeForSync (/tmp/.mount_JoplinMgdiNs/resources/app/lib/models/BaseItem.js:344:22)
at async Synchronizer.start (/tmp/.mount_JoplinMgdiNs/resources/app/lib/synchronizer.js:457:25)
at async timeoutCallback (/tmp/.mount_JoplinMgdiNs/resources/app/lib/registry.js:112:24)"
2020-02-25 19:26:36: "Scheduling sync operation..."
2020-02-25 19:26:42: "Scheduling sync operation..."
2020-02-25 19:26:46: "SearchEngine: Updating FTS table..."
2020-02-25 19:26:47: "SearchEngine: Updated FTS table in 580ms. Inserted: 1. Deleted: 0"
2020-02-25 19:27:04: "Scheduling sync operation..."
2020-02-25 19:27:14: "SearchEngine: Updating FTS table..."
2020-02-25 19:27:14: "SearchEngine: Updated FTS table in 491ms. Inserted: 1. Deleted: 0"
2020-02-25 19:27:20: "RevisionService::maintenance: Starting..."
By creating a copy of the sqlite database and poking around I’ve found one thing: a binary blob (in notes.body). But then I noticed more of those and I’m confused. So, this is normal that the contents of a website are saved as a BLOB?
How can I find the specific not that’s causing this? I may just end up saving this profile on the side for debugging and build a fresh profile. How can I increase the debugging verbosity?
I removed the entire “Work” notebook (and sub-notebooks) and the sync suddently started without problems…
I’m not quite sure which of the notes caused the problem (seeing what @tangodelta has written it is probably one of the many >190 notes from the web clipper, most coming from Evernote, a few from the Joplin web clipper) as there were 703 notes in that notebook.
By the way: in the other notebooks I do have a lot of notes coming from the Evernote’s web clipper but none from Joplin’s. So (just a speculation) the bug is likely to come from Joplin’s web clipper…
I was just planning to install a local copy of Joplin on my work PC and keep the “Work” notes there, locally. I still would like to sync all the notes (including the Work notes) if possible, but now I’m a little scared to activate sync in my work PC as I don’t want to mess with the other notes’ syncing…
Anyone managed to find a note where this bug happens? I’m going to put the item ID in the log in the next version to make it easier to debug this problem.
Sadly, nope. I tried all the suspected notes with: simple, full, full HTML and screenshot clip. I didn’t try the selection clip since I have no idea what I was clipping back then.