Skip to content

[Bug]: Onboarding wizard does not install Systemd service on Ubuntu 22.04 #1818

@chepurko

Description

@chepurko

Summary

The onboarding wizard does not install a Systemd service in Ubuntu. During the Systemd step, it prints: Systemd user services are unavailable. Skipping lingering checks and service install.

This is because the isSystemdUserServiceAvailable function is throwing this error:

Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)

Steps to reproduce

Just run the onboarding wizard on Ubuntu 22.04.

Expected behavior

Systemd is obviously installed on my OS.

Actual behavior

Gateway service check failed: Error: systemctl --user unavailable: Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)

Environment

  • Clawdbot version: 2026.1.23-1
  • OS: Ubuntu 22.04
  • Install method (pnpm/npx/docker/etc): npm

Logs or screenshots

Gateway service check failed: Error: systemctl --user unavailable: Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions