© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Friends of the Crustacean 🦞🤝FotC�
Friends of the Crustacean 🦞🤝•7d ago•
4 replies
clarezoe

Gateway service check failed: Error: systemctl --user unavailable: spawn systemctl EACCES

✅Solved
when running
openclaw gateway restart
openclaw gateway restart

I'm running openclaw in a container deployed by dokploy, version 2.26
Solution
That error is expected in a Dokploy/Docker container.

openclaw gateway restart
openclaw gateway restart
is the service supervisor path on Linux, and it tries to talk to systemd user services (
systemctl --user …
systemctl --user …
). Most containers don’t have a user systemd + DBus session (and often don’t even allow
systemctl
systemctl
), so OpenClaw can’t “restart the service” from inside the container → you get
systemctl --user unavailable … EACCES
systemctl --user unavailable … EACCES
.

What to do instead (container-friendly):

- Run the gateway in the foreground as the container’s main process:
-
openclaw gateway --port 18789
openclaw gateway --port 18789
(add
--verbose
--verbose
if you want)
- Docs: https://docs.openclaw.ai/gateway (see “5-minute local startup”)

- “Restart” it using your orchestrator:
- Dokploy restart/redeploy (or
docker restart <container>
docker restart <container>
), not
openclaw gateway restart
openclaw gateway restart
.

If you paste the exact output of:
-
openclaw --version
openclaw --version

- and the full error from
openclaw gateway restart
openclaw gateway restart
Jump to solution
Friends of the Crustacean 🦞🤝 banner
Friends of the Crustacean 🦞🤝Join
The AI that actually does things. Emails, calendar, home automation - all from your favorite chat app. New shell, ready to help. The lobster way.
129,194Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Recent Announcements
Shadow

<@&1471741345306644545> its weekly claw time nerds! Also you can get the new <@&1479584625755033854> role in <id:customize> https://discord.com/events/1456350064065904867/1479314622669520996

Shadow · 2d ago

Shadow

<@&1471741345306644545> We've opened up <#1474434870259224723> and <#1479543671605952532> that you can now share your community-made plugins in! Use <#1474434870259224723> if your plugin specifically adds a new channel, otherwise use <#1479543671605952532>!

Shadow · 2d ago

Shadow

<@&1471741366311583785> https://x.com/openclaw/status/2028693804266496230

Shadow · 5d ago

Similar Threads

Gateway service check failed: Error: systemctl --user unavailable
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
2mo ago
error Gateway service check failed: Error: systemctl --user unavailable: Failed to connect to bus:
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
4w ago
Gateway service check failed
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
2mo ago
systemctl --user is-enabled openclaw-gateway.service
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
4d ago