I have successfully started opensandbox server in a Linux machine. I test code in another machine. When I started the opensandbox server, I have added [docker].host_ip in ~/.sandbox.toml.
When I create sanbox through the following code:
config = ConnectionConfig(
domain="http://10.104.66.159:8080",
use_server_proxy=True,
)
sandbox = await Sandbox.create(
"opensandbox/code-interpreter:v1.0.2",
entrypoint=["/opt/opensandbox/code-interpreter.sh"],
env={"PYTHON_VERSION": "3.11"},
connection_config=config,
timeout=timedelta(minutes=10),
ready_timeout=timedelta(minutes=5),
)
the following info occurs in sandbox server log:
INFO: 2026-04-13 15:20:40+0800 [-] uvicorn.access: 10.98.180.12:38296 - "GET /sandboxes/e22dc5f2-09dc-4c7c-90d5-4577bd7c6370/proxy/44772/ping HTTP/1.1" 500
INFO: 2026-04-13 15:20:40+0800 [-] uvicorn.access: 10.98.180.12:38296 - "GET /sandboxes/e22dc5f2-09dc-4c7c-90d5-4577bd7c6370/proxy/44772/ping HTTP/1.1" 500
INFO: 2026-04-13 15:20:40+0800 [-] uvicorn.access: 10.98.180.12:38296 - "GET /sandboxes/e22dc5f2-09dc-4c7c-90d5-4577bd7c6370/proxy/44772/ping HTTP/1.1" 500
the following error shows:
File "/mnt/shared-storage-user/ailab-sys/geruijun/ai4sci/OpenSandbox/test-sandbox.py", line 15, in main
sandbox = await Sandbox.create(
^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/root/miniconda3/lib/python3.13/site-packages/opensandbox/sandbox.py", line 447, in create
await sandbox.check_ready(ready_timeout, health_check_polling_interval)
File "/root/miniconda3/lib/python3.13/site-packages/opensandbox/sandbox.py", line 351, in check_ready
raise SandboxReadyTimeoutException(final_message)
opensandbox.exceptions.sandbox.SandboxReadyTimeoutException: Sandbox health check timed out after 300.0s (1461 attempts). Health check returned false continuously
How can I fix this problem?
I have successfully started opensandbox server in a Linux machine. I test code in another machine. When I started the opensandbox server, I have added [docker].host_ip in ~/.sandbox.toml.
When I create sanbox through the following code:
the following info occurs in sandbox server log:
INFO: 2026-04-13 15:20:40+0800 [-] uvicorn.access: 10.98.180.12:38296 - "GET /sandboxes/e22dc5f2-09dc-4c7c-90d5-4577bd7c6370/proxy/44772/ping HTTP/1.1" 500
INFO: 2026-04-13 15:20:40+0800 [-] uvicorn.access: 10.98.180.12:38296 - "GET /sandboxes/e22dc5f2-09dc-4c7c-90d5-4577bd7c6370/proxy/44772/ping HTTP/1.1" 500
INFO: 2026-04-13 15:20:40+0800 [-] uvicorn.access: 10.98.180.12:38296 - "GET /sandboxes/e22dc5f2-09dc-4c7c-90d5-4577bd7c6370/proxy/44772/ping HTTP/1.1" 500
the following error shows:
File "/mnt/shared-storage-user/ailab-sys/geruijun/ai4sci/OpenSandbox/test-sandbox.py", line 15, in main
sandbox = await Sandbox.create(
^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/root/miniconda3/lib/python3.13/site-packages/opensandbox/sandbox.py", line 447, in create
await sandbox.check_ready(ready_timeout, health_check_polling_interval)
File "/root/miniconda3/lib/python3.13/site-packages/opensandbox/sandbox.py", line 351, in check_ready
raise SandboxReadyTimeoutException(final_message)
opensandbox.exceptions.sandbox.SandboxReadyTimeoutException: Sandbox health check timed out after 300.0s (1461 attempts). Health check returned false continuously
How can I fix this problem?