Skip to content

How to update? (openclaw update does not work) #162

Description

@halllo

What is the best practice regarding updating an instance to the latest version?

I tried openclaw update but that does not work:

node@cf78a4eeeddd:/app$ openclaw update
│
◇  
Updating OpenClaw...


Update Result: ERROR
  Root: /usr/local/lib/node_modules/openclaw
  Reason: global install stage

Recovery hints:
  - Detected permission failure (EACCES). Re-run with a writable global prefix or sudo (for system-managed Node installs).
  - If you recover with sudo/manual package install on a managed Gateway, stop the Gateway first so it does not load files while the package tree is being replaced.
  - Example: npm config set prefix ~/.local && npm i -g openclaw@latest
  - System install outline: openclaw gateway stop -> sudo <system-npm> i -g openclaw@latest -> openclaw gateway install --force -> openclaw gateway restart.

Total time: 789ms

Also sudo is not available in the container.

What I currently do is drop the container and recreate it:

podman pull ghcr.io/openclaw/openclaw:latest
podman rm -f openclaw-...
curl -fsS -X POST http://localhost:3000/api/instances/openclaw-.../start

Since data is in the volume this seems to work. Is this the best current practice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions