aws / aws/amazon-q-developer-cli

bug: Amazon Q AppImage errors: undefined symbols and file watcher failures

Aperta
#2,009 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Ubuntu Linux 24.04 Non-root user in corporate environment Using AppImage installation method

### Expected behaviour

Describe the bug
When launching Amazon Q AppImage on Ubuntu Linux 24.04, multiple errors appear:

GVFS module errors:
/usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so

File watcher errors:
ERROR fig_desktop::file_watcher: 74: failed to watch midway dir err=No such file or directory (os error 2) about ["/home/DN120776KEM1/.midway"]

Authentication errors:
ERROR fig_desktop::protocol::spec: 123: Failed to load auth err=unknown variant Pkce, expected DeviceCode or PKCE at line 1 column 636

These errors appear consistently on startup, although the application seems to function afterward.

Regression Issue

Select this option if this issue appears to be a regression.
Expected Behavior
Amazon Q AppImage should start without these errors and properly load all required modules and dependencies.

### Actual behaviour

Current Behavior
Multiple errors related to GVFS modules, file watching, and authentication appear during startup. The application starts but with
these error messages in the console.

### Steps to reproduce

Reproduction Steps
Install Amazon Q AppImage without root privileges:
bash
mkdir -p ~/Install/amazon-q
cd ~/Install/amazon-q
curl --proto '=https' --tlsv1.2 -sSf https://desktop-release.q.us-east-1.amazonaws.com/latest/amazon-q.appimage -o amazon-q.appimage
chmod +x amazon-q.appimage

Launch the AppImage:
bash
./amazon-q.appimage

Observe the errors in the console output

Possible Solution
The GVFS errors suggest missing or incompatible libraries. Installing libfuse2 might help:
bash
sudo apt-get install libfuse2

Additional Information/Context
• Operating System: Ubuntu Linux 24.04
• Installation method: Non-root user installation using AppImage
• Update method: Using a custom script to fetch the latest version

In our organization, I don't have root privileges and need to request administrator assistance for any sudo commands. To minimize
these requests, I only asked once for the installation of libfuse2 (sudo apt-get install libfuse2), and then set up a non-root
installation method for Amazon Q using AppImage. This allows me to update the application independently without requiring
administrator intervention for each update.

Despite these errors, the application generally works, but these messages appear consistently on every launch.

The errors about undefined symbols suggest a potential mismatch between the GVFS libraries bundled with the AppImage and those on
the system. The midway directory error might be related to AWS authentication mechanisms.

CLI version used
Amazon Q AppImage (latest version)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non sono indicati file sorgente né test. Inizia riproducendo l'avvio dell'AppImage tramite il comando Ubuntu 24.04 fornito e acquisisci separatamente gli errori GVFS, del file watcher e di autenticazione. Il lavoro è completato quando è stata identificata la causa all'avvio di ciascun errore segnalato e confermato che l'applicazione si avvia senza di essi, oppure quando è stata documentata qualsiasi limitazione dell'ambiente confermata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
linux, rust, shell
Ambito
authentication, cli, operating-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.