Closed YouDontCare closed 1 year ago
That enormous number of sync changes (511 million seems excessive) seems like there's a bug with the server and client that makes neither acknowledge the sync, so it keeps on sending changes back and forth.
I would simply export your whole database (will not include protected notes!) and reset both ends. Start from a fresh db/sync state and import your exported zip.
I would simply export your whole database (will not include protected notes!) and reset both ends. Start from a fresh db/sync state and import your exported zip.
Unironically, if no other idea comes up, then come saturday I'll do literally that :P
Take out a backup, purge everything, start fresh.
I figured out the problem, and it was my own damn stupid fault. A misconfiguration basically, the desktop client on the PC (which is also my home server not just for Trilium but a dozen other things) had its sync settings pointing to... Itself. Which is wrong.
My understanding of what was causing the weird looping behaviour I was seeing is that the "server" application and the "client" application were both trying to read and write from the same db at the same time and "fighting", thus bogging down the whole system. Though that understanding might be wholly incorrect, I am just an amateur.
Either way, changing that and then restarting everything has fixed the synchronisation issues. Changes made on other computers now synch to the PC and vice-versa and I no longer get weird lightspeed dumps onto my terminal :P
Trilium Version
0.59.4
What operating system are you using?
Other Linux
What is your setup?
Local + server sync
Operating System Version
EndeavourOS (Linux Kernel 6.3.1-arch2-1; KDE Plasma Desktop)
Description
It was working for some time, but last night as I was updating some notes on my laptop (my desktop PC is my homeserver), I noticed that the little symbol representing sync status was stuck in a spinning loop, which was odd. But I couldn't be fucked to troubleshoot cuz it was late, so I went to sleep.
Today when I went to check -- Indeed, the notes hadn't been updated on the server. No big deal, they weren't anything TOO important, but also at the same time, >what. So I went to check. And saw a few... Things I do not have the knowledge to understand, but which look like either errors to be reported, or misconfigurations that I need to address (and need help to do so due to my own incompetency--)
For one thing, the terminal log for the server keeps pushing these:
Just nonstop. 0 bytes seems. Odd? Also how it just keeps vomiting these messages with varying hashes.
Secondly, the terminal log for the desktop app, is also pushing these constant messages:
Like it is stuck in a loop, it repeats nonstop.
On the desktop application itself, sometimes when I write new stuff, it'll display an error saying. Not always, sometimes.
Once again, any alteration to notes, no matter on which machine they are made, are not synched. And the icon for synchronisation status, just keeps spinning and spinning and spinning. The clients all claim they can handshake with the server just fine.
What troubleshooting steps I tried:
What troubleshooting steps I didn't try:
Error logs
No response