Start UI before scanning files

Hello again,

I noticed this now several times: When i restart Syncthing the UI is not available for several minutes. I checked the log and found that it is scanning folders before it makes the UI available.

Could you change this so the UI is made available first? This becomes more relevant the larger and/or slower the folders/scanning get.

Greetings Fino;

No. It does not scan files; it checks the database, which is required to provide sensible answers in the API/GUI.

You can reduce startup time somewhat with the instructions in this issue:

Here a bit from my logs, i doubt that the performance problem is from hashing benchmark. Something else is happening here.

How can i debug? Maybe with “-verbose” switch? What do you suggest?

Okt 17 10:43:22 master systemd[1]: Starting Syncthing - Open Source Continuous File Synchronization for sync...
Okt 17 10:43:22 master systemd[1]: Started Syncthing - Open Source Continuous File Synchronization for sync.
Okt 17 10:43:22 master syncthing[630]: [5MSRP] INFO: syncthing v0.14.37 "Dysprosium Dragonfly" (go1.9 linux-arm) deb@build.syncthing.net 2017-08-24 04:26:12 UTC [noupgrade]
Okt 17 10:43:22 master syncthing[630]: [5MSRP] INFO: My ID: ...
Okt 17 10:43:23 master syncthing[630]: [5MSRP] INFO: Single thread SHA256 performance is 16 MB/s using minio/sha256-simd (16 MB/s using crypto/sha256).
Okt 17 10:43:24 master syncthing[630]: [5MSRP] INFO: Hashing performance with weak hash is 14.94 MB/s
Okt 17 10:43:25 master syncthing[630]: [5MSRP] INFO: Hashing performance without weak hash is 15.92 MB/s
Okt 17 10:43:25 master syncthing[630]: [5MSRP] INFO: Weak hash enabled, as it has an acceptable performance impact.
Okt 17 10:43:36 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:43:36 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:43:37 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:43:39 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:43:41 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:43:46 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite) # big folder
# + 5 minutes
Okt 17 10:48:42 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:48:47 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:48:48 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:48:48 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:48:50 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:48:50 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite) # medium sized folder
# + 20 seconds
Okt 17 10:49:10 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:49:14 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:49:15 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:49:16 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:49:16 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:49:19 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Ready to synchronize "..." (...) (readwrite)
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Send rate is unlimited, receive rate is unlimited
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Rate limits do not apply to LAN connections
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Using discovery server https://discovery-v4-2.syncthing.net/v2/?id=...
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Using discovery server https://discovery-v4-3.syncthing.net/v2/?id=...
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Using discovery server https://discovery-v4-4.syncthing.net/v2/?id=...
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Using discovery server https://discovery-v6-2.syncthing.net/v2/?id=...
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Using discovery server https://discovery-v6-3.syncthing.net/v2/?id=...
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: Using discovery server https://discovery-v6-4.syncthing.net/v2/?id=...
Okt 17 10:49:20 master syncthing[630]: [5MSRP] INFO: TCP listener ([::]:22000) starting
Okt 17 10:49:22 master syncthing[630]: [5MSRP] INFO: Completed initial scan (rw) of "..." (...)
Okt 17 10:49:22 master syncthing[630]: [5MSRP] INFO: Completed initial scan (rw) of "..." (...)
Okt 17 10:49:24 master syncthing[630]: [5MSRP] INFO: Completed initial scan (rw) of "..." (...)
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: Device ... is "..." at [dynamic]
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: Device ... is "..." at [dynamic]
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: Device ... is "..." at [dynamic]
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: Device ... is "..." at [dynamic]
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: Device ... is "..." at [dynamic]
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: Device ... is "..." at [dynamic]
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: GUI and API listening on [::]:8384
Okt 17 10:49:26 master syncthing[630]: [5MSRP] INFO: Access the GUI via the following URL: https://127.0.0.1:8384/

It’s doing a full database scan to both consistency check and calculate totals and stuff. That takes a while with a large database on a slow machine with slow I/O.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.