Skip to content

[Bug]: sandbox startup potential issue #3378

Closed
@tobitege

Description

@tobitege

Is there an existing issue for the same bug?

Describe the bug

Started OpenDevin "fresh" after make build/run.

@xingyaoww maybe you can take a look at the log below, but to me it seems, that inside Docker the app startup is not waited for and commands are being issued immediately? Could this be an issue for "stalled" (re-)connections?

Current OpenDevin version

current as of 1 hour ago :)

Installation and Configuration

make build
make run

Model and Agent

CodeActAgent

Operating System

WSL2

Reproduction Steps

start a new session in browser

Logs, Errors, Screenshots, and Additional Context

This is the log from inside docker (freshly built image):

Starting action execution API on port 36131
INFO:opendevin:DEBUG logging is enabled. Logging to /opendevin/code/logs
16:10:11 - opendevin:DEBUG: logger.py:173 - Logging initialized
16:10:13 - opendevin:INFO: client.py:668 - Starting action execution API on port 36131
INFO:     Started server process [15]
INFO:     Waiting for application startup.
16:10:13 - opendevin:DEBUG: client.py:129 - Added sudoer successfully. Output: []
16:10:13 - opendevin:DEBUG: client.py:152 - Added user opendevin successfully. Output: []
16:10:13 - opendevin:DEBUG: client.py:174 - Bash initialized. Working directory: /workspace. Output: 
16:10:13 - opendevin:INFO: browser_env.py:58 - Starting browser env...
INFO:opendevin:DEBUG logging is enabled. Logging to /opendevin/code/logs
16:10:13 - opendevin:DEBUG: logger.py:173 - Logging initialized
16:10:16 - opendevin:INFO: browser_env.py:101 - Browser env started.
16:10:16 - opendevin:INFO: client.py:100 - Initializing plugin: agent_skills
16:10:16 - opendevin:INFO: __init__.py:50 - Jupyter kernel gateway started at port 51625. Output: 
16:10:16 - opendevin:INFO: client.py:100 - Initializing plugin: jupyter
16:10:16 - opendevin:DEBUG: client.py:301 - /workspace != None -> reset Jupyter PWD
16:10:19 - opendevin:DEBUG: client.py:307 - Changed working directory in IPython to: /workspace. Output: **IPythonRunCellObservation**
[Code executed successfully with no output]
16:10:19 - opendevin:INFO: client.py:114 - AgentSkills initialized: **IPythonRunCellObservation**
[Code executed successfully with no output]
[Jupyter current working directory: /workspace]
16:10:19 - opendevin:INFO: client.py:179 - Initializing by running 3 bash commands...
16:10:19 - opendevin:DEBUG: client.py:183 - Executing init command: git config --global user.name "opendevin"
16:10:19 - opendevin:DEBUG: bash.py:37 - BASH PARSING command: git config --global user.name "opendevin"
16:10:19 - opendevin:DEBUG: bash.py:44 - BASH PARSING remaining: 
16:10:19 - opendevin:DEBUG: client.py:225 - Executing command: git config --global user.name "opendevin"
16:10:19 - opendevin:DEBUG: client.py:234 - Executing command for exit code: git config --global user.name "opendevin"
16:10:19 - opendevin:DEBUG: client.py:237 - Exit code Output: 0

16:10:19 - opendevin:DEBUG: client.py:255 - Command output: 
opendevin@609b31df0ec9:/workspace $ 
16:10:19 - opendevin:DEBUG: client.py:185 - Init command outputs (exit code: 0): 
opendevin@609b31df0ec9:/workspace $ 
16:10:19 - opendevin:DEBUG: client.py:183 - Executing init command: git config --global user.email "[email protected]"
16:10:19 - opendevin:DEBUG: bash.py:37 - BASH PARSING command: git config --global user.email "[email protected]"
16:10:19 - opendevin:DEBUG: bash.py:44 - BASH PARSING remaining: 
16:10:19 - opendevin:DEBUG: client.py:225 - Executing command: git config --global user.email "[email protected]"
16:10:19 - opendevin:DEBUG: client.py:234 - Executing command for exit code: git config --global user.email "[email protected]"
16:10:19 - opendevin:DEBUG: client.py:237 - Exit code Output: 0

16:10:19 - opendevin:DEBUG: client.py:255 - Command output: 
opendevin@609b31df0ec9:/workspace $ 
16:10:19 - opendevin:DEBUG: client.py:185 - Init command outputs (exit code: 0): 
opendevin@609b31df0ec9:/workspace $ 
16:10:19 - opendevin:DEBUG: client.py:183 - Executing init command: alias git='git --no-pager'
16:10:19 - opendevin:DEBUG: bash.py:37 - BASH PARSING command: alias git='git --no-pager'
16:10:19 - opendevin:DEBUG: bash.py:44 - BASH PARSING remaining: 
16:10:19 - opendevin:DEBUG: client.py:225 - Executing command: alias git='git --no-pager'
16:10:20 - opendevin:DEBUG: client.py:234 - Executing command for exit code: alias git='git --no-pager'
16:10:20 - opendevin:DEBUG: client.py:237 - Exit code Output: 0

16:10:20 - opendevin:DEBUG: client.py:255 - Command output: 
opendevin@609b31df0ec9:/workspace $ 
16:10:20 - opendevin:DEBUG: client.py:185 - Init command outputs (exit code: 0): 
opendevin@609b31df0ec9:/workspace $ 
16:10:20 - opendevin:INFO: client.py:190 - Bash init commands completed
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:36131 (Press CTRL+C to quit)
INFO:     172.17.0.1:48062 - "GET /alive HTTP/1.1" 200 OK

See very last lines from bottom where the application startup is reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleInactive for 30 daysbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions