cody: bug: VSCode remote - can't log in

Version

1.85.2

Describe the bug

I’m working on a remote VSCode instance, on Linux from a MacOS host, and every time I try to log in (with the “sign in with *” buttons) I get greeted by a

Authentication failed. Please ensure Cody is enabled for sourcegraph.com and verify your email address if required.

Output logs:

█ CodyIgnore:updateCodyIgnoreCodespaceMap:codebase: gitlab.infra.online.net/storage/storage
█ CommandsController:fileWatcherInit: watchers created
█ AuthProvider:init:lastEndpoint: https://sourcegraph.com/
█ CodyIgnore:refresh:workspace: /root/storage
█ LocalEmbeddingsController: constructor
█ ChatManager:constructor: init has local embeddings controller
█ ChatPanelsManager:constructor: init
█ symf: downloading symf from https://github.com/sourcegraph/symf/releases/download/v0.0.2/symf-x86_64-linux-musl.zip
█ Symf: downloading from URL https://github.com/sourcegraph/symf/releases/download/v0.0.2/symf-x86_64-linux-musl.zip
█ CodyCompletionProvider:notSignedIn: You are not signed in.
█ SidebarViewController:onDidReceiveMessage: initialized
█ Cody:publishConfig: configForWebview 
█ ContextProvider:onConfigurationChange: using codebase 
█ logEvent (telemetry disabled): CodyVSCodeExtension:Auth:failed VSCode {"opts":{"agent":true}}
█ telemetry-v2: recordEvent (no-op): cody.auth/failed: {"parameters":{"version":0},"timestamp":"2024-01-23T12:52:43.815Z"}
█ symf: downloaded symf to /root/.vscode-server/data/User/globalStorage/sourcegraph.cody-ai/symf/symf-v0.0.2-x86_64-linux.tmp
█ symf: extracted symf to /root/.vscode-server/data/User/globalStorage/sourcegraph.cody-ai/symf/symf-v0.0.2-x86_64-linux
█ symf: creating index /root/.vscode-server/data/User/globalStorage/sourcegraph.cody-ai/symf/indexroot/root/storage
█ logEvent (telemetry disabled): CodyVSCodeExtension:auth:simplifiedSignInGitHubClick VSCode {}
█ logEvent (telemetry disabled): CodyVSCodeExtension:auth:fromCallback VSCode {"properties":{"type":"callback","from":"web","success":false,"hasV2Event":true}}
█ telemetry-v2: recordEvent (no-op): cody.auth.fromCallback.web/succeeded: {"parameters":{"version":0,"metadata":[{"key":"success","value":0}]},"timestamp":"2024-01-23T12:53:06.036Z"}
█ Cody:publishConfig: configForWebview 
█ ContextProvider:onConfigurationChange: using codebase 
█ logEvent (telemetry disabled): CodyVSCodeExtension:Auth:failed VSCode {"opts":{"agent":true}}
█ telemetry-v2: recordEvent (no-op): cody.auth/failed: {"parameters":{"version":0},"timestamp":"2024-01-23T12:53:06.076Z"}
█ CodyCompletionProvider:notSignedIn: You are not signed in.
█ ContextProvider:onConfigurationChange: using codebase 
█ LocalEmbeddingsController: setAccessToken is dotcom
█ LocalEmbeddingsController: setAccessToken is dotcom
█ CodyCompletionProvider:notSignedIn: You are not signed in.

@jdorfman tried to help me on the Discord server and he suggested trying to log in via a Token, and using https://sourcegraph.com + a newly generated Token led me to the same error and same log output.

Expected behavior

Being able to use Cody on a remote session (VSCode running on a Linux VM and interface running on my local mac)

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 23 (5 by maintainers)

Commits related to this issue

Most upvoted comments

In my case it was caused by vs code proxy settings

@ltrottier-yelp Could you please send us a quick email on support@sourcegraph.com for us to troubleshoot and help resolve this issue