aws / aws/amazon-q-developer-cli

The q update command doesn't work on Ubuntu - q 1.9.1

Open
#2,120 0 comments 2 reactions 0 assignees View on GitHub
issue
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue

### Operating system

Linux 6.8.0-1029-aws - Ubuntu 22.04.5 LTS

### Expected behaviour

`q update` command should update the Q app successfully.

### Actual behaviour

`RUST_BACKTRACE=1 q update -v` fails with the following output:
```
▰▰▰▰▰▱ Updating Amazon Q, please wait...error:
0: Failed to update: Invalid cross-device link (os error 18)

Failed to update. If this is unexpected, try running q doctor and then try again.
0:

Location:
crates/q_cli/src/cli/update.rs:169

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 5 frames hidden ⋮
6: q_cli::cli::update::try_linux_update::{{closure}}::hb04179937829ea89
at /codebuild/output/src3298519376/src/crates/q_cli/src/cli/update.rs:169
7: q_cli::cli::update::UpdateArgs::execute::{{closure}}::h4a4a866e1306e65e
at /codebuild/output/src3298519376/src/crates/q_cli/src/cli/update.rs:64
8: q_cli::cli::Cli::execute::{{closure}}::h68852ac077c6c806
at /codebuild/output/src3298519376/src/crates/q_cli/src/cli/mod.rs:304
9: q_cli::main::{{closure}}::had3d1a803c39acf2
at /codebuild/output/src3298519376/src/crates/q_cli/src/main.rs:70
10: as core::future::future::Future>::poll::h7ad876c853e2c48e
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/future/future.rs:124
11: as core::future::future::Future>::poll::h099559794241cb66
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/future/future.rs:124
12: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::ha1bba6a8a112be29
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733
13: tokio::task::coop::with_budget::hd51021727c9d126d
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/task/coop/mod.rs:167
14: tokio::task::coop::budget::h5238c66b2687afbf
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/task/coop/mod.rs:133
15: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h2ebb593d15c1622f
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:733
16: tokio::runtime::scheduler::current_thread::Context::enter::hdc5788fa1f40e3a6
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:432
17: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h1a81eeee403a3605
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:732
18: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::hfe4d8516d5e0c71e
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820
19: tokio::runtime::context::scoped::Scoped::set::h0740f60a226b89c0
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/context/scoped.rs:40
20: tokio::runtime::context::set_scheduler::{{closure}}::h8bf613a91b350624
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/context.rs:180
21: std::thread::local::LocalKey::try_with::hb285fecead8301b1
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/thread/local.rs:283
22: std::thread::local::LocalKey::with::h3efb387fb924c8cd
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/thread/local.rs:260
23: tokio::runtime::context::set_scheduler::h8ec6d6566dd1cb76
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/context.rs:180
24: tokio::runtime::scheduler::current_thread::CoreGuard::enter::hdfc311e5e23d6908
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:820
25: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h93e90faef315fe7f
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:720
26: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::heae47640bef193cd
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:200
27: tokio::runtime::context::runtime::enter_runtime::h72a23a437f30b712
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/context/runtime.rs:65
28: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::he40cfbbe2bce0052
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/scheduler/current_thread/mod.rs:188
29: tokio::runtime::runtime::Runtime::block_on_inner::hd1ad2d25195942d4
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/runtime.rs:368
30: tokio::runtime::runtime::Runtime::block_on::h4e36499cdbcd41f1
at /home/codebuild-user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.44.2/src/runtime/runtime.rs:340
31: q_cli::main::hbfc837647426e102
at /codebuild/output/src3298519376/src/crates/q_cli/src/main.rs:69
32: core::ops::function::FnOnce::call_once::h6f40e9b407531aa6
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/core/src/ops/function.rs:250
33: std::sys::backtrace::__rust_begin_short_backtrace::had09f569854257bd
at /rustc/9fc6b43126469e3858e2fe86cafb4f0fd5068869/library/std/src/sys/backtrace.rs:154
⋮ 14 frames hidden ⋮
```

### Steps to reproduce

Install Q CLI version 1.9.1 from AppImage
Attempt to update to the newest version on Ubuntu

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.