zadam / trilium

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

Unable to sync another device #4683

Closed MatejPetrik007 closed 8 months ago

MatejPetrik007 commented 9 months ago

Trilium Version

latest(0.63.3)

What operating system are you using?

Other Linux

What is your setup?

Local (no sync)

Operating System Version

Kubuntu 23.10

Description

i setup the server and added pc(windows) wanted to add notebook(Kubuntu) but i recive a error log but i am able to connect to the server via Firefox password is setted up

Error logs

Sync server handshake failed, error: Request to POST http://192.168.100.100:8000/api/login/sync failed, error: 400 Bad Request Sync login credentials are incorrect. It looks like you're trying to sync two different initialized documents which is not possible.

Nriver commented 8 months ago

two different initialized documents is the problem. You should initialize on server, then sync with server on client's first run.

You need to delete client's database to solve this.

MatejPetrik007 commented 8 months ago

resolved by reinstall app and also client's database thx for help

gasmsy2023 commented 5 months ago

Please how do you start trilium afresh on windows? I had started it using the "I am a new user option". Now establishing sync throws an error and it is not successful. I have deleted the unzipped folder, cleaned the registry for all trilium keys and yet when I start the program, it opens on the last windows the previous version closed.

Nriver commented 5 months ago

You can delete the data directory if you are sure there is nothing important in it. https://github.com/zadam/trilium/wiki/Data-directory

gasmsy2023 commented 5 months ago

Thanks a million. Synced like magic.

On Thu, Jun 13, 2024, 06:46 Nriver @.***> wrote:

You can delete the data directory if you are sure there is nothing important in it. https://github.com/zadam/trilium/wiki/Data-directory

— Reply to this email directly, view it on GitHub https://github.com/zadam/trilium/issues/4683#issuecomment-2164464471, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDHG6JUUJ3LQNRNXG5WNKITZHEW4HAVCNFSM6AAAAABELZUTGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRUGQ3DINBXGE . You are receiving this because you commented.Message ID: @.***>