microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.67k stars 29.44k forks source link

Windows Server 2016 An OS keyring couldn't be identified for storing the encryption related data in your current desktop environment #232949

Open AshrafAliS opened 2 weeks ago

AshrafAliS commented 2 weeks ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Install the GitHub Copilot
  2. Login with GitHub
  3. it will pop up the error message

Image

AshrafAliS commented 2 weeks ago

[15992:1104/141502.024:INFO:CONSOLE(35)] "%cTRACE color: #888 CommandService#executeCommand _setContext", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141502.033:INFO:CONSOLE(35)] "%cTRACE color: #888 [mainThreadSecretState] Getting password for vscode.github-authentication extension: github.auth", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [main 2024-11-04T08:45:02.023Z] [EncryptionMainService]### Checking if encryption is available... [main 2024-11-04T08:45:02.023Z] [EncryptionMainService] Encryption is available: false [15992:1104/141502.035:INFO:CONSOLE(35)] "%cTRACE color: #888 [SecretStorageService] Encryption is not available, falling back to in-memory storage", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141502.036:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] getting secret for key: secret://{"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141502.036:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] no secret found for key: secret://{"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141502.037:INFO:CONSOLE(35)] "%cTRACE color: #888 [mainThreadSecretState] No password found for: vscode.github-authentication github.auth", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141502.054:INFO:CONSOLE(35)] "%cTRACE color: #888 [DEBOUNCE: DocumentSymbols] for vscode-userdata:/c%3A/Users/ashrafal/AppData/Roaming/Code/User/settings.json is 659ms", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35)

[main 2024-11-04T08:45:13.975Z] app#handleProtocolUrl(): vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%3A%2F%2Fvscode.github-authentication%2Fdid-authenticate%3Fnonce%3Ddb8b97969d18bac5%26windowId%3D1 { originalUrl: 'vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%253A%252F%252Fvscode.github-authentication%252Fdid-authenticate%253Fnonce%253Ddb8b97969d18bac5%2526windowId%253D1' } [main 2024-11-04T08:45:13.975Z] app#handleProtocolUrl(): not handled vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%3A%2F%2Fvscode.github-authentication%2Fdid-authenticate%3Fnonce%3Ddb8b97969d18bac5%26windowId%3D1 { originalUrl: 'vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%253A%252F%252Fvscode.github-authentication%252Fdid-authenticate%253Fnonce%253Ddb8b97969d18bac5%2526windowId%253D1' } [main 2024-11-04T08:45:13.976Z] URLHandlerRouter#routeCall() with URI argument vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%3A%2F%2Fvscode.github-authentication%2Fdid-authenticate%3Fnonce%3Ddb8b97969d18bac5%26windowId%3D1 [main 2024-11-04T08:45:13.976Z] URLHandlerRouter#routeCall(): found windowId query parameter with value "1" vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%3A%2F%2Fvscode.github-authentication%2Fdid-authenticate%3Fnonce%3Ddb8b97969d18bac5%26windowId%3D1 [main 2024-11-04T08:45:13.976Z] URLHandlerRouter#routeCall(): testing connection window:1 [main 2024-11-04T08:45:13.976Z] URLHandlerRouter#routeCall(): found a connection to route vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%3A%2F%2Fvscode.github-authentication%2Fdid-authenticate%3Fnonce%3Ddb8b97969d18bac5%26windowId%3D1 [15992:1104/141513.988:INFO:CONSOLE(3135)] "Extension Host", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (3135) [15992:1104/141513.988:INFO:CONSOLE(3135)] "%c[ LOG ERROR #0001 ] [2024-11-04 14:15:13] [Git] rotating_file_sink: failed renaming c:\Users\ashrafal\AppData\Roaming\Code\logs\20241104T141457\window1\exthost\vscode.git\Git.log to c:\Users\ashrafal\AppData\Roaming\Code\logs\20241104T141457\window1\exthost\vscode.git\Git.1.log: permission denied color: red", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (3135) [15992:1104/141513.988:INFO:CONSOLE(3135)] "console.groupEnd", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (3135) [15992:1104/141513.994:INFO:CONSOLE(35)] "%cTRACE color: #888 CommandService#executeCommand _setContext", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [main 2024-11-04T08:45:13.997Z] [File Watcher (node.js)] >> normalized [CHANGED] c:\Users\ashrafal\AppData\Roaming\Code\User\globalStorage [main 2024-11-04T08:45:13.997Z] User data changed [main 2024-11-04T08:45:13.998Z] [File Watcher (node.js)] >> normalized [CHANGED] c:\Users\ashrafal\AppData\Roaming\Code\User\globalStorage [15992:1104/141514.011:INFO:CONSOLE(35)] "%cDEBUG background: #eee; color: #888 User data changed", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.012:INFO:CONSOLE(35)] "%cTRACE color: #888 URLService#handleURL(): handled vscode://vscode.github-authentication/did-authenticate?nonce=db8b97969d18bac5&windowId=1&code=0aa5c7e3e3910f57ef61&state=vscode%3A%2F%2Fvscode.github-authentication%2Fdid-authenticate%3Fnonce%3Ddb8b97969d18bac5%26windowId%3D1", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.022:INFO:CONSOLE(35)] "%cTRACE color: #888 CommandService#executeCommand workbench.getCodeExchangeProxyEndpoints", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35)

