Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Open Folder in coder server web IDE #3989

Closed
@klauserber

Description

@klauserber

Hello,

Here is my setup:

Kubernetes 1.25
coder 0.8.14
code-server 4.7.0

code-server is installed in the container image:

ARG CODE_SERVER_VERSION=4.7.0
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=${CODE_SERVER_VERSION}

and there is a coder_app resource in the template:

resource "coder_app" "code-server" {
  agent_id = coder_agent.devbox.id
  name     = "code-server"
  url      = "http://localhost:13337/?folder=/home/coder"
  icon     = "/icon/code.svg"
}

The coder-server IDE is working fine expect for the File|Open Folder... functionality. Open a Folder other than /home/coder hangs for a while and after that a error message appears:

An unexpected error occurred that requires a reload of this page.
The workbench was unexpectedly disposed while running.

The GET request (e. g. https://.../?folder=/home/coder/other-folder) from the browser gets no response.

The js console shows this message

  ERR Unable to write file 'vscode-log:/20220910T171919/window.log' (Error: IndexedDB database 'vscode-web-db' is closed.): Error: Unable to write file 'vscode-log:/20220910T171919/window.log' (Error: IndexedDB database 'vscode-web-db' is closed.)
    at u.writeFile (https://coder.app.int.isium.de/@kerber/devbox.devbox/apps/code-server/stable-784b0177c56c607789f9638da7b6bf3230d47a8c/static/out/vs/workbench/workbench.web.main.js:603:16323)
    at async Object.factory (https://coder.app.int.isium.de/@kerber/devbox.devbox/apps/code-server/stable-784b0177c56c607789f9638da7b6bf3230d47a8c/static/out/vs/workbench/workbench.web.main.js:604:3)

This does not happen by using code-server directly via a port forward.

But it does happen by using the coder UI via a port forward. So I think there is some wrong with the redirect from coder to code-server and not with the network path behind it (nginx controller and haproxy in my case).

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting-for-infoThe issue creator is asked to provide more information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions