openclaw - 💡(How to fix) Fix gateway start fails with systemctl is-enabled unavailable in KVM VMs [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59369Fetched 2026-04-08 02:24:38
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0

Error Message

Gateway service check failed: Error: systemctl is-enabled unavailable: Failed to connect to bus: 找不到介质

Root Cause

This happens because openclaw gateway start internally calls systemctl is-enabled to check the service status, but this call fails in certain VM environments where dbus has restricted permissions.

Fix Action

Workaround

Modified the systemd service file to use openclaw gateway instead of openclaw gateway start:

- ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway start
+ ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway

Code Example

Gateway service check failed: Error: systemctl is-enabled unavailable: Failed to connect to bus: 找不到介质

---

- ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway start
+ ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway
RAW_BUFFERClick to expand / collapse

Problem

When running openclaw gateway start on a KVM virtual machine (Ubuntu 24.04), the command fails immediately with the error:

Gateway service check failed: Error: systemctl is-enabled unavailable: Failed to connect to bus: 找不到介质

This happens because openclaw gateway start internally calls systemctl is-enabled to check the service status, but this call fails in certain VM environments where dbus has restricted permissions.

Environment

  • OS: Ubuntu 24.04.3 LTS (KVM virtual machine)
  • OpenClaw: 2026.4.1
  • systemd: running
  • dbus: active but limited bus access

Expected Behavior

The gateway start command should either:

  1. Work reliably in VM environments, or
  2. Provide a fallback when systemctl is-enabled fails

Workaround

Modified the systemd service file to use openclaw gateway instead of openclaw gateway start:

- ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway start
+ ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway

Related

  • The service file was installed via openclaw gateway install
  • The issue is that gateway start checks systemctl is-enabled as part of its startup validation

extent analysis

TL;DR

Modify the systemd service file to use openclaw gateway instead of openclaw gateway start to bypass the failing systemctl is-enabled check.

Guidance

  • Identify the systemd service file installed by openclaw gateway install and modify the ExecStart line as shown in the provided workaround.
  • Verify that the modified service file resolves the issue by running openclaw gateway start after applying the change.
  • Consider reporting this issue to the OpenClaw developers to implement a more robust fallback for systemctl is-enabled failures in future versions.
  • Ensure that the dbus permissions are correctly configured in the KVM virtual machine to prevent similar issues in the future.

Example

The modified ExecStart line in the systemd service file should look like this:

- ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway start
+ ExecStart=/root/.nvm/versions/node/v22.22.0/bin/openclaw gateway

Notes

This workaround assumes that the openclaw gateway command can function correctly without the start parameter. If this is not the case, further investigation into the OpenClaw documentation or source code may be necessary.

Recommendation

Apply the workaround by modifying the systemd service file, as this provides a reliable solution to the immediate problem.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING