amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

Bug - Amazon Q is having trouble responding right now

Open dk19y opened this issue 1 year ago • 4 comments

Checks

Operating system

macOS 14.5.0 (23F79)

Expected behaviour

Q Dev is able to make calls LLMs & save files.

Could not reliably replicate this though.

Actual behaviour

A write to CLI file system failed with the following error

Execute shell command
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I will run the following shell command:
chmod +x /Users/dhanak/swarm/wren_cli.py

Executing `chmod +x /Users/dhanak/swarm/wren_cli.py`...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

🟢 Completed in 0.14s




Write to filesystem
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Path: wren

Amazon Q is having trouble responding right now:
   0: failed to print tool: Is a directory (os error 21)

Location:
   crates/q_cli/src/cli/chat/mod.rs:432

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
> q issue

I understand there might be an issue with creating the wren command file. Let me try a different approach.



>

Steps to reproduce

No response

Environment

[q-details]
version = "1.7.1"
hash = "7d766a2d0580db62fae5a4bc2e6eb63946d4d08e"
date = "2025-03-14T22:08:03.470338Z (5d ago)"
variant = "full"

[system-info]
os = "macOS 14.5.0 (23F79)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"

[environment]
cwd = "/Users/USER/swarm"
cli-path = "/Users/USER/swarm"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "iTerm 2"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/.codeium/windsurf/bin:/Users/USER/Library/pnpm:/Users/USER/.nvm/versions/node/v20.16.0/bin:/Users/USER/.rbenv/shims:/opt/homebrew/Cellar/node@18/18.20.3/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/USER/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/USER/.local/bin:/Users/USER/Library/Application Support/Coursier/bin:/Users/USER/.toolbox/bin:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
QTERM_SESSION_ID = "aaae6ce307184b36b0c1c3c248299967"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.7.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.googlecode.iterm2"

dk19y avatar Mar 20 '25 08:03 dk19y

I also hit this error. In my case, Q CLI got into a mode where every request was timing out. I had to quit/restart Q chat and then it started working again.

[sbk] > You timed out

Amazon Q is having trouble responding right now:
   0: request has timed out
   1: request has timed out
   2: operation timeout (all attempts including retries) occurred after 300s

Location:
   crates/q_cli/src/cli/chat/mod.rs:468

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
[sbk] > You timed out

Amazon Q is having trouble responding right now:
   0: request has timed out
   1: request has timed out
   2: operation timeout (all attempts including retries) occurred after 300s

Location:
   crates/q_cli/src/cli/chat/mod.rs:468

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
[sbk] > You timed out in the middle of prompt 3

Amazon Q is having trouble responding right now:
   0: request has timed out
   1: request has timed out
   2: operation timeout (all attempts including retries) occurred after 300s

Location:
   crates/q_cli/src/cli/chat/mod.rs:468

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
[sbk] > You timed out in the middle of prompt 3

Amazon Q is having trouble responding right now:
   0: request has timed out
   1: request has timed out
   2: operation timeout (all attempts including retries) occurred after 300s

Location:
   crates/q_cli/src/cli/chat/mod.rs:468

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
[sbk] >

(To exit, press Ctrl+C or Ctrl+D again or type /quit)

[sbk] >

jlhood avatar Mar 24 '25 13:03 jlhood

I was having the same exact issue. Brand new MacBook Pro M3. I wanted it to change colors on my bash prompt and add the git branch. It would fail with the same error message. I then ran q doctor and it said the version of bash that was running was old and would cause problems since Apple has switched to zsh and deprecated bash. The options were to install bash via Homebrew or switch to zsh. I opted to switch to zsh. After switching I don't have the issue. I might try to install bash via Homebrew later, but then you have to manage it separately and also make sure any script files have the correct shebang lines.

FrankAllotta avatar Mar 27 '25 16:03 FrankAllotta

Also hit this on 1.7.3

Amazon Q is having trouble responding right now:
   0: failed to print tool: No such file or directory (os error 2)

Location:
   crates/q_cli/src/cli/chat/mod.rs:676

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

akiezun avatar Apr 17 '25 15:04 akiezun

I'm getting this error repeatedly, Mac Mini M2 Sequoia 15.5, Amazon Q 1.10.2

shassinger avatar May 23 '25 18:05 shassinger