Skip to content

Docker server mode: missing default-stylesheet.css and 'p is not a function' error #3075

@elbaro

Description

@elbaro

Description

Running Mux in Docker server mode (ghcr.io/coder/mux:latest and :nightly) fails when trying to stream messages.

Steps to Reproduce

docker run -p 3000:3000 -v mux-data:/root/.mux ghcr.io/coder/mux:latest --host 0.0.0.0 --port 3000 --no-auth
  1. Open http://localhost:3000
  2. Create a workspace with any project directory
  3. Send any message (e.g., "hi")

Errors

Two errors appear in sequence:

ENOENT: no such file or directory, open '/app/browser/default-stylesheet.css'
Stream message error: TypeError: p is not a function
    at I7c (/app/dist/runtime/server-bundle.js:1697:2629)
    at ymi.streamMessage (/app/dist/runtime/server-bundle.js:3313:880)
    at E0i.streamWithHistory (/app/dist/runtime/server-bundle.js:3361:30764)

The file /app/browser/default-stylesheet.css does not exist anywhere in the container image. The p is not a function error appears to be a bundling issue where a dependency was not correctly included in the server bundle.

Environment

  • Image: ghcr.io/coder/mux:latest and ghcr.io/coder/mux:nightly
  • Platform: linux/amd64
  • Running in Kubernetes (also reproducible with plain Docker)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions