#gateway will not install
1 messages ยท Page 1 of 1 (latest)
That error basically means: OpenClaw tried to manage the Linux systemd service (systemctl --user โฆ), but your environment doesnโt have a working systemd user manager (either no systemd at all, or no user bus/session).
Can you paste these (theyโre the fastest to pinpoint which case it is):
openclaw --version
ps -p 1 -o comm=
systemctl --user status --no-pager 2>&1 | head -n 30
If your machine does use systemd (PID 1 = systemd)
Then the fix is usually one of:
- Service not installed yet
openclaw gateway install
systemctl --user daemon-reload
systemctl --user enable --now openclaw-gateway.service
- User services stop when you log out (common on servers/SSH)
sudo loginctl enable-linger "$USER"
(Then systemctl --user enable --now โฆ again.)
If PID 1 is not systemd (WSL without systemd, Docker container, Alpine/OpenRC, etc.)
systemctl --user wonโt work there. You can still run OpenClaw fine, just without the daemon:
openclaw gateway --port 18789
โฆand keep it running via tmux/screen or whatever process supervisor you use.
Docs that match this: https://docs.openclaw.ai/gateway (service lifecycle) and https://docs.openclaw.ai/platforms/linux
hanz@hanz-pc:~$ openclaw --version
ps -p 1 -o comm=
systemctl --user status --no-pager 2>&1 | head -n 30
openclaw: Befehl nicht gefunden.
systemd
โ hanz-pc
State: running
Units: 336 loaded (incl. loaded aliases)
Jobs: 0 queued
Failed: 0 units
Since: Thu 2026-03-05 16:17:55 CET; 36min ago
systemd: 255.4-1ubuntu8.12
CGroup: /user.slice/user-1000.slice/user@1000.service
โโapp.slice
โ โโapp-gnome-at\x2dspi\x2ddbus\x2dbus-2549.scope
โ โ โโ2549 /usr/libexec/at-spi-bus-launcher --launch-immediately
โ โ โโ2561 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/1000/at-spi/bus
โ โ โโ2610 /usr/libexec/at-spi2-registryd --use-gnome-session
โ โโapp-gnome-org.gnome.Evolution\x2dalarm\x2dnotify-2699.scope
โ โ โโ2699 /usr/libexec/evolution-data-server/evolution-alarm-notify
โ โโapp-gnome-org.gnome.SettingsDaemon.DiskUtilityNotify-2704.scope
โ โ โโ2704 /usr/libexec/gsd-disk-utility-notify
โ โโapp-gnome-update\x2dnotifier-4822.scope
โ โ โโ4822 /usr/bin/update-notifier
โ โโapp-gnome\x2dsession\x2dmanager.slice
โ โ โโgnome-session-manager@ubuntu.service
โ โ โโ2489 /usr/libexec/gnome-session-binary --systemd-service --session=ubuntu
โ โโapp-org.gnome.Terminal.slice
โ โ โโgnome-terminal-server.service
โ โ โ โโ5489 /usr/libexec/gnome-terminal-server
โ โ โโvte-spawn-22420cab-eb67-4130-aabf-3af15811a2ac.scope
โ โ โโ 5497 bash
โ โ โโ51298 systemctl --user status --no-pager
โ โ โโ51299 head -n 30
โ โโdconf.service
hanz@hanz-pc:~$
Your systemctl --user is totally fine (itโs running and responding), so this isnโt a โno systemdโ situation.
The real blocker in your pasted output is:
openclaw: Befehl nicht gefunden.
So the OpenClaw CLI simply isnโt installed or itโs installed but not on your PATH.
Fix (recommended)
Re-run the installer (it also handles PATH setup more reliably than manual npm globals):
curl -fsSL https://openclaw.ai/install.sh | bash
Then close + reopen your terminal and verify:
command -v openclaw
openclaw --version
After that, install/start the service:
openclaw onboard --install-daemon
# or: openclaw gateway install
Why you saw systemctl โฆ is-enabled โฆ unavailable
That message usually happens when the unit doesnโt exist yet (not installed), so systemctl --user is-enabled openclaw-gateway.service exits nonโzero.
Once openclaw is actually installed and you run openclaw gateway install / onboard --install-daemon, that check should stop erroring.
If openclaw is still โnot foundโ after reinstall: paste node -v, npm -v, and echo $PATH and weโll spot the PATH issue immediately.
ich habe die installation gestartet und es hat bei gateway installation abgebrochen und dann diesen fehler ausgegeben wir angegeben
Alles klar โ der wichtige Punkt ist: systemctl --user lรคuft bei dir, aber der Installer ist beim โGateway/Daemon installierenโ ausgestiegen, weil er systemctl --user is-enabled openclaw-gateway.service als โFehlerโ behandelt.
Das passiert typischerweise, wenn der Service noch gar nicht existiert (oder โdisabledโ ist): systemctl is-enabled liefert dann einen Exit-Code โ 0 โ das ist normal, aber wird hier offenbar als hard error angezeigt.
Quick workaround (damit du sofort weiterkommst)
- OpenClaw erst mal nur installieren (ohne Onboarding/Daemon):
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard
- Terminal neu รถffnen (oder einmal
source ~/.profile), dann prรผfen:
command -v openclaw
openclaw --version
- Gateway testweise im Vordergrund starten (zum Verifizieren):
openclaw gateway --port 18789
(Ctrl+C zum Beenden)
- Service dann manuell aktivieren:
openclaw gateway install
systemctl --user daemon-reload
systemctl --user enable --now openclaw-gateway.service
openclaw gateway status
Wenn Schritt 2 schon scheitert (openclaw immer noch โnicht gefundenโ)
Paste bitte:
ls -la ~/.local/bin/openclaw /usr/local/bin/openclaw 2>/dev/null
echo $PATH
Wenn das wirklich ein Installer-Bug ist (Abbruch nur wegen is-enabled Exit-Code), wรคre das ein Fall fรผr ein GitHub Issue โ aber mit obigen Schritten solltest du erstmal sauber laufen.
hanz@hanz-pc:~$ curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard
๐ฆ OpenClaw Installer
WhatsApp automation without the "please accept our new privacy policy".
โ Detected: linux
Install plan
OS: linux
Install method: npm
Requested version: latest
Onboarding: skipped
[1/3] Preparing environment
โ Node.js v25.8.0 found
ยท Active Node.js: v25.8.0 (/home/linuxbrew/.linuxbrew/bin/node)
ยท Active npm: 11.11.0 (/home/linuxbrew/.linuxbrew/bin/npm)
[2/3] Installing OpenClaw
โ Git already installed
ยท Installing OpenClaw v2026.3.2
โ OpenClaw npm package installed
โ OpenClaw installed
[3/3] Finalizing setup
! PATH missing npm global bin dir: /home/hanz/.npm-global/bin
This can make openclaw show as "command not found" in new terminals.
Fix (zsh: ~/.zshrc, bash: ~/.bashrc):
export PATH="/home/hanz/.npm-global/bin:$PATH"
๐ฆ OpenClaw installed successfully (2026.3.2)!
Home sweet home. Don't worry, I won't rearrange the furniture.
ยท Skipping onboard (requested); run openclaw onboard later
FAQ: https://docs.openclaw.ai/start/faq
hanz@hanz-pc:~$ [200~command -v openclaw
[200~command: Befehl nicht gefunden.
hanz@hanz-pc:~$ openclaw --version~
openclaw: Befehl nicht gefunden.
hanz@hanz-pc:~$ openclaw gateway --port 18789
openclaw: Befehl nicht gefunden.
hanz@hanz-pc:~$
Perfekt โ der Installer hatโs jetzt wirklich installiert, aber genau das steht in der Ausgabe:
PATH missing npm global bin dir: /home/hanz/.npm-global/bin
โ deshalb bleibtopenclaw: Befehl nicht gefunden.
Sofort fix (nur fรผr dieses Terminal)
Kopier das einmal:
export PATH="$HOME/.npm-global/bin:$PATH"
command -v openclaw
openclaw --version
Falls openclaw dann immer noch nicht found ist, prรผf kurz ob das Binary da liegt:
ls -la ~/.npm-global/bin/openclaw
Dauerhaft fix (damitโs nach Neustart auch passt)
In ~/.bashrc (bei bash) diese Zeile hinzufรผgen:
export PATH="$HOME/.npm-global/bin:$PATH"
Dann Terminal neu รถffnen (oder source ~/.bashrc).
Wenn openclaw --version klappt, kannst du weiter mit z.B.:
openclaw onboard --install-daemon
(und falls dann wieder was mit systemctl --user โฆ kommt, paste die genaue Fehlermeldung โ jetzt sollten wir an die eigentliche Service-Installation ran kรถnnen).
No
โ
โ Set ELEVENLABS_API_KEY for sag?
โ No
โ
โ Hooks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Hooks let you automate actions when agent commands are issued. โ
โ Example: Save session context to memory when you issue /new or /reset. โ
โ โ
โ Learn more: https://docs.openclaw.ai/automation/hooks โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Enable hooks?
โ ๐ command-logger, ๐พ session-memory
โ
โ Hooks Configured โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Enabled 2 hooks: command-logger, session-memory โ
โ โ
โ You can manage hooks later with: โ
โ openclaw hooks list โ
โ openclaw hooks enable <name> โ
โ openclaw hooks disable <name> โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Config overwrite: /home/hanz/.openclaw/openclaw.json (sha256 ac100a9204ebdf95c0c0685c4337b583224dc83c5e0aa09e64c7a5d8d017bbdc -> d2c64f0e47bb03bbc9c35be3ad0717c6f0dfca439ca71807ae0f9a8c9e063f7e, backup=/home/hanz/.openclaw/openclaw.json.bak)
โ
โ Gateway service runtime
โ Node (recommended)
Error: systemctl is-enabled unavailable: Command failed: systemctl --user is-enabled openclaw-gateway.service
hanz@hanz-pc:~$
Das ist super hilfreich โ dein Onboarding ist durch, nur die systemd-User-Service-Erkennung/Installation stolpert genau an dem Punkt:
systemctl --user is-enabled openclaw-gateway.service
Wichtig: systemctl is-enabled liefert Exit-Code 1, wenn ein Service einfach nur disabled ist. Das ist normal, aber OpenClaw scheint das gerade als โunavailableโ zu behandeln.
1) Bitte einmal den echten systemctl Output posten
systemctl --user is-enabled openclaw-gateway.service; echo "exit=$?"
- Wenn da
disabledsteht โ alles ok, Service ist nur noch nicht aktiviert. - Wenn da
not-foundsteht โ Unit-Datei wurde nicht geschrieben.
2) Workaround: Service manuell installieren + aktivieren
openclaw gateway install --force
systemctl --user daemon-reload
systemctl --user enable --now openclaw-gateway.service
systemctl --user status openclaw-gateway.service --no-pager -n 50
openclaw gateway status
3) Falls not-found: check ob die Unit-Datei existiert
ls -la ~/.config/systemd/user | grep -i openclaw || true
Wenn du mir Output von (1) + ggf. (3) gibst, kann ich dir sagen, ob das โnur disabledโ ist oder ob gateway install die Unit gar nicht schreibt (das wรคre dann ein Bug).
้ๅ bug ๆฏๅฆๅทฒๅจ 2026.3.7 ไธญไฟฎๆญฃ๏ผ