Public bug reported:

syncpackage fails with an unintelligible error message if I am only
logged into SSH. What it's not telling me is that I need to be logged
into a GUI session to have my keyring unlocked. Although other CLI tools
manage to do this without needing a GUI login...

$ syncpackage -r resolute-proposed -V 50.0-1 gnome-software
Traceback (most recent call last):
  File "/usr/bin/syncpackage", line 807, in <module>
    main()
    ~~~~^^
  File "/usr/bin/syncpackage", line 680, in main
    Launchpad.login(**kwargs)
    ~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/ubuntutools/lp/lpapicache.py", line 85, 
in login
    self.__lp = LP.login_with("ubuntu-dev-tools", service, version=api_version)
                ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 693, in 
login_with
    return cls._authorize_token_and_login(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        authorization_engine.consumer,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<8 lines>...
        version,
        ^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 438, in 
_authorize_token_and_login
    cached_credentials = credential_store.load(
        authorization_engine.unique_consumer_id
    )
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 322, 
in load
    return self.do_load(unique_key)
           ~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 402, 
in do_load
    credential_string = keyring.get_password(
        "launchpadlib", unique_key
    )
  File "/usr/lib/python3/dist-packages/keyring/core.py", line 65, in 
get_password
    return get_keyring().get_password(service_name, username)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/keyring/backends/chainer.py", line 49, 
in get_password
    password = keyring.get_password(service, username)
  File "/usr/lib/python3/dist-packages/keyring/backends/SecretService.py", line 
79, in get_password
    collection = self.get_preferred_collection()
  File "/usr/lib/python3/dist-packages/keyring/backends/SecretService.py", line 
68, in get_preferred_collection
    raise KeyringLocked("Failed to unlock the collection!")
keyring.errors.KeyringLocked: Failed to unlock the collection!

** Affects: ubuntu-dev-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: resolute

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2147077

Title:
  syncpackage: keyring.errors.KeyringLocked: Failed to unlock the
  collection!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/2147077/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to