Hello, have the same issue, use latest docker-compose base from github main-branch.
After start service collects initial data and after few seconds backend shows error:
2025/09/05 06:02:37 [OTLP] Converted span 'EntryPoint' to log entry: POST /api/v1/osquery/config 200 (5.03ms)
fatal error: concurrent map iteration and map write
goroutine 174 [running]:
reflect.mapiternext(0x4befc9?)
/usr/local/go/src/runtime/map.go:1397 +0x13
reflect.(*MapIter).Next(0xc0004a4cf0?)
/usr/local/go/src/reflect/value.go:2005 +0x74
encoding/json.mapEncoder.encode({0xc0004a4e50?}, 0xc000314040, {0xc9bec0?, 0xc0001e23d8?, 0x2?}, {0xa?, 0x0?})
/usr/local/go/src/encoding/json/encode.go:745 +0x334
encoding/json.structEncoder.encode({{{0xc0000f2c08, 0x18, 0x23}, 0xc000250f90, 0xc000250fc0}}, 0xc000314040, {0xd89d80?, 0xc0001e23c0?, 0xc000314030?}, {0x0, ...})
/usr/local/go/src/encoding/json/encode.go:704 +0x21e
encoding/json.ptrEncoder.encode({0xc000314030?}, 0xc000314040, {0xc407e0?, 0xc000314030?, 0xc000314030?}, {0x8?, 0x0?})
/usr/local/go/src/encoding/json/encode.go:876 +0x23c
encoding/json.structEncoder.encode({{{0xc0000e2008, 0x4, 0x4}, 0xc00032f170, 0xc00032f1a0}}, 0xc000314040, {0xd25900?, 0xc000314000?, 0x411b1b?}, {0x0, ...})
/usr/local/go/src/encoding/json/encode.go:704 +0x21e
encoding/json.(*encodeState).reflectValue(0xc000314040, {0xd25900?, 0xc000314000?, 0x411ec5?}, {0x38?, 0x0?})
/usr/local/go/src/encoding/json/encode.go:321 +0x73
encoding/json.(*encodeState).marshal(0x411c85?, {0xd25900?, 0xc000314000?}, {0x5f?, 0x1?})
/usr/local/go/src/encoding/json/encode.go:297 +0xc5
encoding/json.Marshal({0xd25900, 0xc000314000})
/usr/local/go/src/encoding/json/encode.go:163 +0xd0
main.(*WebSocketClient).sendMessage(0xc000398000, {{0xda70f9, 0x6}, {0xd9a220, 0xc0002fcc88}, {0x0, 0x0}, 0xc0001e23c0})
/app/websocket.go:290 +0x10c
main.(*WebSocketClient).sendNewLogWithStats(_, {{0xc000490738, 0x15}, {0xc000490750, 0x14}, {0xc0003fbd10, 0xd}, {0xc0003fbc68, 0x4}, {0xc0003fc9c0, ...}, ...})
/app/websocket.go:359 +0x32a
main.(*WebSocketClient).WritePump(0xc000398000)
/app/websocket.go:193 +0x745
main.(*WebSocketClient).Start.func1()
/app/websocket.go:57 +0x49
created by main.(*WebSocketClient).Start in goroutine 172
/app/websocket.go:49 +0x56
goroutine 1 [chan receive, 4 minutes]:
main.main()
/app/main.go:169 +0x1398
goroutine 8 [select, 4 minutes]:
github.com/patrickmn/go-cache.(*janitor).Run(0xc0001e1e30, 0xc00039f580)
/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1079 +0x7d
created by github.com/patrickmn/go-cache.runJanitor in goroutine 1
/go/pkg/mod/github.com/patrickmn/go-cache@v2.1.0+incompatible/cache.go:1099 +0xdb
goroutine 9 [select, 1 minutes]:
main.startRetryProcessor.func1()
/app/geoLocation.go:585 +0x5a
created by main.startRetryProcessor in goroutine 1
/app/geoLocation.go:583 …