I’m inside a multipass VM. Here’s the first thing I tried:
$ snapcraft login
No keyring found to store or retrieve credentials from.
Recommended resolution: Ensure the keyring is working or SNAPCRAFT_STORE_CREDENTIALS is correctly exported into the environment
For more information, check out: https://documentation.ubuntu.com/snapcraft/stable/how-to/publishing/authenticate
Full execution log: '/home/ubuntu/.local/state/snapcraft/log/snapcraft-20260311-112958.019200.log'
Since the docs say
Note that
snapcraft loginsometimes fails to unlock GNOME keyring when accessing a Linux system with a desktop environment from a virtual console or SSH. GNOME keyring will not present a CLI password prompt to unlock the keyring, causing Snapcraft to hang and timeout.
I proceeded to export the credentials from my host system:
$ snapcraft export-login snapcraft-credentials.txt
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account
...
Exported login credentials to 'snapcraft-credentials.txt'
These credentials must be used on Snapcraft 7.2 or greater.
$ multipass transfer snapcraft-credentials.txt data-platform-dev2:/home/ubuntu/
But now:
$ export SNAPCRAFT_STORE_CREDENTIALS=(cat ~/snapcraft-credentials.txt)
$ snapcraft login
Cannot login with 'SNAPCRAFT_STORE_CREDENTIALS' set.
Recommended resolution: Unset 'SNAPCRAFT_STORE_CREDENTIALS' and try again.
Full execution log: '/home/ubuntu/.local/state/snapcraft/log/snapcraft-20260311-114500.881764.log'
I’m quite confused on how to proceed. Logs and snapcraft version:
$ cat /home/ubuntu/.local/state/snapcraft/log/snapcraft-20260311-114500.881764.log
2026-03-11 11:45:00.883 Starting snapcraft, version 8.14.2
2026-03-11 11:45:00.883 Log verbosity level set to BRIEF
2026-03-11 11:45:00.883 Setting up Project
2026-03-11 11:45:00.884 Project file found at '/home/ubuntu/Projects/Canonical/Data Platform/charmed-mysql-snap/snap/snapcraft.yaml'
2026-03-11 11:45:00.884 Loading project file 'snap/snapcraft.yaml
2026-03-11 11:45:00.907 Preparing application...
2026-03-11 11:45:00.908 Setting up ConfigService
2026-03-11 11:45:00.923 Merging commands for group 'Lifecycle':
2026-03-11 11:45:00.923 - using application command for 'clean'.
2026-03-11 11:45:00.923 - using application command for 'pull'.
2026-03-11 11:45:00.923 - using application command for 'build'.
2026-03-11 11:45:00.923 - using application command for 'stage'.
2026-03-11 11:45:00.923 - using application command for 'prime'.
2026-03-11 11:45:00.923 - using application command for 'pack'.
2026-03-11 11:45:00.923 Merging commands for group 'Other':
2026-03-11 11:45:00.923 Configuring application...
2026-03-11 11:45:00.945 Build plan: platform=None, build_for=None
2026-03-11 11:45:00.945 Running snapcraft login on host
2026-03-11 11:45:00.969 Storing credentials for 'snapcraft' on 'dashboard.snapcraft.io' in keyring 'auth MemoryKeyring'.
2026-03-11 11:45:00.969 Cannot login with 'SNAPCRAFT_STORE_CREDENTIALS' set.
2026-03-11 11:45:00.969 Recommended resolution: Unset 'SNAPCRAFT_STORE_CREDENTIALS' and try again.
2026-03-11 11:45:00.969 Full execution log: '/home/ubuntu/.local/state/snapcraft/log/snapcraft-20260311-114500.881764.log'