TriliumNext / Notes

Build your personal knowledge base with TriliumNext Notes
https://triliumnext.github.io/Docs/
GNU Affero General Public License v3.0
949 stars 52 forks source link

(Bug report) Always error connecting to sync server after wrong DNS configuration once #558

Open renyuneyun opened 13 hours ago

renyuneyun commented 13 hours ago

TriliumNext Version

0.90.4

What operating system are you using?

Other Linux

What is your setup?

Local + server sync

Operating System Version

Archlinux

Description

I have my own sync server, and set up syncing in my Trilium desktop app. It all worked great, until I made a mistake in DNS set up. In short, the problematic set up was: Infinite redirect loop using status code 301. (It was due to an incorrect configuration of cloudflare by myself.) The resulting behaviour is: trilium always fails to connect to sync server; on "sync" configuration page, clicking "test sync" will lead to an immediate popup saying "... too many redirects".

I can bypass the issue with commandline switch --disable-http-cache, and trilium will resort to sync. However, I have to enable this switch everytime when starting trilium, otherwise the problem re-occurs.

This has been an issue since original Trilium. It looks like clearing the DNS cache would resolve the issue, but I cannot find a way to do this. Hopefully this can be added as a button in "advanced" options page.

Error logs

No response

SiriusXT commented 7 hours ago

I'm not sure, but clearing the Electron cache might solve the problem. path: ~/.config/<app_name>