zadam / trilium

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

(Bug report) Sync server handshake failed - 400 Bad Request #3018

Closed adamerose closed 2 years ago

adamerose commented 2 years ago

Trilium Version

0.53.2

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Windows 10

Description

sigaloid commented 2 years ago

Is there any reverse proxy between the server and your computer? Apache, nginx, etc?

adamerose commented 2 years ago

Is there any reverse proxy between the server and your computer? Apache, nginx, etc?

No, this is a new VPS with no web servers installed. I think if it was a reverse proxy issue I wouldn't be able to access the web client, right?

sigaloid commented 2 years ago

I've seen reverse proxy issues where syncing doesn't work but browser access does, because the sync protocol uses different methods than browser access (ex. sync uses larger payloads and there may be a low max size for the reverse proxy to handle).

But since there's not: have you tried restarting the server? Is there existing data on the server, or the client, or both, or neither?

If you have a server with data and want to add a fresh desktop to sync with, you should probably delete everything from the desktop directory then restart the sync process. That way you can enter it directly on the intro page rather than once you've created a database on the desktop.

adamerose commented 2 years ago

If you have a server with data and want to add a fresh desktop to sync with, you should probably delete everything from the desktop directory then restart the sync process. That way you can enter it directly on the intro page rather than once you've created a database on the desktop.

Okay that worked for me, thanks :)