Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Sync not work. #1221

@Mike710Shine

Description

@Mike710Shine

Description

In the past I always worked with a server application that was then synced locally. Now recently I have the problem that I get strange messages with 401 Logged in session not found. I tried to sync again but unfortunately it resulted in the error mentioned.
I tested it on Linux with des Local app to an it not work.

The Server runs in an Docker Container on an Unraid System.

TriliumNext Version

0.91.6

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Windows 11

Error logs

Language option not found, falling back to en.
Language option not found, falling back to en.
Generated session secret
DB not initialized, please visit setup page
DB size: 4 KB
{
"appVersion": "0.91.6",
"dbVersion": 228,
"nodeVersion": "v20.18.1",
"syncVersion": 34,
"buildDate": "2025-02-03T17:08:57Z",
"buildRevision": "79e830b6ea22e51196bdca4c021f30ecfad92723",
"dataDirectory": "C:\Users\mkonrad\AppData\Roaming\trilium-data",
"clipperProtocolVersion": "1.0",
"utcDateTime": "2025-02-18T11:02:06.829Z"
}
CPU model: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz, logical cores: 8, freq: 2995 Mhz
Trusted reverse proxy: false
App HTTP server starting up at port 37840
Listening on port 37840
Getting document options FROM sync server.
Creating database for sync
Schema and not synced options generated.
Triggering sync.
Slow 200 POST /api/setup/sync-from-server with 20 bytes took 122ms
Sync failed: 'Request to PUT https://trilium-mike.shininghell.home64.de//api/sync/update?logMarkerId=e7FsNdjbdn failed, error: 401 Logged in session not found', stack: Error: Request to PUT https://trilium-mike.shininghell.home64.de//api/sync/update?logMarkerId=e7FsNdjbdn failed, error: 401 Logged in session not found
at generateError (file:///C:/Users/mkonrad/Documents/Standalon_Anwendungen/trilium-windows-x64/resources/app.asar/src/services/request.ts:229:12)
at IncomingMessage. (file:///C:/Users/mkonrad/Documents/Standalon_Anwendungen/trilium-windows-x64/resources/app.asar/src/services/request.ts:119:32)
at IncomingMessage.emit (node:events:518:28)
at endReadableNT (node:internal/streams/readable:1698:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
Returning sync stats: {"initialized":false,"outstandingPullCount":0}
200 GET /api/sync/stats with 46 bytes took 1ms
Returning sync stats: {"initialized":false,"outstandingPullCount":0}
304 GET /api/sync/stats with 46 bytes took 2ms
Returning sync stats: {"initialized":false,"outstandingPullCount":0}
304 GET /api/sync/stats with 46 bytes took 1ms
Returning sync stats: {"initialized":false,"outstandingPullCount":0}
304 GET /api/sync/stats with 46 bytes took 2ms
Returning sync stats: {"initialized":false,"outstandingPullCount":0}
304 GET /api/sync/stats with 46 bytes took 0ms
Returning sync stats: {"initialized":false,"outstandingPullCount":0}
304 GET /api/sync/stats with 46 bytes took 1ms
Returning sync stats: {"initialized":false,"outstandingPullCount":0}
304 GET /api/sync/stats with 46 bytes took 1ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions