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

cannot run Cody app #74

Open thomasvangurp opened 1 year ago

thomasvangurp commented 1 year ago

bug trace:

[2023-09-14][15:04:31][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64
[2023-09-14][15:05:25][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:05:25][ERROR][app] | src-cli is unavailable                                                       |
[2023-09-14][15:05:25][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:05:25][ERROR][app] | Sourcegraph is better when src-cli is available; batch changes may not work. |
[2023-09-14][15:05:25][ERROR][app] |                                                                              |
[2023-09-14][15:05:25][ERROR][app] | Installation: https://github.com/sourcegraph/src-cli                         |
[2023-09-14][15:05:25][ERROR][app] |                                                                              |
[2023-09-14][15:05:25][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:05:25][ERROR][app] 1694703925674699000  WARN    servegit    servegit/service.go:62  github.com/sourcegraph/sourcegraph/internal/service/servegit.(*svc).Start   skipping local code since the environment variable SRC is not set   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {}}
[2023-09-14][15:05:25][ERROR][app] 1694703925674723000  FATAL   sourcegraph svcmain/svcmain.go:263  github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1   failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"service": "blobstore", "error": "listen tcp 127.0.0.1:49000: bind: address already in use"}}
[2023-09-14][15:05:25][ERROR][app] Cody app backend terminated with exit code 1
[2023-09-14][15:05:34][ERROR][app::common] No such file or directory (os error 2)
[2023-09-14][15:05:35][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64
[2023-09-14][15:06:24][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:06:24][ERROR][app] | src-cli is unavailable                                                       |
[2023-09-14][15:06:24][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:06:24][ERROR][app] | Sourcegraph is better when src-cli is available; batch changes may not work. |
[2023-09-14][15:06:24][ERROR][app] |                                                                              |
[2023-09-14][15:06:24][ERROR][app] | Installation: https://github.com/sourcegraph/src-cli                         |
[2023-09-14][15:06:24][ERROR][app] |                                                                              |
[2023-09-14][15:06:24][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:06:25][ERROR][app] 1694703985043600000  WARN    servegit    servegit/service.go:62  github.com/sourcegraph/sourcegraph/internal/service/servegit.(*svc).Start   skipping local code since the environment variable SRC is not set   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {}}
[2023-09-14][15:06:25][ERROR][app] 2023/09/14 15:06:25 tmpfriend: Removing /tmp/.searcher.tmp/tmpfriend-42688-1260879321
[2023-09-14][15:06:25][ERROR][app] 1694703985047706000  FATAL   sourcegraph svcmain/svcmain.go:263  github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1   failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"service": "blobstore", "error": "listen tcp 127.0.0.1:49000: bind: address already in use"}}
[2023-09-14][15:06:25][ERROR][app] 1694703985082134000  ERROR   service run/util.go:44  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get src-cli version   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}}
[2023-09-14][15:06:25][ERROR][app] 1694703985082455000  ERROR   service run/util.go:44  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get src-cli version   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}}
[2023-09-14][15:06:25][ERROR][app] Cody app backend terminated with exit code 1
[2023-09-14][15:07:13][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64
[2023-09-14][15:07:14][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:07:14][ERROR][app] | src-cli is unavailable                                                       |
[2023-09-14][15:07:14][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:07:14][ERROR][app] | Sourcegraph is better when src-cli is available; batch changes may not work. |
[2023-09-14][15:07:14][ERROR][app] |                                                                              |
[2023-09-14][15:07:14][ERROR][app] | Installation: https://github.com/sourcegraph/src-cli                         |
[2023-09-14][15:07:14][ERROR][app] |                                                                              |
[2023-09-14][15:07:14][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:07:14][ERROR][app] 1694704034236312000  FATAL   sourcegraph svcmain/svcmain.go:263  github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1   failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"service": "blobstore", "error": "listen tcp 127.0.0.1:49000: bind: address already in use"}}
[2023-09-14][15:07:14][ERROR][app] 1694704034236328000  WARN    servegit    servegit/service.go:62  github.com/sourcegraph/sourcegraph/internal/service/servegit.(*svc).Start   skipping local code since the environment variable SRC is not set   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {}}
[2023-09-14][15:07:14][ERROR][app] 2023/09/14 15:07:14 tmpfriend: Removing /tmp/.searcher.tmp/tmpfriend-42920-1913696190
[2023-09-14][15:07:14][ERROR][app] 1694704034285265000  ERROR   service run/util.go:44  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get src-cli version   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}}
[2023-09-14][15:07:14][ERROR][app] 1694704034287100000  ERROR   service run/util.go:44  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get src-cli version   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}}
[2023-09-14][15:07:14][ERROR][app] Cody app backend terminated with exit code 1
[2023-09-14][15:07:18][ERROR][app::common] No such file or directory (os error 2)
[2023-09-14][15:07:18][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64
[2023-09-14][15:07:53][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:07:53][ERROR][app] | src-cli is unavailable                                                       |
[2023-09-14][15:07:53][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:07:53][ERROR][app] | Sourcegraph is better when src-cli is available; batch changes may not work. |
[2023-09-14][15:07:53][ERROR][app] |                                                                              |
[2023-09-14][15:07:53][ERROR][app] | Installation: https://github.com/sourcegraph/src-cli                         |
[2023-09-14][15:07:53][ERROR][app] |                                                                              |
[2023-09-14][15:07:53][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:07:53][ERROR][app] 1694704073182069000  WARN    servegit    servegit/service.go:62  github.com/sourcegraph/sourcegraph/internal/service/servegit.(*svc).Start   skipping local code since the environment variable SRC is not set   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {}}
[2023-09-14][15:07:53][ERROR][app] 2023/09/14 15:07:53 tmpfriend: Removing /tmp/.searcher.tmp/tmpfriend-43239-1213622095
[2023-09-14][15:07:53][ERROR][app] 1694704073183934000  FATAL   sourcegraph svcmain/svcmain.go:263  github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1   failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"service": "blobstore", "error": "listen tcp 127.0.0.1:49000: bind: address already in use"}}
[2023-09-14][15:07:53][ERROR][app] 1694704073232631000  ERROR   service run/util.go:44  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get src-cli version   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}}
[2023-09-14][15:07:53][ERROR][app] 1694704073233126000  ERROR   service run/util.go:44  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get src-cli version   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}}
[2023-09-14][15:07:53][ERROR][app] Cody app backend terminated with exit code 1
[2023-09-14][15:41:14][ERROR][app::common] No such file or directory (os error 2)
[2023-09-14][15:41:15][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64
[2023-09-14][15:41:45][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:41:45][ERROR][app] | Docker is unavailable                                                        |
[2023-09-14][15:41:45][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:41:45][ERROR][app] | Sourcegraph is better when Docker is available; some features may not work:  |
[2023-09-14][15:41:45][ERROR][app] |                                                                              |
[2023-09-14][15:41:45][ERROR][app] | - Batch changes                                                              |
[2023-09-14][15:41:45][ERROR][app] | - Symbol search                                                              |
[2023-09-14][15:41:45][ERROR][app] | - Symbols overview tab (on repository pages)                                 |
[2023-09-14][15:41:45][ERROR][app] |                                                                              |
[2023-09-14][15:41:45][ERROR][app] |------------------------------------------------------------------------------|
[2023-09-14][15:41:45][ERROR][app] 1694706105411147000  WARN    servegit    servegit/service.go:62  github.com/sourcegraph/sourcegraph/internal/service/servegit.(*svc).Start   skipping local code since the environment variable SRC is not set   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {}}
[2023-09-14][15:41:45][ERROR][app] 2023/09/14 15:41:45 tmpfriend: Removing /tmp/.searcher.tmp/tmpfriend-43306-328424278
[2023-09-14][15:41:46][ERROR][app] 1694706106162575000  ERROR   service run/util.go:49  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get docker version    {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'docker version -f {{.Server.Version}}': Cannot connect to the Docker daemon at unix:///Users/thomasg/.docker/run/docker.sock. Is the docker daemon running?\n\n: exit status 1"}}
[2023-09-14][15:41:46][ERROR][app] 1694706106165030000  ERROR   service run/util.go:49  github.com/sourcegraph/sourcegraph/enterprise/cmd/executor/internal/run.newQueueTelemetryOptions    Failed to get docker version    {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "'docker version -f {{.Server.Version}}': Cannot connect to the Docker daemon at unix:///Users/thomasg/.docker/run/docker.sock. Is the docker daemon running?\n\n: exit status 1"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121838178000  WARN    SiteConfigEscapeHatch   conf/conf.go:242    github.com/sourcegraph/sourcegraph/internal/conf.startSiteConfigEscapeHatchWorker.func1 failed to read config from database, trying again in 1s {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"path": "/Users/thomasg/Library/Application Support/com.sourcegraph.cody/site-config.json", "error": "ConfStore.SiteGetLatest: failed to connect to `host=/Users/thomasg/.sourcegraph-psql user=sourcegraph database=sourcegraph`: dial error (dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory)"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121838655000  FATAL   sourcegraph svcmain/svcmain.go:263  github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1   failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"service": "gitserver", "error": "initializing database stores: DB not available: dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121838750000  FATAL   sourcegraph svcmain/svcmain.go:263  github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1   failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"service": "repo-updater", "error": "initializing database store: DB not available: dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121838782000  FATAL   embeddings  shared/main.go:188  github.com/sourcegraph/sourcegraph/enterprise/cmd/embeddings/shared.mustInitializeFrontendDB    failed to connect to database   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "DB not available: failed to connect to `host=/Users/thomasg/.sourcegraph-psql user=sourcegraph database=sourcegraph`: dial error (dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory)"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121838887000  FATAL   sourcegraph svcmain/svcmain.go:263  github.com/sourcegraph/sourcegraph/internal/service/svcmain.run.func1   failed to start service {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"service": "worker", "error": "Failed to create database connection: failed to connect to frontend database: DB not available: dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121839124000  FATAL   init db shared/shared.go:112    github.com/sourcegraph/sourcegraph/enterprise/cmd/precise-code-intel-worker/shared.mustInitializeDB Failed to connect to frontend database  {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "DB not available: failed to connect to `host=/Users/thomasg/.sourcegraph-psql user=sourcegraph database=sourcegraph`: dial error (dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory)"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121842743000  FATAL   symbols shared/main.go:115  github.com/sourcegraph/sourcegraph/cmd/symbols/shared.mustInitializeFrontendDB  failed to connect to database   {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "DB not available: failed to connect to `host=/Users/thomasg/.sourcegraph-psql user=sourcegraph database=sourcegraph`: dial error (dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory)"}}
[2023-09-14][15:42:01][ERROR][app] 1694706121869633000  FATAL   enterprise  shared/shared.go:127    github.com/sourcegraph/sourcegraph/enterprise/cmd/frontend/shared.mustInitializeCodeIntelDB Failed to connect to codeintel database {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "MacBook-Pro-van-Thomas.local"}, "Attributes": {"error": "DB not available: failed to connect to `host=/Users/thomasg/.sourcegraph-psql user=sourcegraph database=sourcegraph`: dial error (dial unix /Users/thomasg/.sourcegraph-psql/.s.PGSQL.5432: connect: no such file or directory)"}}
[2023-09-14][15:42:02][ERROR][app] Cody app backend terminated with exit code 1
thomasvangurp commented 1 year ago

magically, after a restart the bug was solved. maybe check for busy application with port 4900..