Skip to content

Websocket error 1006 under nginx proxy manager #7355

Open
@javierspn

Description

@javierspn

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox, Chrome, Safari
  • Local OS: Windows 10/11, Debian 12, MacOS X Ventura
  • Remote OS: Debian 12
  • Remote Architecture: x86
  • code-server --version: latest

Steps to Reproduce

  1. Execute the container
  2. Enter the web
  3. Error

Expected

Working operations

Actual

Error while fetching extensions. WebSocket close with status code 1006

Logs

code-server  | [2025-05-23T08:42:58.304Z] info  code-server 4.100.2 9dd999ba78032163d606fadd531de5e1fcae5443
code-server  | [2025-05-23T08:42:58.307Z] info  Using user-data-dir /home/coder/.local/share/code-server
code-server  | [2025-05-23T08:42:58.327Z] info  Using config file /home/coder/.config/code-server/config.yaml
code-server  | [2025-05-23T08:42:58.327Z] info  HTTP server listening on http://0.0.0.0:8080/
code-server  | [2025-05-23T08:42:58.328Z] info    - Authentication is disabled
code-server  | [2025-05-23T08:42:58.328Z] info    - Not serving HTTPS
code-server  | [2025-05-23T08:42:58.328Z] info  Session server listening on /home/coder/.local/share/code-server/code-server-ipc.sock
code-server  | [10:43:33] 
code-server  | 
code-server  | 
code-server  | 
code-server  | 
code-server  | [10:43:33] Extension host agent started.
code-server  | File not found: /usr/lib/code-server/lib/vscode/extensions/emmet/dist/browser/emmetBrowserMain.js
code-server  | File not found: /usr/lib/code-server/lib/vscode/extensions/git-base/dist/browser/extension.js
code-server  | File not found: /usr/lib/code-server/lib/vscode/extensions/merge-conflict/dist/browser/mergeConflictMain.js

Screenshot/Video

Image

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

This is the compose file configuration:

x-common-logging: &default-logging
  driver: ${LOG_TYPE}
  options:
    max-size: ${LOG_SIZE}
    max-file: ${LOG_FILES}


services:

  code-server:

    image: ${CONTAINER_IMAGE}
    container_name: ${CONTAINER_NAME}

    restart: ${POLICY_RESTART}

    environment:

      TZ: ${TZ}
      PROXY_DOMAIN: ${PROXY_DOMAIN}
      PUID: 1000
      PGID: 1000
      DOCKER_USER: 0

    networks:
      - proxied

    volumes:
      - ${CODE_LOCAL_VOLUME}
      - ${CODE_CONFIG_VOLUME}
      - ${CODE_PROJECT_VOLUME}

    logging: *default-logging


networks:
  proxied:
    name: proxied

Env file:

CONTAINER_IMAGE=codercom/code-server:latest
CONTAINER_NAME=code-server
# VOLUMES
CODE_LOCAL_VOLUME=/docker/data/code/.local:/home/coder/.local
CODE_CONFIG_VOLUME=/docker/data/code/.config:/home/coder/.config
CODE_PROJECT_VOLUME=/docker/data/code/projects:/home/coder/project
# COMMON ENVIRONMENT VARIABLES
TZ=Europe/Madrid
PROXY_DOMAIN=coder.theminion.win
POLICY_RESTART=unless-stopped
LOG_TYPE=json-file
LOG_SIZE=10M
LOG_FILES=3

These are the contents of the config .yaml file:

bind-addr: 127.0.0.1:8080
auth: none
password: XXXX
cert: false

You would notice that I have disabled authentication. That is because I am using authentik in front of coder for authentication (not at the moment, just to let you know that I am not out of my mind).

The server is running behind nginx proxy manager with a valid Lets encrypt certificate and websockets support:

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions