lava-dashboard-tool auth-add: "Cannot create an item in a locked collection" error

Bug #1234933 reported by Kim Phillips
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Dashboard (deprecated)
Fix Released
Medium
Unassigned

Bug Description

This is trying to get to run lava under a fresh Ubuntu 13.04 installation:

After adding this:
deb http://ppa.launchpad.net/linaro-maintainers/tools/ubuntu raring main
to my sources.list file, then running:

sudo apt-get update

and

sudo apt-get install lava-dashboard-tool

I then try:

lava-dashboard-tool auth-add https://<email address hidden>/RPC2/

and, after pasting my token, as requested, I get:

Paste token for https://<email address hidden>/RPC2/:
Traceback (most recent call last):
  File "/usr/bin/lava-dashboard-tool", line 9, in <module>
    load_entry_point('lava-tool==0.7.1', 'console_scripts', 'lava-dashboard-tool')()
  File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/main.py", line 37, in main
    run_with_dispatcher_class(LaunchControlDispatcher)
  File "/usr/lib/python2.7/dist-packages/lava_tool/dispatcher.py", line 45, in run_with_dispatcher_class
    raise cls.run()
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 147, in run
    raise SystemExit(cls().dispatch(args))
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 137, in dispatch
    return command.invoke()
  File "/usr/lib/python2.7/dist-packages/lava_tool/commands/auth.py", line 125, in invoke
    self.auth_backend.add_token(username, userless_uri, token)
  File "/usr/lib/python2.7/dist-packages/lava_tool/authtoken.py", line 43, in add_token
    "lava-tool-%s" % endpoint_url, username, token)
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 42, in set_password
    _keyring_backend.set_password(service_name, username, password)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 234, in set_password
    True)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Secret.Error.IsLocked: Cannot create an item in a locked collection

Revision history for this message
Tyler Baker (tyler-baker) wrote :

lava-dashboard-tool has been consolidated into lava-tool. Would you mind trying with lava-tool, and see if you can reproduce?

Revision history for this message
Kim Phillips (kim-phillips) wrote :

lava-tool has the same effect:

$ lava-tool auth-add https://<email address hidden>/RPC2/
Paste token for https://<email address hidden>/RPC2/:
Traceback (most recent call last):
  File "/usr/bin/lava-tool", line 9, in <module>
    load_entry_point('lava-tool==0.7.1', 'console_scripts', 'lava-tool')()
  File "/usr/lib/python2.7/dist-packages/lava_tool/dispatcher.py", line 49, in main
    LavaDispatcher.run()
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 147, in run
    raise SystemExit(cls().dispatch(args))
  File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line 137, in dispatch
    return command.invoke()
  File "/usr/lib/python2.7/dist-packages/lava_tool/commands/auth.py", line 125, in invoke
    self.auth_backend.add_token(username, userless_uri, token)
  File "/usr/lib/python2.7/dist-packages/lava_tool/authtoken.py", line 43, in add_token
    "lava-tool-%s" % endpoint_url, username, token)
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 42, in set_password
    _keyring_backend.set_password(service_name, username, password)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 234, in set_password
    True)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Secret.Error.IsLocked: Cannot create an item in a locked collection

Changed in lava-dashboard:
importance: Undecided → Medium
assignee: nobody → Antonio Terceiro (terceiro)
status: New → Confirmed
Revision history for this message
Kim Phillips (kim-phillips) wrote :

can this:

importance: Undecided → Medium

be bumped? I'm dead in the water here. Unless there is a workaround, of course...

Thanks

Revision history for this message
Alan Bennett (akbennett) wrote : Re: [Bug 1234933] Re: lava-dashboard-tool auth-add: "Cannot create an item in a locked collection" error
Download full text (3.8 KiB)

FWIW: I'm unable to reproduce...

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring

$ sudo add-apt-repository ppa:linaro-maintainers/tools
$ sudo apt-get update

$ sudo apt-get install lava-tool

$ lava-tool auth-add http://validation.linaro.org/RPC2
Paste token for http://<email address hidden>/RPC2/:
Token added successfully for user akbennett.

On 4 October 2013 12:06, Kim Phillips <email address hidden> wrote:

> can this:
>
> importance: Undecided → Medium
>
> be bumped? I'm dead in the water here. Unless there is a workaround,
> of course...
>
> Thanks
>
> --
> You received this bug notification because you are a member of Linaro
> Validation Team, which is subscribed to LAVA Dashboard.
> https://bugs.launchpad.net/bugs/1234933
>
> Title:
> lava-dashboard-tool auth-add: "Cannot create an item in a locked
> collection" error
>
> Status in LAVA Dashboard:
> Confirmed
>
> Bug description:
> This is trying to get to run lava under a fresh Ubuntu 13.04
> installation:
>
> After adding this:
> deb http://ppa.launchpad.net/linaro-maintainers/tools/ubuntu raring main
> to my sources.list file, then running:
>
> sudo apt-get update
>
> and
>
> sudo apt-get install lava-dashboard-tool
>
> I then try:
>
> lava-dashboard-tool auth-add https://kim-
> <email address hidden>/RPC2/
>
> and, after pasting my token, as requested, I get:
>
> Paste token for https://<email address hidden>/RPC2/:
> Traceback (most recent call last):
> File "/usr/bin/lava-dashboard-tool", line 9, in <module>
> load_entry_point('lava-tool==0.7.1', 'console_scripts',
> 'lava-dashboard-tool')()
> File "/usr/lib/python2.7/dist-packages/lava_dashboard_tool/main.py",
> line 37, in main
> run_with_dispatcher_class(LaunchControlDispatcher)
> File "/usr/lib/python2.7/dist-packages/lava_tool/dispatcher.py", line
> 45, in run_with_dispatcher_class
> raise cls.run()
> File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line
> 147, in run
> raise SystemExit(cls().dispatch(args))
> File "/usr/lib/python2.7/dist-packages/lava/tool/dispatcher.py", line
> 137, in dispatch
> return command.invoke()
> File "/usr/lib/python2.7/dist-packages/lava_tool/commands/auth.py",
> line 125, in invoke
> self.auth_backend.add_token(username, userless_uri, token)
> File "/usr/lib/python2.7/dist-packages/lava_tool/authtoken.py", line
> 43, in add_token
> "lava-tool-%s" % endpoint_url, username, token)
> File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 42, in
> set_password
> _keyring_backend.set_password(service_name, username, password)
> File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 234,
> in set_password
> True)
> File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in
> __call__
> return self._proxy_method(*args, **keywords)
> File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in
> __call__
> **keywords)
> File "/usr/lib/python2.7/dist-packages/dbus/connection.py", li...

Read more...

Revision history for this message
Kim Phillips (kim-phillips) wrote :

fix covered in LAVA_Tips (discovered on IRC), so I added a link to LAVA_Tips in the getting started wiki:

NOTE: for common errors with the below process, please see https://wiki.linaro.org/Platform/LAVA/LAVA_Tips

Changed in lava-dashboard:
assignee: Antonio Terceiro (terceiro) → nobody
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.