any pointers on what might be possibly causing thi...
# questions
m
any pointers on what might be possibly causing this
Copy code
11:22:39 - openhands:INFO: action_execution_client.py:434 - [runtime 4a95cf9d-ff8b-4e-ec7bed7b233c1e9] Updated MCP config: []
11:22:39 - openhands:INFO: utils.py:126 - Initializing MCP agent for url='https://my-app.20mr7ivx3kzn.us-south.codeengine.appdomain.cloud/mcp/sse' api_key='******' with SSE connection...
11:22:43 - openhands:INFO: client.py:55 - Connected to server with tools: ['fetch']
11:22:43 - openhands:INFO: utils.py:312 - Loaded 1 MCP tools: ['fetch']
11:22:43 - openhands:INFO: agent.py:169 - Setting 1 MCP tools for agent CodeActAgent: ['fetch']
11:22:43 - openhands:INFO: agent.py:181 - Tools updated for agent CodeActAgent, total 8: ['execute_bash', 'think', 'finish', 'browser', 'execute_ipython_cell', 'task_tracker', 'str_replace_editor', 'fetch']
11:22:43 - openhands:INFO: state_tracker.py:94 - AgentController 4a95cf9d-ff8b-4e-ec7bed7b233c1e9 - created new state. start_id: 0
11:22:43 - openhands:INFO: agent_controller.py:637 - [Agent Controller 4a95cf9d-ff8b-4e-ec7bed7b233c1e9] Setting agent(CodeActAgent) state from AgentState.LOADING to AgentState.RUNNING
11:22:43 - openhands:INFO: conversation_stats.py:65 - Saved conversation stats








11:22:55 - openhands:WARNING: agent_controller.py:858 - Control flag limits hit
11:22:55 - openhands:ERROR: loop.py:24 - RuntimeError: Agent reached maximum iteration. Current iteration: 5, max iteration: 5
11:22:55 - openhands:INFO: agent_controller.py:637 - [Agent Controller 4a95cf9d-ff8b-4e-ec7bed7b233c1e9] Setting agent(CodeActAgent) state from AgentState.RUNNING to AgentState.ERROR
11:22:55 - openhands:INFO: conversation_stats.py:65 - Saved conversation stats
11:22:55 - openhands:INFO: agent_controller.py:637 - [Agent Controller 4a95cf9d-ff8b-4e-ec7bed7b233c1e9] Setting agent(CodeActAgent) state from AgentState.ERROR to AgentState.ERROR
Copy code
poetry run python ./openhands/core/main.py         -i 5         -t "Write me a bash script that prints hello world."         -c CodeActAgent         -l d <model config pointer in toml file>
figured out the issue, it seems like 5 iterations were too low for the agent since it went about writing the script, to checking the permissions, to running it and
export DEBUG=1
helped figured out what was actually happening within the agent.
👍 2