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

bug: using q update doesnt actually do anything and not showing error

Open christlau opened this issue 1 year ago • 1 comments

Checks

Operating system

Linux 6.6.87.2-microsoft-standard-WSL2 - Ubuntu 22.04.4 LTS

Expected behaviour

using the command "q update" actually updates the Q, or at least give some error text

Actual behaviour

i tried to update from 1.14.1 to 1.16.2, but when i typed "q update" it only shows this "A new version of q is available: 1.16.2" and nothing else happened

using q update -v gave me this :

2025-09-26T02:39:54.214125Z WARN fig_ipc::unix_socket: 42: Failed to get socket metadata, checking parent folder permissions err=No such file or directory (os error 2) socket="/run/user/1000/cwrun/desktop.sock" 2025-09-26T02:39:54.214315Z ERROR fig_ipc::unix_socket: 73: Failed to connect err=No such file or directory (os error 2) socket_path="/run/user/1000/cwrun/desktop.sock" A new version of q is available: 1.16.2 2025-09-26T02:39:54.214347Z ERROR q_cli::cli::update: 238: An error occurred checking for updates: Connect(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }))

using q doctor: result: "Everything looks good!"

using q restart fails:

result: "error: Please restart Amazon Q from your host machine"

Steps to reproduce

using WSL for windows, use the "q update" command

Environment

<This will be visible to anyone. Do not include personal or sensitive information>

[q-details]
version = "1.14.1"
hash = "405e74d10634890cbb26850966d951f87bd5d169"
date = "2025-08-21T19:03:32.201027Z (35d ago)"
variant = "full"

[system-info]
chip = "13th Gen Intel(R) Core(TM) i7-13700H"
total-cores = 10
memory = "6.64 GB"

[system-info.os.linux]
kernel_version = "6.6.87.2-microsoft-standard-WSL2"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 22.04.4 LTS"
version_id = "22.04"
version = "22.04.4 LTS (Jammy Jellyfish)"

[environment]
cwd = "/mnt/c/Users/lauch/Downloads/AWS-projects"
cli-path = "/mnt/c/Users/lauch/Downloads/AWS-projects"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.1.16"
install-method = "unknown"
in-wsl = true

[env-vars]
DISPLAY = ":0"
PATH = "/home/USER/.local/bin:/home/USER/.nvm/versions/node/v22.17.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Python313/Scripts/:/mnt/c/Python313/:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files/Python312/Scripts/:/mnt/c/Program Files/Python312/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/Syste

christlau avatar Sep 26 '25 02:09 christlau

I get the same:

2026-01-08T22:27:48.657286Z  INFO fig_telemetry::endpoint: 14: Resolving endpoint endpoint=Endpoint { url: "https://client-telemetry.us-east-1.amazonaws.com", headers: {}, properties: {} }
2026-01-08T22:27:49.182158Z  WARN fig_ipc::unix_socket: 42: Failed to get socket metadata, checking parent folder permissions err=No such file or directory (os error 2) socket="/run/user/0/cwrun/desktop.sock"
A new version of q is available: 1.23.1
2026-01-08T22:27:49.182294Z ERROR q_cli::cli::update: 238: An error occurred checking for updates: Connect(Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }))

or, creating the dir/file manually:

q update -vv
2026-01-08T22:25:51.459812Z  INFO fig_telemetry::endpoint: 14: Resolving endpoint endpoint=Endpoint { url: "https://client-telemetry.us-east-1.amazonaws.com", headers: {}, properties: {} }
2026-01-08T22:25:52.150178Z  WARN fig_ipc::unix_socket: 42: Failed to get socket metadata, checking parent folder permissions err=No such file or directory (os error 2) socket="/run/user/0/cwrun/desktop.sock"
A new version of q is available: 1.23.1
2026-01-08T22:25:52.150932Z  WARN fig_ipc::unix_socket: 53: Socket folder permissions are not 0o700 socket="/run/user/0/cwrun/desktop.sock" mode=40755
2026-01-08T22:25:52.150952Z ERROR fig_ipc::unix_socket: 56: Incorrect socket permissions, not connecting to socket socket="/run/user/0/cwrun/desktop.sock"
2026-01-08T22:25:52.150964Z ERROR q_cli::cli::update: 238: An error occurred checking for updates: Connect(IncorrectSocketPermissions)

addison-rio avatar Jan 08 '26 22:01 addison-rio