sourcegraph / app

Issue tracker for the Sourcegraph app - a lightweight single-binary version of Sourcegraph for your local machine
27 stars 2 forks source link

mac: Cody Launch error - panic: (bug) frontend configuration server failed to start after 5m0s #23

Open jdelgado-sb opened 1 year ago

jdelgado-sb commented 1 year ago

Hi all, looks different than other issues, so will report. Looks like FE service is failing to launch due to database connection issues.

cody.log

jdelgado-sb commented 1 year ago

Relevant section:

[2023-06-29][20:04:13][ERROR][app] ✱ Sourcegraph App version: 2023.6.28+1331.1867679b11
[2023-06-29][20:09:13][ERROR][app] panic: (bug) frontend configuration server failed to start after 5m0s, this may indicate the DB is inaccessible
[2023-06-29][20:09:13][ERROR][app]
[2023-06-29][20:09:13][ERROR][app] goroutine 308 [running]:
[2023-06-29][20:09:13][ERROR][app] github.com/sourcegraph/sourcegraph/internal/conf.(*store).checkDeadlock(0x14000010d38?)
[2023-06-29][20:09:13][ERROR][app]  internal/conf/store.go:175 +0x300
[2023-06-29][20:09:13][ERROR][app] github.com/sourcegraph/sourcegraph/internal/conf.(*store).WaitUntilInitialized(0x14000a066c0)
[2023-06-29][20:09:13][ERROR][app]  internal/conf/store.go:137 +0x2c
[2023-06-29][20:09:13][ERROR][app] github.com/sourcegraph/sourcegraph/internal/conf.(*client).Watch(0x140009963c0, 0x10dd99120)
[2023-06-29][20:09:13][ERROR][app]  internal/conf/client.go:169 +0x1b8
[2023-06-29][20:09:13][ERROR][app] github.com/sourcegraph/sourcegraph/internal/conf.Watch(0x1400067cd80?)
[2023-06-29][20:09:13][ERROR][app]  internal/conf/client.go:136 +0x28
[2023-06-29][20:09:13][ERROR][app] github.com/sourcegraph/sourcegraph/cmd/symbols/parser.init.0.func2()
[2023-06-29][20:09:13][ERROR][app]  cmd/symbols/parser/config.go:52 +0x24
[2023-06-29][20:09:13][ERROR][app] created by github.com/sourcegraph/sourcegraph/cmd/symbols/parser.init.0
[2023-06-29][20:09:13][ERROR][app]  cmd/symbols/parser/config.go:51 +0xe8
slimsag commented 1 year ago

Thank you for filing this and trying it out @jdelgado-sb! I really appreciate it

Just to confirm, if you choose the Clear all data and restart option (system tray -> cody -> troubleshoot -> clear all data option) - then do you encounter the same thing?

Which OS is this with?

hussain4real commented 1 year ago

facing same issue even after Clear all data and restart

Kiokku commented 1 year ago

same issue on OSX, just tried Clear all data and restart several times, and it works!

slimsag commented 1 year ago

@hussain4real could you show your logs? I want to see if it is the same error: panic: (bug) frontend configuration server failed to start after 5m0s