docker
is running on your system. You should be able to run docker ps
in the terminal successfully.Settings > Advanced > Allow the default Docker socket to be used
is enabled.Settings > Resources > Network > Enable host networking
enabled in Docker Desktop.Permission Denied
or PermissionError
.
Resolution
~/.openhands
is owned by root
. If so, you can:
sudo chown <user>:<user> ~/.openhands
.sudo chmod 777 ~/.openhands
WORKSPACE_BASE
has the necessary permissions for the user running
OpenHands.ERROR:root:<class 'httpx.ConnectTimeout'>: timed out
.
Resolution
If you installed Docker from your distribution’s package repository (e.g., docker.io on Debian/Ubuntu), be aware that
these packages can sometimes be outdated or include changes that cause compatibility issues. try reinstalling Docker
using the official instructions to ensure you are running a compatible version.
If that does not solve the issue, try incrementally adding the following parameters to the docker run command:
--network host
-e SANDBOX_USE_HOST_NETWORK=true
-e DOCKER_HOST_ADDR=127.0.0.1
Internal Server Error ("ports are not available: exposing port TCP ...: bind: An attempt was made to access a socket in a way forbidden by its access permissions.")
is encountered.
Resolution
SANDBOX_VSCODE_PORT
environment variable:
Note: If you used OpenHands before version 0.44, you may want to run mv ~/.openhands-state ~/.openhands
to migrate your conversation history to the new location.
-p 41234:41234
in your Docker command.
config.toml
file: