Syncthing 0.12.22 creates a lot of stdout log

I’ve just upgraded to 0.12.22, I’m using SyncthingTray wrapper GitHub - iss0/SyncthingTray: Syncthing wrapper for Windows. Includes a small interface to configure start on boot and puts syncthing into tray instead of the console window.

Suddenly Syncthing “talks a lot” to stdout. There are hundreds of messages like this:

Anyone idea how to minimise this jibber jabber? :wink:

That’s a panic trace. Capture a full one, starting with “panic: …” and some lines above it, and file a bug please.

thanks @calmh for a quick response. Yep, starts with panic. But syncthing is still running so I’m not sure how to capture a full one. Although it seems that there are more panic traces.

[E5JLC] 18:52:23 INFO: GUI and API listening on 127.0.0.1:8384
[E5JLC] 18:52:23 INFO: Access the GUI via the following URL: https://127.0.0.1:8384/
[E5JLC] 18:52:26 INFO: Completed initial scan (ro) of folder 70_IOM_VMware
2016/04/30 18:52:26 http: panic serving 127.0.0.1:61226: no versions?
goroutine 119 [running]:
net/http.(*conn).serve.func1(0xc08268ac00)
	c:/go/src/net/http/server.go:1389 +0xc8
panic(0x9f1a80, 0xc083f7cbb0)
	c:/go/src/runtime/panic.go:426 +0x4f7
github.com/syncthing/syncthing/lib/db.(*Instance).withNeed(0xc08201e140, 0xc08207e758, 0x7, 0x8, 0xc083f2abd8, 0x20, 0x20, 0x1340901, 0xc08207e780)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:422 +0x53f
github.com/syncthing/syncthing/lib/db.(*FileSet).WithNeedTruncated(0xc0823f4300, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc0842426c0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/set.go:169 +0x290
github.com/syncthing/syncthing/lib/model.(*Model).NeedSize(0xc083c5e6c0, 0xc083f5c43b, 0x7, 0x0, 0x0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/model/model.go:439 +0x1ec
main.folderSummary(0xc08225e280, 0xc083c5e6c0, 0xc083f5c43b, 0x7, 0xc0833fa1e8)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:554 +0x698
main.(*apiService).getDBStatus(0xc084415ad0, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:540 +0xb8
main.(*apiService).(main.getDBStatus)-fm(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:181 +0x45
net/http.HandlerFunc.ServeHTTP(0xc083ed04c0, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.(*ServeMux).ServeHTTP(0xc083c8b500, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1910 +0x184
main.getPostHandler.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:355 +0xd7
net/http.HandlerFunc.ServeHTTP(0xc083c8a5a0, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
main.metricsMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:429 +0xd8
net/http.HandlerFunc.ServeHTTP(0xc0840a2ca0, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
main.noCacheMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:452 +0x1e3
net/http.HandlerFunc.ServeHTTP(0xc0840a2cc0, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.(*ServeMux).ServeHTTP(0xc083c8a600, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1910 +0x184
main.corsMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:420 +0x212
net/http.HandlerFunc.ServeHTTP(0xc0840a2d60, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
main.csrfMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui_csrf.go:66 +0x6b0
net/http.HandlerFunc.ServeHTTP(0xc082428140, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
main.withDetailsMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:460 +0x12e
net/http.HandlerFunc.ServeHTTP(0xc083dbe500, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
main.basicAuthAndSessionMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui_auth.go:48 +0x251
net/http.HandlerFunc.ServeHTTP(0xc08240e5a0, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
main.redirectToHTTPSMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:442 +0x11c
net/http.HandlerFunc.ServeHTTP(0xc08401cae0, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
main.debugMiddleware.func1(0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:367 +0xa2
net/http.HandlerFunc.ServeHTTP(0xc08401cb00, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.serverHandler.ServeHTTP(0xc082394900, 0x31ce938, 0xc0832cf1e0, 0xc08232a540)
	c:/go/src/net/http/server.go:2081 +0x1a5
net/http.(*conn).serve(0xc08268ac00)
	c:/go/src/net/http/server.go:1472 +0xf35
created by net/http.(*Server).Serve
	c:/go/src/net/http/server.go:2137 +0x455
2016/04/30 18:52:26 http: panic serving 127.0.0.1:61231: no versions?
goroutine 123 [running]:
net/http.(*conn).serve.func1(0xc085279480)
	c:/go/src/net/http/server.go:1389 +0xc8
panic(0x9f1a80, 0xc083711f80)
	c:/go/src/runtime/panic.go:426 +0x4f7
github.com/syncthing/syncthing/lib/db.(*Instance).withNeed(0xc08201e140, 0xc08408d0e8, 0x7, 0x8, 0xc0840d2bd8, 0x20, 0x20, 0x1340001, 0xc08408d100)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:422 +0x53f
github.com/syncthing/syncthing/lib/db.(*FileSet).WithNeedTruncated(0xc0823f4300, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc083687b00)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/set.go:169 +0x290
github.com/syncthing/syncthing/lib/model.(*Model).NeedSize(0xc083c5e6c0, 0xc0834c757b, 0x7, 0x0, 0x0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/model/model.go:439 +0x1ec
main.folderSummary(0xc08225e280, 0xc083c5e6c0, 0xc0834c757b, 0x7, 0xc0833064a8)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:554 +0x698
main.(*apiService).getDBStatus(0xc084415ad0, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:540 +0xb8
main.(*apiService).(main.getDBStatus)-fm(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:181 +0x45
net/http.HandlerFunc.ServeHTTP(0xc083ed04c0, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.(*ServeMux).ServeHTTP(0xc083c8b500, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1910 +0x184
main.getPostHandler.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:355 +0xd7
net/http.HandlerFunc.ServeHTTP(0xc083c8a5a0, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
main.metricsMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:429 +0xd8
net/http.HandlerFunc.ServeHTTP(0xc0840a2ca0, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
main.noCacheMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:452 +0x1e3
net/http.HandlerFunc.ServeHTTP(0xc0840a2cc0, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.(*ServeMux).ServeHTTP(0xc083c8a600, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1910 +0x184
main.corsMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:420 +0x212
net/http.HandlerFunc.ServeHTTP(0xc0840a2d60, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
main.csrfMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui_csrf.go:66 +0x6b0
net/http.HandlerFunc.ServeHTTP(0xc082428140, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
main.withDetailsMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:460 +0x12e
net/http.HandlerFunc.ServeHTTP(0xc083dbe500, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
main.basicAuthAndSessionMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui_auth.go:48 +0x251
net/http.HandlerFunc.ServeHTTP(0xc08240e5a0, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
main.redirectToHTTPSMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:442 +0x11c
net/http.HandlerFunc.ServeHTTP(0xc08401cae0, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
main.debugMiddleware.func1(0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:367 +0xa2
net/http.HandlerFunc.ServeHTTP(0xc08401cb00, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.serverHandler.ServeHTTP(0xc082394900, 0x31ce938, 0xc08526e1a0, 0xc085226460)
	c:/go/src/net/http/server.go:2081 +0x1a5
net/http.(*conn).serve(0xc085279480)
	c:/go/src/net/http/server.go:1472 +0xf35
created by net/http.(*Server).Serve
	c:/go/src/net/http/server.go:2137 +0x455
2016/04/30 18:52:27 http: panic serving 127.0.0.1:61234: no versions?
goroutine 47 [running]:
net/http.(*conn).serve.func1(0xc082090200)
	c:/go/src/net/http/server.go:1389 +0xc8
panic(0x9f1a80, 0xc082209860)
	c:/go/src/runtime/panic.go:426 +0x4f7
github.com/syncthing/syncthing/lib/db.(*Instance).withNeed(0xc08201e140, 0xc0824d1e60, 0x13, 0x20, 0xc0840aabd8, 0x20, 0x20, 0x1340401, 0xc08408c360)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:422 +0x53f
github.com/syncthing/syncthing/lib/db.(*FileSet).WithNeedTruncated(0xc08417c480, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc0824d1e00)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/set.go:169 +0x290
github.com/syncthing/syncthing/lib/model.(*Model).NeedSize(0xc083c5e6c0, 0xc083dbe99b, 0x13, 0x0, 0x0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/model/model.go:439 +0x1ec
main.folderSummary(0xc08225e280, 0xc083c5e6c0, 0xc083dbe99b, 0x13, 0xc083fa41e8)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:554 +0x698
main.(*apiService).getDBStatus(0xc084415ad0, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:540 +0xb8
main.(*apiService).(main.getDBStatus)-fm(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:181 +0x45
net/http.HandlerFunc.ServeHTTP(0xc083ed04c0, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.(*ServeMux).ServeHTTP(0xc083c8b500, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1910 +0x184
main.getPostHandler.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:355 +0xd7
net/http.HandlerFunc.ServeHTTP(0xc083c8a5a0, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
main.metricsMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:429 +0xd8
net/http.HandlerFunc.ServeHTTP(0xc0840a2ca0, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
main.noCacheMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:452 +0x1e3
net/http.HandlerFunc.ServeHTTP(0xc0840a2cc0, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.(*ServeMux).ServeHTTP(0xc083c8a600, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1910 +0x184
main.corsMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:420 +0x212
net/http.HandlerFunc.ServeHTTP(0xc0840a2d60, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
main.csrfMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui_csrf.go:66 +0x6b0
net/http.HandlerFunc.ServeHTTP(0xc082428140, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
main.withDetailsMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:460 +0x12e
net/http.HandlerFunc.ServeHTTP(0xc083dbe500, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
main.basicAuthAndSessionMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui_auth.go:48 +0x251
net/http.HandlerFunc.ServeHTTP(0xc08240e5a0, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
main.redirectToHTTPSMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:442 +0x11c
net/http.HandlerFunc.ServeHTTP(0xc08401cae0, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
main.debugMiddleware.func1(0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:367 +0xa2
net/http.HandlerFunc.ServeHTTP(0xc08401cb00, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:1618 +0x41
net/http.serverHandler.ServeHTTP(0xc082394900, 0x31ce938, 0xc08326a000, 0xc08364a9a0)
	c:/go/src/net/http/server.go:2081 +0x1a5
net/http.(*conn).serve(0xc082090200)
	c:/go/src/net/http/server.go:1472 +0xf35
created by net/http.(*Server).Serve
	c:/go/src/net/http/server.go:2137 +0x455
2016/04/30 18:52:27 http: panic serving 127.0.0.1:61225: no versions?
goroutine 131 [running]:
net/http.(*conn).serve.func1(0xc082582d80)
	c:/go/src/net/http/server.go:1389 +0xc8
panic(0x9f1a80, 0xc0821711c0)
	c:/go/src/runtime/panic.go:426 +0x4f7
github.com/syncthing/syncthing/lib/db.(*Instance).withNeed(0xc08201e140, 0xc083c7b758, 0x8, 0x8, 0xc0844eebd8, 0x20, 0x20, 0x1340401, 0xc083c7b770)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/leveldb_dbinstance.go:422 +0x53f
github.com/syncthing/syncthing/lib/db.(*FileSet).WithNeedTruncated(0xc08417d880, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xc0852bbfa0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/db/set.go:169 +0x290
github.com/syncthing/syncthing/lib/model.(*Model).NeedSize(0xc083c5e6c0, 0xc083610cdb, 0x8, 0x0, 0x0)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/lib/model/model.go:439 +0x1ec
main.folderSummary(0xc08225e280, 0xc083c5e6c0, 0xc083610cdb, 0x8, 0xc083c91688)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:554 +0x698
main.(*apiService).getDBStatus(0xc084415ad0, 0x31ce938, 0xc0820ff040, 0xc0833f6380)
	c:/jenkins/workspace/syncthing-release-windows/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:540 +0xb8
main.(*apiService).(main.getDBStatus)-fm(0x31ce938, 0xc0820ff040, 0xc0833f6380)

Yes, panics encountered while fetching data for an HTTP request (as in this case) are not fatal. It does however indicate that there is an inconsistency in the database. I’d suggest restarting Syncthing to see if that resolves it (it may, as it exchanges indexes again with the other devices), otherwise I’d be interested in taking a look at a copy of the database to figure out what happened.

Well, in this case, to be honest, it might be me;) I should explain. I run Syncthing off an fully encrypted external USB HDD, using VeraCrypt. For some reason when the HDD is plugged to any but “the one” USB port on my laptop, it drops out and dismounts. For reason I can’t explain I plugged the HDD today to a different USB port:) and yes, it dropped while Syncthing was running. Now apart from that panic msg I lost some of the indexes. 1.2TB out of 1.5TB of index is gone :facepalm: So now with the disc in the proper USB port I will wait until fully indexed and see if it helps.

Ah, that explains it. Worst come to worst, you may need to remove the index database and let it rescan. That’s probably going to be a bit painful for that much data.

well, it’s gonna be a long night :wink:

This particular inconsistency (an empty entry for a file in the global index, where an entry should never be empty) we could “auto heal” in the checks we do at startup. But we don’t do that currently…

hmm, maybe a silly question. Can I copy the index db from another station? I have only 2 stations, they were more or less in sync;) I’m thinking…index db is full of hashed data of my files…so simple logic tells me why not? :wink: But I bet you tell me it’s impossible :slight_smile:

I think that folder paths should be identical too.

absolute or relative to the shared folder?

well I’ll be damned…you can actually copy index from another station :smile: That just saved me 1.5d of indexing

You can, indeed. If you have the old one still there, I wrote a check for this condition that means it should be fixed automatically at startup. If you can try it on your old index database that would be really neat. (It’s v0.12.22 + this one change)

https://build.syncthing.net/job/syncthing-branch/251/artifact/

sorry @calmh, I’ve deleted the old db:(

1 Like

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