Skip to content

When deploying open-source code offline, encountering the error message: "Unable to connect. Is the computer able to access the URL?" #9788

Closed

Description

@wxy119-119

Description

I used npm to package opencode-ai-1.1.28.tgz and opencode-linux-x64-1.1.28.tgz for offline deployment. My model service URL is 192.168.8.2:17432/v1, which is started using the vLLM method. I performed the installation on the server 192.168.8.251. After the installation was complete, starting OpenCode resulted in the error: "Unable to connect. Is the computer able to access the URL?". It is important to note that the two servers can communicate with each other.

Plugins

NO

OpenCode version

1.1.28

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jan 21, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if your specific case differs, but these issues cover similar offline deployment scenarios with local model services.

  2. 1dao commented on Jan 21, 2026

    @1dao

    error=BunInstallFailedError failed to install builtin plugin

  3. wxy119-119 commented on Jan 21, 2026

    @wxy119-119
    Author

    error=BunInstallFailedError failed to install builtin plugin
    The error I'm encountering is: "Unable to connect. Is the computer able to access the url?"

  4. 1dao commented on Jan 21, 2026

    @1dao

    this is backend error,ui tips is : Unable to connect. Is the computer able to access the URL

  5. 1dao commented on Jan 21, 2026

    @1dao

    INFO 2026-01-21T08:34:08 +0ms service=bun cmd=["C:\software\OpenCode\opencode-cli.exe","add","--force","--exact","--no-cache","--cwd","C:\Users\xx\.cache\opencode","opencode-anthropic-auth@0.0.9"] cwd=C:\Users\makiv.cache\opencode running
    INFO 2026-01-21T08:34:08 +34ms service=bun code=1 stdout=bun add v1.3.5 (1e86cebd)
    stderr=Resolving dependencies
    Resolved, downloaded and extracted [6]
    error: ConnectionRefused downloading package manifest @opencode-ai/plugin
    done

  6. 1dao commented on Jan 21, 2026

    @1dao

    I've fixed my issue. Oh My OpenCode tries to update from GitHub on startup, and it fails to launch if the proxy is not enabled. Even when the proxy is enabled, it still throws errors on startup. It's best to disable Oh My OpenCode entirely.
    Additionally, if the https_proxy environment variable is set but the proxy itself is not turned on, the same problem will occur.

  7. wxy119-119 commented on Jan 22, 2026

    @wxy119-119
    Author

    我已经解决了我的问题。哦,我的OpenCode在启动时尝试从GitHub更新,如果代理未启用,它会失败启动。即使启用了代理,启动时仍然会报错。最好完全禁用“哦,我的OpenCode”。此外,如果https_proxy环境变量被设置但代理本身未被启用,也会出现同样的问题。

    I've resolved the issue. The error no longer occurs after I rolled back to version 1.1.21.

  8. OneOfLzx commented on Jan 22, 2026

    @OneOfLzx

    If you’re in network-restricted environments, I’d use OpenCode Sentinel — this project includes built-in support for offline dependency configuration, enabling one-click installation of all required dependencies without any network access 👍👍.

    Also, it cuts all network access except to your LLM, so it works flawlessly in network-restricted environments.

    Repo: https://github.com/oneoflzx/opencode-sentinel

  9. lee-b commented on Jan 27, 2026

    @lee-b

    This can happen if the server crashes, is just starting, etc. In most even semi-serious deployments, the server would restart automatically, so it would be nice if opencode would retry here.

  10. TyGu1 commented on Jan 29, 2026

    @TyGu1

    Edit: Resolved by simply restarting IDE

    Having the same problem.
    LLM parameters are fine, i cross checked credentials with continue, there it works.

    Setting log-level to DEBUG and enable logging gives me:

    `AKS:xxx ~ took 5s
    ❯ opencode --print-logs
    INFO 2026-01-29T15:46:02 +368ms service=default version=1.1.42 args=["--print-logs"] opencode
    INFO 2026-01-29T15:46:02 +2ms service=config path=/home/xxx/.config/opencode/config.json loading
    INFO 2026-01-29T15:46:02 +1ms service=config path=/home/xx/.config/opencode/opencode.json loading
    INFO 2026-01-29T15:46:02 +2ms service=config path=/home/xxx/.config/opencode/opencode.jsonc loading

    AKS:xx ~ took 9s AKS:lwm ~ took 5s
    ❯ opencode --print-logs
    INFO 2026-01-29T15:46:02 +368ms service=default version=1.1.42 args=["--print-logs"] opencode
    INFO 2026-01-29T15:46:02 +2ms service=config path=/home/xxx/.config/opencode/config.json loading
    INFO 2026-01-29T15:46:02 +1ms service=config path=/home/xxx/.config/opencode/opencode.json loading
    INFO 2026-01-29T15:46:02 +2ms service=config path=/home/xxx/.config/opencode/opencode.jsonc loading

    AKS:xx~ took 9s `

  11. jakiechris commented on Jan 30, 2026

    @jakiechris

    same issue when i try to open web page of "opencode serve"

  12. wind-rain-sky commented on Jan 31, 2026

    @wind-rain-sky

    I've encountered the same problem. Once the AI ​​starts using the GLOB tool, it throws this error. Is there a way to use OpenCode in an offline environment?

  13. Gdimitron commented on Feb 2, 2026

    @Gdimitron

    I've encountered the same problem. Once the AI ​​starts using the GLOB tool, it throws this error. Is there a way to use OpenCode in an offline environment?

    @wind-rain-sky - In my environment, it turned out the problem for GREP/GLOB error was a lack of rg (ripgrep deb package). - There was an unsuccessful attempt to call the tool. Then, it looks like, some faulty error handler was accessing the network, resulting in this vague message. After rg installation there were no more errors in offline environment.

  14. github-actions commented on Apr 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions