Skip to content

MCP server fails to start in sample_huggingface_task due to missing sandbox_fs.so (code execution server RuntimeError) #2

@ravindra-byte

Description

@ravindra-byte

Hi,
I am trying to run sample_huggingface_task of Apex-Agent. When I execute run.sh it fails to bring the mcp server. I did docker logs -f on the container which shows code execution server is failing with RuntimeError: sandbox_fs.so is required for sandboxed code execution but was not found at /app/lib/sandbox_fs.so.

Please see below output.

$./run.sh
[17:37:58] Configuring MCP servers...
[17:37:58]   Servers: ['calendar_server', 'chat_server', 'code_execution_server', 'sheets_server', 'filesystem_server', 'mail_server', 'pdf_server', 'slides_server', 'docs_server']
Traceback (most recent call last):
  File "/Users/john/apex-agents/archipelago/examples/hugging_face_task/main.py", line 396, in <module>
    main()
    ~~~~^^
  File "/Users/john/apex-agents/archipelago/examples/hugging_face_task/main.py", line 216, in main
    resp.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/john/apex-agents/archipelago/agents/.venv/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status
    raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Server error '503 Service Unavailable' for url 'http://localhost:8080/apps'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
docker logs -f <container_id>
[02/17/26 12:08:04] INFO     Starting MCP server 'chat-server'    server.py:2507
                             with transport 'stdio'                             
2026-02-17 12:08:04.962 | DEBUG    | middleware.logging:on_request:17 - initialize returned meta=None protocolVersion='2025-06-18' capabilities=ServerCapabilities(experimental={'tasks': {'list': {}, 'cancel': {}, 'requests': {'tools': {'call': {}}, 'prompts': {'get': {}}, 'resources': {'read': {}}}}}, logging=None, prompts=PromptsCapability(listChanged=False), resources=ResourcesCapability(subscribe=False, listChanged=False), tools=ToolsCapability(listChanged=True), completions=None, tasks=None) serverInfo=Implementation(name='chat-server', title=None, version='2.14.4.dev2+bc2f601e', websiteUrl=None, icons=None) instructions=None
2026-02-17 12:08:04.964 | DEBUG    | middleware.logging:on_request:17 - tools/list returned [FunctionTool(name='chat', title=None, description="Chat operations for channels, messages, reactions, and users; call action='help' to see all actions and their required parameters.", tags=set(), enabled=True), FunctionTool(name='chat_schema', title=None, description='Get JSON schema for chat input/output models.', tags=set(), enabled=True)]
   Building mcp-schema @ file:///app/mcp_servers/code/packages/mcp_schema
      Built mcp-schema @ file:///app/mcp_servers/code/packages/mcp_schema
Uninstalled 1 package in 4ms
Installed 1 package in 0.55ms
Traceback (most recent call last):
  File "/app/mcp_servers/code/mcp_servers/code_execution_server/main.py", line 19, in <module>
    verify_sandbox_available()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/app/mcp_servers/code/mcp_servers/code_execution_server/tools/code_exec.py", line 28, in verify_sandbox_available
    verify_sandbox_library_available(SANDBOX_LIBRARY_PATH)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/app/mcp_servers/code/mcp_servers/code_execution_server/utils/sandbox.py", line 54, in verify_sandbox_library_available
    raise RuntimeError(
    ...<3 lines>...
    )
RuntimeError: sandbox_fs.so is required for sandboxed code execution but was not found at /app/lib/sandbox_fs.so. Please compile and install it first using: mkdir -p /app/lib && gcc -shared -fPIC -O2 -o /app/lib/sandbox_fs.so sandbox_fs.c -ldl -lpthread

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions