-
Hi, I've been very happily using trilium Notes in a docker-compose setup for about a year now. About a week ago the sync between a client and the server suddenly started failing, with a Things I've tried since then:
As far as I can tell both instances are on the same time. At least if I go to the recent changes view it shows the correct time. Maybe that uses the timezone for my device even if accessing the browser? How can I check what timezone trilium uses (both for server and client)? How can I set their timezones to match? trilium-log of the client says (click to expand):22:51:37.454 DB not initialized, please visit setup page
22:51:37.455 DB size: 4 KB
22:51:37.558 Generated session secret
22:51:38.338 {
"appVersion": "0.62.6",
"dbVersion": 227,
"syncVersion": 31,
"buildDate": "2024-01-21T23:49:23+01:00",
"buildRevision": "4f8073daa7cff1b8b6737ae45792b2e87c2adf33",
"dataDirectory": "C:\\Users\\home\\AppData\\Roaming\\trilium-data",
"clipperProtocolVersion": "1.0",
"utcDateTime": "2024-01-23T21:51:37.451Z"
}
22:51:38.338 CPU model: Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz, logical cores: 6 freq: 2808 Mhz
22:51:38.338 Trusted reverse proxy: false
22:51:38.339 App HTTP server starting up at port 37840
22:51:38.348 Listening on port 37840
22:55:27.960 Getting document options FROM sync server.
22:55:28.230 Creating database for sync
22:55:28.252 Schema and not synced options generated.
22:55:28.252 Triggering sync.
22:55:28.254 Slow 200 POST /api/setup/sync-from-server with 20 bytes took 295ms
22:55:28.326 Sync failed: 'Request to POST https://notes.finfet.de//api/login/sync failed, error: 401 Auth request time is out of sync, please check that both client and server have correct time. The difference between clocks has to be smaller than 5 minutes.', stack: Error: Request to POST https://notes.finfet.de//api/login/sync failed, error: 401 Auth request time is out of sync, please check that both client and server have correct time. The difference between clocks has to be smaller than 5 minutes.
at generateError (C:\Program Files\trilium-windows-x64\resources\app.asar\src\services\request.js:202:12)
at IncomingMessage.<anonymous> (C:\Program Files\trilium-windows-x64\resources\app.asar\src\services\request.js:91:32)
at IncomingMessage.emit (node:events:513:28)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
22:55:29.276 Returning sync stats: {"initialized":false,"outstandingPullCount":0}
22:55:29.278 200 GET /api/sync/stats with 46 bytes took 3ms
22:55:30.261 Returning sync stats: {"initialized":false,"outstandingPullCount":0}
22:55:30.261 304 GET /api/sync/stats with 46 bytes took 1ms
22:55:31.260 Returning sync stats: {"initialized":false,"outstandingPullCount":0}
22:55:31.261 304 GET /api/sync/stats with 46 bytes took 1ms
22:55:32.267 Returning sync stats: {"initialized":false,"outstandingPullCount":0}
22:55:32.269 304 GET /api/sync/stats with 46 bytes took 3ms
22:55:33.265 Returning sync stats: {"initialized":false,"outstandingPullCount":0}
22:55:33.267 304 GET /api/sync/stats with 46 bytes took 2ms docker log of the server instance:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have no idea how it happened but apparently the timezone of my PC was wrong for one hour today (despite it supposed to being set and updated automatically). I re-enabled automatic time settings and it corrected the time. Sync is working again. |
Beta Was this translation helpful? Give feedback.
I have no idea how it happened but apparently the timezone of my PC was wrong for one hour today (despite it supposed to being set and updated automatically). I re-enabled automatic time settings and it corrected the time. Sync is working again.