Amazon Q server is crashing and not restarting again
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## Problem
When I install the amazon Q extension in my VS code IDE, It is not working as expected and the interface shows only the loading screen and never turn back to chat interface or login
## Expected behavior
After installation should work as expected and redirect either chat interface or the login
## Logs
2025-09-29 14:18:41.855 [info] Log level: info, beta=false
2025-09-29 14:18:41.855 [info] Telemetry product: Amazon Q For VS Code
2025-09-29 14:18:41.913 [info] proxyUtil: Using noProxy from VS Code settings:
2025-09-29 14:18:41.913 [info] codewhisperer: active connection changed
2025-09-29 14:18:41.913 [info] codewhisperer: connection states
connection isValid=false,
connection isValidCodewhispererCoreConnection=false,
connection isExpired=false,
secondaryAuth isExpired=false,
connection isUndefined=true
2025-09-29 14:18:41.913 [info] using amazonqLsp service configuration: default
2025-09-29 14:18:41.913 [error] CodeWhisperer: Error when fetching feature configs Error: No connection found
2025-09-29 14:18:42.379 [warning] AwsContext: no default region in credentials profile, falling back to us-east-1:
2025-09-29 14:18:50.069 [info] lsp: Installing 'AmazonQ' Language Server v1.35.0 to: /home/user/.cache/aws/toolkits/language-servers/AmazonQ/1.35.0 (Attribution notice can be found at https://aws-language-servers.us-east-1.amazonaws.com/86a24e7c-2cee-464e-96be-e799d7bb7329/THIRD_PARTY_LICENSES)
2025-09-29 14:19:03.409 [info] lsp: Finished preparing "AmazonQ" LSP server: '/home/user/.cache/aws/toolkits/language-servers/AmazonQ/1.35.0'
2025-09-29 14:19:03.981 [info] Command: (not started) [/home/user/.cache/aws/toolkits/language-servers/AmazonQ/1.35.0/servers/node --max-old-space-size=8196 /home/user/.cache/aws/toolkits/language-servers/AmazonQ/1.35.0/servers/aws-lsp-codewhisperer.js --nolazy --preserve-symlinks --stdio --pre-init-encryption --set-credentials-encryption-key]
....[it generated the long text of JS code ]
"output_token":"NextToken","limit_key":"MaxResults"}}}')},1319:e=>{"use strict";e.exports=Math.round},1331:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.targetFrameworkMap=void 0,t.getCWStartTransformRequest=function(e,r,i){return{workspaceState:{uploadId:r,programmingLanguage:{languageName:e.ProgramLanguage},contextTruncationScheme:"ANALYSIS"},transformationSpec:{transformationType:"LANGUAGE_UPGRADE",source:{language:"C_SHARP",platformConfig:{operatingSystemFamily:"WINDOWS"}},target:{language:"C_SHARP",runtimeEnv:{dotNet:t.targetFrameworkMap.has(e.TargetFramework)?t.targetFrameworkMap.get(e.TargetFramework):"NET_8_0"},platformConfig:{operatingSystemFamily:"LINUX"}}}}},t.getCWStartTransformResponse=function(e,t,r,i,s){return{UploadId:t,TransformationJobId:e.transformationJobId,ArtifactPath:r,UnSupportedProjects:i,ContainsUnsupportedViews:s}},t.targetFrameworkMap=new Map([["net8.0","NET_8_0"],["net9.0","NET_9_0"],["netstandard2.0","NET_STANDARD_2_0"]]),Array.from(t.targetFrameworkMap.keys())},1349:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2019-11-07","endpointPrefix":"a2i-runtime.sagemaker","protocol":"rest-json","serviceFullName":"Amazon Augmented AI Runtime","serviceId":"SageMaker A2I Runtime","signatureVersion":"v4","signingName":"sagemaker","uid":"sagemaker-a2i-runtime-2019-11-07"},"operations":{"DeleteHumanLoop":{"http":{"method":"DELETE","requestUri":"/human-loops/{HumanLoopName}"},"input":{"type":"structure","required":["HumanLoopNam
2025-09-29 14:19:05.471 [info] [Info - 14:19:05] Connection to server got closed. Server will restart.
#### the same logs will repeate for 5 times and get a notification saying that amazon q server crashed 5 times and it won't be restarted again
[Amazon Q Logs.log](https://github.com/user-attachments/files/22593819/Amazon.Q.Logs.log)
## system specs
OS : Ubuntu 24.04.3 LTS
Vscode version : 1.104.1 0f0d87fa9e96c856c5212fc86db137ac0d783365x64
Contributor guide
Research direction
Reproduce the failure on Ubuntu 24.04.3 with VS Code 1.104.1, then inspect Amazon Q Logs.log and the language-server startup command shown in the issue. Done means the Amazon Q server no longer repeatedly closes and reaches either the chat interface or login instead of stopping after five restart attempts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100