How to Fix ‘Failed to Start Accounts Service’ in Ubuntu

Observing the systemd notification “Failed to start Accounts Service” (or accounts-daemon.service failure) during Ubuntu startup signals that the D-Bus user account query service has crashed or failed initialization. AccountsService provides a centralized system D-Bus interface allowing login managers (GDM3, LightDM) and desktop environments (GNOME) to query local user accounts, fetch avatar icons, track login histories, and manage password expiration states. When AccountsService fails, login screens can hang, user profile photos vanish, or administrative privilege toggles in Ubuntu Settings become unresponsive. Resolving this requires repairing D-Bus permissions, clearing corrupted user metadata, and reinstalling account service packages.

Query systemd Status and Inspect Diagnostic Logs

Checking the current state of the accounts daemon reveals whether the failure is caused by corrupted user files, missing D-Bus interfaces, or storage permission faults.

  1. Open a terminal window (press Ctrl + Alt + T).
  2. Check the status of the accounts service:
    systemctl status accounts-daemon.service
  3. Review the recent journal log entries for this service:
    sudo journalctl -u accounts-daemon.service -e -n 50
  4. Look for error messages such as Failed to open /var/lib/AccountsService/users/, permission denied, or segfault.

Inspect and Repair File Permissions in /var/lib/AccountsService

AccountsService stores per-user configuration files inside /var/lib/AccountsService. If file permissions were modified by manual script executions, the daemon cannot read user metadata.

  1. Check permissions of the storage directory:
    ls -ld /var/lib/AccountsService /var/lib/AccountsService/users
  2. Ensure ownership is assigned strictly to root:root:
    sudo chown -R root:root /var/lib/AccountsService
  3. Set directory permissions to 775 and file permissions to 644:
    sudo chmod 775 /var/lib/AccountsService
    sudo chmod 775 /var/lib/AccountsService/users
    sudo chmod 644 /var/lib/AccountsService/users/*
  4. Restart the service:
    sudo systemctl restart accounts-daemon.service

Clean Corrupted User Metadata Profiles

If an individual user’s profile file inside /var/lib/AccountsService/users/ contains invalid characters or broken icon paths, the daemon crashes upon parsing.

  1. Navigate to the users directory:
    cd /var/lib/AccountsService/users/
    ls -la
  2. Temporarily move suspected user metadata files to a backup location:
    sudo mv /var/lib/AccountsService/users/username /tmp/username.bak
  3. Restart the accounts daemon:
    sudo systemctl restart accounts-daemon.service
  4. If the daemon starts successfully, AccountsService will regenerate a clean, pristine metadata file automatically upon the next user login.

Verify D-Bus System Message Bus Service

AccountsService communicates with desktop components exclusively across the system D-Bus socket. If D-Bus is impaired, accounts-daemon fails immediately.

  1. Verify that the D-Bus daemon is active and running:
    systemctl status dbus.service
  2. If D-Bus reports errors, reload the D-Bus configuration:
    sudo systemctl reload dbus.service

Reinstall the accountsservice Package

If binary files or systemd service unit files were damaged during an interrupted package upgrade, reinstalling the package restores default configuration files.

  1. Reinstall the official AccountsService package:
    sudo apt update && sudo apt install --reinstall accountsservice
  2. Reload the systemd daemon manager:
    sudo systemctl daemon-reload
  3. Enable and start the service:
    sudo systemctl enable accounts-daemon.service && sudo systemctl start accounts-daemon.service
  4. Verify that status now displays active (running):
    systemctl status accounts-daemon.service

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.