Skip to content

[Bug]: openclaw gateway install fails: systemctl is-enabled unavailable (unit not-found exit 4) #33633

@RenYuKe-CN

Description

@RenYuKe-CN

Bug type

Behavior bug (incorrect output/state without crash)

Summary

On Ubuntu 24.04, installing OpenClaw 2026.3.2 gateway service fails with:

Error: systemctl is-enabled unavailable: Command failed: systemctl --user is-enabled openclaw-gateway.service

Steps to reproduce

What happened?

On Ubuntu 24.04, installing OpenClaw 2026.3.2 gateway service fails with:

Error: systemctl is-enabled unavailable: Command failed: systemctl --user is-enabled openclaw-gateway.service

Expected behavior

openclaw gateway install should create the unit file and enable/start the systemd user service.

Steps to reproduce

  1. Fresh install on Ubuntu 24.04
  2. openclaw --version => 2026.3.2
  3. Run: openclaw gateway install (or openclaw onboard --install-daemon)
  4. It fails with the error above.

Diagnostics

  • OS: Ubuntu 24.04.1 LTS
  • ps -p 1 -o comm= => systemd
  • systemctl --user status works
  • systemctl --user is-enabled openclaw-gateway.service; echo EXIT:$? =>
    not-found
    EXIT:4

Extra info

This seems like OpenClaw treats systemctl is-enabled non-zero exit codes (e.g. not-found/disabled) as "unavailable".

Expected behavior

不存在的话就能安装成功

Actual behavior

Error: systemctl is-enabled unavailable: Command failed: systemctl --user is-enabled openclaw-gateway.service

OpenClaw version

2026.3.2

Operating system

Ubuntu 24.04

Install method

curl -fsSL https://openclaw.ai/install.sh | bash

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions