Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • L libsecret
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • libsecret
  • Issues
  • #19
Closed
Open
Created Nov 27, 2018 by Gaël Bonithon@neyfag

Crash running secret-tool as root: Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached

When using secret-tool as root, e.g. by

sudo secret-tool store --label='password' key value

after a few seconds of waiting, secret-tool crashes with the following output in stdout:

(secret-tool:3394): GLib-GObject-CRITICAL **: 15:45:12.811: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
secret-tool: Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached

and the following output in /var/log/syslog:

dbus-daemon[4246]: [session uid=0 pid=4244] AppArmor D-Bus mediation is enabled
dbus-daemon[4246]: [session uid=0 pid=4244] Activating service name='org.freedesktop.secrets' requested by ':1.0' (uid=0 pid=4240 comm="secret-tool store --label=password key value " label="unconfined")
gnome-keyring-d[4249]: couldn't create socket directory: /home/user/.cache/keyring-XTN8SZ: Permission denied
gnome-keyring-d[4249]: couldn't bind to control socket: /home/user/.cache/keyring-XTN8SZ/control: Permission denied

Similar issues can be reproduced with sudo secret-tool lookup / clear / search. I have no problem using secret-tool as non-privileged user.

I'm running Ubuntu 18.10 x64, with libsecret-tools 0.18.6-3. I filled a bug on Ubuntu bug tracker, but I was redirected here.

Edited Nov 27, 2018 by Andre Klapper
Assignee
Assign to
Time tracking