[15992:1104/141514.753:INFO:CONSOLE(35)] "%cTRACE color: #888 [mainThreadSecretState] Setting password for vscode.github-authentication extension: github.auth", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.755:INFO:CONSOLE(35)] "%cTRACE color: #888 [NativeSecretStorageService] Notifying user that secrets are not being stored on disk.", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.755:INFO:CONSOLE(3086)] "An OS keyring couldn't be identified for storing the encryption related data in your current desktop environment.", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (3086) [15992:1104/141514.755:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] encrypting secret for key: {"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.756:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] storing encrypted secret for key: secret://{"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.757:INFO:CONSOLE(35)] "%cTRACE color: #888 [SecretStorageService] Notifying change in value for secret: {"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.758:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] stored encrypted secret for key: secret://{"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.758:INFO:CONSOLE(35)] "%cTRACE color: #888 [mainThreadSecretState] Password set for: vscode.github-authentication github.auth", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.759:INFO:CONSOLE(35)] "%cTRACE color: #888 [mainThreadSecretState] Getting password for vscode.github-authentication extension: github.auth", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.759:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] getting secret for key: secret://{"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.760:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] decrypting gotten secret for key: secret://{"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.761:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] decrypted secret for key: secret://{"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.761:INFO:CONSOLE(35)] "%cTRACE color: #888 [mainThreadSecretState] Password found for: vscode.github-authentication github.auth", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.762:INFO:CONSOLE(35)] "%cTRACE color: #888 [network] #4: https://api.github.com/copilot_internal/user - begin GET [object Object]", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.763:INFO:CONSOLE(35)] "%c INFO color: #33f Settings Sync: Updating due to change in sessions", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35) [15992:1104/141514.763:INFO:CONSOLE(35)] "%cTRACE color: #888 [secrets] getting secret for key: secret://vscode.loginAccount", source: vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js (35)

TylerLeonhardt commented 2 weeks ago

@AshrafAliS just to double check, these are the logs from running:

code --verbose --vmodule="*/components/os_crypt/*=1"

Yes? And you've completely killed all VS Code processes before you ran it?

AshrafAliS commented 2 weeks ago

@AshrafAliS just to double check, these are the logs from running:

code --verbose --vmodule="*/components/os_crypt/*=1"

Yes? And you've completely killed all VS Code processes before you ran it?

YES, that's correct, i have used the above command to collect the logs. all the VS Code processes are killed below are the steps:

AshrafAliS commented 2 weeks ago

@TylerLeonhardt is there any other info needed?

TylerLeonhardt commented 2 weeks ago

@deepak1556 looks like Electron/Chromium detection on Windows Server 2016 is failing here. Any ideas?

AshrafAliS commented 1 week ago

Hi @deepak1556 @TylerLeonhardt is there any needed? is there any temporary workaround?

AshrafAliS commented 3 days ago

any updates on this