OpenHands / OpenHands/software-agent-sdk

[Bug]: agent-server (No response from ACP server) when setting up automation using Local ACP, opencode, ollama

Open
#4,267 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

acp bug Stale
Dominant language
Python
Stars
1.1k
Forks
542
Avg merge
1d 19h
Merged PRs (30d)
137

Description

Is there an existing issue for the same bug?
  • I have searched existing issues and this is not a duplicate.
Bug Description

I have agent-canvas running successfully and creating changes using conversations. Yay!

When I set up an automation such as GitHub repository monitor

I set up "Poll Locally on your laptop"

I am taken to the new conversation where I submit

/github-monitor:poll

and I receive
(No response from ACP server)

When i check the journalctl I see the below error. This is strange to me as the conversation works great using the ACP but below looks like litellm is not using the ACP but trying to talk to Ollama which is available on the network and set up in the base_url.

npx[571794]: 01:41:25 [agent-server] ERROR litellm.APIConnectionError: OllamaException - [Errno 111] Connection refused. Attempt OpenHands/OpenHands#2 | You can customize retry values in the configuration. retry_mixin.py:140

Ollama is running on the network, maybe there is some additional configuration i need to set to use Automation with ACP or ollama running on the network?

Thanks for your help!

Expected Behavior

Automation should continue set up prompting

Actual Behavior

a message is logged
(No response from ACP server)

backend logs show
npx[571794]: 01:41:25 [agent-server] ERROR litellm.APIConnectionError: OllamaException - [Errno 111] Connection refused. Attempt OpenHands/OpenHands#2 | You can customize retry values in the configuration. retry_mixin.py:140

Steps to Reproduce
  1. Install Openhands on an Ubuntu VM

  2. Set up Openhands GitHub MCP

  3. Install Opencode on the VM

  4. Configure Ollama network access (from GPU server)

  5. Configure Opencode to use Ollama server and model

  6. Configure Openhands to use ACP (opencode acp) and set the model to ollama/ (works here in conversation)

  7. Set up a new Automation.

  8. Select GitHub repository monitor

  9. Select Continue with Local setup

  10. Submit /github-monitor:poll in conversation

OpenHands Installation Method

Other

If you selected "Other", please specify

npm install -g @openhands/agent-canvas

OpenHands Version

latest release npm

Version Confirmation
  • I have confirmed this bug exists on the LATEST version of OpenHands
Model Name

devstral-small-2

Operating System

Ubuntu 24

Browser (if using web UI)

No response

Logs and Error Messages
npx[571794]: 01:41:25 [agent-server] ERROR    litellm.APIConnectionError: OllamaException - [Errno 111] Connection refused. Attempt OpenHands/OpenHands#2 | You can customize retry values in the configuration.  retry_mixin.py:140
Screenshots and Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Local ACP automation flow through the agent-server entry point, using /github-monitor:poll and the journalctl error as the initial trace. Compare this path with the working conversation setup and determine why the automation reaches Ollama directly. Done means the GitHub repository monitor continues its setup without returning “No response from ACP server.”

Written by the indexing model from the issue text.

Assessment

Tech stack
github, ollama, python
Domain
ai, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.