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

"Oops, Something Went Wrong" After Cody was working locally before #59

Closed arben777 closed 1 year ago

arben777 commented 1 year ago

Hello, My Cody aI assistant was working quite well locally on my Mac silicon chip. But recently it started bugging out like not embedding the repos I would give it or hallucinating code that didn't exist / stating that it did not access to my code.

I removed the application from my computer and re-downloaded it. Now when I try to open it, it stated.

"Oops, something wen wrong." Even when I clear all data and restart it does not work.

Here are my logs:

[2023-08-13][06:02:52][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64 [2023-08-13][06:03:01][ERROR][app] |------------------------------------------------------------------------------| [2023-08-13][06:03:01][ERROR][app] | src-cli is unavailable | [2023-08-13][06:03:01][ERROR][app] |------------------------------------------------------------------------------| [2023-08-13][06:03:01][ERROR][app] | Sourcegraph is better when src-cli is available; batch changes may not work. | [2023-08-13][06:03:01][ERROR][app] | | [2023-08-13][06:03:01][ERROR][app] | Installation: https://github.com/sourcegraph/src-cli | [2023-08-13][06:03:01][ERROR][app] | | [2023-08-13][06:03:01][ERROR][app] |------------------------------------------------------------------------------| [2023-08-13][06:03:01][ERROR][app] 1691906581900471000 FATAL github-proxy shared/shared.go:109 github.com/sourcegraph/sourcegraph/cmd/github-proxy/shared.Main listen tcp :3180: bind: address already in use {"Resource": {"service.name": "sourcegraph-backend", "service.version": "2023.7.11+1384.7d20a90ce7", "service.instance.id": "Arbens-MacBook-Pro-2.local"}, "Attributes": {}} [2023-08-13][06:03:01][ERROR][app] 2023/08/13 06:03:01 tmpfriend: Removing /tmp/.searcher.tmp/tmpfriend-97327-636162074 [2023-08-13][06:03:01][ERROR][app] 1691906581900573000 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": "Arbens-MacBook-Pro-2.local"}, "Attributes": {"service": "servegit", "error": "failed to start servegit server which discovers local repositories: listen: listen tcp 127.0.0.1:3434: bind: address already in use"}} [2023-08-13][06:03:01][ERROR][app] 1691906581901409000 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": "Arbens-MacBook-Pro-2.local"}, "Attributes": {"service": "blobstore", "error": "listen tcp 127.0.0.1:49000: bind: address already in use"}} [2023-08-13][06:03:01][ERROR][app] 1691906581913907000 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": "Arbens-MacBook-Pro-2.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}} [2023-08-13][06:03:01][ERROR][app] 1691906581913904000 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": "Arbens-MacBook-Pro-2.local"}, "Attributes": {"error": "'src version -client-only': : exec: \"src\": executable file not found in $PATH"}} [2023-08-13][06:03:02][ERROR][app] Cody app backend terminated with exit code 1

arben777 commented 1 year ago

Deleting and re-downloding didn't work. However, I just resolved this issue by stopping the sourcegraph-backend process in my mac's activity monitor. And restarting Cody completely.