Skip to content

[bug] Issue: Self-hosted Onlook web client fails to publish — “The socket connection was closed unexpectedly” #3030

@nguyenkhavi

Description

@nguyenkhavi

Environment

OS: Ubuntu 22.04 (VM)
Deployment: Docker (base image: oven/bun:1.2.21)
Onlook version: latest (main branch, self-hosted)
Command:

bun apps/web/client/.next/standalone/apps/web/client/server.js

Works fine in: Local development (non-Docker)
Fails in: Docker container / Ubuntu VM

Description

When running Onlook in local dev mode (bun dev), publishing works as expected.
However, when running the same build in Docker on an Ubuntu VM, publishing fails during the forkBuildSandbox step with a socket error Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch()

Expected behavior

The publish process should complete successfully, creating and deploying a sandbox build (as it does in local dev).

Actual behavior

During forkBuildSandbox, the socket connection closes unexpectedly, causing the deployment to fail.

Metadata

Metadata

Assignees

No one assigned

    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