← Back to issue list

Can't login in headless multipass VM with 24.04

View original Github issue

Metadata

Project
charmcraft
Number
#2336
Type
issue
State
open
Author
kimwnasptd
Labels
Created
2025-06-16 13:11:41+00:00
Updated
2025-08-15 15:17:48+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description I can't seem to login with `charmcraft login` when I'm inside a headless 24.04 VM created with Multipass. ### To Reproduce ```bash # create the VM multipass launch 24.04 --name test --memory 4G --disk 5G --cpus 1 multipass shell test # inside the VM charcraft login # I go to the browser and login, and then it crashes # charmcraft internal error: CredentialsUnavailable("No credentials found for 'charmcraft' on 'api.charmhub.io'.") ``` ### Environment Headless VM with Ubuntu 24.04 and using the default channel of charmcraft ### charmcraft.yaml ```yaml <none> ``` ### Relevant log output ```shell # from the produced log file 2025-04-30 10:53:40.188 HTTP 'POST' for 'https://api.charmhub.io/v1/tokens/exchange' with params None and headers {'Macaroons': '<macaroon>', 'User-Agent': 'Charmcraft/3.4.3 (Linux 6.8.0-58-generic; x86_64; CPython 3.10.12; Ubuntu 24.04)'} 2025-04-30 10:53:40.288 Storing credentials for 'charmcraft' on 'api.charmhub.io' in keyring 'null Keyring'. 2025-04-30 10:53:40.288 Retrieving credentials for 'charmcraft' on 'api.charmhub.io' from keyring 'null Keyring'. 2025-04-30 10:53:40.288 Credentials not found in the keyring 'null Keyring' 2025-04-30 10:53:40.289 charmcraft internal error: CredentialsUnavailable("No credentials found for 'charmcraft' on 'api.charmhub.io'.") ```

Evaluation history

No evaluation history available.