Syncthing 2.0 DB migration completed but WebUI not coming back online

Hello all,

I posted to another thread, but I think this is different enough that it could be its own post. (It’s for an entirely different device).

So I compiled Syncthing 2.0.5 for my old Drobo 5N2. I previously had Syncthing 1.3.0 (also compiled myself) running successfully on this device. After the Drobo upgraded the app, the DB migration began and I could see the progress on the temporary GUI:

*** Database migration in progress ***

2025-09-02 18:22:55 INF syncthing v2.0.5 "Hafnium Hornet" (go1.25.0 linux-arm) builder@github.syncthing.net 2025-09-02 19:03:22 UTC (log.pkg=main)
2025-09-02 18:22:56 INF Migrating old-style database to SQLite; this may take a while... (log.pkg=syncthing)
2025-09-02 18:23:01 INF Starting temporary GUI/API during migration (address=0.0.0.0:8384 log.pkg=main)

Given the age of the device, its relative “slowness”, and the size of my data, I knew the migration would take quite some time.

After about 40 hours, the DB migration seems to have completed. However, my instance seems to be stuck after the migration with the following message in the log:

2025-09-04 10:56:37 INF Migrated folder (folder=<redacted> files=2573 blocks=2129234 duration=1h11m56s filesrate=0.5961062708107198 log.pkg=syncthing)
2025-09-04 10:56:37 INF Migrating virtual mtimes... (log.pkg=syncthing)
2025-09-04 10:56:42 INF Migration complete (files=534901 blocks=5723 duration=40h33m46s log.pkg=syncthing)
2025-09-04 10:56:43 INF Cleaned out database file for old, dropped folder (path=folder.0001-<redacted>.db log.pkg=db/sqlite)

My NAS has enough free space. I was previously running version 1.3.0 successfully. I updated the CLI to start with double-hyphens instead of single-hyphens and use the ‘serve’ parameter in the command. I’m not sure what Syncthing is doing now. Is it doing anything? Is there some process that occurs after the “Cleaned out database file for old dropped folder”?

Any help would be appreciated. Thank you!

Update: So, I guess I just needed to be patient.Synchting eventually came back up, it just went a loooong time without updating the log. It went almost 3 hours without talking to me.

2025-09-04 10:56:43 INF Cleaned out database file for old, dropped folder (path=folder.0001-<redacted>.db log.pkg=db/sqlite)
2025-09-04 13:46:36 INF Temporary GUI/API closed (address=0.0.0.0:8384 error="http: Server closed" log.pkg=main)
2025-09-04 13:46:37 INF Upgrade available (current=v2.0.5 latest=v2.0.6 log.pkg=main)
2025-09-04 13:46:42 INF Upgraded, should exit now (newVersion=v2.0.6 log.pkg=main)
2025-09-04 13:46:42 INF syncthing v2.0.6 "Hafnium Hornet" (go1.25.0 linux-arm) builder@github.syncthing.net 2025-09-03 07:27:53 UTC (log.pkg=main)

Not exactly sure what it was doing all that time, but it’s now running and performing a sync.

I’ll leave this here, in case it can help others in the future.

Solution: patience. :slight_smile:

2 Likes

Yeah, unclear. There’s pretty much nothing relevant that happens in between those two log lines, certainly nothing that explains to me why it would take three hours. :person_shrugging:

Well, my system has been stuck on this for 3+ weeks. And it’s a pretty hefty system.

Data set is fairly large (~10TB), but it sure seems like this is stuck. Any suggestions?

Definitely restart it with the latest version as there were a few fixes along the way.

I am currently experiencing the behavior on a raspberry 4. 1259272 files with 10815 blocks were migrated in 5h24m, version is 2.0.10, last log line so far is “15:33:39 INF Cleaned out database…”, that’s a bit over an hour ago from now.

GUI Task manager shows ~12% CPU load, 750MB out of 3794MB RAM used and two syncthing processes with 41.2 and 17.4 MB RSS and both 0% CPU, position 8 and 9 in decending CPU load order. There is a lot of HDD head positioning. Normally, I would assume syncthing folder scanning, but it might be a SQLite activity or whatever as well.

Will it be safe when this state will be interrupted? I started it over ssh and I worry that my network connection will be reset next night, killing the raspberry session.

Yes, it is safe to interrupt the database migration and then start it again.

A piece of advice: Use “screen” which lets you disconnect the ssh session, but the screen session is still running on your pi.

1 Like

:slightly_smiling_face: ,

thank you very much for the advice.

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